Skip to content

Commit b0afd9b

Browse files
authored
Merge pull request #918 from ymaheshwari1/#916
Improved: logic to use the new rejection reason when rejecting entire order(#916)
2 parents bd96700 + cfa24b3 commit b0afd9b

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
"Reject all": "Reject all",
453453
"Reject all in progress orders": "Reject all in progress orders",
454454
"Reject all open orders": "Reject all open orders",
455-
"Reject entire order": "Reject entire order",
455+
"Reject to avoid order split (no variance)": "Reject to avoid order split (no variance)",
456456
"Reject in progress orders.": "Reject { ordersCount } in progress orders.",
457457
"Reject open orders.": "Reject { ordersCount } open orders.",
458458
"Reject order": "Reject order",

src/locales/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,10 @@
449449
"Reject all": "Rechazar todo",
450450
"Reject all in progress orders": "Rechazar todos los pedidos en curso",
451451
"Reject all open orders": "Rechazar todos los pedidos abiertos",
452-
"Reject entire order": "Rechazar toda la orden",
453452
"Reject in progress orders.": "Rechazar { ordersCount } pedidos en curso.",
454453
"Reject open orders.": "Rechazar { ordersCount } pedidos abiertos.",
455454
"Reject order": "Rechazar pedido",
455+
"Reject to avoid order split (no variance)": "Reject to avoid order split (no variance)",
456456
"Rejected": "Rechazado",
457457
"Rejected at": "Rejected at",
458458
"Rejected by": "Rejected by",

src/locales/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@
453453
"Reject in progress orders.": "進行中の{ordersCount}件の注文を拒否。",
454454
"Reject open orders.": "オープンの{ordersCount}件の注文を拒否。",
455455
"Reject order": "注文を拒否",
456+
"Reject to avoid order split (no variance)": "Reject to avoid order split (no variance)",
456457
"Rejected at": "Rejected at",
457458
"Rejected by": "Rejected by",
458459
"Rejected from": "Rejected from",

src/views/InProgress.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
</template>
121121
<template v-else-if="useNewRejectionApi() && isEntierOrderRejectionEnabled(order)">
122122
<ion-chip :disabled="order.hasMissingInfo" outline color="danger">
123-
<ion-label> {{ getRejectionReasonDescription(rejectEntireOrderReasonId) ? getRejectionReasonDescription(rejectEntireOrderReasonId) : translate('Reject entire order')}}</ion-label>
123+
<ion-label> {{ getRejectionReasonDescription(rejectEntireOrderReasonId) ? getRejectionReasonDescription(rejectEntireOrderReasonId) : translate('Reject to avoid order split (no variance)')}}</ion-label>
124124
</ion-chip>
125125
</template>
126126
<template v-else>
@@ -378,7 +378,7 @@ export default defineComponent({
378378
selectedPicklistId: '',
379379
isScrollingEnabled: false,
380380
isRejecting: false,
381-
rejectEntireOrderReasonId: 'REJECT_ENTIRE_ORDER',
381+
rejectEntireOrderReasonId: "REJ_AVOID_ORD_SPLIT",
382382
}
383383
},
384384
async ionViewWillEnter() {

src/views/OrderDetail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</template>
9898
<template v-else-if="useNewRejectionApi() && isEntierOrderRejectionEnabled(order)">
9999
<ion-chip :disabled="order.hasMissingInfo" outline color="danger">
100-
<ion-label> {{ getRejectionReasonDescription(rejectEntireOrderReasonId) ? getRejectionReasonDescription(rejectEntireOrderReasonId) : translate('Reject entire order')}}</ion-label>
100+
<ion-label> {{ getRejectionReasonDescription(rejectEntireOrderReasonId) ? getRejectionReasonDescription(rejectEntireOrderReasonId) : translate('Reject to avoid order split (no variance)')}}</ion-label>
101101
</ion-chip>
102102
</template>
103103
<template v-else>
@@ -532,7 +532,7 @@ export default defineComponent({
532532
'PAYMENT_REFUNDED': 'warning',
533533
'PAYMENT_SETTLED': ''
534534
} as any,
535-
rejectEntireOrderReasonId: 'REJECT_ENTIRE_ORDER',
535+
rejectEntireOrderReasonId: "REJ_AVOID_ORD_SPLIT",
536536
shipmentLabelErrorMessages: "",
537537
shipmentMethodTypeId: "",
538538
carrierPartyId: "",

0 commit comments

Comments
 (0)