| 35806 |
amit |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>GRN Correction</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>GRN Correction</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
|
|
|
12 |
<div class="row">
|
|
|
13 |
<div class="col-lg-12">
|
|
|
14 |
<div class="form-inline" style="margin-bottom:15px;">
|
|
|
15 |
<div class="form-group">
|
|
|
16 |
<label>Date Range: </label>
|
|
|
17 |
<input type="text" name="correction-duration" class="form-control daterange-picker" style="width:220px;" />
|
|
|
18 |
</div>
|
|
|
19 |
<button class="btn btn-primary searchCorrectionInvoices" style="margin-left:10px;">Search</button>
|
|
|
20 |
</div>
|
|
|
21 |
</div>
|
|
|
22 |
</div>
|
|
|
23 |
|
|
|
24 |
<div class="row">
|
|
|
25 |
<div class="col-lg-5">
|
|
|
26 |
<table id="correction-invoices" class="table table-striped table-advance table-hover">
|
|
|
27 |
<thead>
|
|
|
28 |
<tr>
|
|
|
29 |
<th>Invoice Id</th>
|
|
|
30 |
<th>Invoice #</th>
|
|
|
31 |
<th>Invoice Date</th>
|
|
|
32 |
<th>Supplier</th>
|
|
|
33 |
<th>Warehouse</th>
|
|
|
34 |
<th>Received By</th>
|
|
|
35 |
</tr>
|
|
|
36 |
</thead>
|
|
|
37 |
<tbody>
|
|
|
38 |
#foreach($invoice in $supplierInvoices)
|
|
|
39 |
<tr>
|
|
|
40 |
<td><a onclick="loadGrnCorrectionDetail($invoice.getId())">$invoice.getId()</a></td>
|
|
|
41 |
<td>$invoice.getInvoiceNumber()</td>
|
|
|
42 |
<td>$invoice.getInvoiceDate().toLocalDate()</td>
|
|
|
43 |
<td>#if($supplierMap.get($invoice.getSupplierId()))$supplierMap.get($invoice.getSupplierId()).getName()#end</td>
|
|
|
44 |
<td>#if($warehouseMap.get($invoice.getWarehouseId()))$warehouseMap.get($invoice.getWarehouseId())#end</td>
|
|
|
45 |
<td>$!invoice.getReceivedFrom()</td>
|
|
|
46 |
</tr>
|
|
|
47 |
#end
|
|
|
48 |
</tbody>
|
|
|
49 |
</table>
|
|
|
50 |
</div>
|
|
|
51 |
|
|
|
52 |
<div class="col-lg-7">
|
|
|
53 |
<div class="grnCorrectionDetailContainer">
|
|
|
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
</div>
|
|
|
57 |
</section>
|
|
|
58 |
|
|
|
59 |
<script>
|
|
|
60 |
$(function () {
|
|
|
61 |
$('input[name="correction-duration"]').daterangepicker({
|
|
|
62 |
locale: { format: 'YYYY-MM-DD' },
|
|
|
63 |
startDate: moment().subtract(30, 'days'),
|
|
|
64 |
endDate: moment()
|
|
|
65 |
});
|
|
|
66 |
|
|
|
67 |
$('#correction-invoices').DataTable({
|
|
|
68 |
"order": [[0, "desc"]],
|
|
|
69 |
"pageLength": 25
|
|
|
70 |
});
|
|
|
71 |
});
|
|
|
72 |
</script>
|