Position class

Eine Position des laufenden Verkaufs.

Constructors

Position({required String id, required String name, required int quantity, required int priceCents, required VatRate vat, int? maxQuantity, String? articleId})
const

Properties

articleId → String?
Artikel-Verweis (Kachel); fehlt bei freien Positionen. Reist in die Belegposition (Erloesgruppen im Bericht, Lagerbuchung).
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Kennung nur fuer diesen Bildschirm: zwei gleich aussehende Positionen sind zwei Positionen, und ohne eigene Kennung entfernte ein Griff beide. Sie verlaesst die Kasse nie — die Nutzlast des Belegs kennt sie nicht.
final
lineTotalCents → int
Zeilensumme in ganzen Cent — beide Faktoren sind ganze Zahlen.
no setter
maxQuantity → int?
Hoechstmenge je Beleg (vom Artikel); fehlt bei freien Positionen.
final
name → String
final
priceCents → int
Einzelpreis in ganzen Cent.
final
quantity → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vat → VatRate
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toReceiptItem() → KasseneckItem
Als Belegposition – ohne die Kassen-Kennung, die das Backend nichts angeht; mit dem Artikel-Verweis, wenn es einen gibt.
toString() → String
A string representation of this object.
inherited
withQuantity(int quantity) → Position

Operators

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