Skip to content

Commit

Permalink
circulation: add pickup name on checkin
Browse files Browse the repository at this point in the history
* Adds location pickup name when the loan is in at_desk status
  during the checkin.
* Closes rero/rero-ils#3433.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Oct 3, 2023
1 parent 0ffc47c commit 8bd4713
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projects/admin/src/app/circulation/item/item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@
</ng-container>
</li>
<li name="status" *ngSwitchCase="'on_shelf'">{{ item.status | translate }}</li>
<li *ngSwitchCase="'at_desk'">
{{ item.status | translate }}
<ng-container *ngIf="item.loan && item.loan.pickup_location">
({{ item.loan.pickup_location.pickup_name }})
</ng-container>
<ng-container *ngIf="!item.loan && item.pending_loans && item.pending_loans.length > 0 && item.pending_loans[0].pickup_location">
({{ item.pending_loans[0].pickup_location.pickup_name }})
</ng-container>
</li>
<li name="status" *ngSwitchDefault>{{ item.status | translate }}</li>
</ng-container>
<!-- RENEWALS, FEES, REQUESTS -->
Expand Down

0 comments on commit 8bd4713

Please sign in to comment.