refactor(test): reposting happens implicitly

(cherry picked from commit c283cda169)
This commit is contained in:
ruthra kumar
2024-07-15 14:27:16 +05:30
committed by Mergify
parent 980ca1d8c5
commit d20f3ab492

View File

@@ -2884,13 +2884,9 @@ class TestSalesInvoice(FrappeTestCase):
si.items[0].income_account = "Service - _TC"
si.additional_discount_account = "_Test Account Sales - _TC"
si.taxes[0].account_head = "TDS Payable - _TC"
# Ledger reposted implicitly upon 'Update After Submit'
si.save()
si.load_from_db()
self.assertTrue(si.repost_required)
si.repost_accounting_entries()
expected_gle = [
["_Test Account Sales - _TC", 22.0, 0.0, nowdate()],
["Debtors - _TC", 88, 0.0, nowdate()],