-
Notifications
You must be signed in to change notification settings - Fork 25
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
selfcheck: fix patron informations #2248
Conversation
rero_ils/modules/selfcheck/api.py
Outdated
@@ -48,6 +48,7 @@ def selfcheck_login(name, access_token, **kwargs): | |||
""" | |||
terminal = SelfcheckTerminal.find_terminal(name=name) | |||
user = authorize_selfckeck_terminal(terminal, access_token, **kwargs) | |||
print('user', user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be removed!
rero_ils/modules/selfcheck/utils.py
Outdated
# Should never append, but can be imported from an old system | ||
formated_address = formated_address.replace(r'\n', ' ') | ||
formated_address = formated_address.replace(r'\r', ' ') | ||
formated_address = formated_address.replace('\n', ' ') | ||
formated_address = formated_address.replace('\r', ' ') | ||
return formated_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can chain these statements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the commit message.
No more comments
ce6f828
to
1e2fcf4
Compare
* Sets `institution_id` to the patron organisation `pid`. * Rounds the fees to cents. * Fixes patron language, email, phone. * Removes CR chars `\n`, `\r` from the patron address. * Adds the `due_date` in a checkout response even if the item has been already checked out. Co-Authored-by: Johnny Mariéthoz <[email protected]> Co-Authored-by: Igor Milhit <[email protected]>
1e2fcf4
to
23be33c
Compare
institution_id
to the patron organisationpid
.\n
,\r
from the patron address.due_date
in a checkout response even if the item has beenalready checked out.
Co-Authored-by: Johnny Mariéthoz [email protected]
Co-Authored-by: Igor Milhit [email protected]
Why are you opening this PR?
Dependencies
My PR depends on the following
rero-ils-ui
's PR(s):How to test?
Code review check list