Update taxes_and_totals.py
This commit is contained in:
parent
bf4915b285
commit
e4afab7fb0
@ -462,9 +462,10 @@ class calculate_taxes_and_totals(object):
|
|||||||
|
|
||||||
if self.doc.is_pos:
|
if self.doc.is_pos:
|
||||||
for payment in self.doc.get('payments'):
|
for payment in self.doc.get('payments'):
|
||||||
payment.base_amount = flt(flt(payment.amount) * self.doc.conversion_rate)
|
payment.amount = flt(payment.amount)
|
||||||
paid_amount += flt(payment.amount)
|
payment.base_amount = payment.amount * flt(self.doc.conversion_rate)
|
||||||
base_paid_amount += flt(payment.base_amount)
|
paid_amount += payment.amount
|
||||||
|
base_paid_amount += payment.base_amount
|
||||||
elif not self.doc.is_return:
|
elif not self.doc.is_return:
|
||||||
self.doc.set('payments', [])
|
self.doc.set('payments', [])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user