update and correction of create order

This commit is contained in:
José Salazar
2026-01-25 13:21:16 -05:00
parent 8f8c6ff2d2
commit bda0b441e9
15 changed files with 23283 additions and 22306 deletions

View File

@@ -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(

View File

@@ -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,