mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +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()
|
si.submit()
|
||||||
actual = frappe.db.get_all(
|
actual = frappe.db.get_all(
|
||||||
"GL Entry",
|
"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"],
|
fields=["account", "debit", "credit", "is_opening"],
|
||||||
order_by="account,debit",
|
order_by="account,debit",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user