fix(pos): mode of payment disappears after save

This commit is contained in:
Saqib Ansari 2022-02-25 14:36:29 +05:30
parent 4d8d4acec4
commit 69c34cd7ae

View File

@ -439,7 +439,6 @@ class POSInvoice(SalesInvoice):
self.paid_amount = 0
def set_account_for_mode_of_payment(self):
self.payments = [d for d in self.payments if d.amount or d.base_amount or d.default]
for pay in self.payments:
if not pay.account:
pay.account = get_bank_cash_account(pay.mode_of_payment, self.company).get("account")