Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loans: dumping related circulation policy #2589

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

zannkukai
Copy link
Contributor

Creates an API endpoint to allow dumping the circulation
policies informations related to a loan.

Co-Authored-by: Renaud Michotte [email protected]

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai self-assigned this Dec 9, 2021
@zannkukai zannkukai added this to the v1.8.0 milestone Dec 9, 2021
Copy link

@BadrAly BadrAly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should also note that this circulation policy is not, all the time, the policy used for the loan.
If after a checkout, the item has changed its itty, temp_itty or loc then the api will return a new circ policy which is not really the one used for the loan. same applies if patron changes its ptty.
so this api is most of the time correct except the two cases above.

future enhancement: would be nice to have the used circ_policy at the time of the checkout inside the loan object.

rero_ils/modules/loans/api_views.py Outdated Show resolved Hide resolved
rero_ils/modules/circ_policies/api.py Outdated Show resolved Hide resolved
Creates an API endpoint to allow dumping the circulation
policies informations related to a loan.

Co-Authored-by: Renaud Michotte <[email protected]>
@zannkukai zannkukai merged commit 9c44cf7 into rero:staging Dec 20, 2021
@zannkukai zannkukai deleted the zan-dump-loan-cipo branch December 20, 2021 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants