Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add other zero rated tax codes (backport #63) #65

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading