Skip to content

Commit

Permalink
Added: currency Uom in the confirm cancel modal(hotwax#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jan 16, 2025
1 parent fbd099a commit 284bdfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ConfirmCancelModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
<p class="ion-text-wrap">{{ getCancelReasonDescription(item.cancelReason) }}</p>
<ion-badge color="dark" v-if="isKit(item)">{{ translate("Kit") }}</ion-badge>
</ion-label>
<ion-note slot="end">{{ getProduct(item.productId).LIST_PRICE_PURCHASE_USD_STORE_GROUP_price ? getProduct(item.productId).LIST_PRICE_PURCHASE_USD_STORE_GROUP_price : "" }}</ion-note>
<ion-note slot="end">{{ getProduct(item.productId).LIST_PRICE_PURCHASE_USD_STORE_GROUP_price ? formatCurrency(getProduct(item.productId).LIST_PRICE_PURCHASE_USD_STORE_GROUP_price, order.currencyUom) : "" }}</ion-note>
</ion-item>

<ion-item lines="full">
<ion-label>{{ translate("Total") }}</ion-label>
<ion-note slot="end">{{ orderTotal }}</ion-note>
<ion-note slot="end">{{ formatCurrency(orderTotal, order.currencyUom) }}</ion-note>
</ion-item>

<ion-item lines="full" v-if="isCancelationSyncJobEnabled && isProcessRefundEnabled">
Expand Down Expand Up @@ -82,6 +82,7 @@ import { mapGetters, useStore } from "vuex"
import { OrderService } from "@/services/OrderService";
import { getProductIdentificationValue, translate, useProductIdentificationStore } from "@hotwax/dxp-components";
import { isKit } from "@/utils/order"
import { formatCurrency } from "@/utils";
import { hasError } from "@hotwax/oms-api";
import { DateTime } from "luxon";
import emitter from "@/event-bus";
Expand Down Expand Up @@ -188,6 +189,7 @@ export default defineComponent({
return {
closeOutline,
isKit,
formatCurrency,
getProductIdentificationValue,
productIdentificationPref,
saveOutline,
Expand Down

0 comments on commit 284bdfb

Please sign in to comment.