fix: skip liability account for internal transfer

(cherry picked from commit 236b73565e6889aaa7027929f770918e89bca7fc)
This commit is contained in:
Gursheen Anand 2024-01-22 21:13:32 +05:30 committed by Mergify
parent 880f648846
commit e2d85c513c

View File

@ -107,7 +107,7 @@ class PaymentEntry(AccountsController):
def set_liability_account(self):
# Auto setting liability account should only be done during 'draft' status
if self.docstatus > 0:
if self.docstatus > 0 or self.payment_type == "Internal Transfer":
return
if not frappe.db.get_value(