pub struct Line {Show 24 fields
pub id: String,
pub name: String,
pub net: Amount,
pub tax: TaxCategory,
pub quantity: Option<Quantity>,
pub unit: Option<Code>,
pub price: Option<Price>,
pub note: Option<String>,
pub description: Option<String>,
pub period: Option<Period>,
pub allowances: Vec<LineAllowanceCharge>,
pub charges: Vec<LineAllowanceCharge>,
pub standard_id: Option<Identifier>,
pub item_id: Option<Identifier>,
pub buyer_id: Option<Identifier>,
pub order_line: Option<String>,
pub accounting_reference: Option<String>,
pub attributes: Vec<ItemAttribute>,
pub origin_country: Option<Code>,
pub classifications: Vec<Identifier>,
pub invoiced_object: Option<Identifier>,
pub invoiced_object_code: Option<Code>,
pub extra_tax: Vec<TaxCategory>,
pub tax_total: Option<InvoiceAmount>,
}Fields§
§id: StringBT-126 line identifier, not a GTIN (BT-157).
name: StringBT-153 item name.
net: AmountBT-131 line net amount.
tax: TaxCategoryBT-151 / BT-152 classified tax category.
quantity: Option<Quantity>BT-129 invoiced quantity.
unit: Option<Code>BT-130 unit of measure.
price: Option<Price>BG-29 item price.
note: Option<String>BT-127 line note.
description: Option<String>BT-154 item description.
period: Option<Period>BG-26 invoicing period (BT-134/BT-135). Not Invoice::period (BG-14).
allowances: Vec<LineAllowanceCharge>§charges: Vec<LineAllowanceCharge>§standard_id: Option<Identifier>BT-157 Item standard identifier (often GTIN). UBL StandardItemIdentification; scheme ICD (BR-64 / BR-CL-21). Not BT-155.
item_id: Option<Identifier>BT-155 Seller’s item identifier. UBL SellersItemIdentification. Not BT-156, not BT-157.
buyer_id: Option<Identifier>BT-156 Buyer’s item identifier. UBL BuyersItemIdentification. Not BT-155, not BT-157.
order_line: Option<String>BT-132 referenced purchase order line (OrderLineReference/LineID). Not BT-13, not BT-126.
accounting_reference: Option<String>BT-133 invoice line buyer accounting reference (cbc:AccountingCost). Not header BT-19.
attributes: Vec<ItemAttribute>BG-32 item attributes (BT-160 name, BT-161 value). Not BT-158 classifications.
origin_country: Option<Code>BT-159 item origin country (BR-CL-15), not BT-80.
classifications: Vec<Identifier>BG-32 classification identifiers (PINT-MY CLASS is listID CG, not LHDN).
invoiced_object: Option<Identifier>Line invoiced object (BT-128). Peppol R101: DocumentTypeCode 130 only.
invoiced_object_code: Option<Code>UBL DocumentTypeCode on the line DocumentReference. Absent means 130.
extra_tax: Vec<TaxCategory>Extra ClassifiedTaxCategory after BT-151 (PINT-MY TTX beside HVG/SA). Not BT-151.
tax_total: Option<InvoiceAmount>Line TaxTotal/cbc:TaxAmount. ALIGNED-IBRP-TTX-09-MY sums this on TTX lines. Not BT-117.