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 3246b53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,17 @@
</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">
<ng-container *ngIf="item.loan.pickup_location.pickup_name; else pickupName">
({{ item.loan.pickup_location.pickup_name }})
</ng-container>
<ng-template #pickupName>
({{ item.loan.transaction_location_pid | getRecord: 'locations':'field':'pickup_name' | async }})
</ng-template>
</ng-container>
</li>
<li name="status" *ngSwitchDefault>{{ item.status | translate }}</li>
</ng-container>
<!-- RENEWALS, FEES, REQUESTS -->
Expand Down

0 comments on commit 3246b53

Please sign in to comment.