creation one order time

This commit is contained in:
José Salazar
2026-01-23 16:03:43 -05:00
parent 2643037c0b
commit f0f8128625
3 changed files with 146 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ class OneTimeOrder extends Equatable {
required this.date,
required this.location,
required this.positions,
this.vendorId,
this.roleRates = const <String, double>{},
});
/// The specific date for the shift or event.
final DateTime date;
@@ -20,6 +22,18 @@ class OneTimeOrder extends Equatable {
/// The list of positions and headcounts required for this order.
final List<OneTimeOrderPosition> positions;
/// Selected vendor id for this order.
final String? vendorId;
/// Role hourly rates keyed by role id.
final Map<String, double> roleRates;
@override
List<Object?> get props => <Object?>[date, location, positions];
List<Object?> get props => <Object?>[
date,
location,
positions,
vendorId,
roleRates,
];
}