Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed


          
  <script>
   $(document).ready(function () {
        
      var dtable = $('#warehouse-purchase-order').DataTable({
           
            
       });
    
    }); 
 
 </script>

 
 <div class="col-lg-12">
            <table id="warehouse-purchase-order" class="table table-striped table-advance table-hover" >
              <thead>
                <tr>
                 <th> Id</th>
                 <th> Po Number </th>
                 <th> Supplier</th>  
                 <th> Buyer</th>  
                 <th> Total Cost </th>  
                 <th> Created On</th>
                             <th> Status </th>
                             <th> View</th>
                            
                </tr>
              </thead> 
                
              <tbody> 
              
              
                #foreach($purchaseOrder in $purchaseOrders)
                <tr>
                <td>$purchaseOrder.getId()</td>
                <td>$purchaseOrder.getPoNumber()</td>
                <td>$supplierMap.get($purchaseOrder.getSupplierId()).getName()</td>
               
                <td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
                <td>$purchaseOrder.getTotalCost()</td>
                <td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
                <td>$purchaseOrder.getStatus() </td> 
                <td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View"  data-poid="$purchaseOrder.getId()"
                                data-toggle="modal"
                                data-target="#warehouseLineItem"> </td> 
              
               </tr>
                 #end
                 
             </tbody>
             </table>
  </div>
  
  
      <div id="warehouseLineItem" class="modal" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">

            </div>
        </div>
    </div>
         
</section>