| 30164 |
manish |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
| 32771 |
raveendra. |
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("reportsmysales.franchiseereport")</h3>
|
| 30164 |
manish |
5 |
<ol class="breadcrumb">
|
| 32771 |
raveendra. |
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportsmysales.home")</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>#springMessage("reportsmysales.franchiseereport")</li>
|
| 31805 |
amit.gupta |
8 |
<!--Training Video -->
|
|
|
9 |
<li><a href="#videoModal" class="btn btn-danger" data-toggle="modal" data-src="QkGug0dZ4hM"><span
|
| 32771 |
raveendra. |
10 |
class="glyphicon glyphicon-play-circle"></span> #springMessage("reportsmysales.playvideo")</a></li>
|
| 31805 |
amit.gupta |
11 |
</ol>
|
|
|
12 |
</div>
|
|
|
13 |
</div>
|
| 33092 |
tejus.loha |
14 |
<br>
|
|
|
15 |
#if($isAdmin)
|
|
|
16 |
#set($counter =0)
|
|
|
17 |
#foreach($focoSaleReport in $focoSaleReportList )
|
|
|
18 |
#if($counter==1)
|
|
|
19 |
#break
|
|
|
20 |
#end
|
|
|
21 |
<h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
|
|
|
22 |
$focoSaleReport.getCode() - $focoSaleReport.getName()
|
|
|
23 |
</h2>
|
|
|
24 |
#set($counter =$counter+1)
|
|
|
25 |
#end
|
| 34066 |
aman.kumar |
26 |
#if($isRBM)
|
|
|
27 |
<div style="padding: 5px 10px; margin-top: 2px"
|
|
|
28 |
class="col-lg-2 form-group">
|
|
|
29 |
<select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
|
|
|
30 |
<option value="" disabled selected>Partners</option>
|
|
|
31 |
#foreach($fofoId in $customRetailersMap.keySet())
|
|
|
32 |
<option value="$fofoId"
|
|
|
33 |
data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
|
|
|
34 |
#end
|
|
|
35 |
</select>
|
|
|
36 |
</div>
|
|
|
37 |
#else
|
| 33092 |
tejus.loha |
38 |
<div class="row col-lg-12" style="float: right;">
|
|
|
39 |
<div class="col-lg-2">
|
|
|
40 |
<div class="input-group">
|
|
|
41 |
<input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
|
|
|
42 |
id="typeaheadpartner"
|
|
|
43 |
name="Item" data-provide="typeahead" autocomplete="off"
|
|
|
44 |
style="margin-bottom: 10px;margin-left: 22px"> <input id="partnerId"
|
|
|
45 |
type="hidden">
|
|
|
46 |
<br>
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
|
|
50 |
#end
|
| 34066 |
aman.kumar |
51 |
#end
|
| 34505 |
ranu |
52 |
#if($analysis-dashboard)
|
|
|
53 |
<div class="row col-lg-12" style="float: right;">
|
| 31805 |
amit.gupta |
54 |
|
|
|
55 |
|
| 34505 |
ranu |
56 |
#springMessage("reportsmysales.from") <input type="date" id="analysis-startDate-franchisee-sales"
|
|
|
57 |
placeholder="" name="" value="$startDate">
|
| 33092 |
tejus.loha |
58 |
|
| 34505 |
ranu |
59 |
#springMessage("reportsmysales.to") <input type="date" id="analysis-endDate-franchisee-sales" placeholder=""
|
|
|
60 |
value="$endDate">
|
|
|
61 |
<button type="submit" class="analysis-franchisee-sales-fetch-report" data-fofoid="$fofoId">Fetch Report
|
|
|
62 |
</button>
|
|
|
63 |
<button type="submit" class="analysis-download-franchisee-sales" data-fofoid="$fofoId">#springMessage(
|
|
|
64 |
"reportsmysales.downloadreport") </button>
|
| 33092 |
tejus.loha |
65 |
|
| 34505 |
ranu |
66 |
</div>
|
|
|
67 |
#else
|
|
|
68 |
|
|
|
69 |
<div class="row col-lg-12" style="float: right;">
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
#springMessage("reportsmysales.from") <input type="date" id="startDate-franchisee-sales" placeholder=""
|
|
|
73 |
name="" value="$startDate">
|
|
|
74 |
|
|
|
75 |
#springMessage("reportsmysales.to") <input type="date" id="endDate-franchisee-sales" placeholder=""
|
|
|
76 |
value="$endDate">
|
|
|
77 |
<button type="submit" class="franchisee-sales-fetch-report">Fetch Report</button>
|
|
|
78 |
<button type="submit" class="download-franchisee-sales">#springMessage(
|
|
|
79 |
"reportsmysales.downloadreport") </button>
|
|
|
80 |
|
|
|
81 |
</div>
|
|
|
82 |
#end
|
|
|
83 |
|
| 30164 |
manish |
84 |
<div class="col-lg-12">
|
|
|
85 |
<table class="table table-border table-condensed table-bordered" id="focoSaleReportTable" style="width:100%">
|
|
|
86 |
|
|
|
87 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
88 |
|
|
|
89 |
<tr style="color:black;">
|
| 33092 |
tejus.loha |
90 |
## <th> #springMessage("reportsmysales.code")</th>
|
|
|
91 |
## <th> #springMessage("reportsmysales.name")</th>
|
|
|
92 |
## <th> #springMessage("reportsmysales.city")</th>
|
|
|
93 |
## <th> #springMessage("reportsmysales.state")</th>
|
|
|
94 |
##
|
|
|
95 |
## <th> #springMessage("reportsmysales.region")</th>
|
|
|
96 |
## <th> #springMessage("reportsmysales.itemid")</th>
|
| 32771 |
raveendra. |
97 |
<th> #springMessage("reportsmysales.brand")</th>
|
|
|
98 |
<th> #springMessage("reportsmysales.modelname")</th>
|
|
|
99 |
<th> #springMessage("reportsmysales.modelnumber")</th>
|
|
|
100 |
<th> #springMessage("reportsmysales.color")</th>
|
|
|
101 |
<th> #springMessage("reportsmysales.quantity")</th>
|
| 33177 |
tejus.loha |
102 |
<th> DP</th>
|
|
|
103 |
<th> Selling Price</th>
|
|
|
104 |
<th> MOP</th>
|
| 32771 |
raveendra. |
105 |
<th> #springMessage("reportsmysales.serialnumber")</th>
|
|
|
106 |
<th> #springMessage("reportsmysales.createdate")</th>
|
|
|
107 |
<th> #springMessage("reportsmysales.customername")</th>
|
|
|
108 |
<th> #springMessage("reportsmysales.customerphone")</th>
|
|
|
109 |
<th> #springMessage("reportsmysales.customercity")</th>
|
|
|
110 |
<th> #springMessage("reportsmysales.customerpincode")</th>
|
|
|
111 |
<th> #springMessage("reportsmysales.invoicenumber")</th>
|
|
|
112 |
<th> #springMessage("reportsmysales.purchasereference")</th>
|
|
|
113 |
<th> #springMessage("reportsmysales.customergstnumber")</th>
|
|
|
114 |
<th> #springMessage("reportsmysales.cancelledtimestamp")</th>
|
|
|
115 |
<th> #springMessage("reportsmysales.grncompletedate")</th>
|
|
|
116 |
<th> #springMessage("reportsmysales.hygienerating")</th>
|
|
|
117 |
<th> #springMessage("reportsmysales.rating")</th>
|
|
|
118 |
<th> #springMessage("reportsmysales.status")</th>
|
|
|
119 |
<th> #springMessage("reportsmysales.remark")</th>
|
|
|
120 |
<th> #springMessage("reportsmysales.createdtimestamp")</th>
|
|
|
121 |
<th> #springMessage("reportsmysales.disposedtimestamp")</th>
|
|
|
122 |
<th> #springMessage("reportsmysales.nexttimestamp")</th>
|
|
|
123 |
<th> #springMessage("reportsmysales.activationtimestamp")</th>
|
|
|
124 |
<th> #springMessage("reportsmysales.createtimestamp")</th>
|
|
|
125 |
<th>#springMessage("reportsmysales.label")</th>
|
| 30164 |
manish |
126 |
|
|
|
127 |
</tr>
|
|
|
128 |
</thead>
|
|
|
129 |
<tbody>
|
|
|
130 |
#foreach($focoSaleReport in $focoSaleReportList )
|
|
|
131 |
<tr>
|
| 33092 |
tejus.loha |
132 |
## <td>$focoSaleReport.getCode()</td>
|
|
|
133 |
## <td>$focoSaleReport.getName()</td>
|
|
|
134 |
## <td>$focoSaleReport.getCity()</td>
|
|
|
135 |
## <td>$focoSaleReport.getState()</td>
|
|
|
136 |
##
|
|
|
137 |
##
|
|
|
138 |
## <td>$focoSaleReport.getRegion()</td>
|
|
|
139 |
## <td>$focoSaleReport.getItemId()</td>
|
| 33177 |
tejus.loha |
140 |
<td>$focoSaleReport.getBrand()</td>
|
|
|
141 |
<td>$focoSaleReport.getModelName()</td>
|
|
|
142 |
|
|
|
143 |
<td>$focoSaleReport.getModelNumber()</td>
|
| 30164 |
manish |
144 |
<td>$focoSaleReport.getColor()</td>
|
| 33177 |
tejus.loha |
145 |
<td>$focoSaleReport.getQuantity()</td>
|
| 33178 |
tejus.loha |
146 |
<td><span class="currency">$focoSaleReport.getDp()</span></td>
|
| 33177 |
tejus.loha |
147 |
|
| 33178 |
tejus.loha |
148 |
<td><span class="currency">$focoSaleReport.getSellingPrice()</span></td>
|
| 33177 |
tejus.loha |
149 |
|
| 33178 |
tejus.loha |
150 |
<td><span class="currency">$focoSaleReport.getMop()</span></td>
|
| 33177 |
tejus.loha |
151 |
|
|
|
152 |
#if($focoSaleReport.getSerialNumber())
|
| 30164 |
manish |
153 |
<td>$focoSaleReport.getSerialNumber()</td>
|
|
|
154 |
#else
|
| 33177 |
tejus.loha |
155 |
<td> --</td>
|
| 30164 |
manish |
156 |
#end
|
| 33177 |
tejus.loha |
157 |
<td>$focoSaleReport.getCreateDate().format($dateTimeFormatter)</td>
|
|
|
158 |
#if($focoSaleReport.getCustomerName())
|
|
|
159 |
<td>$focoSaleReport.getCustomerName()</td>
|
|
|
160 |
#else
|
|
|
161 |
<td>--</td>
|
|
|
162 |
#end
|
|
|
163 |
#if($focoSaleReport.getCustomerPhone())
|
|
|
164 |
<td>$focoSaleReport.getCustomerPhone()</td>
|
|
|
165 |
#else
|
|
|
166 |
<td>--</td>
|
|
|
167 |
#end
|
|
|
168 |
|
|
|
169 |
#if($focoSaleReport.getCustomerCity())
|
|
|
170 |
<td>$focoSaleReport.getCustomerCity()</td>
|
|
|
171 |
#else
|
|
|
172 |
<td>--</td>
|
|
|
173 |
#end
|
|
|
174 |
#if($focoSaleReport.getCustomerPincode())
|
| 30164 |
manish |
175 |
<td>$focoSaleReport.getCustomerPincode()</td>
|
| 33177 |
tejus.loha |
176 |
#else
|
|
|
177 |
<td>--</td>
|
|
|
178 |
#end
|
|
|
179 |
|
|
|
180 |
<td>$focoSaleReport.getInvoiceNumber()</td>
|
|
|
181 |
<td>$focoSaleReport.getPurchaseReference()</td>
|
|
|
182 |
<td>$focoSaleReport.getCustomerGstNumber()</td>
|
|
|
183 |
|
|
|
184 |
#if($focoSaleReport.getCancelledTimestamp())
|
| 30164 |
manish |
185 |
<td>$focoSaleReport.getCancelledTimestamp()</td>
|
| 33177 |
tejus.loha |
186 |
#else
|
|
|
187 |
<td> --</td>
|
|
|
188 |
#end
|
|
|
189 |
<td>$focoSaleReport.getGrnCompleteDate().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
190 |
#if($focoSaleReport.getHygieneRating())
|
|
|
191 |
<td>$focoSaleReport.getHygieneRating()</td>
|
|
|
192 |
#else
|
|
|
193 |
<td>0</td>
|
|
|
194 |
#end
|
| 33177 |
tejus.loha |
195 |
#if($focoSaleReport.getRating())
|
|
|
196 |
<td>$focoSaleReport.getRating()</td>
|
|
|
197 |
#else
|
|
|
198 |
<td> --</td>
|
|
|
199 |
#end
|
|
|
200 |
|
|
|
201 |
#if($focoSaleReport.getStatus())
|
|
|
202 |
<td>$focoSaleReport.getStatus()</td>
|
|
|
203 |
#else
|
|
|
204 |
<td> --</td>
|
|
|
205 |
#end
|
|
|
206 |
#if($focoSaleReport.getRemark())
|
| 30164 |
manish |
207 |
<td>$focoSaleReport.getRemark()</td>
|
| 33177 |
tejus.loha |
208 |
#else
|
|
|
209 |
<td> --</td>
|
|
|
210 |
#end
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
#if($focoSaleReport.getCreatedTimestamp())
|
|
|
214 |
<td>$focoSaleReport.getCreatedTimestamp().format($datehiphenFormatter)</td>
|
|
|
215 |
|
|
|
216 |
#else
|
|
|
217 |
<td> --</td>
|
|
|
218 |
#end
|
|
|
219 |
|
|
|
220 |
#if($focoSaleReport.getDisposedTimestamp())
|
|
|
221 |
<td>$focoSaleReport.getDisposedTimestamp().format($datehiphenFormatter)</td>
|
|
|
222 |
#else
|
|
|
223 |
<td> --</td>
|
|
|
224 |
#end
|
|
|
225 |
#if($focoSaleReport.getNextTimestamp())
|
| 30183 |
manish |
226 |
<td>$focoSaleReport.getNextTimestamp().format($datehiphenFormatter)</td>
|
| 33177 |
tejus.loha |
227 |
#else
|
|
|
228 |
<td> --</td>
|
|
|
229 |
#end
|
|
|
230 |
#if($focoSaleReport.getActivationTimestamp())
|
|
|
231 |
|
|
|
232 |
<td>$focoSaleReport.getActivationTimestamp().format($datehiphenFormatter)</td>
|
|
|
233 |
#else
|
|
|
234 |
<td> --</td>
|
|
|
235 |
#end
|
|
|
236 |
#if($focoSaleReport.getActivationTimestamp())
|
|
|
237 |
<td>$focoSaleReport.getCreateTimestamp().format($datehiphenFormatter)</td>
|
|
|
238 |
|
|
|
239 |
#else
|
|
|
240 |
<td> --</td>
|
|
|
241 |
#end
|
|
|
242 |
<td>$focoSaleReport.getLabel()</td>
|
|
|
243 |
|
|
|
244 |
|
| 30164 |
manish |
245 |
</tr>
|
|
|
246 |
#end
|
|
|
247 |
|
|
|
248 |
</tbody>
|
|
|
249 |
|
|
|
250 |
</table>
|
|
|
251 |
</div>
|
|
|
252 |
|
|
|
253 |
</section>
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
<script>
|
|
|
258 |
|
|
|
259 |
var dtable = $('#focoSaleReportTable').DataTable(
|
|
|
260 |
{
|
|
|
261 |
"scrollX": true,
|
|
|
262 |
"bPaginate": true,
|
|
|
263 |
"bLengthChange": true,
|
|
|
264 |
"bFilter": true,
|
|
|
265 |
"bInfo": false,
|
|
|
266 |
"bAutoWidth": false,
|
|
|
267 |
|
|
|
268 |
|
|
|
269 |
});
|
|
|
270 |
|
|
|
271 |
|
|
|
272 |
|
|
|
273 |
</script>
|
| 33092 |
tejus.loha |
274 |
#if($isAdmin)
|
|
|
275 |
<script type="text/javascript">
|
|
|
276 |
$(function () {
|
|
|
277 |
getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
|
|
|
278 |
partnerId = selectedPartner.partnerId;
|
|
|
279 |
|
|
|
280 |
console.log(partnerId);
|
|
|
281 |
});
|
|
|
282 |
});
|
| 34066 |
aman.kumar |
283 |
$(function () {
|
|
|
284 |
$('#fofo-users').on('change', function () {
|
|
|
285 |
var selectedFofoId = $(this).val();
|
|
|
286 |
if (selectedFofoId) {
|
|
|
287 |
partnerId = selectedFofoId;
|
|
|
288 |
console.log("Partner ID set to:", partnerId);
|
|
|
289 |
} else {
|
| 36080 |
aman |
290 |
alert("Please select a valid Partner ID.");
|
| 34066 |
aman.kumar |
291 |
}
|
|
|
292 |
});
|
|
|
293 |
});
|
| 33092 |
tejus.loha |
294 |
</script>
|
|
|
295 |
+#end
|