Skip to content

Commit

Permalink
OPS#3923 - Fix NSF status for online banking (#2820)
Browse files Browse the repository at this point in the history
* Fix nsf status

* put back missing lines
  • Loading branch information
seeker25 authored May 14, 2024
1 parent 5d6e104 commit 2b8fbd3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth-web/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 auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.10",
"version": "2.6.11",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
>
mdi-alert
</v-icon>
<b>{{ invoiceStatusDisplay[item.statusCode] }}</b>
<b>{{ getInvoiceStatus(item) }}</b>
<br>
<span
v-if="item.updatedOn"
Expand Down Expand Up @@ -143,12 +143,12 @@

<script lang="ts">
import { BaseVDataTable, DatePicker, IconTooltip } from '@/components'
import { InvoiceStatus, PaymentTypes } from '@/util/constants'
import { Ref, computed, defineComponent, nextTick, ref, watch } from '@vue/composition-api'
import { BaseTableHeaderI } from '@/components/datatable/interfaces'
import CommonUtils from '@/util/common-util'
import { DEFAULT_DATA_OPTIONS } from '@/components/datatable/resources'
import { DataOptions } from 'vuetify'
import { InvoiceStatus } from '@/util/constants'
import { Transaction } from '@/models'
import _ from 'lodash'
import { invoiceStatusDisplay } from '@/resources/display-mappers'
Expand All @@ -171,6 +171,15 @@ export default defineComponent({
const getHeaders = computed(() => props.headers)
const getInvoiceStatus = (item: Transaction) => {
// Special case for Online Banking - it shouldn't show NSF, should show Pending.
if (item.paymentMethod === PaymentTypes.ONLINE_BANKING &&
item.statusCode === InvoiceStatus.SETTLEMENT_SCHEDULED) {
return invoiceStatusDisplay[InvoiceStatus.PENDING]
}
return invoiceStatusDisplay[item.statusCode]
}
// date picker stuff
const dateRangeReset = ref(0)
const dateRangeSelected = ref(false)
Expand Down Expand Up @@ -264,7 +273,8 @@ export default defineComponent({
displayDate,
scrollToDatePicker,
updateDateRange,
loadTransactionList
loadTransactionList,
getInvoiceStatus
}
}
})
Expand Down

0 comments on commit 2b8fbd3

Please sign in to comment.