Merge pull request #39522 from frappe/mergify/bp/version-15-hotfix/pr-39493
fix: skip setting liability account for internal transfer (backport #39493)
This commit is contained in:
commit
4073dfb90b
@ -107,7 +107,7 @@ class PaymentEntry(AccountsController):
|
|||||||
|
|
||||||
def set_liability_account(self):
|
def set_liability_account(self):
|
||||||
# Auto setting liability account should only be done during 'draft' status
|
# 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
|
return
|
||||||
|
|
||||||
if not frappe.db.get_value(
|
if not frappe.db.get_value(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user