Skip to content

Commit

Permalink
items: fix automatic checkin return informations
Browse files Browse the repository at this point in the history
* Fixes automatic_checkin return informations
* Closes #770

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
  • Loading branch information
zannkukai authored and iGor milhit committed Feb 19, 2020
1 parent 455f75a commit a522bfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rero_ils/modules/items/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,9 @@ def automatic_checkin(self, trans_loc_pid=None):
if do_receive:
return self.receive(pid=loan_pid, **data)
return self, {
LoanAction.NO: None
# None action are available. Send anyway last known loan
# informations.
LoanAction.NO: loan
}

if self.status == ItemStatus.MISSING:
Expand Down

0 comments on commit a522bfa

Please sign in to comment.