save
This commit is contained in:
@@ -12,6 +12,9 @@ class ProductStageEntity extends Equatable {
|
||||
final double passedQuantityWeight;
|
||||
final String? stageName;
|
||||
final String createdDate;
|
||||
final String productName;
|
||||
final String productCode;
|
||||
final int? stageId;
|
||||
|
||||
const ProductStageEntity({
|
||||
required this.productId,
|
||||
@@ -23,6 +26,9 @@ class ProductStageEntity extends Equatable {
|
||||
required this.passedQuantityWeight,
|
||||
required this.stageName,
|
||||
required this.createdDate,
|
||||
this.productName = '',
|
||||
this.productCode = '',
|
||||
this.stageId,
|
||||
});
|
||||
|
||||
/// Get display name for the stage
|
||||
@@ -49,6 +55,9 @@ class ProductStageEntity extends Equatable {
|
||||
passedQuantityWeight,
|
||||
stageName,
|
||||
createdDate,
|
||||
productName,
|
||||
productCode,
|
||||
stageId,
|
||||
];
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:dartz/dartz.dart';
|
||||
import '../../../../core/errors/failures.dart';
|
||||
import '../../data/models/create_product_warehouse_request.dart';
|
||||
import '../entities/product_entity.dart';
|
||||
import '../entities/product_stage_entity.dart';
|
||||
|
||||
@@ -27,4 +28,13 @@ abstract class ProductsRepository {
|
||||
int warehouseId,
|
||||
int productId,
|
||||
);
|
||||
|
||||
/// Create product warehouse entry (import/export operation)
|
||||
///
|
||||
/// [request] - Request containing all product warehouse details
|
||||
///
|
||||
/// Returns Either<Failure, void>
|
||||
Future<Either<Failure, void>> createProductWarehouse(
|
||||
CreateProductWarehouseRequest request,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user