A VAT Breakdown (BG-23) with the VAT Category code (BT-118) "Intra-community supply" shall have a VAT exemption reason code (BT-121), meaning "Intra-community supply" or the VAT exemption reason text (BT-120) "Intra-community supply" (or the equivalent standard text in another language).
The VAT breakdown with ram:CategoryCode K has neither ram:ExemptionReason nor ram:ExemptionReasonCode. At least one must state the exemption reason “Intra-community supply”; the corresponding standard text in another language is also allowed for the text field.
Code K identifies an intra-community supply. The invoice must state the associated exemption reason either as a reason code or as reason text.
The VAT breakdown with category code K is missing an exemption reason. You can provide the reason as a code or as text.
- Find the VAT breakdown with
ram:CategoryCodeK. - Add either
ram:ExemptionReasonCodewith the code for “Intra-community supply” orram:ExemptionReasonwith that text or its equivalent standard text in another language. - Check the values in
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>K</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>K</ram:CategoryCode> <ram:ExemptionReason>Intra-community supply</ram:ExemptionReason> </ram:ApplicableTradeTax>
TaxCategoryCodes(BT-118)FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount)(BG-23)FacturXInvoice.AnyApplicableTradeTaxes()(BG-23)FacturXInvoice.GetApplicableTradeTaxes()(BG-23)FacturXInvoice.Taxes(BG-23)
Technical details
The test accepts the presence of either ram:ExemptionReason or ram:ExemptionReasonCode; both elements do not have to be present at the same time.
The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax with ram:CategoryCode K.
rule/@context)assert/@test)