Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-1625

Due date is calculated incorrectly when fixed due date schedule is used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • None
    • EPAM-Veg Sprint 151
    • 2
    • Vega
    • Nolana (R3 2022)
    • TBD

    Description

      ssahu wrote in RRT chat:
       
      Wellesley reported that loan due dates are not set properly at the time of check out even though the fixed due date schedule is applied on the item .
       
      I tried to replicate the issue in Lotus Bugfest (https://bugfest-lotus.int.aws.folio.org/) and it is replicable.
       
      Steps to reproduce:
      1) Login to a Lotus bugfest environment
       
      2) Created a fixed due date schedule "Skidmore test" with two date ranges:
      Date range 1- 09/23/2022 - 09/25/2022. Due date-09/25/2022
      Date range 2- 09/26/2022 - 09/28/2022. Due date-09/28/2022
       
      3) Created a loan policy "Skidmore test Loan Policy" with the above fixed due date schedule attached.
       
      4) Check out an item to which loan policy "Skidmore test Loan Policy" applies on the day when second due date schedule starts.
      I used an item with material type audio – audio roll/loan type alternate (item barcode: 41111111112) and patron barcode 148935711 for the checkout today on 09/26/2022.

      The expected due date should be 09/28/2022 but it is showing 09/25/2022 which is the due date of previous due date schedule.
       
      Expected Results:
      09/28/2022 due date
       
      Actual Results:
      09/25/2022 due date
       
      Module versions:
      mod-circulation-23.0.11
      mod-circulation-storage-14.0.2

      TestRail: Results

        Attachments

          1. loan_policy.png
            loan_policy.png
            220 kB
          2. loan.png
            loan.png
            164 kB
          3. schedule_request.png
            schedule_request.png
            160 kB
          4. schedule_response.png
            schedule_response.png
            168 kB
          5. schedule.png
            schedule.png
            221 kB

          Activity

            People

              OleksandrVidinieiev Oleksandr Vidinieiev
              OleksandrVidinieiev Oleksandr Vidinieiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases