FE | Make the token "feeCharge.additionalInfo" selectable for automated f/f adjustment notice templates

Description

Purpose: The token "feeCharge.additionalInfo" should be selectable for notice templates Category = "Automated fee/fine adjustment (refund or cancel)", so that the comment left for the patron when charging Actual Cost can be visible on the email.

Scenarios:

1. Scenario:

  • Given: Settings  >>  Circulation  >>  Patron notice templates  >> Open existing template OR +New  >> Category = Automated fee/fine adjustment (refund or cancel)

  • When: I click on the tokens button in the template editor, which opens the “Add token” window,

  • Then: I see the token "feeCharge.additionalInfo" available to be selected.

2. Scenario:

  • Given: the „Add token“ window is open,

  • When: I select the token “feeCharge.additionalInfo”, and no other token is selected,

  • Then: the „Add token“ button activates.

3. Scenario:

  • Given: the token “feeCharge.additionalInfo” is selected in the “Add token” window, whether or not other tokens are selected,

  • When: I click on “Add token”,

  • Then: the token appears in the Body field + the “Save & close” button activates.

4. Scenario:

  • Given: the token “feeCharge.additionalInfo” is entered in the Body field,

  • When: I click on “Preview”,

  • Then: I see sample data: “This is a text field intended to provide additional information for the patron regarding the fee/fine.”.

5. Scenario:

  • Given: the token “feeCharge.additionalInfo” is entered in the Body field, whether or not other tokens or text are also entered in the Body field  +  all other required fields of the template are filed out,

  • When: I click on “Save & close”,

  • Then: the notice template saves + I return to the four pane view of the patron notice templates, with the notice template that I just edited selected and visible (as per the current behaviour).

6. Scenario:

  • Given: Settings  >>  Circulation  >>  Patron notice templates  >> I have selected a notice template which contains the token “feeCharge.additionalInfo”,

  • When: I click on “Preview”,

  • Then: I see sample data: “This is a text field intended to provide additional information for the patron regarding the fee/fine.”.

7. Scenario:

  • Given: I have received an email, the notice template of which contains the token “feeCharge.additionalInfo”,

  • When: I look at the text of that token in the live email,

  • Then: I see the plain text added in the field "Additional information for patron"

Environment

None

Potential Workaround

None

Attachments

7

Checklist

hide

TestRail: Results

Activity

Show:

Irina PokhyletsApril 7, 2023 at 11:59 AM

Tested on https://folio-snapshot.dev.folio.org/. All scenarios passed. 

Nika MindadzeApril 6, 2023 at 1:05 PM

Tested works as expected   please verify

Priyanka TeralaApril 6, 2023 at 6:41 AM

Picking BE changes that of for feeCharge.additionalInfo from snapshot in order to demonstrate scenario 7 of the requirements.

Patron notice template with feeCharge.additionalInfo token added to its body

Patron Notice Policy setting to pick the above template setting and triggered on lost item return

 

Work flow for Item - checkout -> declared as lost by patron -> charge actual cost -> checkin

 

Received Email Notification -

 

Changes are reflecting on snapshot. Please verify.

Priyanka TeralaMarch 30, 2023 at 9:20 AM
Edited

This screen cast from snapshot covers scenarios 1 - 6 from the requirements above. Scenario7 needs BE changes associated with tickets linked as required to this ticket.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Volaris

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 7, 2022 at 1:10 PM
Updated July 12, 2024 at 8:49 AM
Resolved April 10, 2023 at 12:48 PM
TestRail: Cases
TestRail: Runs