updates on the delviereis page

This commit is contained in:
2026-08-29 16:00:46 +05:30
parent 70cfac8996
commit 1caa7b71a9
4 changed files with 720 additions and 9 deletions

View File

@@ -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) {