refactor(test): filter for active ledger entries

This commit is contained in:
ruthra kumar
2024-09-03 11:05:34 +05:30
parent b7edc6dea9
commit cf11ac87fb

View File

@@ -3973,7 +3973,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",
)