update and correction of create order
This commit is contained in:
@@ -10,7 +10,7 @@ class OneTimeOrderPosition extends Equatable {
|
||||
required this.count,
|
||||
required this.startTime,
|
||||
required this.endTime,
|
||||
this.lunchBreak = 30,
|
||||
this.lunchBreak = 'NO_BREAK',
|
||||
this.location,
|
||||
});
|
||||
/// The job role or title required.
|
||||
@@ -25,8 +25,8 @@ class OneTimeOrderPosition extends Equatable {
|
||||
/// The scheduled end time (e.g., "05:00 PM").
|
||||
final String endTime;
|
||||
|
||||
/// The duration of the lunch break in minutes. Defaults to 30.
|
||||
final int lunchBreak;
|
||||
/// The break duration enum value (e.g., NO_BREAK, MIN_15, MIN_30).
|
||||
final String lunchBreak;
|
||||
|
||||
/// Optional specific location for this position, if different from the order's main location.
|
||||
final String? location;
|
||||
@@ -47,7 +47,7 @@ class OneTimeOrderPosition extends Equatable {
|
||||
int? count,
|
||||
String? startTime,
|
||||
String? endTime,
|
||||
int? lunchBreak,
|
||||
String? lunchBreak,
|
||||
String? location,
|
||||
}) {
|
||||
return OneTimeOrderPosition(
|
||||
|
||||
@@ -8,6 +8,7 @@ class OrderItem extends Equatable {
|
||||
/// Creates an [OrderItem].
|
||||
const OrderItem({
|
||||
required this.id,
|
||||
required this.orderId,
|
||||
required this.title,
|
||||
required this.clientName,
|
||||
required this.status,
|
||||
@@ -27,6 +28,9 @@ class OrderItem extends Equatable {
|
||||
/// Unique identifier of the order.
|
||||
final String id;
|
||||
|
||||
/// Parent order identifier.
|
||||
final String orderId;
|
||||
|
||||
/// Title or name of the role.
|
||||
final String title;
|
||||
|
||||
@@ -72,6 +76,7 @@ class OrderItem extends Equatable {
|
||||
@override
|
||||
List<Object?> get props => <Object?>[
|
||||
id,
|
||||
orderId,
|
||||
title,
|
||||
clientName,
|
||||
status,
|
||||
|
||||
Reference in New Issue
Block a user