| 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
|
| 31805 |
amit.gupta |
52 |
<div class="row col-lg-12" style="float: right;">
|
|
|
53 |
|
|
|
54 |
|
| 32771 |
raveendra. |
55 |
#springMessage("reportsmysales.from") <input type="date" id="startDate-franchisee-sales" placeholder="" name="" value="$startDate" >
|
| 30164 |
manish |
56 |
|
| 32771 |
raveendra. |
57 |
#springMessage("reportsmysales.to") <input type="date" id="endDate-franchisee-sales" placeholder="" value="$endDate">
|
| 33092 |
tejus.loha |
58 |
<button type="submit" class="franchisee-sales-fetch-report">Fetch Report</button>
|
| 32771 |
raveendra. |
59 |
<button type="submit" class="download-franchisee-sales">#springMessage("reportsmysales.downloadreport") </button>
|
| 33092 |
tejus.loha |
60 |
|
|
|
61 |
</div>
|
|
|
62 |
|
| 30164 |
manish |
63 |
<div class="col-lg-12">
|
|
|
64 |
<table class="table table-border table-condensed table-bordered" id="focoSaleReportTable" style="width:100%">
|
|
|
65 |
|
|
|
66 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
67 |
|
|
|
68 |
<tr style="color:black;">
|
| 33092 |
tejus.loha |
69 |
## <th> #springMessage("reportsmysales.code")</th>
|
|
|
70 |
## <th> #springMessage("reportsmysales.name")</th>
|
|
|
71 |
## <th> #springMessage("reportsmysales.city")</th>
|
|
|
72 |
## <th> #springMessage("reportsmysales.state")</th>
|
|
|
73 |
##
|
|
|
74 |
## <th> #springMessage("reportsmysales.region")</th>
|
|
|
75 |
## <th> #springMessage("reportsmysales.itemid")</th>
|
| 32771 |
raveendra. |
76 |
<th> #springMessage("reportsmysales.brand")</th>
|
|
|
77 |
<th> #springMessage("reportsmysales.modelname")</th>
|
|
|
78 |
<th> #springMessage("reportsmysales.modelnumber")</th>
|
|
|
79 |
<th> #springMessage("reportsmysales.color")</th>
|
|
|
80 |
<th> #springMessage("reportsmysales.quantity")</th>
|
| 33177 |
tejus.loha |
81 |
<th> DP</th>
|
|
|
82 |
<th> Selling Price</th>
|
|
|
83 |
<th> MOP</th>
|
| 32771 |
raveendra. |
84 |
<th> #springMessage("reportsmysales.serialnumber")</th>
|
|
|
85 |
<th> #springMessage("reportsmysales.createdate")</th>
|
|
|
86 |
<th> #springMessage("reportsmysales.customername")</th>
|
|
|
87 |
<th> #springMessage("reportsmysales.customerphone")</th>
|
|
|
88 |
<th> #springMessage("reportsmysales.customercity")</th>
|
|
|
89 |
<th> #springMessage("reportsmysales.customerpincode")</th>
|
|
|
90 |
<th> #springMessage("reportsmysales.invoicenumber")</th>
|
|
|
91 |
<th> #springMessage("reportsmysales.purchasereference")</th>
|
|
|
92 |
<th> #springMessage("reportsmysales.customergstnumber")</th>
|
|
|
93 |
<th> #springMessage("reportsmysales.cancelledtimestamp")</th>
|
|
|
94 |
<th> #springMessage("reportsmysales.grncompletedate")</th>
|
|
|
95 |
<th> #springMessage("reportsmysales.hygienerating")</th>
|
|
|
96 |
<th> #springMessage("reportsmysales.rating")</th>
|
|
|
97 |
<th> #springMessage("reportsmysales.status")</th>
|
|
|
98 |
<th> #springMessage("reportsmysales.remark")</th>
|
|
|
99 |
<th> #springMessage("reportsmysales.createdtimestamp")</th>
|
|
|
100 |
<th> #springMessage("reportsmysales.disposedtimestamp")</th>
|
|
|
101 |
<th> #springMessage("reportsmysales.nexttimestamp")</th>
|
|
|
102 |
<th> #springMessage("reportsmysales.activationtimestamp")</th>
|
|
|
103 |
<th> #springMessage("reportsmysales.createtimestamp")</th>
|
|
|
104 |
<th>#springMessage("reportsmysales.label")</th>
|
| 30164 |
manish |
105 |
|
|
|
106 |
</tr>
|
|
|
107 |
</thead>
|
|
|
108 |
<tbody>
|
|
|
109 |
#foreach($focoSaleReport in $focoSaleReportList )
|
|
|
110 |
<tr>
|
| 33092 |
tejus.loha |
111 |
## <td>$focoSaleReport.getCode()</td>
|
|
|
112 |
## <td>$focoSaleReport.getName()</td>
|
|
|
113 |
## <td>$focoSaleReport.getCity()</td>
|
|
|
114 |
## <td>$focoSaleReport.getState()</td>
|
|
|
115 |
##
|
|
|
116 |
##
|
|
|
117 |
## <td>$focoSaleReport.getRegion()</td>
|
|
|
118 |
## <td>$focoSaleReport.getItemId()</td>
|
| 33177 |
tejus.loha |
119 |
<td>$focoSaleReport.getBrand()</td>
|
|
|
120 |
<td>$focoSaleReport.getModelName()</td>
|
|
|
121 |
|
|
|
122 |
<td>$focoSaleReport.getModelNumber()</td>
|
| 30164 |
manish |
123 |
<td>$focoSaleReport.getColor()</td>
|
| 33177 |
tejus.loha |
124 |
<td>$focoSaleReport.getQuantity()</td>
|
| 33178 |
tejus.loha |
125 |
<td><span class="currency">$focoSaleReport.getDp()</span></td>
|
| 33177 |
tejus.loha |
126 |
|
| 33178 |
tejus.loha |
127 |
<td><span class="currency">$focoSaleReport.getSellingPrice()</span></td>
|
| 33177 |
tejus.loha |
128 |
|
| 33178 |
tejus.loha |
129 |
<td><span class="currency">$focoSaleReport.getMop()</span></td>
|
| 33177 |
tejus.loha |
130 |
|
|
|
131 |
#if($focoSaleReport.getSerialNumber())
|
| 30164 |
manish |
132 |
<td>$focoSaleReport.getSerialNumber()</td>
|
|
|
133 |
#else
|
| 33177 |
tejus.loha |
134 |
<td> --</td>
|
| 30164 |
manish |
135 |
#end
|
| 33177 |
tejus.loha |
136 |
<td>$focoSaleReport.getCreateDate().format($dateTimeFormatter)</td>
|
|
|
137 |
#if($focoSaleReport.getCustomerName())
|
|
|
138 |
<td>$focoSaleReport.getCustomerName()</td>
|
|
|
139 |
#else
|
|
|
140 |
<td>--</td>
|
|
|
141 |
#end
|
|
|
142 |
#if($focoSaleReport.getCustomerPhone())
|
|
|
143 |
<td>$focoSaleReport.getCustomerPhone()</td>
|
|
|
144 |
#else
|
|
|
145 |
<td>--</td>
|
|
|
146 |
#end
|
|
|
147 |
|
|
|
148 |
#if($focoSaleReport.getCustomerCity())
|
|
|
149 |
<td>$focoSaleReport.getCustomerCity()</td>
|
|
|
150 |
#else
|
|
|
151 |
<td>--</td>
|
|
|
152 |
#end
|
|
|
153 |
#if($focoSaleReport.getCustomerPincode())
|
| 30164 |
manish |
154 |
<td>$focoSaleReport.getCustomerPincode()</td>
|
| 33177 |
tejus.loha |
155 |
#else
|
|
|
156 |
<td>--</td>
|
|
|
157 |
#end
|
|
|
158 |
|
|
|
159 |
<td>$focoSaleReport.getInvoiceNumber()</td>
|
|
|
160 |
<td>$focoSaleReport.getPurchaseReference()</td>
|
|
|
161 |
<td>$focoSaleReport.getCustomerGstNumber()</td>
|
|
|
162 |
|
|
|
163 |
#if($focoSaleReport.getCancelledTimestamp())
|
| 30164 |
manish |
164 |
<td>$focoSaleReport.getCancelledTimestamp()</td>
|
| 33177 |
tejus.loha |
165 |
#else
|
|
|
166 |
<td> --</td>
|
|
|
167 |
#end
|
|
|
168 |
<td>$focoSaleReport.getGrnCompleteDate().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
169 |
#if($focoSaleReport.getHygieneRating())
|
|
|
170 |
<td>$focoSaleReport.getHygieneRating()</td>
|
|
|
171 |
#else
|
|
|
172 |
<td>0</td>
|
|
|
173 |
#end
|
| 33177 |
tejus.loha |
174 |
#if($focoSaleReport.getRating())
|
|
|
175 |
<td>$focoSaleReport.getRating()</td>
|
|
|
176 |
#else
|
|
|
177 |
<td> --</td>
|
|
|
178 |
#end
|
|
|
179 |
|
|
|
180 |
#if($focoSaleReport.getStatus())
|
|
|
181 |
<td>$focoSaleReport.getStatus()</td>
|
|
|
182 |
#else
|
|
|
183 |
<td> --</td>
|
|
|
184 |
#end
|
|
|
185 |
#if($focoSaleReport.getRemark())
|
| 30164 |
manish |
186 |
<td>$focoSaleReport.getRemark()</td>
|
| 33177 |
tejus.loha |
187 |
#else
|
|
|
188 |
<td> --</td>
|
|
|
189 |
#end
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
#if($focoSaleReport.getCreatedTimestamp())
|
|
|
193 |
<td>$focoSaleReport.getCreatedTimestamp().format($datehiphenFormatter)</td>
|
|
|
194 |
|
|
|
195 |
#else
|
|
|
196 |
<td> --</td>
|
|
|
197 |
#end
|
|
|
198 |
|
|
|
199 |
#if($focoSaleReport.getDisposedTimestamp())
|
|
|
200 |
<td>$focoSaleReport.getDisposedTimestamp().format($datehiphenFormatter)</td>
|
|
|
201 |
#else
|
|
|
202 |
<td> --</td>
|
|
|
203 |
#end
|
|
|
204 |
#if($focoSaleReport.getNextTimestamp())
|
| 30183 |
manish |
205 |
<td>$focoSaleReport.getNextTimestamp().format($datehiphenFormatter)</td>
|
| 33177 |
tejus.loha |
206 |
#else
|
|
|
207 |
<td> --</td>
|
|
|
208 |
#end
|
|
|
209 |
#if($focoSaleReport.getActivationTimestamp())
|
|
|
210 |
|
|
|
211 |
<td>$focoSaleReport.getActivationTimestamp().format($datehiphenFormatter)</td>
|
|
|
212 |
#else
|
|
|
213 |
<td> --</td>
|
|
|
214 |
#end
|
|
|
215 |
#if($focoSaleReport.getActivationTimestamp())
|
|
|
216 |
<td>$focoSaleReport.getCreateTimestamp().format($datehiphenFormatter)</td>
|
|
|
217 |
|
|
|
218 |
#else
|
|
|
219 |
<td> --</td>
|
|
|
220 |
#end
|
|
|
221 |
<td>$focoSaleReport.getLabel()</td>
|
|
|
222 |
|
|
|
223 |
|
| 30164 |
manish |
224 |
</tr>
|
|
|
225 |
#end
|
|
|
226 |
|
|
|
227 |
</tbody>
|
|
|
228 |
|
|
|
229 |
</table>
|
|
|
230 |
</div>
|
|
|
231 |
|
|
|
232 |
</section>
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
<script>
|
|
|
237 |
|
|
|
238 |
var dtable = $('#focoSaleReportTable').DataTable(
|
|
|
239 |
{
|
|
|
240 |
"scrollX": true,
|
|
|
241 |
"bPaginate": true,
|
|
|
242 |
"bLengthChange": true,
|
|
|
243 |
"bFilter": true,
|
|
|
244 |
"bInfo": false,
|
|
|
245 |
"bAutoWidth": false,
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
});
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
</script>
|
| 33092 |
tejus.loha |
253 |
#if($isAdmin)
|
|
|
254 |
<script type="text/javascript">
|
|
|
255 |
$(function () {
|
|
|
256 |
getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
|
|
|
257 |
partnerId = selectedPartner.partnerId;
|
|
|
258 |
|
|
|
259 |
console.log(partnerId);
|
|
|
260 |
});
|
|
|
261 |
});
|
| 34066 |
aman.kumar |
262 |
$(function () {
|
|
|
263 |
$('#fofo-users').on('change', function () {
|
|
|
264 |
var selectedFofoId = $(this).val();
|
|
|
265 |
if (selectedFofoId) {
|
|
|
266 |
partnerId = selectedFofoId;
|
|
|
267 |
console.log("Partner ID set to:", partnerId);
|
|
|
268 |
} else {
|
|
|
269 |
alert("Please select a valid Fofo ID.");
|
|
|
270 |
}
|
|
|
271 |
});
|
|
|
272 |
});
|
| 33092 |
tejus.loha |
273 |
</script>
|
|
|
274 |
+#end
|