mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
Revert "Added flt to convert string to float"
This reverts commit bf4915b285.
This commit is contained in:
@@ -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', [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user