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

transaction: add library for patron transactions #1773

Merged
merged 1 commit into from Mar 30, 2021

Conversation

jma
Copy link
Contributor

@jma jma commented Mar 16, 2021

Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

Code review check list

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

@jma jma requested review from rerowep and lauren-d March 16, 2021 16:26
* Adds the library pid in the patron transaction index if the
  transaction is related to a loan.
* Closes rero#1533.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@jma jma force-pushed the maj-fees-pay-all-by-library branch from 1276c31 to f60bc78 Compare March 17, 2021 06:05
@@ -38,3 +38,7 @@ def enrich_patron_transaction_data(sender, json=None, record=None, index=None,
'pid': record.document_pid,
'type': 'documents'
}
json['library'] = {
'pid': record.library_pid,
'type': 'libraries'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need the type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not know. I made this to be consistent with documents.

@jma jma merged commit 0a67262 into rero:dev Mar 30, 2021
@jma jma deleted the maj-fees-pay-all-by-library branch January 13, 2022 14:48
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.

A librarian shouldn't be able to resolve fees of item not belonging to the login location
4 participants