InvoiceLine class final The invoice
BG-25. One line of the invoice.
Constructors
-
InvoiceLine({required String id, required Decimal quantity, required UnitCode unit, required Decimal netAmount, required Item item, required Price price, required VatCategory vatCategory, Decimal? vatRate, String? note, Identifier? objectIdentifier, String? buyerOrderLineReference, String? buyerAccountingReference, DatePeriod? period, List<
LineAllowanceCharge> allowancesAndCharges = const []}) -
A line numbered
id, sellingquantityofitemfornetAmount.const -
InvoiceLine.of({required String id, required Item item, required num quantity, required num unitPrice, num? vatRate, UnitCode unit = UnitCode.one, VatCategory vatCategory = VatCategory.standardRate, String? note, Identifier? objectIdentifier, String? buyerOrderLineReference, String? buyerAccountingReference, DatePeriod? period, List<
LineAllowanceCharge> allowancesAndCharges = const []}) -
A line selling
quantityofitematunitPrice.factory
Properties
-
allowancesAndCharges
→ List<
LineAllowanceCharge> -
BG-27 and BG-28. What is taken off or added on to this line.
final
- buyerAccountingReference → String?
-
BT-133. Where the buyer books the line.
final
- buyerOrderLineReference → String?
-
BT-132. Which line of the buyer's order this answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
BT-126. The identifier of the line, unique inside the invoice.
final
- item → Item
-
BG-31. What is being sold.
final
- netAmount → Decimal
-
BT-131. What the line comes to, before VAT and after its own allowances
and charges.
final
- note → String?
-
BT-127. A free text note about the line.
final
- objectIdentifier → Identifier?
-
BT-128. An identifier of the object the line is about, under the scheme
that issues it.
final
- period → DatePeriod?
-
BG-26. When the supply on this line happened.
final
- price → Price
-
BG-29. What it costs.
final
- quantity → Decimal
-
BT-129. How much is being sold. Negative on a line that takes something
back.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → UnitCode
-
BT-130. The unit quantity is counted in.
final
- vatCategory → VatCategory
-
BT-151. The VAT category the line falls under.
final
- vatRate → Decimal?
-
BT-152. The VAT rate, as a percentage. Left out only for a category that
carries no rate.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited