mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: paid amount in Sales Invoice POS return resets to 0
This commit is contained in:
@@ -641,7 +641,8 @@ class calculate_taxes_and_totals(object):
|
|||||||
if default_mode_of_payment:
|
if default_mode_of_payment:
|
||||||
self.doc.append('payments', {
|
self.doc.append('payments', {
|
||||||
'mode_of_payment': default_mode_of_payment.mode_of_payment,
|
'mode_of_payment': default_mode_of_payment.mode_of_payment,
|
||||||
'amount': total_amount_to_pay
|
'amount': total_amount_to_pay,
|
||||||
|
'default': 1
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
self.doc.is_pos = 0
|
self.doc.is_pos = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user