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 invoice line does not contain the required VAT information: the test requires ApplicableTradeTax/TypeCode with the value VAT and a CategoryCode under an ApplicableTradeTax entry whose TypeCode matches VAT regardless of letter case.
The VAT category code identifies the tax category of the invoice line. The rule requires this category together with a tax entry of type VAT.
The required VAT category is missing for a VAT entry of type VAT on this invoice line. Add the category code to the line's tax information.
- Check the status in
AssociatedDocumentLineDocument. - For a line with no status code or with
DETAIL, add anApplicableTradeTaxentry withTypeCodeVATand aCategoryCode. - Use
TradeLineItem.TaxCategoryCodefor this. - Regenerate the invoice and validate it again.
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> <ram:CategoryCode>S</ram:CategoryCode> </ram:ApplicableTradeTax>
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 combines two conditions: an ApplicableTradeTax/TypeCode must be exactly VAT, and a CategoryCode must exist under an ApplicableTradeTax whose TypeCode equals VAT regardless of letter case.
The rule applies to an IncludedSupplyChainTradeLineItem invoice line whose AssociatedDocumentLineDocument has no LineStatusReasonCode or has the value DETAIL.
rule/@context)assert/@test)