mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 14:11:46 +00:00
fix(payment reconciliation): correct supplier gain/loss posting
(cherry picked from commit dc907add40)
This commit is contained in:
@@ -1869,7 +1869,7 @@ class AccountsController(TransactionBase):
|
|||||||
|
|
||||||
def is_payable_account(self, reference_doctype, account):
|
def is_payable_account(self, reference_doctype, account):
|
||||||
if reference_doctype == "Purchase Invoice" or (
|
if reference_doctype == "Purchase Invoice" or (
|
||||||
reference_doctype == "Journal Entry"
|
reference_doctype in ("Journal Entry", "Payment Entry")
|
||||||
and frappe.get_cached_value("Account", account, "account_type") == "Payable"
|
and frappe.get_cached_value("Account", account, "account_type") == "Payable"
|
||||||
):
|
):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user