Skip to content

Commit

Permalink
fix: flaky Accounts Receivable test case
Browse files Browse the repository at this point in the history
(cherry picked from commit 40bce24)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Mar 13, 2024
1 parent ce2626e commit 0bb4a7d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def test_cr_note_flag_to_update_self(self):

# check invoice grand total, invoiced, paid and outstanding column's value after credit note
cr_note = self.create_credit_note(si.name, do_not_submit=True)
cr_note.posting_date = add_days(today(), 1)
cr_note.update_outstanding_for_self = True
cr_note.save().submit()
report = execute(filters)
Expand All @@ -218,10 +217,9 @@ def test_cr_note_flag_to_update_self(self):
]
self.assertEqual(len(report[1]), 2)
for i in range(2):
row = report[1][i - 1]
# row = report[1][0]
row = report[1][i]
self.assertEqual(
expected_data_after_credit_note[i - 1],
expected_data_after_credit_note[i],
[
row.invoice_grand_total,
row.invoiced,
Expand Down

0 comments on commit 0bb4a7d

Please sign in to comment.