コード例 #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 "-"
コード例 #7
0
 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)
コード例 #9
0
 def service_price(self, obj):
     return pretty_currency(obj.service.price)
コード例 #10
0
 def _total(self, obj: SpecialPurchase):
     return pretty_currency(obj.quantity * obj.amount)
コード例 #11
0
 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)