hub order update ready
This commit is contained in:
@@ -147,7 +147,7 @@ class ClientCreateOrderRepositoryImpl
|
||||
}
|
||||
|
||||
await _dataConnect
|
||||
.updateOrder(id: orderId)
|
||||
.updateOrder(id: orderId, teamHubId: hub.id)
|
||||
.shifts(fdc.AnyValue(<String>[shiftId]))
|
||||
.execute();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user