mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
refactor(test): filter for active ledger entries
This commit is contained in:
@@ -3973,7 +3973,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