Move Renewal Due Date Logic to the Server

Description

As I understand it, we have implemented the logic for calculating renewal due dates for based on loan policy in the front end. We need to move the logic to the back end so it can be used in other systems such as discovery services which will integrate with FOLIO via API.

Stories that have been added (some are complete, others aren't):

  • Renewal limit () - Renewal failure reason populated in UIU-484

  • Get Fixed Renewal Period from Loan Policy () - Renewal failure reason populated in UIU-484

  • Prevent Renewal if new calculated due date is less than or equal to current due date () - Renewal failure reason populated in UIU-484

  • Get Rolling Renewal Period from Loan Policy (Renew from System Date) () - No renewal failure in this story

  • Get Rolling Renewal Period from Loan Policy (Renew from Current Due Date) () - No renewal failure in this story

  • Get Alternate Rolling Renewal Period from Loan Policy (Renew from System Date) () - No renewal failure in this story

  • Get Alternate Rolling Renewal Period from Loan Policy (Renew from Current Due Date) ()

  • Get Alternate Fixed Renewal Period from Loan Policy () - Renewal failure reason populated in UIU-484

  • Truncate Renewal Period According to Fixed due date schedule (due date limit) () - Renewal failure reason populated in UIU-467

  • Multi-Reason Renewal Error Popup for Single-Loan Renewal ()- Renewal failures populated in UIU-484

  • Bulk Renew Loans Messaging () - No renewal failure in this story

  • Loan Policy: Add "No due date limit" to Alternate fixed due date schedule for renewals - ()

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema June 28, 2018 at 9:43 AM

Works for me. ?

Marc Johnson June 27, 2018 at 4:43 PM

I've unblocked this, as both versions of the renewal API are in place ( and ) and the UI is using the barcode based API. Can it be closed (similarly to )?

Emma Boettcher June 7, 2018 at 4:33 PM

added it to .

Cate Boerema June 7, 2018 at 4:17 PM

For the time being I'll put a simple check in for renewable = N, just to display a message, until we have an issue which describes the needed behaviour more fully. Shall I use "items with this loan policy cannot be renewed" for this interim message?

Yes, I like this message for now.

Do we need to add this as a scenario for the testers?

Yes, I think that's important. , can I ask you to add the scenario for this?

Aditya matukumalli June 7, 2018 at 1:21 PM

Yes, we can wait before testing and test it once is done.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 2, 2018 at 1:10 PM
Updated November 12, 2018 at 2:24 PM
Resolved July 9, 2018 at 12:55 PM
TestRail: Cases
TestRail: Runs