Subversion Repositories SmartDukaan

Rev

Rev 32256 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32192 tejbeer 1
 
32256 tejbeer 2
 
3
 
4
#if($purchaseGrnRequest)
5
 
6
	 <div class="row"> 
7
 
8
	       	<div  style="background:white;background-color:white;padding:10px;">
9
			<h4 class="modelHeaderCustom" style="font-size:22px;">Grn Pending Request</h4>
10
		    </div>
11
 
12
    </div>	
13
   <div class="row">
14
	    	<div class="col-lg-12">
15
	    	    <table class="table table-border table-condensed table-bordered" id="grn-request-table" style="width:100%">
16
	    			<thead>
17
	    				<tr> 				
18
	    					<th>PoId</th>
19
	    					<th>Item</th>
20
	    					<th>Qty</th>
21
	    					<th>Excess Qty</th>
22
	    					<th>Price Mismatch</th>		
23
 
24
	    				</tr>
25
	    			</thead>
26
	    			<tbody>
27
	    			   #if(!$grnRequestItems.isEmpty())
28
	    			   #foreach($grnRequestItem in $grnRequestItems)
29
	    			   <tr>
30
	    			      <td>$grnRequestItem.getPoId() </td>
31
	    			      <td>$itemMap.get($grnRequestItem.getItemId()).getItemDescription()</td>
32
					      <td>$grnRequestItem.getQty() </td>
33
	    			      <td>$grnRequestItem.getExcessQty() </td>
32261 tejbeer 34
	    			      <td>$grnRequestItem.getMismatch() </td>
32256 tejbeer 35
 
36
	    			  </tr> 
37
 
38
				    	#end		   
39
	    			   #end
40
 
41
	    			</tbody>
42
	    		</table>
43
 
44
	    	</div>
45
	    </div>
46
      #else
32192 tejbeer 47
     	 <div class="row"> 
48
 
49
	         <div class="col-lg-2 form-group">
50
	         	<input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()"   data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item">	
51
			</div>
52
 
53
    </div>	
54
 
55
 
56
       <div class="row">
57
	    	<div class="col-lg-12">
58
	    	    <table class="table table-border table-condensed table-bordered" id="invoice-order-table" style="width:100%">
59
	    			<thead>
60
	    				<tr>
61
 
62
	    					<th>Product Name</th>
63
	    					<th>Qty</th>
64
	    					<th>Rate</th>
65
	    					<th>Action</th>
66
 
67
	    				</tr>
68
	    			</thead>
69
	    			<tbody>
70
	    			   #if(!$warehouseInvoiceItems.isEmpty())
71
	    			   #foreach($warehouseInvoiceItem in $warehouseInvoiceItems)
72
	    			   <tr>
73
	    			   <td> $itemMap.get($warehouseInvoiceItem.getItemId()).getItemDescription()</td>
74
						<td>  <input type="number" class="form-control qty"  name = "qty"  value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity"/> </td>
75
						<td>  <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate"/> </td>
76
						<td> <input class="form-control btn btn-primary removeInInvoiceItem" data-invoiceid = "$warehouseSupplierInvoice.getId()" data-itemid = "$warehouseInvoiceItem.getItemId()" type="button" value="Remove"></td> 
77
					 </tr> 
78
 
79
				    	#end		   
80
	    			   #end
81
 
82
	    			</tbody>
83
	    		</table>
84
 
85
	    	</div>
86
	    </div>
87
 
88
 <div class="row"> 
89
 
90
	         <div class="col-lg-2 form-group">
91
	         	<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">	
92
			</div>
93
 
94
 
95
 
96
			<div class="col-lg-2 form-group">
97
	         	<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">	
98
			</div>
99
 
32256 tejbeer 100
    </div>	
101
    #end