struct
Zugpferd::SupplyChainTradeLineItem
- Zugpferd::SupplyChainTradeLineItem
- Struct
- Value
- Object
Overview
One invoice line (BG-25). Each line describes a distinct product or service with its quantity, unit price, VAT category, and the resulting line total.
Defined in:
zugpferd/trade_line_item.crConstructors
Instance Method Summary
-
#allowance_charges : Array(SpecifiedTradeAllowanceCharge)
Line-level allowances or charges (BG-27 allowances / BG-28 charges).
-
#allowance_charges=(allowance_charges : Array(SpecifiedTradeAllowanceCharge))
Line-level allowances or charges (BG-27 allowances / BG-28 charges).
-
#billed_quantity : MonetaryAmount
Number of units delivered or consumed (BT-129).
-
#billed_quantity=(billed_quantity : MonetaryAmount)
Number of units delivered or consumed (BT-129).
-
#buyer_assigned_id : String | Nil
Buyer's article or item identifier (BT-156).
-
#buyer_assigned_id=(buyer_assigned_id : String | Nil)
Buyer's article or item identifier (BT-156).
-
#description : String | Nil
Optional free-text description of the item (BT-154).
-
#description=(description : String | Nil)
Optional free-text description of the item (BT-154).
-
#gross_price : MonetaryAmount | Nil
Gross (list) price per unit before any line-level discounts (BT-148).
-
#gross_price=(gross_price : MonetaryAmount | Nil)
Gross (list) price per unit before any line-level discounts (BT-148).
-
#line_total : MonetaryAmount
Calculated line total:
billed_quantity × net_price(BT-131 × BT-129). -
#line_total=(line_total : MonetaryAmount)
Calculated line total:
billed_quantity × net_price(BT-131 × BT-129). -
#name : String
Name of the product or service (BT-153).
-
#name=(name : String)
Name of the product or service (BT-153).
-
#net_price : MonetaryAmount
Net price per unit, exclusive of VAT (BT-131).
-
#net_price=(net_price : MonetaryAmount)
Net price per unit, exclusive of VAT (BT-131).
-
#note : String | Nil
Optional free-text note for this line (BT-127).
-
#note=(note : String | Nil)
Optional free-text note for this line (BT-127).
-
#position : Int32
Sequential line number within the invoice (BT-126).
-
#position=(position : Int32)
Sequential line number within the invoice (BT-126).
-
#seller_assigned_id : String | Nil
Seller's own article or item identifier (BT-155).
-
#seller_assigned_id=(seller_assigned_id : String | Nil)
Seller's own article or item identifier (BT-155).
-
#tax_category_code : ApplicableTradeTax::CategoryCode
VAT category code applicable to this line (BT-151).
-
#tax_category_code=(tax_category_code : ApplicableTradeTax::CategoryCode)
VAT category code applicable to this line (BT-151).
-
#tax_rate_percent : MonetaryAmount | Nil
VAT rate percentage for this line (BT-152).
-
#tax_rate_percent=(tax_rate_percent : MonetaryAmount | Nil)
VAT rate percentage for this line (BT-152).
-
#unit_code : String
Unit of measure for
#billed_quantity(BT-130). -
#unit_code=(unit_code : String)
Unit of measure for
#billed_quantity(BT-130).
Constructor Detail
Instance Method Detail
Line-level allowances or charges (BG-27 allowances / BG-28 charges).
Emitted inside GrossPriceProductTradePrice as AppliedTradeAllowanceCharge elements.
Only meaningful when #gross_price is set or these entries are non-empty.
Line-level allowances or charges (BG-27 allowances / BG-28 charges).
Emitted inside GrossPriceProductTradePrice as AppliedTradeAllowanceCharge elements.
Only meaningful when #gross_price is set or these entries are non-empty.
Number of units delivered or consumed (BT-129).
Buyer's article or item identifier (BT-156).
Gross (list) price per unit before any line-level discounts (BT-148).
Emit only when it differs from #net_price; triggers a GrossPriceProductTradePrice block.
Gross (list) price per unit before any line-level discounts (BT-148).
Emit only when it differs from #net_price; triggers a GrossPriceProductTradePrice block.
Calculated line total: billed_quantity × net_price (BT-131 × BT-129).
Set automatically in the constructor; update manually if you override #net_price after construction.
Calculated line total: billed_quantity × net_price (BT-131 × BT-129).
Set automatically in the constructor; update manually if you override #net_price after construction.
Net price per unit, exclusive of VAT (BT-131).
#line_total is computed as billed_quantity × net_price.
Net price per unit, exclusive of VAT (BT-131).
#line_total is computed as billed_quantity × net_price.
Sequential line number within the invoice (BT-126). Must be unique and positive.
Sequential line number within the invoice (BT-126). Must be unique and positive.
Seller's own article or item identifier (BT-155).
VAT category code applicable to this line (BT-151).
Common values: S = standard rate, Z = zero rate, E = exempt, AE = reverse charge.
VAT category code applicable to this line (BT-151).
Common values: S = standard rate, Z = zero rate, E = exempt, AE = reverse charge.
VAT rate percentage for this line (BT-152). Nil for exempt/reverse-charge categories.
VAT rate percentage for this line (BT-152). Nil for exempt/reverse-charge categories.
Unit of measure for #billed_quantity (BT-130). UN/ECE Rec 20 code,
e.g. "C62" = piece, "HUR" = hour, "KGM" = kilogram, "DAY" = day.
Unit of measure for #billed_quantity (BT-130). UN/ECE Rec 20 code,
e.g. "C62" = piece, "HUR" = hour, "KGM" = kilogram, "DAY" = day.