Conversation
jbaudoux
left a comment
There was a problem hiding this comment.
To be safer, I would also parse the tax Scheme
<cac:TaxScheme>
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
</cac:TaxScheme>
in order to search taxes that are VAT taxes
jbaudoux
left a comment
There was a problem hiding this comment.
You need to match a list of taxes based on:
- the category : VAT
- the id : AE, G, K, ...
- the exemption reason code : VATEX-*. This code is not mandatory. It could be a reason text. One of the 2 is normally mandatory when the VAT is 0%
If you match one tax, then use that one.
If you match multiple taxes, typically for reserve charge, intracommunity and export, you need to translate the product tax according to the fiscal position. The fiscal position to use should be identified with the tax id. For that you need to add a selection field on the fiscal position, like you have on the tax with account_edi_ubl_cii_tax_extension.
For example, the product tax is VAT 21% M. The bill as a tax rate=0% ID=AE. The reverse charge (AE) fiscal position translate it to VAT AE 21% M. You need to use that one and not VAT AE 21% S or VAT AE 0% M
57d42f3 to
1558ac8
Compare
hparfr
left a comment
There was a problem hiding this comment.
My comment has been adressed.
1558ac8 to
4c4a7d7
Compare
Match taxes on UBL import using UNECE tax codes
4c4a7d7 to
3a4139e
Compare
Match taxes on UBL import using UNECE tax codes