A VAT Breakdown (BG-23) with VAT Category code (BT-118) "IPSI" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).
The VAT breakdown with category code M contains ram:ExemptionReason or ram:ExemptionReasonCode. These fields must not be present for this category.
Code M denotes IPSI. The rule excludes exemption reason information for this VAT category.
The VAT breakdown with category code M contains an exemption reason. Neither an exemption reason code nor exemption reason text is allowed for this category.
- Find the VAT breakdown with
ram:CategoryCodeM. - Remove
ram:ExemptionReasonandram:ExemptionReasonCodeif present. - Check the values in
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>M</ram:CategoryCode> <ram:ExemptionReason>Example reason</ram:ExemptionReason> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>M</ram:CategoryCode> </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
In the context of a ram:CategoryCode with value M, both ram:ExemptionReason and ram:ExemptionReasonCode must be absent.
The rule applies to a VAT breakdown ram:ApplicableTradeTax with ram:CategoryCode M.
rule/@context)assert/@test)