hub order update ready
This commit is contained in:
@@ -147,7 +147,7 @@ class ClientCreateOrderRepositoryImpl
|
|||||||
}
|
}
|
||||||
|
|
||||||
await _dataConnect
|
await _dataConnect
|
||||||
.updateOrder(id: orderId)
|
.updateOrder(id: orderId, teamHubId: hub.id)
|
||||||
.shifts(fdc.AnyValue(<String>[shiftId]))
|
.shifts(fdc.AnyValue(<String>[shiftId]))
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ class _ShiftOrderFormSheetState extends State<ShiftOrderFormSheet> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await _dataConnect
|
await _dataConnect
|
||||||
.updateOrder(id: orderId)
|
.updateOrder(id: orderId, teamHubId: selectedHub.id)
|
||||||
.shifts(fdc.AnyValue(<String>[shiftId]))
|
.shifts(fdc.AnyValue(<String>[shiftId]))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> {
|
|||||||
final String dateText = orderDate == null
|
final String dateText = orderDate == null
|
||||||
? widget.order.date
|
? widget.order.date
|
||||||
: DateFormat('yyyy-MM-dd').format(orderDate);
|
: DateFormat('yyyy-MM-dd').format(orderDate);
|
||||||
final String location = firstShift.order.location ??
|
final String location = firstShift.order.teamHub?.hubName ??
|
||||||
firstShift.locationAddress ??
|
firstShift.locationAddress ??
|
||||||
firstShift.location ??
|
firstShift.location ??
|
||||||
widget.order.locationAddress;
|
widget.order.locationAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user