Skip to content

Commit 26299ff

Browse files
committed
32013 - Manual Refunds - recording details in UI
1 parent 6df7b0a commit 26299ff

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

auth-web/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auth-web",
3-
"version": "2.10.47",
3+
"version": "2.10.48",
44
"appName": "Auth Web",
55
"sbcName": "SBC Common Components",
66
"private": true,

auth-web/src/components/auth/account-settings/transaction/TransactionsDataTable.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<v-row no-gutters>
160160
<v-col cols="auto">
161161
<v-icon
162-
v-if="[InvoiceStatus.COMPLETED, InvoiceStatus.PAID, InvoiceStatus.REFUNDED, InvoiceStatus.CREDITED].includes(item.statusCode)"
162+
v-if="successStatuses.has(item.statusCode)"
163163
color="success"
164164
:style="{ 'margin-top': '-6px', 'margin-right': '2px' }"
165165
>
@@ -444,6 +444,14 @@ export default defineComponent({
444444
InvoiceStatus.PAID
445445
])
446446
447+
const successStatuses = new Set<InvoiceStatus>([
448+
InvoiceStatus.COMPLETED,
449+
InvoiceStatus.PAID,
450+
InvoiceStatus.REFUNDED,
451+
InvoiceStatus.CREDITED,
452+
InvoiceStatus.MANUAL_REFUNDED
453+
])
454+
447455
const enableReceiptDownloadForRefunds = computed(() => {
448456
return LaunchDarklyService.getFlag(LDFlags.EnableReceiptDownloadForRefunds) || false
449457
})
@@ -775,7 +783,8 @@ export default defineComponent({
775783
datePickerValue,
776784
canDownloadReceipt,
777785
downloadReceipt,
778-
enableReceiptDownloadForRefunds
786+
enableReceiptDownloadForRefunds,
787+
successStatuses
779788
}
780789
}
781790
})

auth-web/src/resources/display-mappers/invoice-status-display.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const invoiceStatusDisplay = {
1111
[InvoiceStatus.OVERDUE]: 'Overdue',
1212
[InvoiceStatus.PAID]: 'Completed',
1313
[InvoiceStatus.PARTIAL]: 'Partial Paid',
14+
[InvoiceStatus.MANUAL_REFUNDED]: 'Manual Refunded',
1415
// Frontend only
1516
[InvoiceStatus.PENDING]: 'Pending',
1617
[InvoiceStatus.REFUNDED]: 'Refunded',

auth-web/src/util/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export enum InvoiceStatus {
179179
SETTLEMENT_SCHEDULED = 'SETTLEMENT_SCHED',
180180
UPDATE_REVENUE_ACCOUNT = 'GL_UPDATED',
181181
UPDATE_REVENUE_ACCOUNT_REFUND = 'GL_UPDATED_REFUND',
182+
MANUAL_REFUNDED = 'MANUAL_REFUNDED',
182183
// Not in pay-api, but shown in transaction table
183184
PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED',
184185
PARTIALLY_CREDITED = 'PARTIALLY_CREDITED'

0 commit comments

Comments
 (0)