Skip to content

Fix issue when GST number is null#2724

Merged
GeorgeWalker merged 1 commit into
bcgov:masterfrom
areyeslo:ERA-108-Spinner-Supplier-Management-Screen
Jul 28, 2025
Merged

Fix issue when GST number is null#2724
GeorgeWalker merged 1 commit into
bcgov:masterfrom
areyeslo:ERA-108-Spinner-Supplier-Management-Screen

Conversation

@areyeslo
Copy link
Copy Markdown
Contributor

@areyeslo areyeslo commented Jul 28, 2025

Cause:
This issue is due to null values in the GST number in Dynamics. In the portal, we enforce that the user provides a value, but Dynamics might lack this validation.:
image

Fix:

  • The convertSupplierGSTNumberToFormModel method now safely handles cases where the input GST number is null, undefined, or empty by returning an object with empty string parts, preventing runtime errors.
  • Added detailed logging for error cases.

@GeorgeWalker GeorgeWalker added this pull request to the merge queue Jul 28, 2025
Merged via the queue into bcgov:master with commit 6875383 Jul 28, 2025
4 checks passed
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