mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 09:17:15 +00:00
refactor(test): filter for active ledger entries
(cherry picked from commit cf11ac87fb)
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user