From e2d85c513cffca2bac54caeb98d74a8608496f34 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Mon, 22 Jan 2024 21:13:32 +0530 Subject: [PATCH] fix: skip liability account for internal transfer (cherry picked from commit 236b73565e6889aaa7027929f770918e89bca7fc) --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index e20da1d9d6..61e7f240d5 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -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(