Skip to content
Snippets Groups Projects
Commit 385f11a2 authored by FrankR's avatar FrankR
Browse files

removed two columns and fixed bug that the cell-colour was not displayed...

removed two columns and fixed bug that the cell-colour was not displayed correctly when the field "isCorrect" is not present (it is deliberately not included if the default value is sent, i.e., false)
parent 998377e6
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
<th mat-header-cell *matHeaderCellDef> Inventory Ist </th>
<td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.inventoryItemIst">
<mat-basic-chip selected [style]="item.inventoryIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'">
<mat-basic-chip selected [style]="item.inventoryIsCorrect === true ? 'background-color:green; color:white' : 'background-color:red; color:white'">
{{item.inventoryItemIst}}
</mat-basic-chip>
</mat-chip-list>
......@@ -50,7 +50,7 @@
</th>
<td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.shipmentBinNrIst">
<mat-basic-chip selected [style]="item.shipmentIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'">
<mat-basic-chip selected [style]="item.shipmentIsCorrect === true ? 'background-color:green; color:white' : 'background-color:red; color:white'">
{{item.shipmentBinNrIst}}
</mat-basic-chip>
</mat-chip-list>
......
......@@ -53,7 +53,7 @@ export class PickListComponent implements OnInit {
private subsPosition: Subscription;
displayedColumns: string[] = ['index', 'product', 'inventory_soll', 'inventory_ist', 'shipment_soll', 'shipment_ist', 'picker', 'list'];
displayedColumns: string[] = ['index', 'product', 'inventory_soll', 'inventory_ist', 'shipment_soll', 'shipment_ist'];
tableData: any;
pickListData: any;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment