inveniosoftware / invenio-circulation

Library circulation module for Invenio.
https://invenio-circulation.readthedocs.io
MIT License
0 stars 18 forks source link

Automatic item assignment on pending loans #127

Closed BadrAly closed 4 years ago

BadrAly commented 4 years ago

According to the docs of the method transitions._update_document_pending_request_for_item, you should have a check to see if the document has no attached items or not before the item assignment.

Currently, if the document has items you will end up assigning all the pending loans to the checked-in item

The argument assign_item does not exist in version v1.0.0a16 so this method is executed after every check-in.

BadrAly commented 4 years ago

Fixed in version v1.0.0a21: only need to set assign_item=False in the config file for checked-in items