CheckoutTotals class
Alle Beträge des Kassiervorgangs auf einen Blick.
Constructors
- CheckoutTotals({required int subtotalCents, required int discountCents, required int dueCents, required int tipCents, required int totalCents, required bool cash, required int? tenderedCents, required int missingCents, required int changeCents, required bool ready, String? reason, int depositCents = 0, int returnCents = 0, int payoutCents = 0, String? depositCode})
-
const
Properties
- cash → bool
-
Wird bar mit Rückgeld gerechnet?
final
- changeCents → int
-
final
- depositCents → int
-
Pfand, das der Server zu den Artikeln bucht (nur mit Vorschau-Kontext,
sonst 0). Ein Rabatt trifft es nie.
final
- depositCode → String?
-
Ein Fehlercode der Pfand-Vorschau (depositPreviewErrorCodes), mit dem
der Server den Verkauf abwiese; dann ist ready falsch.
final
- discountCents → int
-
final
- dueCents → int
-
Belegbetrag nach Rabatt, mit Pfand und Leergut — ohne Trinkgeld.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- missingCents → int
-
Was noch fehlt; 0, solange nichts getippt wurde.
final
- payoutCents → int
-
Auszahlung an den Gast, wenn Leergut mehr wert ist als der Einkauf
(sonst 0); dueCents ist dann negativ, Trinkgeld gibt es nicht. Die Kasse
zahlt nur bar aus: die App muss bei payoutCents > 0 die Zahlart Bar
waehlen, der Server lehnt jede andere ab.
final
- ready → bool
-
final
- reason → String?
-
final
- returnCents → int
-
Leergut im Korb in Cent (null oder negativ).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtotalCents → int
-
Ware im Warenkorb ohne Rabatt — ohne Pfand und ohne Leergut.
final
- tenderedCents → int?
-
Nur bei cash: was gegeben wurde.
final
- tipCents → int
-
Trinkgeld; steht nicht im Belegbetrag, aber im Gegebenen.
final
- totalCents → int
-
Was der Gast tatsächlich gibt: dueCents + tipCents.
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