mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 11:13:32 +00:00
fix: add is_cancelled in condition
(cherry picked from commit 77a9cf6398)
This commit is contained in:
@@ -261,7 +261,7 @@ def validate_balance_type(account, adv_adj=False):
|
|||||||
if balance_must_be:
|
if balance_must_be:
|
||||||
balance = frappe.db.sql(
|
balance = frappe.db.sql(
|
||||||
"""select sum(debit) - sum(credit)
|
"""select sum(debit) - sum(credit)
|
||||||
from `tabGL Entry` where account = %s""",
|
from `tabGL Entry` where is_cancelled = 0 and account = %s""",
|
||||||
account,
|
account,
|
||||||
)[0][0]
|
)[0][0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user