listStocktakeItems method

Future<StocktakeItemPage> listStocktakeItems({
  1. required String stocktakeId,
  2. bool? openOnly,
  3. int? limit,
  4. String? cursor,
})

Positionen einer Inventur nach Kennung; openOnly = ungezaehlt bzw. in review zum Nachzaehlen offen.

Implementation

Future<StocktakeItemPage> listStocktakeItems({
  required String stocktakeId,
  bool? openOnly,
  int? limit,
  String? cursor,
}) async {
  const name = Aufrufe.listStocktakeItems;
  final daten = await _transport.call(
      name,
      _abfrage(name, {
        'stocktakeId': kennung(name, 'stocktakeId', stocktakeId),
        'openOnly': openOnly,
        'limit': limit,
        'cursor': cursor,
      }));
  return StocktakeItemPage(items: liste(name, daten, 'items', inventurPosition), nextCursor: naechsterCursor(name, daten));
}