Skip to content

Commit

Permalink
chore: semgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 committed Apr 5, 2024
1 parent 7ef4dbc commit 581af4e
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,12 @@ def test_zero_amount(self):
pi.submit()

pda = frappe.get_doc(
dict(
doctype="Process Deferred Accounting",
posting_date=nowdate(),
start_date="2024-01-01",
end_date="2024-01-31",
type="Expense",
company=self.company,
)
doctype="Process Deferred Accounting",
posting_date=nowdate(),
start_date="2024-01-01",
end_date="2024-01-31",
type="Expense",
company=self.company,
)
pda.insert()
pda.submit()
Expand Down Expand Up @@ -351,6 +349,6 @@ def test_zero_amount(self):
self.assertTrue(inv)
# calculate the total deferred expense for the period
inv = inv[0].calculate_invoice_revenue_expense_for_period()
deferred_exp = sum([inv[idx].actual for idx in range(len(report.period_total))])
deferred_exp = sum([inv[idx].actual for idx in range(len(report.period_list))])
# make sure the total deferred expense is greater than 0
self.assertGreater(deferred_exp, 0)
self.assertLess(deferred_exp, 0)

0 comments on commit 581af4e

Please sign in to comment.