Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).
The invoice line’s tax details with ram:TypeCode VAT are missing a ram:CategoryCode.
The VAT category code assigns the invoice line to a category of VAT treatment.
VAT details are present for the invoice line, but the category code is missing. Add it to the tax details with type VAT.
- Find the invoice line’s
ApplicableTradeTaxwithTypeCodeVAT. - Add the missing
CategoryCodethere. - Check the mapping in
TradeLineItem.TaxCategoryCodeand the related tax settings. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> <ram:CategoryCode>S</ram:CategoryCode> </ram:ApplicableTradeTax>
TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)TaxCategoryCodes(BT-151)
Technical details
The test looks for ram:ApplicableTradeTax with a ram:TypeCode value of VAT and requires a ram:CategoryCode there.
The rule applies to the invoice line’s tax details ram:ApplicableTradeTax whose ram:TypeCode is VAT.
rule/@context)assert/@test)