We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7641faa commit b3a1b57Copy full SHA for b3a1b57
tests/documents/test_receipt.py
@@ -181,3 +181,13 @@ def test_empty_object_works():
181
assert receipt.total_tax.value is None
182
183
184
+def test_null_tax_rates_dont_raise():
185
+ invoice = Receipt(
186
+ locale="fr",
187
+ total_incl=12,
188
+ total_excl=15,
189
+ taxes={(1, 0), (2, 20)},
190
+ orientation=0,
191
+ total_tax=3
192
+ )
193
+ assert invoice.checklist["taxes_match_total_incl"] is False
0 commit comments