Revert "Added flt to convert string to float"
This reverts commit bf4915b285be46cac921a21b738fda84ee8940b1.
This commit is contained in:
parent
0cd792ebb2
commit
eb92d907bc
@ -462,9 +462,9 @@ class calculate_taxes_and_totals(object):
|
||||
|
||||
if self.doc.is_pos:
|
||||
for payment in self.doc.get('payments'):
|
||||
payment.base_amount = flt(flt(payment.amount) * self.doc.conversion_rate)
|
||||
paid_amount += flt(payment.amount)
|
||||
base_paid_amount += flt(payment.base_amount)
|
||||
payment.base_amount = flt(payment.amount * self.doc.conversion_rate)
|
||||
paid_amount += payment.amount
|
||||
base_paid_amount += payment.base_amount
|
||||
elif not self.doc.is_return:
|
||||
self.doc.set('payments', [])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user