mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 15:38:39 +00:00
fix(payment reconciliation): correct supplier gain/loss posting
This commit is contained in:
committed by
Sudharsanan Ashok
parent
915eef0355
commit
4688ddd217
@@ -195,7 +195,7 @@ def make_exchange_gain_loss_journal(
|
||||
|
||||
def is_payable_account(reference_doctype: str, account: str) -> bool:
|
||||
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"
|
||||
):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user