KeckInvoiceItem class

Constructors

KeckInvoiceItem({required String name, required int quantity, required String quantityUnit, required VatRate vat, required int priceCents})
KeckInvoiceItem.euro({required String name, required int quantity, required String quantityUnit, required VatRate vat, required double singlePrice})
Komfort-Konstruktor mit Einzelpreis in Euro (einmalige Rundung auf Cent).
factory
KeckInvoiceItem.fromJson(Map<String, dynamic> json)
singlePriceCents wird bevorzugt (exakt); Fallback: Euro mit einmaliger Rundung.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
no setter
name String
Name des Artikels / der Dienstleistung
getter/setter pair
priceCents int
Einzelpreis in Cent (z. B. 1999 = 19,99 EUR).
getter/setter pair
quantity int
Menge (z. B. 1 Stück, 2 Stück)
getter/setter pair
quantityUnit String
Einheit der Menge (z. B. "Stück", "Liter", "kg")
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singlePrice double
Einzelpreis in Euro (Anzeige/Format — fuer Arithmetik priceCents nutzen).
no setter
totalCents int
Zeilensumme in Cent (exakt, ohne Gleitkomma).
no setter
vat VatRate
Steuersatz (z. B. 0, 4.9, 10, 13, 19, 20)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Umwandlung ins JSON-Format. Sendet BEIDE Felder: singlePrice (Euro, altes Backend) + singlePriceCents (neu, exakt).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited