mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
@@ -462,10 +462,9 @@ class calculate_taxes_and_totals(object):
|
||||
|
||||
if self.doc.is_pos:
|
||||
for payment in self.doc.get('payments'):
|
||||
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
|
||||
payment.base_amount = flt(flt(payment.amount) * self.doc.conversion_rate)
|
||||
paid_amount += flt(payment.amount)
|
||||
base_paid_amount += flt(payment.base_amount)
|
||||
elif not self.doc.is_return:
|
||||
self.doc.set('payments', [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user