Example #1
0
File: core.py Project: 18sg/CREP
	def status(self):
		ammount_owed = self.ammount_owed_current
		if ammount_owed > 0:
			return u"You are owed %s." % money_format(ammount_owed)
		if ammount_owed < 0:
			return u"You owe %s." % money_format(-ammount_owed)
		else:
			return u"You are even."
Example #2
0
File: core.py Project: 18sg/CREP
	def __unicode__(self):
		return u"%s owes %s for '%s'" % (self.user, money_format(self.ammount), self.purchase)
Example #3
0
File: core.py Project: 18sg/CREP
	def __unicode__(self):
		return u"%s for %s by %s" % (self.title,
		                             money_format(self.total),
		                             self.purchaser.name)
Example #4
0
	def format_receiver(self):
		return u"%s from %s" % (money_format(self.ammount), self.sender.name)
Example #5
0
	def format_sender(self):
		return u"%s to %s" % (money_format(self.ammount), self.recipient.name)
Example #6
0
	def __unicode__(self):
		return u"%s from %s to %s" % (money_format(self.ammount),
		                              self.sender.name,
		                              self.recipient.name)