diff --git a/package-lock.json b/package-lock.json index 3c5c0407..9afb7ace 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fas-ui", - "version": "1.2.7", + "version": "1.2.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fas-ui", - "version": "1.2.7", + "version": "1.2.8", "dependencies": { "@bcrs-shared-components/base-address": "^2.0.3", "@bcrs-shared-components/enums": "^1.0.51", diff --git a/package.json b/package.json index 1f678633..72dea687 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fas-ui", - "version": "1.2.7", + "version": "1.2.8", "private": true, "main": "./lib/lib.umd.min.js", "appName": "FAS UI", diff --git a/src/components/ViewRoutingSlip/RefundRequestForm.vue b/src/components/ViewRoutingSlip/RefundRequestForm.vue index 914c33c9..e4b63098 100644 --- a/src/components/ViewRoutingSlip/RefundRequestForm.vue +++ b/src/components/ViewRoutingSlip/RefundRequestForm.vue @@ -3,7 +3,7 @@ {{ 'Name of Person or Organization & Address' }} diff --git a/src/components/ViewRoutingSlip/RoutingSlipInfo.vue b/src/components/ViewRoutingSlip/RoutingSlipInfo.vue index a05ba3e0..da16f8af 100644 --- a/src/components/ViewRoutingSlip/RoutingSlipInfo.vue +++ b/src/components/ViewRoutingSlip/RoutingSlipInfo.vue @@ -62,7 +62,7 @@ Refund Amount - {{ routingSlipDetails.refundAmount || routingSlipDetails.remainingAmount }} + {{ refundAmount }} @@ -173,6 +173,7 @@ import can from '@/directives/can' statusChange, showAddress, showRefundAmount, + refundAmount, refundRequestForm, refundRequestDetails, errorMessage, @@ -197,6 +198,7 @@ import can from '@/directives/can' statusChange, showAddress, showRefundAmount, + refundAmount, refundRequestForm, refundRequestDetails, errorMessage, diff --git a/src/composables/ViewRoutingSlip/useRoutingSlipInfo.ts b/src/composables/ViewRoutingSlip/useRoutingSlipInfo.ts index 05fd4a20..583da9ec 100644 --- a/src/composables/ViewRoutingSlip/useRoutingSlipInfo.ts +++ b/src/composables/ViewRoutingSlip/useRoutingSlipInfo.ts @@ -37,6 +37,11 @@ export default function useRoutingSlipInfo (props) { return routingSlip.value || {} }) + const refundAmount = computed(() => { + const amount = routingSlipDetails.value.refundAmount ?? routingSlipDetails.value.remainingAmount + return amount ? CommonUtils.appendCurrencySymbol(amount.toFixed(2)) : '$0.00' + }) + const { t } = useI18n() const modalText = computed(() => { @@ -281,6 +286,7 @@ export default function useRoutingSlipInfo (props) { statusChange, showAddress, showRefundAmount, + refundAmount, refundRequestForm, refundRequestDetails, errorMessage,