mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
added float and rebase with hotfix (#9019)
This commit is contained in:
@@ -462,7 +462,8 @@ class calculate_taxes_and_totals(object):
|
||||
|
||||
if self.doc.is_pos:
|
||||
for payment in self.doc.get('payments'):
|
||||
payment.base_amount = flt(payment.amount * self.doc.conversion_rate)
|
||||
payment.amount = flt(payment.amount)
|
||||
payment.base_amount = payment.amount * flt(self.doc.conversion_rate)
|
||||
paid_amount += payment.amount
|
||||
base_paid_amount += payment.base_amount
|
||||
elif not self.doc.is_return:
|
||||
|
||||
Reference in New Issue
Block a user