2025-10-25 02:09:47 +07:00
|
|
|
part of '../product.dart';
|
|
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
|
class ProductQuantity with _$ProductQuantity {
|
|
|
|
|
const factory ProductQuantity({
|
|
|
|
|
required Product product,
|
|
|
|
|
ProductVariant? variant,
|
|
|
|
|
required int quantity,
|
2025-10-25 03:03:44 +07:00
|
|
|
required String notes,
|
2025-10-25 02:09:47 +07:00
|
|
|
}) = _ProductQuantity;
|
|
|
|
|
|
|
|
|
|
factory ProductQuantity.empty() =>
|
2025-10-25 03:03:44 +07:00
|
|
|
ProductQuantity(product: Product.empty(), quantity: 0, notes: '');
|
2025-10-25 02:09:47 +07:00
|
|
|
}
|