Skip to content

Commit

Permalink
fix: payment recon based on account_type which is fetched from Party …
Browse files Browse the repository at this point in the history
…Type master
  • Loading branch information
RitvikSardana committed Sep 4, 2023
1 parent 9d8f142 commit c4931cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,7 @@ def get_common_query(
limit,
condition,
):
account_type = frappe.db.get_value("Account", party_account, "account_type")
account_type = frappe.db.get_value("Party Type", party_type, "account_type")
payment_type = "Receive" if account_type == "Receivable" else "Pay"
payment_entry = frappe.qb.DocType("Payment Entry")

Expand Down

0 comments on commit c4931cc

Please sign in to comment.