Merged PR 1641: #4370 Only show compartment code if available, never display orderNumber

#4370 Only show compartment code if available, never display orderNumber
This commit is contained in:
Nino Righi
2023-10-16 15:39:46 +00:00
committed by Lorenz Hilpert
parent ade3800568
commit f5d90f97e8
2 changed files with 5 additions and 12 deletions

View File

@@ -62,13 +62,10 @@
<div class="page-pickup-shelf-list-item__item-order-number-processing-status-paid flex flex-col">
<div
*ngIf="showCompartmentOrOrderNumber"
*ngIf="showCompartmentCode"
class="page-pickup-shelf-list-item__item-order-number text-h3 mb-[0.375rem] self-end font-bold break-all text-right"
>
<ng-container *ngIf="item?.compartmentCode; else orderNumber"
>{{ item?.compartmentCode }}{{ item?.compartmentInfo && '_' + item?.compartmentInfo }}</ng-container
>
<ng-template #orderNumber>{{ item?.orderNumber }}</ng-template>
{{ item?.compartmentCode }}{{ item?.compartmentInfo && '_' + item?.compartmentInfo }}
</div>
<div class="page-pickup-shelf-list-item__item-processing-paid-status flex flex-col font-bold self-end text-p2 mb-[0.375rem]">

View File

@@ -66,13 +66,9 @@ export class PickUpShelfListItemComponent {
return [256, 512, 1024, 2048, 4069].includes(this.item?.processingStatus);
}
// Zeige weder CompartmentCode noch OrderNumber an bei Status "bestellt" (16) und "nachbestellt" (8192)
get showCompartmentOrOrderNumber() {
return (
this.item.processingStatus !== 16 &&
this.item.processingStatus !== 8192 &&
(this.isTablet || this.isDesktopSmall || this.primaryOutletActive)
);
// Zeige nur CompartmentCode an wenn verfügbar
get showCompartmentCode() {
return !!this.item?.compartmentCode && (this.isTablet || this.isDesktopSmall || this.primaryOutletActive);
}
get processingStatusColor() {