refactor(test): assert Invoice status as well
diff --git a/erpnext/accounts/doctype/payment_reconciliation/test_payment_reconciliation.py b/erpnext/accounts/doctype/payment_reconciliation/test_payment_reconciliation.py
index 89240ac..fb75a0f 100644
--- a/erpnext/accounts/doctype/payment_reconciliation/test_payment_reconciliation.py
+++ b/erpnext/accounts/doctype/payment_reconciliation/test_payment_reconciliation.py
@@ -630,7 +630,7 @@
)
self.assertEqual(len(journals), 1)
- # assert status outstanding
+ # assert status and outstanding
si.reload()
self.assertEqual(si.status, "Credit Note Issued")
self.assertEqual(si.outstanding_amount, 0)
@@ -650,6 +650,10 @@
pluck="name",
)
self.assertEqual(len(journals), 0)
+ # assert status and outstanding
+ si.reload()
+ self.assertEqual(si.status, "Unpaid")
+ self.assertEqual(si.outstanding_amount, 100)
def test_cr_note_partial_against_invoice(self):
transaction_date = nowdate()