Subversion Repositories SmartDukaan

Rev

Rev 32261 | Blame | Compare with Previous | Last modification | View Log | RSS feed




#if($purchaseGrnRequest)

         <div class="row"> 
      
                <div  style="background:white;background-color:white;padding:10px;">
                        <h4 class="modelHeaderCustom" style="font-size:22px;">Grn Pending Request</h4>
                    </div>
                        
    </div>      
   <div class="row">
                <div class="col-lg-12">
                    <table class="table table-border table-condensed table-bordered" id="grn-request-table" style="width:100%">
                                <thead>
                                        <tr>                            
                                                <th>PoId</th>
                                                <th>Item</th>
                                                <th>Qty</th>
                                                <th>Excess Qty</th>
                                                <th>Price Mismatch</th>         
                                                                                        
                                        </tr>
                                </thead>
                                <tbody>
                                   #if(!$grnRequestItems.isEmpty())
                                   #foreach($grnRequestItem in $grnRequestItems)
                                   <tr>
                                      <td>$grnRequestItem.getPoId() </td>
                                      <td>$itemMap.get($grnRequestItem.getItemId()).getItemDescription()</td>
                                              <td>$grnRequestItem.getQty() </td>
                                      <td>$grnRequestItem.getExcessQty() </td>
                                      <td>$grnRequestItem.getMismatch() </td>
                                     
                                  </tr> 
                                                          
                                        #end               
                                   #end
                                   
                                </tbody>
                        </table>
                        
                </div>
            </div>
      #else
         <div class="row"> 
      
                 <div class="col-lg-2 form-group">
                 #if($purchaseApprovedGrnRequest)               
                        <input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()"   data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item" disable>       
                         #else
                                <input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()"   data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item">       
         
                         #end
                        </div>
                        
    </div>      
        
        
       <div class="row">
                <div class="col-lg-12">
                    <table class="table table-border table-condensed table-bordered" id="invoice-order-table" style="width:100%">
                                <thead>
                                        <tr>
                                        
                                                <th>Product Name</th>
                                                <th>Qty</th>
                                                <th>Rate</th>
                                                <th>Action</th>
                                                
                                        </tr>
                                </thead>
                                <tbody>
                                   #if(!$warehouseInvoiceItems.isEmpty())
                                   #foreach($warehouseInvoiceItem in $warehouseInvoiceItems)
                                   <tr>
                                   <td> $itemMap.get($warehouseInvoiceItem.getItemId()).getItemDescription()</td>
                                   
                                   #if($purchaseApprovedGrnRequest)
                                                <td>  <input type="number" class="form-control qty"  name = "qty"  value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity" disable/> </td>
                                                <td>  <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate" disable/> </td>
                                                #else
                                                <td>  <input type="number" class="form-control qty"  name = "qty"  value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity"/> </td>
                                                <td>  <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate"/> </td>
                                        
                                                #end
                                                <td> <input class="form-control btn btn-primary removeInInvoiceItem" data-invoiceid = "$warehouseSupplierInvoice.getId()" data-itemid = "$warehouseInvoiceItem.getItemId()" type="button" value="Remove"></td> 
                                         </tr> 
                                                          
                                        #end               
                                   #end
                                   
                                </tbody>
                        </table>
                        
                </div>
            </div>
            
 <div class="row"> 
      
                 <div class="col-lg-2 form-group">
                        <input class="form-control btn btn-primary saveInvoiceDetail"  data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-supplierid = "$warehouseSupplierInvoice.getSupplierId()" data-warehouseid = "$warehouseSupplierInvoice.getWarehouseId()"  data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Save">        
                        </div>
                        
                        
                        
                        <div class="col-lg-2 form-group">
                        <input class="form-control btn btn-primary validateInvoiceDetail"  data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-supplierid = "$warehouseSupplierInvoice.getSupplierId()" data-warehouseid = "$warehouseSupplierInvoice.getWarehouseId()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Validate"> 
                        </div>
                        
    </div>      
    #end