Merge pull request #24057 from ruchamahabal/fix-si-pos-return

fix: paid amount in Sales Invoice POS return resets to 0
This commit is contained in:
Marica 2020-12-07 13:20:43 +05:30 committed by GitHub
commit 34e142ec72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,7 +641,8 @@ class calculate_taxes_and_totals(object):
if default_mode_of_payment:
self.doc.append('payments', {
'mode_of_payment': default_mode_of_payment.mode_of_payment,
'amount': total_amount_to_pay
'amount': total_amount_to_pay,
'default': 1
})
else:
self.doc.is_pos = 0