Display Loan Policy Associated with Loan on Check Out

Description

Purpose: To display the loan policy associated with the checkout out item on Check Out. This was originally part of UICHKOUT-27 but had to be removed from that story because, per Michal, loan policy is missing on the loan object so the policy name is not present right now.

Scenarios:

  1. Scenario

    • Given the Checkout page:check_mark:

    • When an valid item is scanned:check_mark:

    • Then the associated loan policy should display in the scanned items pane as shown in the below linked mockup :check_mark:

  2. Scenario

    • Given a loan policy displaying for a checked out item on the Check out page:check_mark:

    • When displayed to a user with the permission "Settings (Circ): Can create, edit and remove loan policies":check_mark:

    • Then the loan policy is displayed as a link to the loan policy record in Settings:check_mark:

  3. Scenario

    • Given a loan policy displaying for a checked out item on the Check out page:check_mark:

    • When displayed to a user without the permission "Settings (Circ): Can create, edit and remove loan policies":check_mark:

    • Then the loan policy is displayed as plain text (not a link):check_mark:

Mockup: https://drive.google.com/file/d/0By8ccf5VV4EWQl9pdGM2ODJ3Qlk/view?usp=sharing

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Adam Shire February 13, 2018 at 1:30 PM

all scenarios tested successfully.

Cate Boerema January 29, 2018 at 11:50 AM

Testing of this seems to be blocked by https://folio-org.atlassian.net/browse/UICIRC-39#icft=UICIRC-39 (unless you know of a workaround). Marking blocked.

Michal Kuklis January 16, 2018 at 3:53 PM

Oh nice! I didn't realize that the loan contains the loan policy id now. Thanks ! That should be all I need.

Julian Ladisch January 16, 2018 at 3:48 PM

If you have a loan id then you can get the loan record that contains the loan policy id of the last loan or renewal: https://s3.amazonaws.com/foliodocs/api/mod-circulation/circulation.html#circulation_loans__loanId__get

If you do not have a loan but want to see what loan policy were applied when the item gets checked out our renewed then you need to invoke the apply endpoint: https://s3.amazonaws.com/foliodocs/api/mod-circulation/circulation.html#circulation_loan_rules_apply_get

Michal Kuklis January 16, 2018 at 3:28 PM

the work on https://folio-org.atlassian.net/browse/UICIRC-35 has been now done and I would like to take care of this one now. I was wondering is there an API I could use to fetch the Loan Policy for the given loan id? Is this the API I should be using? https://s3.amazonaws.com/foliodocs/api/mod-circulation/2/circulation.html#circulation-loan-rules-apply
Thanks!

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created November 27, 2017 at 12:39 PM
Updated September 11, 2018 at 8:45 AM
Resolved February 13, 2018 at 1:30 PM
TestRail: Cases
TestRail: Runs

Flag notifications