Skip to content

Commit

Permalink
fix: add other zero rated tax codes (#63)
Browse files Browse the repository at this point in the history
(cherry picked from commit d2be3ff)
  • Loading branch information
barredterra authored and mergify[bot] committed Jan 16, 2025
1 parent 7e6b69f commit 04012b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eu_einvoice/european_e_invoice/custom/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ def _add_line_item(self, item: SalesInvoiceItem):
("Sales Taxes and Charges Template", self.invoice.taxes_and_charges),
]
)
if li.settlement.trade_tax.category_code._text == "AE":
# [BR-AE-05] In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
if li.settlement.trade_tax.category_code._text in ("AE", "E", "G", "K", "Z"):
# BR-AE-05, BR-E-05, BR-G-05, BR-IC-05, BR-Z-05
li.settlement.trade_tax.rate_applicable_percent = 0
else:
item_tax_rate = get_item_rate(item.item_tax_template, self.invoice.taxes)
Expand Down

0 comments on commit 04012b7

Please sign in to comment.