| 23076 |
ashik.ali |
1 |
<style>
|
|
|
2 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
3 |
background: white;
|
|
|
4 |
background-color: white;
|
|
|
5 |
}
|
|
|
6 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
7 |
background: white;
|
|
|
8 |
background-color:white;
|
|
|
9 |
}
|
|
|
10 |
.table-striped > tbody > tr:hover > td,
|
|
|
11 |
.table-striped > tbody > tr:hover {
|
| 23181 |
ashik.ali |
12 |
background-color: #e98c8f;
|
| 23076 |
ashik.ali |
13 |
color:white;
|
|
|
14 |
}
|
|
|
15 |
.btn:hover{
|
|
|
16 |
color: grey;
|
|
|
17 |
text-decoration: none;
|
|
|
18 |
}
|
|
|
19 |
.btn-primary:hover{
|
|
|
20 |
color: grey;
|
|
|
21 |
text-decoration: none;
|
|
|
22 |
}
|
|
|
23 |
.grn-details{
|
|
|
24 |
cursor:pointer;
|
|
|
25 |
}
|
|
|
26 |
</style>
|
|
|
27 |
<script>
|
|
|
28 |
$(function() {
|
|
|
29 |
|
|
|
30 |
var start = moment().subtract(29, 'days');
|
|
|
31 |
var end = moment();
|
|
|
32 |
console.log(start);
|
|
|
33 |
console.log(end);
|
|
|
34 |
|
|
|
35 |
function cb(start, end) {
|
|
|
36 |
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
$('#reportrange').daterangepicker({
|
|
|
40 |
startDate: start,
|
|
|
41 |
endDate: end,
|
|
|
42 |
alwaysShowCalendars: true,
|
|
|
43 |
ranges: {
|
|
|
44 |
'Today': [moment(), moment()],
|
|
|
45 |
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
|
|
46 |
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
|
|
|
47 |
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
|
|
|
48 |
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
|
|
49 |
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
|
|
|
50 |
}
|
|
|
51 |
}, cb);
|
|
|
52 |
|
|
|
53 |
cb(start, end);
|
|
|
54 |
|
|
|
55 |
});
|
|
|
56 |
</script>
|
|
|
57 |
</script>
|
|
|
58 |
|
|
|
59 |
<section class="wrapper">
|
|
|
60 |
<div class="row">
|
|
|
61 |
<div class="col-lg-12">
|
|
|
62 |
<h3 class="page-header"><i class="icon_document_alt"></i>GRN</h3>
|
|
|
63 |
<ol class="breadcrumb">
|
|
|
64 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
65 |
<li><i class="icon_document_alt"></i>PENDING</li>
|
|
|
66 |
</ol>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
|
|
|
70 |
<div id="pending-grn-search">
|
|
|
71 |
<div class="row">
|
|
|
72 |
<div class="col-lg-12">
|
|
|
73 |
<div class="col-lg-9 form-group pull-right">
|
|
|
74 |
<div class="col-md-6 col-sm-6 col-xs-6 form-group pull-right top_search">
|
|
|
75 |
<div class="input-group">
|
|
|
76 |
<div id="reportrange" class="pull-right" style="width:80%;margin:auto;background: #fff; cursor: pointer; padding: 8px; border: 1px solid #ccc">
|
|
|
77 |
<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
|
|
|
78 |
<span></span>
|
|
|
79 |
</div>
|
|
|
80 |
<span class="input-group-btn">
|
|
|
81 |
<button class="btn btn-primary submit" id="pending-grn-date-button" type="button">Go!</button>
|
|
|
82 |
</span>
|
|
|
83 |
</div>
|
|
|
84 |
</div>
|
|
|
85 |
<div class="col-md-5 col-sm-5 col-xs-5 form-group pull-right top_search">
|
|
|
86 |
<div class="input-group">
|
|
|
87 |
<input type="text" class="form-control" id="pending-grn-search-text"" placeholder="Search by purchase reference..." value="" />
|
|
|
88 |
<span class="input-group-btn">
|
|
|
89 |
<button class="btn btn-primary submit" id="pending-grn-search-button" type="button">Go!</button>
|
|
|
90 |
</span>
|
|
|
91 |
</div>
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
<div id="pending-grn-table">
|
|
|
98 |
<div class="row">
|
|
|
99 |
<div class="col-lg-12">
|
|
|
100 |
<table class="table table-striped table-advance table-hover">
|
|
|
101 |
<tbody>
|
|
|
102 |
<tr>
|
|
|
103 |
<th>Airway Bill No</th>
|
|
|
104 |
<th>Quantity</th>
|
|
|
105 |
<th>Amount</th>
|
|
|
106 |
<th>Status description</th>
|
|
|
107 |
<th>Created On</th>
|
|
|
108 |
</tr>
|
|
|
109 |
#if(!$pendingGrns.isEmpty())
|
|
|
110 |
#foreach( $pendingGrn in $pendingGrns )
|
|
|
111 |
<tr class="pending-grn-details" data="$pendingGrn.getId()">
|
|
|
112 |
<td>$pendingGrn.getAirwayBillNumber()</td>
|
|
|
113 |
<td>(int)$pendingGrn.getLineItem().getQuantity()</td>
|
|
|
114 |
<td>$pendingGrn.getTotalAmount()</td>
|
|
|
115 |
<td>$pendingGrn.getStatusDescription()</td>
|
|
|
116 |
<td>$pendingGrn.getFormattedDate()</td>
|
|
|
117 |
</tr>
|
|
|
118 |
#end
|
|
|
119 |
#else
|
|
|
120 |
<tr>
|
|
|
121 |
<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
122 |
</tr>
|
|
|
123 |
#end
|
|
|
124 |
</tbody>
|
|
|
125 |
</table>
|
|
|
126 |
</div>
|
|
|
127 |
</div>
|
|
|
128 |
</div>
|
|
|
129 |
#if(!$pendingGrns.isEmpty())
|
|
|
130 |
<div class="row" id="pending-grn-history-paginated">
|
|
|
131 |
<div class="col-lg-9">
|
|
|
132 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
133 |
</div>
|
|
|
134 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
135 |
<div class="btn-group" style="width:40%">
|
|
|
136 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
137 |
</div>
|
|
|
138 |
<div class="btn-group" style="width:40%">
|
|
|
139 |
#if($end >= $size)
|
|
|
140 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
141 |
#else
|
|
|
142 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
143 |
#end
|
|
|
144 |
</div>
|
|
|
145 |
</div>
|
|
|
146 |
</div>
|
|
|
147 |
#end
|
|
|
148 |
</section>
|
|
|
149 |
<div id="pending-grn-details-container" style="background:white;background-color:white;">
|
|
|
150 |
</div>
|