Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151) if the "Subtype of invoice line item" (BT-X-8) has the value "Normal line item (standard case)" (DETAIL) or is not specified.
The normal invoice line either has no tax entry with ram:TypeCode equal to VAT, or that tax entry is missing ram:CategoryCode. The line’s VAT category is therefore not fully stated.
The VAT category code classifies the invoice line for tax purposes. It is required for normal invoice lines when the tax entry has the type VAT.
The VAT category is missing from the VAT tax entry for this normal invoice line. Add the category code to the relevant tax entry.
- Find
ram:ApplicableTradeTaxinram:SpecifiedLineTradeSettlement. - Check whether
ram:TypeCodehas the valueVAT. - Set the category using
TradeLineItem.TaxCategoryCode. - Generate the invoice again and validate it.
<ram:SpecifiedLineTradeSettlement> <ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:ApplicableTradeTax> </ram:SpecifiedLineTradeSettlement>
<ram:SpecifiedLineTradeSettlement> <ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> <ram:CategoryCode>S</ram:CategoryCode> </ram:ApplicableTradeTax> </ram:SpecifiedLineTradeSettlement>
AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)TaxCategoryCodes(BT-151)
Technical details
The test first requires a tax entry with ram:TypeCode equal to VAT, then requires a ram:CategoryCode under a tax entry whose ram:TypeCode becomes VAT when converted to uppercase. The rule applies only when ram:LineStatusReasonCode is absent or has the value DETAIL.
The rule applies to ram:AssociatedDocumentLineDocument when ram:LineStatusReasonCode is absent or has the value DETAIL. In the associated tax information, ram:CategoryCode is checked when ram:TypeCode is VAT.
rule/@context)assert/@test)