Rules
VRBL-INV-PT-SAF-T-1p0-10
Basic Info
| Rule | When Self-Billing is indicated, the Buyer Additional Account ID must exist within the Buyer. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty
|
| Pattern | vrbl-invoice-pt-saft-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cbc:AdditionalAccountID
|
Implementation
(
not(normalize-space(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:SelfBillingIndicator) = 'true')
)
or
(
boolean(cbc:AdditionalAccountID)
)