listMyStocktakes method
Offene Inventuren (listMyStocktakes); fuer Kassen-Benutzer nur
counting und review mit offenem Nachzaehlen. Ein leerer locationId
gilt wie keiner; status aus stocktakeStatuses.
Implementation
Future<List<Stocktake>> listMyStocktakes({String? locationId, String? status}) async {
const name = Aufrufe.listMyStocktakes;
final daten = await transport.call(name, params: {
if (locationId != null && locationId.isNotEmpty) 'locationId': locationId,
'status': ?status,
});
return liste(name, daten, 'stocktakes', inventur);
}