Skip to content

Commit

Permalink
Fixed: Fetched unique carriers and their shipment methods (#883).
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed Dec 18, 2024
1 parent 80fdefe commit 67e974f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/GenerateTrackingCodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ion-item>
<template v-if="carrierMethods && carrierMethods.length > 0">
<ion-select :disabled="!order.missingLabelImage" :label="translate('Method')" v-model="shipmentMethodTypeId" interface="popover">
<ion-select-option v-for="method in carrierMethods" :key="method.productStoreShipMethId" :value="method.shipmentMethodTypeId">{{ translate(method.description) }}</ion-select-option>
<ion-select-option v-for="method in carrierMethods" :key="carrierMethods.partyId + method.shipmentMethodTypeId" :value="method.shipmentMethodTypeId">{{ translate(method.description) }}</ion-select-option>
</ion-select>
</template>
<template v-else>
Expand Down
10 changes: 6 additions & 4 deletions src/store/modules/carrier/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ const actions: ActionTree<CarrierState, RootState> = {
"roleTypeId": "CARRIER",
"facilityId": getCurrentFacilityId()
},
"fieldList": ["facilityId", "partyId", "firstName", "lastName", "groupName", "roleTypeId", "fromDate"],
"fieldList": ["facilityId", "partyId", "firstName", "lastName", "groupName", "roleTypeId"],
"noConditionFind": "Y",
"viewIndex": viewIndex,
"viewSize": 250,
"filterByDate": "Y"
"filterByDate": "Y",
"distinct": "Y"
}

resp = await CarrierService.fetchCarrierFacilities(params)
Expand Down Expand Up @@ -440,11 +441,12 @@ const actions: ActionTree<CarrierState, RootState> = {
"shipmentMethodTypeId": "STOREPICKUP",
"shipmentMethodTypeId_op": "notEqual"
},
"fieldList": ["productStoreShipMethId", "productStoreId", "partyId", "roleTypeId", "shipmentMethodTypeId", "shipmentGatewayConfigId", "isTrackingRequired", "sequenceNumber", "description", "fromDate"],
"fieldList": ["productStoreId", "partyId", "roleTypeId", "shipmentMethodTypeId", "description"],
"noConditionFind": "Y",
"viewIndex": viewIndex,
"viewSize": 250,
"filterByDate": "Y"
"filterByDate": "Y",
"distinct": "Y"
}

resp = await CarrierService.fetchProductStoreShipmentMethods(params)
Expand Down
2 changes: 1 addition & 1 deletion src/views/OrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
<ion-item>
<template v-if="carrierMethods && carrierMethods.length > 0">
<ion-select :disabled="!order.missingLabelImage" :label="translate('Method')" v-model="shipmentMethodTypeId" interface="popover" @ionChange="updateCarrierAndShippingMethod(carrierPartyId, shipmentMethodTypeId)">
<ion-select-option v-for="method in carrierMethods" :key="method.productStoreShipMethId" :value="method.shipmentMethodTypeId">{{ translate(method.description) }}</ion-select-option>
<ion-select-option v-for="method in carrierMethods" :key="method.partyId + method.shipmentMethodTypeId" :value="method.shipmentMethodTypeId">{{ translate(method.description) }}</ion-select-option>
</ion-select>
</template>
<template v-else-if="!isUpdatingCarrierDetail">
Expand Down

0 comments on commit 67e974f

Please sign in to comment.