Skip to content

Commit

Permalink
19755 - Format RS Refund Amount (#222)
Browse files Browse the repository at this point in the history
* format RS refund amount

* 1.2.8
  • Loading branch information
Jxio authored Feb 13, 2024
1 parent b35cd96 commit c500fdc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ViewRoutingSlip/RefundRequestForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-row>
<v-col
class="col-3 font-weight-bold pb-0"
v-if="isEditing || name"
v-if="isEditing || name || address"
>
{{ 'Name of Person or Organization & Address' }}
</v-col>
Expand Down
4 changes: 3 additions & 1 deletion src/components/ViewRoutingSlip/RoutingSlipInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
Refund Amount
</v-col>
<v-col class="col-6 col-sm-9">
{{ routingSlipDetails.refundAmount || routingSlipDetails.remainingAmount }}
{{ refundAmount }}
</v-col>
</v-row>

Expand Down Expand Up @@ -173,6 +173,7 @@ import can from '@/directives/can'
statusChange,
showAddress,
showRefundAmount,
refundAmount,
refundRequestForm,
refundRequestDetails,
errorMessage,
Expand All @@ -197,6 +198,7 @@ import can from '@/directives/can'
statusChange,
showAddress,
showRefundAmount,
refundAmount,
refundRequestForm,
refundRequestDetails,
errorMessage,
Expand Down
6 changes: 6 additions & 0 deletions src/composables/ViewRoutingSlip/useRoutingSlipInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -281,6 +286,7 @@ export default function useRoutingSlipInfo (props) {
statusChange,
showAddress,
showRefundAmount,
refundAmount,
refundRequestForm,
refundRequestDetails,
errorMessage,
Expand Down

0 comments on commit c500fdc

Please sign in to comment.