Rev 31998 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>#brand-instock tr.hide-table-padding td {padding: 0;}.expand-button {position: relative;}.accordion-toggle .expand-button:after{position: absolute;left:.75rem;top: 50%;transform: translate(0, -50%);content: '-';}.accordion-toggle.collapsed .expand-button:after{content: '+';}</style><div class="modal-header"><button type="button" class="close" style="margin:-10px" data-dismiss="modal">×</button><h4 class="modal-title"> Aging Models</h4></div><div class="modal-body" style="height:400px;overflow:auto;"><div class="col-lg-12"><table class="table table-advance" id="partnerItemAging" ><thead><tr><th>#</th><th>Brand</th><th>Amount</th></tr></thead><tbody>#set($index = 0)#foreach($brand in $brandInventoryItemAging.entrySet())<tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#brand-$index"><td class="expand-button"></td><td>$brand.getKey()</td><td class="currency">$brandInventoryItemAging.get($brand.getKey())</td></tr><tr class="hide-table-padding"><td></td><td colspan="2"><div class="collapse p-2" id="brand-$index"><table class="table table-advance" ><tbody><tr><th>Id</th><th>Name</th><th>Item Type</th><th>Quantity</th><th>Amount</th></tr>#foreach($inventoryItemAgingModel in $inventoryItemAgingModelMap.get($brand.getKey()))</tr><td>$inventoryItemAgingModel.getItemId()</td><td>$inventoryItemAgingModel.getBrand() $inventoryItemAgingModel.getModelName() $inventoryItemAgingModel.getModelNumber() $inventoryItemAgingModel.getColor()</td><td>$inventoryItemAgingModel.getItemType()</td>#if(!$inventoryItemAgingModel.getValues().isEmpty())#if($inventoryItemAgingModel.getValues().get(1))#set($price = 0)#if($inventoryItemAgingModel.getValues().get(1).getPrice() != 0)#set($price = $inventoryItemAgingModel.getValues().get(1).getPrice())#end<td class="currency">$price</td> <td>$inventoryItemAgingModel.getValues().get(1).getQuantity()</td>#else<td style="text-align:center;">-</td><td style="text-align:center;">-</td>#end#end</tr>#end</tbody></table></div></td></tr>#set($index=$index+1)#end</tbody></table></div></div><div class="modal-footer"><button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button></div>