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

Loan due date not truncated for patron expiration for some scenarios when CDDM is move to end of NEXT open day

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • None
    • None
    • Standard Bug Write-Up Format
    • EPAM-Veg Sprint 116
    • 0.5
    • Vega
    • R2 2021 Bugfix

    Description

      Overview:
      Related to implementation of CIRC-886 - truncated due date based on patron expiration. When closed due date management settings equal move to the end of next open day and the patron expiration is before the next open day, then the loan due date was incorrect.

      Steps to Reproduce:

      1. Setup a loan policy with Closed due date management equal to move to the end of next open day and a 5 day loan (Settings > Circulation > Loan policies)
      2. Add loan policy to circulation rules (Settings > Circulation > Circulation rules)
      3. Setup a user with an expiration date that will be prior to the previous open day
      4. Check out item to the user created above that meets conditions of circulation rules and applies the loan policy created above
        • Checked out on 6/3/21
        • To a patron that expired on 6/4/21

      Expected Results:

      • Due date with closed due date management and patron expiration should be 6/3/21, which is the same as check out since patron expiration is 6/4 and that's a closed day.

      Actual Results:

      • Due date is 6/6/21

      Additional Information:

      • Original due date before closed due date management or patron expiration is applied would be: 6/8/21
      • Due date with closed due date management and without patron expiration is applied would be: 6/10/21
      • See spreadsheet for two specific use cases that failed, including this one outlined.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                roman-barannyk Roman Barannyk
                dbranchini Darcy Branchini
                Alina Dorosh Alina Dorosh
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases