Merge pull request #39493 from GursheenK/skip-liability-acc-for-internal-transfers

fix: skip setting liability account for internal transfer
This commit is contained in:
Deepesh Garg 2024-01-24 10:34:19 +05:30 committed by GitHub
commit 236c7e1e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,7 +190,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(