Пример #1
0
 def earnings_with_dollar(self, obj):
     return pretty_currency(obj.totalin, grouping=True)
Пример #2
0
 def losses_with_dollar(self, obj):
     return pretty_currency(obj.totalout, grouping=True)
Пример #3
0
 def _amount_donated(self, obj: AlquilerMate):
     return pretty_currency(obj.amount_donated, grouping=True)
Пример #4
0
 def price_with_dollar(self, obj):
     return pretty_currency(obj.price)
Пример #5
0
 def _amount_in(self, obj):
     return pretty_currency(obj.amount_in, grouping=True) if obj.amount_in else "-"
Пример #6
0
 def _amount_out(self, obj):
     return pretty_currency(obj.amount_out, grouping=True) if obj.amount_out else "-"
 def _price(self, obj: BarProduct):
     return pretty_currency(obj.price)
Пример #8
0
 def amount_with_dollar(self, obj):
     return pretty_currency(obj.amount, grouping=True)
 def service_price(self, obj):
     return pretty_currency(obj.service.price)
 def _total(self, obj: SpecialPurchase):
     return pretty_currency(obj.quantity * obj.amount)
 def total(self, obj):
     return pretty_currency(obj.total)
Пример #12
0
 def _price(self, obj: Menu):
     return pretty_currency(obj.price)
Пример #13
0
 def _earnings(self, obj):
     return pretty_currency(obj.earnings, grouping=True)