Uploaded image for project: 'mod-feesfines'
  1. mod-feesfines
  2. MODFEE-13

BE - Add fee/fine tokens to patron notices

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 15.6.0
    • None
    • EPAM-Veg Sprint 23
    • 8
    • Vega

    Description

      Use cases - Manual fee/fines

      • A patron rents a locker for $15.00. A notice will be sent to the patron to indicate the fee they've incurred. No items are associated with this fee.
      • A patron rents a locker for $15.00 and now $15.00 is paid (in full). A notice will be sent to the patron to indicate that a $15.00 payment was received.
      • A patron rents a locker for $15.00 and now $10.00 is waived and $5.00 is paid. A notice will be sent to indicate that $10.00 was waived and $5.00 was paid.
      • A patron rents a locker for $15.00, $5.00 was paid on Aug 5, 2019 and now $10.00 is paid. A notice will be sent to indicate that $5.00 was paid on Aug 5, 2019 and $10.00 was paid now.
      • A patron returns an item that is damaged. A $20.00 fee is incurred. A notice will be sent to the patron to indicate the fee they've incurred with a reference to the damaged item.

      Use cases - Automated fee/fines (currently in development, including for reference only)

      • A patron borrows an item, it's overdue by 5 days so an automated fee of $1.00 is incurred which triggers a notice sent to the patron with the details of the fee.
      • A patron borrows an item, it's overdue by 10 days so an additional automated fee of $1.00 (on top of the already $1.00 incurred above) is incurred which triggers a notice sent to the patron with the details of the fee.

      Fee/fine tokens:

      Token Data Source Placeholder for Preview Notes
      fee.owner fee Main Library  
      fee.type fee Locker rental  
      fee.amount fee $15.00 Monetary localization
      fee.actionType fee Payment Others include waive, refund, cancel
      fee.actionAmount fee $5.00 Monetary localization
      fee.actionDateTime fee Aug 5, 2019 Date/time localization
      fee.balance fee $10.00 Monetary localization, balance for this fee only
      fee.actionAdditionalInfo fee Additional information regarding the fee/fine  
      fee.reasonForCancellation fee    

      Needs to support two multiples - multiple fee/fines and multiple actions on a specific fee/fine.

      Scenarios:

      Scenario 1

      Scenario 2

      • Given view mode for a patron notice template (Settings > Circulation > Patron notices templates)
      • When the template content is displayed in the body field
      • Then the token label with curly braces should be display. For example, "fee.balance"

      Scenario 3

      • Given view, edit or create mode for a patron notice template (Settings > Circulation > Patron notices templates)
      • When preview is clicked
      • Then the placeholder text for preview listed in the table above should be displayed instead of the token label with curly braces. For example, "$15.00" instead of "fee.balance"

      Scenario 4

      • Given a patron notice for a fee/fine charge or fee/fine payment
      • When it is sent to the patron via email
      • Then the real values for each token should be rendered.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Tur Dmytro Tur
                dbranchini Darcy Branchini
                Darcy Branchini Darcy Branchini
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases