A VAT Breakdown (BG-23) with VAT Category code (BT-118) " Not subject to VAT" shall have a VAT exemption reason code (BT-121), meaning " Not subject to VAT" or a VAT exemption reason text (BT-120) " Not subject to VAT" (or the equivalent standard text in another language).
The VAT breakdown with ram:CategoryCode O has neither ram:ExemptionReason nor ram:ExemptionReasonCode. At least one must state the exemption reason “Not subject to VAT”; the corresponding standard text in another language is also allowed for the text field.
Code O identifies transactions not subject to VAT. The invoice must state this reason either as an exemption reason code or as exemption reason text.
The VAT breakdown with category code O is missing an exemption reason. You can provide it as a code or as text.
- Find the VAT breakdown with
ram:CategoryCodeO. - Add either
ram:ExemptionReasonCodewith the code for “Not subject to VAT” 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>O</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> <ram:ExemptionReason>Not subject to VAT</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 O.
rule/@context)assert/@test)