Subversion Repositories SmartDukaan

Rev

Rev 34036 | Rev 34095 | 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">&times;</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 brandFocusedStockDetail" data-brand="$bnd"
                                          data-fofoid="$fofoId">
                                          <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>Our Stock</th>
                                                                                  <th>P-Fullfilled</th>
                                                                                  <th>P-Shortage</th>
                                                                                  <th>P-CurrentQty</th>
                                                                                  <th>Aging</th>
                                                                          </tr>
                                                                          </thead>
                                                                          <tbody>
                                                                                  #foreach($stocklist in $statusModelMap.get($statusKey))
                                                                                  <tr>
                                                                                          <td>$stocklist.getModelNumber()</td>
                                                                                          <td>$stocklist.getNetAvailability()</td>
                                                                                          <td>$stocklist.getPartnerStockAvailability()</td>
                                                                                          <td>$stocklist.getPartnerShortageStock()</td>
                                                                                          <td>$stocklist.getPartnerCurrentAvailability()</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>

  #end
          <div id="itemWiseBrandStockDetail">

          </div>
  </div>


<div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>

</div>