Skip to content

Commit

Permalink
[IMP] account_invoice_fixed_discount: Add None base_line unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Rogos committed Jan 5, 2024
1 parent 2fae541 commit ae43e41
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,11 @@ def test_03_discount_fixed_no_tax(self):
self.assertEqual(self.invoice.amount_total, 143)
self.assertEqual(self.invoice.invoice_line_ids.price_unit, 200.00)
self.assertEqual(self.invoice.invoice_line_ids.price_subtotal, 143)

def test_04_base_line_set_to_none(self):

self.vat._convert_to_tax_base_line_dict(
None,
price_unit=10,
currency=1,
)

0 comments on commit ae43e41

Please sign in to comment.