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

21560 - EFT Payment reminder template updates #2991

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

ochiu
Copy link
Collaborator

@ochiu ochiu commented Sep 3, 2024

Issue #:
bcgov/entity#21560

Description of changes:

  • Update EFT payment reminder / due templates

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).

Copy link

sonarqubecloud bot commented Sep 3, 2024

@ochiu ochiu marked this pull request as ready for review September 3, 2024 20:16
{% if short_name_links_count > 1 %}
There's an amount owing on your account for your {{ statement_month }} statement (#{{ statement_number }}), which is due today {{ due_date }}.
{% else %}
There's an amount owing of {{ total_amount_owing }} on your account for your {{ statement_month }} statement (#{{ statement_number }}), which is due today {{ due_date }}.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't it possible to combine these a bit more?

Copy link
Collaborator

Choose a reason for hiding this comment

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

GPT:

{% set owing_message = "There's an amount owing" %}
{% set amount_details = '' if short_name_links_count > 1 else ' of {{ total_amount_owing }}' %}
{{ owing_message }}{{ amount_details }} on your account for your {{ statement_month }} statement (#{{ statement_number }}), which is due today {{ due_date }}.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Possibly, I prefer the whole sentence rather trying to combine fragments though when we have to modify it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, then you'll be modifying it twice if the base sentence needs to change


## {{ account_number }}: {{ account_name_with_branch }}
{% if short_name_links_count > 1 %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@ochiu ochiu merged commit 940115a into bcgov:main Sep 3, 2024
5 of 6 checks passed
pwei1018 pushed a commit to pwei1018/sbc-auth that referenced this pull request Sep 10, 2024
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