updates on the delviereis page
This commit is contained in:
@@ -108,11 +108,25 @@ export function ZoneProvider({ children }) {
|
||||
const currentHub = selectedZone;
|
||||
const targetHubId = String(currentHub.hubid);
|
||||
|
||||
const isOrderOrDeliveryOrTripsheet = Boolean(
|
||||
item.bookingid != null ||
|
||||
item.orderheaderid != null ||
|
||||
item.deliveryid != null ||
|
||||
item.bookingno != null ||
|
||||
item.consignmentid != null ||
|
||||
item.tripsheetid != null ||
|
||||
item.pickupaddress != null ||
|
||||
item.deliveryaddress != null
|
||||
);
|
||||
|
||||
// Rider matching: riders belong to the tenant fleet and serve all tenant kitchen hubs
|
||||
const isRiderItem =
|
||||
item.milerprofileid != null ||
|
||||
item.authname != null ||
|
||||
(item.userid != null && item.availabilitystatus != null);
|
||||
!isOrderOrDeliveryOrTripsheet &&
|
||||
Boolean(
|
||||
item.milerprofileid != null ||
|
||||
item.authname != null ||
|
||||
(item.userid != null && item.availabilitystatus != null)
|
||||
);
|
||||
|
||||
if (isRiderItem) {
|
||||
if (isTenantUser) {
|
||||
|
||||
Reference in New Issue
Block a user