modifications for hub in create one time order

This commit is contained in:
José Salazar
2026-01-29 16:08:44 -05:00
parent 7e17903942
commit 191ba40393
19 changed files with 18298 additions and 17645 deletions

View File

@@ -10,6 +10,7 @@ class OneTimeOrder extends Equatable {
required this.date,
required this.location,
required this.positions,
this.hub,
this.vendorId,
this.roleRates = const <String, double>{},
});
@@ -22,6 +23,9 @@ class OneTimeOrder extends Equatable {
/// The list of positions and headcounts required for this order.
final List<OneTimeOrderPosition> positions;
/// Selected hub details for this order.
final OneTimeOrderHubDetails? hub;
/// Selected vendor id for this order.
final String? vendorId;
@@ -33,7 +37,52 @@ class OneTimeOrder extends Equatable {
date,
location,
positions,
hub,
vendorId,
roleRates,
];
}
/// Minimal hub details used during order creation.
class OneTimeOrderHubDetails extends Equatable {
const OneTimeOrderHubDetails({
required this.id,
required this.name,
required this.address,
this.placeId,
this.latitude,
this.longitude,
this.city,
this.state,
this.street,
this.country,
this.zipCode,
});
final String id;
final String name;
final String address;
final String? placeId;
final double? latitude;
final double? longitude;
final String? city;
final String? state;
final String? street;
final String? country;
final String? zipCode;
@override
List<Object?> get props => <Object?>[
id,
name,
address,
placeId,
latitude,
longitude,
city,
state,
street,
country,
zipCode,
];
}