Schema ID
https://gobl.org/draft-0/bill/line#/$defs/SubLine
Properties
| Title | Property | Type | Description |
|---|---|---|---|
| UUID | uuid | string | Universally Unique Identifier. |
| Index | i | integer | Line number inside the parent (calculated) |
| Quantity | quantity | num.Amount | Number of items |
| Identifier | identifier | org.Identity | Single identifier provided by the supplier for an object on which the line item is based and is not considered a universal identity. Examples include a subscription number, telephone number, meter point, etc. Utilize the label property to provide a description of the identifier. |
| Period | period | cal.Period | A period of time relevant to when the service or item is delivered. |
| Order Reference | order | cbc.Code | Order reference for a specific line within a purchase order provided by the buyer. |
| Cost Reference | cost | cbc.Code | Buyer accounting reference cost code to associate with the line. |
| Item | item | org.Item | Details about the item, service or good, that is being sold |
| Sum | sum | num.Amount | Result of quantity multiplied by the item’s price (calculated) |
| Discounts | discounts | array of bill.LineDiscount | Discounts applied to this sub-line |
| Charges | charges | array of bill.LineCharge | Charges applied to this sub-line |
| Total | total | num.Amount | Total sub-line amount after applying discounts to the sum (calculated). |
| Notes | notes | array of org.Note | Set of specific notes for this sub-line that may be required for clarification. |
Validation Rules
| Field | Test | Validation Code / Message |
|---|---|---|
iCalculated |
| GOBL-BILL-SUBLINE-01Index is required |
quantity |
| GOBL-BILL-SUBLINE-02Quantity is required |
item |
| GOBL-BILL-SUBLINE-03Item is required |
sumCalculated |
| GOBL-BILL-SUBLINE-04Sum is required when item has a price |
totalCalculated |
| GOBL-BILL-SUBLINE-05Total is required when item has a price |