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

ORV2-1504: Applying for no-fee permits #1595

Merged
merged 29 commits into from
Sep 13, 2024
Merged

ORV2-1504: Applying for no-fee permits #1595

merged 29 commits into from
Sep 13, 2024

Conversation

zgong-gov
Copy link
Collaborator

@zgong-gov zgong-gov commented Sep 13, 2024

Description

  • Allow no-fee permit types to be used for all permits
  • Application review page and shopping cart items show $0 for fee summary when no-fee flag enabled, and normal fees when flag disabled
  • Amend refund works normally, except that permits with net amount of $0 gets refunded $0
  • Void refund works normally, except that permits with net amount of $0 gets refunded $0

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Set the no-fee flag in special authorizations page, and create a new application. Verify that the fee summary on the application review and shopping cart page (and cart items) all show fee summary of $0
  • Disable the no-fee flag in special authorizations page, and create a new application. Verify that the fee summary on the application review and shopping cart page (and cart items) all show correctly calculated (non-zero) fees
  • Amend a permit several times by reducing its duration or changing other values, and observe that for any permit that was initially purchased with non-zero dollars, regardless of how the no-fee flag is toggled during this amend process, the proper refund amount will always be refunded (ie. reducing 90 day duration to 60 days for TROS always refunds $30, regardless of no-fee flag)
  • Amend a permit paid with $0 several times by reducing its duration or changing other values, and observe that the refund amount is always $0, regardless of what values were changed for amend, and how the no-fee flag is toggled during this amend process
  • Void a permit paid with $0 and observe that the refund amount is always $0, regardless of what the no-fee flag status is in, nor the duration of the permit
  • Void a non-zero dollar permit, and observe that the original normal void behaviour still works as expected, regardless of the no-fee flag status

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are promoted to:

zgong-gov and others added 27 commits August 29, 2024 10:53
vehicles/src/common/helper/permit-fee.helper.ts Outdated Show resolved Hide resolved
vehicles/src/common/helper/permit-fee.helper.ts Outdated Show resolved Hide resolved
vehicles/src/common/helper/permit-fee.helper.ts Outdated Show resolved Hide resolved
vehicles/src/common/helper/permit-fee.helper.ts Outdated Show resolved Hide resolved
vehicles/src/common/helper/permit-fee.helper.ts Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 13, 2024

Copy link

sonarcloud bot commented Sep 13, 2024

Copy link

sonarcloud bot commented Sep 13, 2024

Copy link

sonarcloud bot commented Sep 13, 2024

Quality Gate Failed Quality Gate failed for 'onroutebc vehicles'

Failed conditions
7.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Sep 13, 2024

Quality Gate Failed Quality Gate failed for 'onroutebc frontend'

Failed conditions
21.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Collaborator

@praju-aot praju-aot left a comment

Choose a reason for hiding this comment

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

+1

@zgong-gov zgong-gov merged commit 5517651 into main Sep 13, 2024
21 of 23 checks passed
@zgong-gov zgong-gov deleted the ORV2-1504 branch September 13, 2024 20:06
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.

3 participants