Ejemplo n.º 1
0
 def earnings_with_dollar(self, obj):
     return pretty_currency(obj.totalin, grouping=True)
Ejemplo n.º 2
0
 def losses_with_dollar(self, obj):
     return pretty_currency(obj.totalout, grouping=True)
Ejemplo n.º 3
0
 def _amount_donated(self, obj: AlquilerMate):
     return pretty_currency(obj.amount_donated, grouping=True)
Ejemplo n.º 4
0
 def price_with_dollar(self, obj):
     return pretty_currency(obj.price)
Ejemplo n.º 5
0
 def _amount_in(self, obj):
     return pretty_currency(obj.amount_in, grouping=True) if obj.amount_in else "-"
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 12
0
 def _price(self, obj: Menu):
     return pretty_currency(obj.price)
Ejemplo n.º 13
0
 def _earnings(self, obj):
     return pretty_currency(obj.earnings, grouping=True)