
Refactors the product data model to primarily store `id`, `barcode`, and `displayName`. This simplifies the product structure, focusing on essential attributes for inventory and scanning operations. Optimizes API calls for stock picking to fetch more relevant product details. Unnecessary fields are removed, and specific product attributes like `barcode` and `quantity` are now explicitly requested for stock moves. Moves `StockPickingRecordModel` to its own dedicated file for improved code organization and maintainability. Updates all affected UI components and scanner logic to align with the revised product model.
22 lines
691 B
Dart
22 lines
691 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'product_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_ProductModel _$ProductModelFromJson(Map<String, dynamic> json) =>
|
|
_ProductModel(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
barcode: json['barcode'] as String?,
|
|
displayName: json['displayName'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$ProductModelToJson(_ProductModel instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'barcode': instance.barcode,
|
|
'displayName': instance.displayName,
|
|
};
|