Rev 31897 | Rev 34036 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>h5 { text-align: center;background-color: lightgray;padding: 5px;font-size: 16px;}#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: '+';}.tab-inactive {background-color: #cccccc47;border-radius: 4px;}</style><div class="modal-header"><button type="button" class="close" style="margin:-10px" data-dismiss="modal">×</button><h4 class="modal-title"> Stock Info ($customRetailer.getBusinessName())</h4></div><div class="modal-body" style="height:400px;overflow:auto;">#if($brand != "undefined")<div class = "row"><div class="col-md-12"><ul class="nav nav-pills">#foreach($bnd in $brands)<li class="tab-inactive #if($bnd == $brand) active #end"><a data-toggle="pill" href="#tab_$bnd">$bnd</a></li>#end</ul><hr><div class="tab-content">#foreach($bnd in $brands)#set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))<div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end"><!-- Subtabs --><ul class="nav nav-pills">#if($statusModelMap && !$statusModelMap.isEmpty())#foreach($statusKey in $statusModelMap.keySet())<li class="tab-inactive #if($foreach.index == 0) active #end"><a data-toggle="pill" href="#tab_${bnd}_$statusKey">$statusKey</a></li>#end#else<li>No data available</li>#end</ul><!-- Subtab Content --><div class="tab-content">#foreach($statusKey in $statusModelMap.keySet())<div id="tab_${bnd}_$statusKey"class="tab-pane fade #if($foreach.index == 0) in active #end"><table id="table_$bnd_$statusKey"class="table table-striped table-advance table-hover" style="width:100%"><thead><tr><th>Item</th><th>Brand</th><th>Our Stock</th><th>P-Fullfilled</th><th>P-Shortage</th><th>P-CurrentQty</th><th>Status</th><th>Aging</th></tr></thead><tbody>#foreach($stocklist in $statusModelMap.get($statusKey))<tr><td>$stocklist.getModelNumber()</td><td>$stocklist.getBrand()</td><td>$stocklist.getNetAvailability()</td><td>$stocklist.getPartnerStockAvailability()</td><td>$stocklist.getPartnerShortageStock()</td><td>$stocklist.getPartnerCurrentAvailability()</td><td>$stocklist.getStatus()</td><td>$stocklist.getExceedDays()</td></tr>#end</tbody></table></div>#end</div></div>#end</div></div>## <div class="col-lg-12">#### <h5> Focused Model </h5>## <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">## <thead>## <tr>## <th>Item</th>## <th>Pending Indent</th>## <th>In Stock</th>## <th>Shortage Qty</th>## <th>Availability</th>#### </tr>## </thead>## <tbody>#### #foreach($shortageList in $focusedModelShortageList)## <tr>## <td>$shortageList.getBrandName() $shortageList.getModelName() $shortageList.getModelNumber() </td>## <td>$shortageList.getPendingIndentQty()</td>###### #if($shortageList.getShortageQty() > $shortageList.getGrnStockQty())## <td style="color:red">$shortageList.getGrnStockQty()</td>## #else## <td>$shortageList.getGrnStockQty()</td>## #end#### #if($shortageList.getShortageQty() > 0 )## <td>$shortageList.getShortageQty()</td>## #else## <td>0</td>## #end## <td>$shortageList.getAvailability()</td>#### </tr>#### #end#### </tbody>## </table>#### </div></div><div class = "row"><hr style="border-top: 2px solid #ccc"><div class="col-lg-12"><h5> In Stock </h5><table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%"><thead><tr><th>Item</th><th>Qty</th></tr></thead><tbody>#foreach($inStock in $inStocks)<tr><td>$inStock.getItemDescription()</td><td>$inStock.getQty()</td></tr>#end</tbody></table></div></div><div class = "row"><div class="col-lg-12"><h5> Grn Pending </h5><table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%"><thead><tr><th>Item</th><th>Qty</th></tr></thead><tbody>#foreach($grnPending in $grnPendings)<tr><td>$grnPending.getItemDescription()</td><td>$grnPending.getQty()</td></tr>#end</tbody></table></div></div><div class = "row"><div class="col-lg-12"><h5> Pending Indent </h5><table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%"><thead><tr><th>Item</th><th>Qty</th></tr></thead><tbody>#foreach($pendingIndent in $pendingIndents)<tr><td>$pendingIndent.getItemDescription()</td><td>$pendingIndent.getQty()</td></tr>#end</tbody></table></div></div></div>#else<div class="row"><div class="col-lg-12"><h5> Focused Model </h5><table class="table table-advance" id = "brand-focused"><tbody><tr><th>#</th><th>Brand</th></tr>#set($index = 0)#foreach($focused in $focusedModelShortageBrandMap.entrySet())<tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#focused-$index"><td class="expand-button"></td><td>$focused.getKey()</td></tr><tr class="hide-table-padding"><td></td><td colspan="3"><div class="collapse p-3" id="focused-$index"><table class="table table-advance" ><tbody><tr><th>Item</th><th>Pending Indent</th><th>In Stock</th><th>Shortage Qty</th><th>Availability</th></tr>#foreach($item in $focused.getValue())<tr><td>$item.getBrandName() $item.getModelName() $item.getModelNumber() </td><td>$item.getPendingIndentQty()</td>#if($item.getShortageQty() > $item.getGrnStockQty())<td style = "color:red" >$item.getGrnStockQty()</td>#else<td>$item.getGrnStockQty()</td>#end#if($item.getShortageQty() > 0 )<td>$item.getShortageQty()</td>#else<td>0</td>#end<td>$item.getAvailabitiy()</td></tr>#end</tbody></table></div></td></tr>#set($index=$index+1)#end</tbody></table></div></div><div class = "row"><div class="col-lg-12"><h5> In Stock </h5><table class="table table-advance" id = "brand-instock"><tbody><tr><th>#</th><th>Brand</th></tr>#set($index = 0)#foreach($brand in $inStockBrandMap.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></tr><tr class="hide-table-padding"><td></td><td colspan="3"><div class="collapse p-3" id="brand-$index"><table class="table table-advance" ><tbody><tr><th width="36%">Item</th><th>Quantity</th></tr>#foreach($items in $brand.getValue())<tr><td>$items.getItemDescription()</td><td>$items.getQty()</td></tr>#end</tbody></table></div></td></tr>#set($index=$index+1)#end</tbody></table></div></div><div class = "row"><div class="col-lg-12"><h5> Grn Pending </h5><table class="table table-advance" id = "brand-grn"><tbody><tr><th>#</th><th>Brand</th></tr>#set($index = 0)#foreach($grnpending in $grnPendingBrandMap.entrySet())<tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#grn-$index"><td class="expand-button"></td><td>$grnpending.getKey()</td></tr><tr class="hide-table-padding"><td></td><td colspan="3"><div class="collapse p-3" id="grn-$index"><table class="table table-advance" ><tbody><tr><th width="36%">Item</th><th>Quantity</th></tr>#foreach($items in $grnpending.getValue())<tr><td>$items.getItemDescription()</td><td>$items.getQty()</td></tr>#end</tbody></table></div></td></tr>#set($index=$index+1)#end</tbody></table></div></div><div class = "row"><div class="col-lg-12"><h5> Pending Indent </h5><table class="table table-advance" id = "brand-pending"><tbody><tr><th>#</th><th>Brand</th></tr>#set($index = 0)#foreach($pendingIndent in $pendingIndentBrandMap.entrySet())<tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#pending-$index"><td class="expand-button"></td><td>$pendingIndent.getKey()</td></tr><tr class="hide-table-padding"><td></td><td colspan="3"><div class="collapse p-3" id="pending-$index"><table class="table table-advance" ><tbody><tr><th width="36%">Item</th><th>Quantity</th></tr>#foreach($items in $pendingIndent.getValue())<tr><td>$items.getItemDescription()</td><td>$items.getQty()</td></tr>#end</tbody></table></div></td></tr>#set($index=$index+1)#end</tbody></table></div></div>#end<div class="modal-footer"><button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button></div>