An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment" shall not contain an invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is “Standard rated”.
If a ram:CategoryCode has the value B, no ram:CategoryCode with the value S may occur in the invoice. Using both codes in the same invoice does not meet the rule.
B denotes “Split payment” and S denotes “Standard rated”. The rule prevents these two VAT categories from being used together in the same invoice.
The invoice contains both tax category B and S. You can align the tax categories used for invoice lines, allowances and charges.
- Check
TradeLineItem.TaxCategoryCodein the invoice lines for the valuesBorS. - For document-level allowances and charges, check the tax categories and
AbstractTradeAllowanceCharge.ChargeIndicator. - Make sure
BandSdo not occur together in the invoice. - Generate the invoice again and validate it.
<ram:CategoryCode>B</ram:CategoryCode> <ram:CategoryCode>S</ram:CategoryCode>
<ram:CategoryCode>B</ram:CategoryCode>
TaxCategoryCodes(BT-151; BT-95; BT-102)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)AbstractTradeAllowanceCharge(Document level allowance: BG-20; Document level charge: BG-21)AbstractTradeAllowanceCharge.ChargeIndicator(Document level allowance: BG-20; Document level charge: BG-21)
Technical details
The XPath passes if no ram:CategoryCode equals B, or, when B is present, if no ram:CategoryCode equals S. The check applies to the entire invoice.
This rule applies to the entire invoice. It checks all ram:CategoryCode entries, including those in invoice lines and document-level allowances and charges.
rule/@context)assert/@test)