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

BE - Declared Lost/Aged to Lost: Do not bill patron for ACTUAL COST of lost item

    XMLWordPrintable

Details

    • EPAM-Veg Sprint 152, EPAM-Veg Sprint 153
    • 3
    • Vega
    • Orchid (R1 2023)

    Description

      User story split on May 20, 2022

      The Vega team requested that this user story be split into front end and back stories...

      • UIU-1863: Declared Lost/Aged to Lost: Bill patron for ACTUAL COST of lost item
      • CIRC-1538: BE - Declared Lost/Aged to Lost: Bill patron for ACTUAL COST of lost item

      Purpose: Bill the patron for the actual cost of a lost item.

      Story: As a staff member who charges patrons for lost items, I need to bill the patron the actual cost of an item he/she lost.

      Scenarios:

      1. Scenario
        • Given Confirm actual cost to bill patron modal open
        • When Confirm & save button pressed (and another user has not edited the record)
        • Then...
          • Create the 'Fee/fine record' and 'Fee/fine action record' for the ACTUAL COST lost item fee in the same manner as with SET COST, with the following exceptions:
            • The Fee/fine type will be 'Lost item fee (actual cost)' (which is a hidden value in the Manual charges table at Settings>Users>Fee/fine), is available as a field on the report and can be picked up there.
            • For SET COST we do not have Additional information for staff and Additional information for patron, like we do for ACTUAL COST. This data, collected on the Actual cost to bill <insert patron-last-name, patron-first-name patron-middle-name> modal, will need to be saved with the 'Fee/fine action record'.
            • The logged in person's name and service point will be saved as 'Created at' and 'Source.'
            • The Fee/fine owner is available as a field on the report and can be picked up there.
          • Close Confirm actual cost to bill patron modal, leaving user back at Lost items requiring actual cost
          • Display 'Success toast': A fee/fine of <insert amount> has been charged to <insert patron-last-name, patron-first-name patron-middle-name> (as shown in attached mock-up 5-charge-fee-success.png)
          • Replace Process button on Lost items requiring actual cost with Billed: <billed amount> (as shown in attached mock-up 5-charge-fee-success.png)

      On the BE side:

      Add new endpoint:

      POST /do-not-bill-actual-cost-lost-item-fee

      {
        "actualCostRecordId": "..."
      }
      

      This endpoint should:

      1. Set additional information (comments) in actual cost record (needs to be discussed with hollyolepm)
      2. Change actual cost record status to "deleted"

      TestRail: Results

        Attachments

          1. 1.png
            1.png
            82 kB
          2. 2.png
            2.png
            74 kB
          3. 3.png
            3.png
            78 kB
          4. image-2022-11-21-12-32-40-687.png
            image-2022-11-21-12-32-40-687.png
            74 kB
          5. image-2022-11-21-12-33-25-434.png
            image-2022-11-21-12-33-25-434.png
            75 kB
          6. image-2022-11-21-12-34-01-097.png
            image-2022-11-21-12-34-01-097.png
            71 kB

          Issue Links

            Activity

              People

                roman-barannyk Roman Barannyk
                hollyolepm Holly Mistlebauer
                Holly Mistlebauer Holly Mistlebauer
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases