/ubl:Invoice/cac:InvoiceLine/cac:SubInvoiceLine
Sub Invoice Line Group
| Context ID | INV1477 |
| Cardinality | 0..n |
| Usage | C |
| Usage Description | To be used to indicate sublines if needed |
| Format | |
| Mandate Business Term Code | BG-25 |
| Final Format Path | /Invoice/cac:InvoiceLine/.. |
Description
An invoice line subsidiary to this invoice line.
In EXTENDED-CTC, it is possible to indicate sublines. Being cac:SubInvoiceLine the same type of cac:InvoiceLine, the mappings of the BT are the same as detailed in all the cac:InvoiceLine previous fields, with the exception of the mapping of EXT-FR-FE-163-000 and EXT-FR-FE-162-00, which are done with the relation 'InvoiceLine' containing 0..n 'SubInvoiceLine' elements.
Child elements
| Cardinality | Usage | Description | Element |
|---|---|---|---|
| 0..1 | O | Sub Invoice Line Extensions Group | cec:UBLExtensions |
| 1..1 | O |
Sub Invoice Line Position Number
An identifier for this invoice line. |
cbc:ID |
| 0..1 | O |
Sub Invoice Line Quantity
The quantity (of items) on this invoice line. |
cbc:InvoicedQuantity |
| 1..1 | O |
Sub Invoice Line Extension Amount
The total amount for this invoice line, including allowance charges but net of taxes. |
cbc:LineExtensionAmount |
| 0..1 | O |
Sub Invoice Line Accounting Cost
The buyer's accounting cost centre for this invoice line, expressed as text. |
cbc:AccountingCost |
| 0..n | O |
Sub Invoice Line Invoice Period Group
An invoice period to which this invoice line applies. |
cac:InvoicePeriod |
| 0..n | O |
Sub Invoice Line Order Line Reference Group
A reference to an order line associated with this invoice line. |
cac:OrderLineReference |
| 1..1 | O |
Sub Invoice Line Item Group
The item associated with this invoice line. |
cac:Item |
| 0..1 | O |
Sub Invoice Line Price Group
The price of the item associated with this invoice line. |
cac:Price |
Details
vrbl-invoice-fr-cius-1p0
The following specific mapping are done to cover the required hierarchy between cac:InvoiceLine and cac:SubInvoiceLine transferred to the CIUS-FR specification.
When at least one /Invoice/cac:InvoiceLine/cac:SubInvoiceLineexists in a /Invoice/cac:InvoiceLine group, then:
- EXT-FR-FE-163 is mapped as 'GROUP' for /ubl:Invoice/cac:InvoiceLine getting mapped.
- EXT-FR-FE-163 is mapped as 'DETAIL' for /ubl:Invoice/cac:InvoiceLine/cac:SubInvoiceLine getting mapped
- /ubl:Invoice/cac:InvoiceLine/cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID is mapped from /Invoice/cbc:ID for all lines and sublines.
- /ubl:Invoice/cac:InvoiceLine/cac:BillingReference/cac:BillingReferenceLine/cbc:ID is mapped with the /ubl:Invoice/cac:InvoiceLine/cbc:ID, parent of the /ubl:Invoice/cac:InvoiceLine/cac:SubInvoiceLine getting mapped. This information relates the subline with the parent line in EXTENDED-CTC.
Rules
| Rule ID | Error Message |
|---|---|
| VRBL-INV-FR-CIUS-1p0-156 | When the Invoice Type Code represents a credit and no Preceding Invoice Reference is provided, the Sub Invoice Line Invoice Document Reference ID must exist within the Sub Invoice Line Group. |
| VRBL-INV-FR-CIUS-1p0-157 | When the Invoice Type Code represents a credit and no Preceding Invoice Reference is provided, the Sub Invoice Line Invoice Document Reference Issue Date must exist within the Sub Invoice Line Group. |
| VRBL-INV-FR-CIUS-1p0-218 | The Sub Invoice Line Group expects a maximum of one Sub Invoice Line Document Reference Group used for Associated Invoices. |
| VRBL-INV-FR-CIUS-1p0-219 | The Sub Invoice Line Group expects a maximum of one Sub Invoice Line Document Reference Group used for Framework Agreement Number. |
| VRBL-INV-FR-CIUS-1p0-222 | When the Sub Invoice Line Group does not contain a Sub Invoice Line Sub Invoice Line Group and the Sub Invoice Line Information Only Indicator is not true, the Sub Invoice Line Item Tax ID used for VAT must exist within the Sub Invoice Line Group. |
| VRBL-INV-FR-CIUS-1p0-223 | When the Sub Invoice Line Group does not contain a Sub Invoice Line Sub Invoice Line Group and the Sub Invoice Line Information Only Indicator is not true, the Sub Invoice Line Quantity must exist within the Sub Invoice Line Group. |
| VRBL-INV-FR-CIUS-1p0-224 | When the Sub Invoice Line Group does not contain a Sub Invoice Line Sub Invoice Line Group and the Sub Invoice Line Information Only Indicator is not true, the Sub Invoice Line Extension Amount must exist within the Sub Invoice Line Group. |
| VRBL-INV-FR-CIUS-1p0-225 | When the Sub Invoice Line Group does not contain a Sub Invoice Line Sub Invoice Line Group and the Sub Invoice Line Information Only Indicator is not true, the Sub Invoice Line Price Amount must exist within the Sub Invoice Line Group. |