test: immutable ledger reverse entry

This commit is contained in:
Nihantra Patel
2026-05-26 22:53:14 +05:30
parent 31c251d956
commit 8f164cff1d

View File

@@ -358,6 +358,9 @@ class TestPeriodClosingVoucher(unittest.TestCase):
{"enable_immutable_ledger": 1},
)
def test_immutable_ledger_reverse_entry_uses_passed_posting_date_after_pcv(self):
frappe.db.sql("delete from `tabGL Entry` where company='Test PCV Company'")
frappe.db.sql("delete from `tabPeriod Closing Voucher` where company='Test PCV Company'")
company = create_company()
cost_center = create_cost_center("Test Cost Center 1")