Skip to content

bugfix/AB#29602-currency-formatting-payment-threshold#2141

Merged
DavidBrightBcGov merged 2 commits into
devfrom
bugfix/AB#29602-currency-formatting-payment-threshold
Mar 17, 2026
Merged

bugfix/AB#29602-currency-formatting-payment-threshold#2141
DavidBrightBcGov merged 2 commits into
devfrom
bugfix/AB#29602-currency-formatting-payment-threshold

Conversation

@DavidBrightBcGov
Copy link
Copy Markdown
Contributor

AB#29602

Added payment threshold input with currency masking

Added payment threshold input with currency masking
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 561
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a currency-masked “Approval Payment Threshold” input to the Payment Configuration UI to address AB#29602 and ensure the server receives an unformatted numeric value.

Changes:

  • Added jquery-maskMoney to the PaymentConfiguration widget script bundle.
  • Updated PaymentConfiguration threshold input to use a currency-masked text field and send an unmasked value on save.
  • Added a jQuery Validate normalizer for comma-stripping (currently placed in the AssessmentResults widget JS).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/PaymentConfiguration/PaymentConfigurationViewComponent.cs Adds jquery-maskMoney to the PaymentConfiguration script bundle.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/PaymentConfiguration/Default.js Sends unmasked threshold value to the save API; initializes currency masking.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/PaymentConfiguration/Default.cshtml Converts threshold input to a currency-masked text input and adds inline masking initialization.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/AssessmentResults/Default.js Adds a validation rule for #PaymentApprovalThreshold (but that element is not part of AssessmentResults).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

As per Sonarqube requirement, replaced "string.replace" with "string.replaceAll"
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 561
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@DavidBrightBcGov DavidBrightBcGov merged commit 6bf13fd into dev Mar 17, 2026
22 checks passed
@JamesPasta JamesPasta deleted the bugfix/AB#29602-currency-formatting-payment-threshold branch March 18, 2026 01:31
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