Skip to content

Commit

Permalink
fix(circulation): no loan info on receive
Browse files Browse the repository at this point in the history
* When performing a receive action on a loan, the ui didn't append
the loan info and so the item could be treated as having no loan.
* Closes rero/rero-ils#3612.

Co-Authored-by: Johnny Mariéthoz <johnny.mariethoz@rero.ch>
Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
  • Loading branch information
PascalRepond and jma committed Feb 28, 2024
1 parent faf86f0 commit 18c5295
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/admin/src/app/service/items.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export class ItemsService {
if (data.action_applied[ItemAction.checkin]) {
loan = data.action_applied[ItemAction.checkin];
}
if (data.action_applied[ItemAction.receive]) {
loan = data.action_applied[ItemAction.receive];
}
if (data.action_applied[ItemAction.validate]) {
loan = data.action_applied[ItemAction.validate];
}
Expand Down

0 comments on commit 18c5295

Please sign in to comment.