iterateStockMovements method

Stream<StockMovement> iterateStockMovements({
  1. String? articleId,
  2. String? locationId,
  3. DateTime? from,
  4. DateTime? to,
  5. String? type,
  6. String? source,
  7. int? limit,
  8. String? cursor,
})

Implementation

Stream<StockMovement> iterateStockMovements({
  String? articleId,
  String? locationId,
  DateTime? from,
  DateTime? to,
  String? type,
  String? source,
  int? limit,
  String? cursor,
}) =>
    _seitenweise(Aufrufe.listStockMovements, cursor, (c) async {
      final s = await listStockMovements(
        articleId: articleId,
        locationId: locationId,
        from: from,
        to: to,
        type: type,
        source: source,
        limit: limit,
        cursor: c,
      );
      return (eintraege: s.movements, nextCursor: s.nextCursor);
    });