GoodsReceiptPreviewLine constructor

GoodsReceiptPreviewLine({
  1. required String articleId,
  2. required int quantity,
  3. String? expiresOn,
  4. String? batch,
  5. List<String> serialNumbers = const [],
  6. bool priceFromArticle = false,
  7. int? baseCents,
  8. int? landedCostCents,
  9. int? valueCents,
  10. int? unitCostMicros,
  11. bool? hasValues,
})

Implementation

GoodsReceiptPreviewLine({
  required this.articleId,
  required this.quantity,
  this.expiresOn,
  this.batch,
  this.serialNumbers = const [],
  this.priceFromArticle = false,
  this.baseCents,
  this.landedCostCents,
  this.valueCents,
  this.unitCostMicros,
  bool? hasValues,
}) : hasValues =
          hasValues ?? (baseCents != null || landedCostCents != null || valueCents != null || unitCostMicros != null);