Shift class
Eine Schicht. Die Felder nach „Nur mit cashView“ sind null, wenn der
Server sie nicht sendet (kein Recht); null heisst dort „nicht gesendet“
oder „es gibt (noch) keinen Wert“ – nie 0. Ohne das Recht shift sendet
der Server von einer offenen Schicht nur die Grunddaten (id, drawerId,
cashregisterId, number, status, openedAt, openedBy); alles
andere ist dann null, auch openingFloatTakenOver.
Constructors
-
Shift({required String id, required String drawerId, String? cashregisterId, required int number, required String status, String? openedAt, ShiftActor? openedBy, String? openedDeviceId, String? closedAt, ShiftActor? closedBy, String? closedDeviceId, int? openingFloatCents, Map<
String, int> ? openingDenominations, bool? openingFloatTakenOver, String? comment, bool? blind, int? countedCents, int? suggestedFloatCents, ShiftRunningTotals? runningTotals, int? expectedCents, int? differenceCents, ShiftReconciliation? reconciliation, AfterCount? afterCount, int? leftInDrawerCents, bool? openingCounted, List<ShiftExpectedPart> ? expectedParts, int? cashTipsInDrawerCents, int? interimCounts, int? interimDifferenceCents, List<ShiftDifferencePart> ? differenceParts, int? countedBeforePayoutCents}) -
const
Properties
- afterCount → AfterCount?
-
Entnommen bzw. eingelegt nach dem Zaehlen;
null, wenn beim Abschluss kein Geld bewegt wurde.final - blind → bool?
-
Wurde blind gezaehlt (nach dem Abschluss); offen
null.final - cashregisterId → String?
-
final
- cashTipsInDrawerCents → int?
-
Bar-Trinkgeld in der Lade (Teil des Solls); nur offen mit
cashView.final - closedAt → String?
-
final
- closedBy → ShiftActor?
-
final
- closedDeviceId → String?
-
final
- comment → String?
-
final
- countedBeforePayoutCents → int?
-
Rohwert der Zaehlung vor der Trinkgeld-Auszahlung; nur wenn mit
countedBeforePayoutgeschlossen wurde (countedCents ist dann der Stand danach).final - countedCents → int?
-
final
- differenceCents → int?
-
Gesamtdifferenz der Schicht. Mit Zwischenzaehlungen ist sie NICHT
countedCents - expectedCents: jede Zwischenzaehlung verschiebt das Soll um ihre Differenz, gespeichert wird die Summe aus den Zwischen-Teilen und dem Abschluss-Teil (differenceParts). Ohne Zwischenzaehlung gilt Ist - Soll.final -
differenceParts
→ List<
ShiftDifferencePart> ? -
Teile der Gesamtdifferenz; nur an geschlossenen Schichten mit Zwischenzaehlung.
final
- drawerId → String
-
final
- expectedCents → int?
-
final
-
expectedParts
→ List<
ShiftExpectedPart> ? -
Das Soll in Teilen (Summe = expectedCents); nur offen mit
cashView.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- interimCounts → int?
-
Zahl der Zwischenzaehlungen; nur offen mit
cashView.final - interimDifferenceCents → int?
-
Summe der Differenzen der Zwischenzaehlungen.
final
- leftInDrawerCents → int?
-
Was danach in der Lade bleibt; nur mit afterCount, blind
null.final - number → int
-
final
- openedAt → String?
-
final
- openedBy → ShiftActor?
-
final
- openedDeviceId → String?
-
final
- openingCounted → bool?
-
Wurde der Anfang gezaehlt?
false= Bestand ohne Zaehlen uebernommen; fehlt das Feld (aeltere Server), ist es unbekannt, nicht gezaehlt.final -
openingDenominations
→ Map<
String, int> ? -
final
- openingFloatCents → int?
-
Startgeld; blind
null, wenn es uebernommen wurde.final - openingFloatTakenOver → bool?
-
Wurde das Startgeld uebernommen;
nullin den Grunddaten ohne Rechtshift.final - reconciliation → ShiftReconciliation?
-
final
- runningTotals → ShiftRunningTotals?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
openoderclosed.final - suggestedFloatCents → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Die Drahtform; Felder, die fehlen (kein Recht), fehlen auch hier.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited