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

20417-EFT Short Name details #2814

Merged
merged 4 commits into from
May 10, 2024
Merged

20417-EFT Short Name details #2814

merged 4 commits into from
May 10, 2024

Conversation

ochiu
Copy link
Collaborator

@ochiu ochiu commented May 10, 2024

Issue #:
bcgov/entity#20417

Description of changes:

  • update short names detail account linking to support a table for multi linking (use updated endpoint)
  • update transaction table to be payment history showing Statement Paid and Funds Received (use updated endpoint)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@@ -131,14 +145,19 @@ export default defineComponent({
return `${height}px`
}

function isStatementPaid (item: any) {
return item?.transactionDescription === 'Statement Paid'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enum if possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added enum.

@@ -12,6 +12,11 @@ export default class CommonUtils {
return value?.startsWith('http')
}

// Format payment account display name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for the comment? could rename the function to exactly this if needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed comment

Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

'shortNameId': 2,
'statementId': 5407509,
'statusCode': 'LINKED',
'updatedBy': 'CODDYSEU',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd nuke this ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned this up.

'shortNameId': 2,
'statementId': 5407406,
'statusCode': 'LINKED',
'updatedBy': 'CODDYSEU',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd nuke this ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned this up.

Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small points i'd change

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@ochiu
Copy link
Collaborator Author

ochiu commented May 10, 2024

Unlinked Short name example:
Unlinked Short name details

Multi Linked short name example:
Multi Linked short name details

@ochiu ochiu marked this pull request as ready for review May 10, 2024 14:43
@ochiu ochiu merged commit ceed3e2 into main May 10, 2024
4 of 6 checks passed
@seeker25 seeker25 deleted the 20417-EFT-Shortname-details branch October 24, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants