recordMyShiftCount method
Zwischenzaehlung festhalten (recordMyShiftCount, Recht cashView, ohne es
not_permitted): der
Server vergleicht die Zaehlung mit dem Soll und haelt die Differenz fest,
die Schicht bleibt offen. Antwort: Soll, Zaehlung und Differenz dieser
Zaehlung. Derselbe idempotencyKey ergibt dieselbe Antwort und keinen
zweiten Eintrag. countedCents 0 ist erlaubt.
Implementation
Future<ShiftCountResult> recordMyShiftCount({
required String idempotencyKey,
required String shiftId,
required int countedCents,
Map<String, int>? denominations,
String? comment,
}) async {
const name = Aufrufe.recordMyShiftCount;
final p = <String, dynamic>{
'idempotencyKey': idempotencyKey,
'shiftId': shiftId,
'countedCents': countedCents,
'denominations': ?denominations,
'comment': ?comment,
};
kennung(name, 'shiftId', shiftId);
pruefeSchluessel(name, p);
pruefeGanzzahlen(name, p);
return gezaehltLesen(name, await transport.call(name, params: p));
}