Context
PT
/ubl:Invoice/cac:OrderReference
VRBL-Invoice-PT-2p1 - Order Reference
Portugal |
VRBL-Invoice-PT-2p1
| Context ID | INV0162 |
| Usage | O |
Description
A group of business terms providing information about the referenced order.
Child elements
| Usage | Element | Description | Cardinality |
|---|---|---|---|
| M | cbc:ID |
Purchase Order Reference ID
An identifier for this order reference, assigned by the buyer. |
1..1 |
| O | cbc:SalesOrderID |
Sales Order Reference ID
An identifier for this order reference, assigned by the seller. |
0..1 |
Details
Example: PT_invoice_380_ATM_payment.xml
<ubl:Invoice>
<!-- ... omitted for readability -->
<cac:OrderReference>
<cbc:ID>PO987654</cbc:ID>
<cbc:SalesOrderID>SalesOrderID123456</cbc:SalesOrderID>
</cac:OrderReference>
<!-- ... omitted for readability -->
</ubl:Invoice>
Rules
| Rule ID | Error Message |
|---|---|
| VRBL-INV-PT-2p1-29 | The Purchase Order Reference ID or the Sales Order Reference ID must be filled, or both. |
| VRBL-INV-PT-2p1-30 | The Purchase Order Reference ID does not meet the defined format: alphanumeric with size between 1 and 20. |
| VRBL-INV-PT-2p1-31 | The Sales Order Reference ID does not meet the defined format: alphanumeric with size between 1 and 20. |