fIX
This commit is contained in:
parent
7c3e2a72ce
commit
e30c38f8fe
2
folio.py
2
folio.py
|
@ -457,7 +457,7 @@ class Folio(ModelSQL, ModelView):
|
|||
res = []
|
||||
amount_nights = 0
|
||||
if self.nights_quantity and self.unit_price_w_tax:
|
||||
amount_nights = [self.nights_quantity * self.unit_price_w_tax]
|
||||
amount_nights = self.nights_quantity * self.unit_price_w_tax
|
||||
if name == 'total_amount' or (name == 'total_balance' and not self.invoice_line):
|
||||
res.append(amount_nights)
|
||||
for charge in self.charges:
|
||||
|
|
Loading…
Reference in New Issue