| 34198 |
ranu |
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>Requested Allocations</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>Requested Allocations</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
<div class="row">
|
|
|
12 |
<div class="col-lg-12">
|
|
|
13 |
<ul class="nav nav-tabs">
|
|
|
14 |
<li class="active"><a data-toggle="tab" href="#pending">Pending</a></li>
|
|
|
15 |
<li><a data-toggle="tab" href="#approved">Approved</a></li>
|
|
|
16 |
</ul>
|
|
|
17 |
<div class="tab-content">
|
|
|
18 |
<div id="pending" class="tab-pane fade in active">
|
| 34295 |
ranu |
19 |
<table class="table table-bordered table-condensed pendingRequestedAllocationList"
|
| 34198 |
ranu |
20 |
style="width:100%">
|
|
|
21 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
22 |
<tr style="color:black;">
|
| 36080 |
aman |
23 |
<th>Partner Id</th>
|
| 34198 |
ranu |
24 |
<th>Partner Name</th>
|
|
|
25 |
<th>Catalog Id</th>
|
|
|
26 |
<th>Model Number</th>
|
|
|
27 |
<th>Brand</th>
|
| 36895 |
amit |
28 |
<th>HID Qty</th>
|
|
|
29 |
<th>Bill/Act 5d</th>
|
|
|
30 |
<th>Current Qty</th>
|
|
|
31 |
<th>Excess/Short</th>
|
|
|
32 |
<th>Requested Qty</th>
|
|
|
33 |
<th>Requestor</th>
|
|
|
34 |
<th>Approver</th>
|
| 34198 |
ranu |
35 |
<th>Action</th>
|
|
|
36 |
</tr>
|
|
|
37 |
</thead>
|
|
|
38 |
<tbody>
|
|
|
39 |
#foreach($model in $pendingRequestedHidAllocations)
|
|
|
40 |
<tr>
|
|
|
41 |
<td> $model.getFofoId() </td>
|
| 34304 |
ranu |
42 |
<td> $userMap.get($model.getFofoId()).getName()
|
|
|
43 |
- $fofoStoreMap.get($model.getFofoId()).getCode() </td>
|
| 34198 |
ranu |
44 |
<td> $model.getCatalogId() </td>
|
|
|
45 |
<td> $model.getModelNumber() </td>
|
|
|
46 |
<td> $model.getBrand() </td>
|
| 36895 |
amit |
47 |
<td> $hidQtyMap.get($model.getId()) </td>
|
|
|
48 |
<td> $billActMap.get($model.getId()) </td>
|
|
|
49 |
<td> $currentQtyMap.get($model.getId()) </td>
|
|
|
50 |
#set($es = $excessShortMap.get($model.getId()))
|
|
|
51 |
<td>#if($es > 0)<span style="color:red;">+$es</span>#elseif($es < 0)<span style="color:green;">$es</span>#else<span>0</span>#end</td>
|
| 34295 |
ranu |
52 |
<td><input type="text" value="$model.getRequested_allocation()"
|
|
|
53 |
class="reuested_allocation" disabled> <a role="button"> <i
|
|
|
54 |
class="fa fa-edit edit-allocation"></i></a></td>
|
| 36895 |
amit |
55 |
<td> $!model.getCreatedBy() </td>
|
|
|
56 |
<td> $!model.getApprovedBy() </td>
|
| 34198 |
ranu |
57 |
<td>
|
|
|
58 |
<button class="btn btn-sm btn-success allocation-request-approve-reject"
|
|
|
59 |
data-id="$model.getId()" data-status="true">Approve
|
|
|
60 |
</button>
|
|
|
61 |
/
|
|
|
62 |
<button class="btn btn-sm btn-danger allocation-request-approve-reject"
|
|
|
63 |
data-id="$model.getId()" data-status="false">Reject
|
|
|
64 |
</button>
|
| 34295 |
ranu |
65 |
/
|
|
|
66 |
<button class="btn btn-sm btn-info allocation-request-edit"
|
|
|
67 |
data-id="$model.getId()">Edit
|
|
|
68 |
</button>
|
| 34198 |
ranu |
69 |
</td>
|
|
|
70 |
</tr>
|
|
|
71 |
#end
|
|
|
72 |
</tbody>
|
|
|
73 |
</table>
|
| 36902 |
amit |
74 |
#if($pendingTotal > 0)
|
|
|
75 |
<div class="row">
|
|
|
76 |
<div class="col-lg-12">
|
|
|
77 |
<div class="pagination-wrapper">
|
|
|
78 |
<span class="pagination-info">Showing $pendingStartRecord - $pendingEndRecord of $pendingTotal</span>
|
|
|
79 |
<ul class="pagination pagination-sm">
|
|
|
80 |
#if($pendingCurrentPage > 0)
|
|
|
81 |
<li><a href="javascript:void(0)" class="pending-page-link" data-page="0">First</a></li>
|
|
|
82 |
<li><a href="javascript:void(0)" class="pending-page-link" data-page="$pendingPrevPage">Prev</a></li>
|
|
|
83 |
#else
|
|
|
84 |
<li class="disabled"><span>First</span></li>
|
|
|
85 |
<li class="disabled"><span>Prev</span></li>
|
|
|
86 |
#end
|
|
|
87 |
<li class="active"><span>Page $pendingCurrentPageDisplay of $pendingTotalPages</span></li>
|
|
|
88 |
#if($pendingCurrentPage < $pendingLastPage)
|
|
|
89 |
<li><a href="javascript:void(0)" class="pending-page-link" data-page="$pendingNextPage">Next</a></li>
|
|
|
90 |
<li><a href="javascript:void(0)" class="pending-page-link" data-page="$pendingLastPage">Last</a></li>
|
|
|
91 |
#else
|
|
|
92 |
<li class="disabled"><span>Next</span></li>
|
|
|
93 |
<li class="disabled"><span>Last</span></li>
|
|
|
94 |
#end
|
|
|
95 |
</ul>
|
|
|
96 |
<select class="form-control page-size-select pending-page-size">
|
|
|
97 |
<option value="25" #if($pendingPageSize == 25)selected#end>25 per page</option>
|
|
|
98 |
<option value="50" #if($pendingPageSize == 50)selected#end>50 per page</option>
|
|
|
99 |
<option value="100" #if($pendingPageSize == 100)selected#end>100 per page</option>
|
|
|
100 |
</select>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
|
|
104 |
#end
|
| 34198 |
ranu |
105 |
</div>
|
|
|
106 |
<div id="approved" class="tab-pane fade">
|
| 34295 |
ranu |
107 |
<table class="table table-bordered table-condensed approvedRequestedAllocationList"
|
| 34198 |
ranu |
108 |
style="width:100%">
|
|
|
109 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
110 |
<tr style="color:black;">
|
| 36080 |
aman |
111 |
<th>Partner Id</th>
|
| 34198 |
ranu |
112 |
<th>Partner Name</th>
|
|
|
113 |
<th>Catalog Id</th>
|
|
|
114 |
<th>Model Number</th>
|
|
|
115 |
<th>Brand</th>
|
| 36895 |
amit |
116 |
<th>HID Qty</th>
|
|
|
117 |
<th>Bill/Act 5d</th>
|
|
|
118 |
<th>Current Qty</th>
|
|
|
119 |
<th>Excess/Short</th>
|
|
|
120 |
<th>Requested Qty</th>
|
|
|
121 |
<th>Requestor</th>
|
|
|
122 |
<th>Approver</th>
|
| 34198 |
ranu |
123 |
<th>Action</th>
|
|
|
124 |
</tr>
|
|
|
125 |
</thead>
|
|
|
126 |
<tbody>
|
|
|
127 |
#foreach($model in $approvedRequestedHidAllocations)
|
|
|
128 |
<tr>
|
|
|
129 |
<td> $model.getFofoId() </td>
|
| 34305 |
ranu |
130 |
<td> $userMap.get($model.getFofoId()).getName()
|
|
|
131 |
- $fofoStoreMap.get($model.getFofoId()).getCode() </td>
|
| 34198 |
ranu |
132 |
<td> $model.getCatalogId() </td>
|
|
|
133 |
<td> $model.getModelNumber() </td>
|
|
|
134 |
<td> $model.getBrand() </td>
|
| 36895 |
amit |
135 |
<td> $hidQtyMap.get($model.getId()) </td>
|
|
|
136 |
<td> $billActMap.get($model.getId()) </td>
|
|
|
137 |
<td> $currentQtyMap.get($model.getId()) </td>
|
|
|
138 |
#set($es = $excessShortMap.get($model.getId()))
|
|
|
139 |
<td>#if($es > 0)<span style="color:red;">+$es</span>#elseif($es < 0)<span style="color:green;">$es</span>#else<span>0</span>#end</td>
|
| 34295 |
ranu |
140 |
<td><input type="text" value="$model.getRequested_allocation()"
|
|
|
141 |
class="reuested_allocation" disabled> <a role="button"> <i
|
|
|
142 |
class="fa fa-edit edit-allocation"></i></a></td>
|
| 36895 |
amit |
143 |
<td> $!model.getCreatedBy() </td>
|
|
|
144 |
<td> $!model.getApprovedBy() </td>
|
| 34198 |
ranu |
145 |
<td>
|
|
|
146 |
<button class="btn btn-sm btn-danger allocation-request-approve-reject"
|
|
|
147 |
data-id="$model.getId()" data-status="false">Reject
|
|
|
148 |
</button>
|
| 34295 |
ranu |
149 |
<button class="btn btn-sm btn-info allocation-request-edit"
|
|
|
150 |
data-id="$model.getId()">Edit
|
|
|
151 |
</button>
|
| 34198 |
ranu |
152 |
</td>
|
|
|
153 |
</tr>
|
|
|
154 |
#end
|
|
|
155 |
</tbody>
|
|
|
156 |
</table>
|
| 36899 |
amit |
157 |
#if($approvedTotal > 0)
|
|
|
158 |
<div class="row">
|
|
|
159 |
<div class="col-lg-12">
|
|
|
160 |
<div class="pagination-wrapper">
|
|
|
161 |
<span class="pagination-info">Showing $approvedStartRecord - $approvedEndRecord of $approvedTotal</span>
|
|
|
162 |
<ul class="pagination pagination-sm">
|
|
|
163 |
#if($approvedCurrentPage > 0)
|
|
|
164 |
<li><a href="javascript:void(0)" class="allocation-page-link" data-page="0">First</a></li>
|
|
|
165 |
<li><a href="javascript:void(0)" class="allocation-page-link" data-page="$approvedPrevPage">Prev</a></li>
|
|
|
166 |
#else
|
|
|
167 |
<li class="disabled"><span>First</span></li>
|
|
|
168 |
<li class="disabled"><span>Prev</span></li>
|
|
|
169 |
#end
|
|
|
170 |
<li class="active"><span>Page $approvedCurrentPageDisplay of $approvedTotalPages</span></li>
|
|
|
171 |
#if($approvedCurrentPage < $approvedLastPage)
|
|
|
172 |
<li><a href="javascript:void(0)" class="allocation-page-link" data-page="$approvedNextPage">Next</a></li>
|
|
|
173 |
<li><a href="javascript:void(0)" class="allocation-page-link" data-page="$approvedLastPage">Last</a></li>
|
|
|
174 |
#else
|
|
|
175 |
<li class="disabled"><span>Next</span></li>
|
|
|
176 |
<li class="disabled"><span>Last</span></li>
|
|
|
177 |
#end
|
|
|
178 |
</ul>
|
|
|
179 |
<select class="form-control page-size-select allocation-page-size">
|
|
|
180 |
<option value="25" #if($approvedPageSize == 25)selected#end>25 per page</option>
|
|
|
181 |
<option value="50" #if($approvedPageSize == 50)selected#end>50 per page</option>
|
|
|
182 |
<option value="100" #if($approvedPageSize == 100)selected#end>100 per page</option>
|
|
|
183 |
</select>
|
|
|
184 |
</div>
|
|
|
185 |
</div>
|
|
|
186 |
</div>
|
|
|
187 |
#end
|
| 34198 |
ranu |
188 |
</div>
|
|
|
189 |
|
|
|
190 |
</div>
|
|
|
191 |
</div>
|
|
|
192 |
|
|
|
193 |
</div>
|
|
|
194 |
|
|
|
195 |
</section>
|
|
|
196 |
|
|
|
197 |
<script>
|
|
|
198 |
|
| 36902 |
amit |
199 |
// Both Pending and Approved tabs are server-paginated (50/page); no client-side DataTable.
|
| 34198 |
ranu |
200 |
|
|
|
201 |
</script>
|