-
-
Notifications
You must be signed in to change notification settings - Fork 307
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] Tax is mandatory on invoice lines #204
Conversation
Hello @alexis-via Could you review this PR? Thanks, |
trade_tax_percent.text = '%0.*f' % (2, tax.amount) | ||
if not iline.invoice_line_tax_ids: | ||
raise UserError(_( | ||
"The Factur-X standard specify that each line needs, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'specifies'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, applied
e05461d
to
b65f601
Compare
in my v14 PR to migrate account_invoice_facturx #288 |
I forgot to mention that backporting is not easy due to the revolution on invoices in v13... tell me what you think first and then we'll decide. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Fix for #196
The standard does require at least one tax per invoice line as defined in the xsd:
The element
<xs:element name="ApplicableTradeTax" type="ram:TradeTaxType"/>
does not have "minOccurs" set and therefore, the element is required (source https://www.w3schools.com/xml/schema_complex_indicators.asp)