StockMovement constructor
StockMovement({
- required String id,
- String? type,
- String? articleId,
- String? locationId,
- String? condition,
- required int quantityDelta,
- int reservedDelta = 0,
- StockAfter? stockAfter,
- String? operationId,
- StockMovementSourceRef? source,
- String? viennaDay,
- String? time,
- List<
StockMovementLot> lots = const [], - int? valueDeltaCents,
- bool? hasValueDeltaCents,
- int? consumedValueCents,
- bool? hasConsumedValueCents,
Implementation
StockMovement({
required this.id,
this.type,
this.articleId,
this.locationId,
this.condition,
required this.quantityDelta,
this.reservedDelta = 0,
this.stockAfter,
this.operationId,
this.source,
this.viennaDay,
this.time,
this.lots = const [],
this.valueDeltaCents,
bool? hasValueDeltaCents,
this.consumedValueCents,
bool? hasConsumedValueCents,
}) : hasValueDeltaCents = hasValueDeltaCents ?? valueDeltaCents != null,
hasConsumedValueCents = hasConsumedValueCents ?? consumedValueCents != null;