In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank.
For a VAT breakdown with ram:CategoryCode K, neither an actual delivery date in ram:OccurrenceDateTime/udt:DateTimeString nor a start or end date in ram:BillingSpecifiedPeriod is provided.
For an intra-community supply, the invoice must include a time reference through either the actual delivery date or the invoicing period.
The intra-community supply with category code K has no delivery date or invoicing period. Adding either time reference can resolve the issue.
- Add the actual delivery date in
ram:OccurrenceDateTime/udt:DateTimeStringor a start or end date inram:BillingSpecifiedPeriod. - For the delivery date, check the
ActualDeliveryDateproperty. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>K</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>K</ram:CategoryCode> </ram:ApplicableTradeTax> <ram:ActualDeliverySupplyChainEvent> <ram:OccurrenceDateTime> <udt:DateTimeString>20261115</udt:DateTimeString> </ram:OccurrenceDateTime> </ram:ActualDeliverySupplyChainEvent>
FacturXInvoice.ActualDeliveryDate(BT-72)TaxCategoryCodes(BT-118)FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount)(BG-23)FacturXInvoice.AnyApplicableTradeTaxes()(BG-23)FacturXInvoice.GetApplicableTradeTaxes()(BG-23)
Technical details
The test accepts udt:DateTimeString under the actual delivery event, or ram:StartDateTime or ram:EndDateTime under ram:BillingSpecifiedPeriod.
The rule applies to invoices with a VAT breakdown ram:ApplicableTradeTax and ram:CategoryCode K. It checks the actual delivery date or the invoicing period.
rule/@context)assert/@test)