#4120 Marker Bezahlt über KulturPass in der Ergebnisliste

This commit is contained in:
Lorenz Hilpert
2023-06-15 13:51:57 +02:00
parent 6ba65f031b
commit 8d1a63e47f
2 changed files with 13 additions and 1 deletions

View File

@@ -2,10 +2,18 @@
{{ item?.compartmentCode }}
{{ item.compartmentInfo && '_' + item.compartmentInfo }}
</div>
<div class="goods-in-out-order-group-item-paid" *ngIf="item.features?.paid">
<div class="goods-in-out-order-group-item-paid" *ngIf="item.features?.paid && !isKulturpass">
<ui-icon size="12px" icon="check"></ui-icon>
<strong> {{ item.features?.paid }} </strong>
</div>
<div class="goods-in-out-order-group-item-paid text-[#26830C]" *ngIf="isKulturpass">
<svg class="fill-current mr-2" xmlns="http://www.w3.org/2000/svg" height="22" viewBox="0 -960 960 960" width="22">
<path
d="M880-740v520q0 24-18 42t-42 18H140q-24 0-42-18t-18-42v-520q0-24 18-42t42-18h680q24 0 42 18t18 42ZM140-631h680v-109H140v109Zm0 129v282h680v-282H140Zm0 282v-520 520Z"
/>
</svg>
<strong> Bezahlt über KulturPass </strong>
</div>
<div class="goods-in-out-order-group-item-details">
<div class="goods-in-out-order-group-item-details-thumbnail">
<img loading="lazy" *ngIf="item?.product?.ean | productImage; let productImage" [src]="productImage" [alt]="item?.product?.name" />

View File

@@ -84,6 +84,10 @@ export class GoodsInOutOrderGroupItemComponent extends ComponentStore<GoodsInOut
return (this.item as any)?.cruda;
}
get isKulturpass() {
return this.item?.['externalRepositories']?.includes('kulturpass');
}
constructor() {
super({
selected: false,