Skip to content

Commit

Permalink
Highlighted the name of product when quantity is less
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish kumar committed Jan 12, 2024
1 parent a6bf271 commit f65d7e5
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ <h2>{{::vm.translate.get('Stock management for warehouse')}} <strong>{{ vm.selec
<th ng-show="!vm.isLoading" colspan="6">{{vm.tableStateRef.pagination.totalItemCount | number:0}} {{::vm.translate.get('records found')}}</th>
</tr>
</thead>
<tbody ng-show="!vm.isLoading">
<tr ng-repeat="item in vm.stocks">
<td>{{item.productName}}</td>
<td>{{item.productSku}}</td>
<td class="text-right">{{item.quantity}}</td>
<td>
<input class="form-control text-right" ng-model="item.adjustedQuantity" />
</td>
<td>
<input class="form-control" ng-model="item.note" />
</td>
<td>
<a ui-sref="stock-history({warehouseId: vm.selectedWarehouse.id, productId : item.productId})">{{::vm.translate.get('View History')}}</a>
</td>
</tr>
</tbody>
<tbody ng-show="!vm.isLoading">
<tr ng-repeat="item in vm.stocks" style="{{item.quantity < 2 ? 'background-color: yellow;' : ''}}">
<td style="{{item.quantity < 2 ? 'background-color: yellow;' : ''}}">{{item.productName}}</td>
<td style="{{item.quantity < 2 ? 'background-color: yellow;' : ''}}">{{item.productSku}}</td>
<td class="text-right" style="{{item.quantity < 2 ? 'background-color: yellow;' : ''}}">{{item.quantity}}</td>
<td>
<input class="form-control text-right" ng-model="item.adjustedQuantity" />
</td>
<td>
<input class="form-control" ng-model="item.note" />
</td>
<td>
<a ui-sref="stock-history({warehouseId: vm.selectedWarehouse.id, productId : item.productId})">{{::vm.translate.get('View History')}}</a>
</td>
</tr>
</tbody>
<tbody ng-show="vm.isLoading">
<tr>
<td colspan="6" class="text-center">Loading ... </td>
Expand Down

0 comments on commit f65d7e5

Please sign in to comment.