| 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">
|
| 32311 |
tejbeer |
50 |
#if($purchaseApprovedGrnRequest)
|
|
|
51 |
<input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item" disable>
|
|
|
52 |
#else
|
|
|
53 |
<input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item">
|
|
|
54 |
|
|
|
55 |
#end
|
| 32192 |
tejbeer |
56 |
</div>
|
|
|
57 |
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
<div class="row">
|
|
|
62 |
<div class="col-lg-12">
|
|
|
63 |
<table class="table table-border table-condensed table-bordered" id="invoice-order-table" style="width:100%">
|
|
|
64 |
<thead>
|
|
|
65 |
<tr>
|
|
|
66 |
|
|
|
67 |
<th>Product Name</th>
|
|
|
68 |
<th>Qty</th>
|
|
|
69 |
<th>Rate</th>
|
|
|
70 |
<th>Action</th>
|
|
|
71 |
|
|
|
72 |
</tr>
|
|
|
73 |
</thead>
|
|
|
74 |
<tbody>
|
|
|
75 |
#if(!$warehouseInvoiceItems.isEmpty())
|
|
|
76 |
#foreach($warehouseInvoiceItem in $warehouseInvoiceItems)
|
|
|
77 |
<tr>
|
|
|
78 |
<td> $itemMap.get($warehouseInvoiceItem.getItemId()).getItemDescription()</td>
|
| 32311 |
tejbeer |
79 |
|
|
|
80 |
#if($purchaseApprovedGrnRequest)
|
|
|
81 |
<td> <input type="number" class="form-control qty" name = "qty" value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity" disable/> </td>
|
|
|
82 |
<td> <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate" disable/> </td>
|
|
|
83 |
#else
|
| 32192 |
tejbeer |
84 |
<td> <input type="number" class="form-control qty" name = "qty" value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity"/> </td>
|
|
|
85 |
<td> <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate"/> </td>
|
| 32311 |
tejbeer |
86 |
|
|
|
87 |
#end
|
| 32192 |
tejbeer |
88 |
<td> <input class="form-control btn btn-primary removeInInvoiceItem" data-invoiceid = "$warehouseSupplierInvoice.getId()" data-itemid = "$warehouseInvoiceItem.getItemId()" type="button" value="Remove"></td>
|
|
|
89 |
</tr>
|
|
|
90 |
|
|
|
91 |
#end
|
|
|
92 |
#end
|
|
|
93 |
|
|
|
94 |
</tbody>
|
|
|
95 |
</table>
|
|
|
96 |
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
|
|
|
100 |
<div class="row">
|
|
|
101 |
|
|
|
102 |
<div class="col-lg-2 form-group">
|
|
|
103 |
<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">
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
<div class="col-lg-2 form-group">
|
|
|
109 |
<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">
|
|
|
110 |
</div>
|
|
|
111 |
|
| 32256 |
tejbeer |
112 |
</div>
|
|
|
113 |
#end
|