Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

22678 - Rename field to oldestDueDate #2967

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.68",
"version": "2.6.69",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default defineComponent({
try {
const data = await orgStore.getStatementsSummary()
paymentOwingAmount.value = data?.totalDue
paymentDueDate.value = data?.oldestOverdueDate
paymentDueDate.value = data?.oldestDueDate
return data
} catch (error) {
// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion auth-web/src/models/statement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface StatementSettings {
}

export interface StatementsSummary {
oldestOverdueDate?: string
oldestDueDate?: string
totalDue: number
}

Expand Down
6 changes: 3 additions & 3 deletions auth-web/tests/unit/components/OutstandingBalance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('OutstandingBalances.vue', () => {

wrapper = mount(OutstandingBalances, {
propsData: {
statementSummary: { 'oldestOverdueDate': '2023-12-01', 'totalDue': 351.5, 'totalInvoiceDue': 50.0 }
statementSummary: { 'oldestDueDate': '2023-12-01', 'totalDue': 351.5, 'totalInvoiceDue': 50.0 }
},
localVue,
vuetify
Expand All @@ -85,7 +85,7 @@ describe('OutstandingBalances.vue', () => {
localVue,
vuetify,
propsData: {
statementSummary: { 'oldestOverdueDate': '2023-12-01', 'totalDue': 351.5, 'totalInvoiceDue': 50.0 }
statementSummary: { 'oldestDueDate': '2023-12-01', 'totalDue': 351.5, 'totalInvoiceDue': 50.0 }
},
mocks: { $t
}
Expand All @@ -97,7 +97,7 @@ describe('OutstandingBalances.vue', () => {
// Change the prop value
const propsData = {
statementSummary: {
'oldestOverdueDate': '2023-12-01',
'oldestDueDate': '2023-12-01',
'totalDue': 551.5,
'totalInvoiceDue': 50.0
}
Expand Down
Loading