hub order update ready

This commit is contained in:
José Salazar
2026-01-29 16:33:36 -05:00
parent 9e8c7db3f9
commit 6592462e90
3 changed files with 3 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ class ClientCreateOrderRepositoryImpl
}
await _dataConnect
.updateOrder(id: orderId)
.updateOrder(id: orderId, teamHubId: hub.id)
.shifts(fdc.AnyValue(<String>[shiftId]))
.execute();
}

View File

@@ -284,7 +284,7 @@ class _ShiftOrderFormSheetState extends State<ShiftOrderFormSheet> {
}
await _dataConnect
.updateOrder(id: orderId)
.updateOrder(id: orderId, teamHubId: selectedHub.id)
.shifts(fdc.AnyValue(<String>[shiftId]))
.execute();

View File

@@ -737,7 +737,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> {
final String dateText = orderDate == null
? widget.order.date
: DateFormat('yyyy-MM-dd').format(orderDate);
final String location = firstShift.order.location ??
final String location = firstShift.order.teamHub?.hubName ??
firstShift.locationAddress ??
firstShift.location ??
widget.order.locationAddress;