Skip to content

Commit

Permalink
refactor(test): assert Invoice status as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Feb 7, 2024
1 parent 31a8c3b commit 33efe0d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def test_invoice_status_after_cr_note_cancellation(self):
)
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)
Expand All @@ -650,6 +650,10 @@ def test_invoice_status_after_cr_note_cancellation(self):
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()
Expand Down

0 comments on commit 33efe0d

Please sign in to comment.