Esempio n. 1
0
File: core.py Progetto: 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."
Esempio n. 2
0
File: core.py Progetto: 18sg/CREP
	def __unicode__(self):
		return u"%s owes %s for '%s'" % (self.user, money_format(self.ammount), self.purchase)
Esempio n. 3
0
File: core.py Progetto: 18sg/CREP
	def __unicode__(self):
		return u"%s for %s by %s" % (self.title,
		                             money_format(self.total),
		                             self.purchaser.name)
Esempio n. 4
0
	def format_receiver(self):
		return u"%s from %s" % (money_format(self.ammount), self.sender.name)
Esempio n. 5
0
	def format_sender(self):
		return u"%s to %s" % (money_format(self.ammount), self.recipient.name)
Esempio n. 6
0
	def __unicode__(self):
		return u"%s from %s to %s" % (money_format(self.ammount),
		                              self.sender.name,
		                              self.recipient.name)