refactor(test): filter for active ledger entries

(cherry picked from commit cf11ac87fb)
This commit is contained in:
ruthra kumar
2024-09-03 11:05:34 +05:30
committed by Mergify
parent 9bfd5cdb2b
commit ba79560c0c

View File

@@ -4124,7 +4124,7 @@ class TestSalesInvoice(FrappeTestCase):
si.submit()
actual = frappe.db.get_all(
"GL Entry",
filters={"voucher_no": si.name, "is_opening": "Yes"},
filters={"voucher_no": si.name, "is_opening": "Yes", "is_cancelled": False},
fields=["account", "debit", "credit", "is_opening"],
order_by="account,debit",
)