| 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
|
|
|
26 |
<div class="row col-lg-12" style="float: right;">
|
|
|
27 |
<div class="col-lg-2">
|
|
|
28 |
<div class="input-group">
|
|
|
29 |
<input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
|
|
|
30 |
id="typeaheadpartner"
|
|
|
31 |
name="Item" data-provide="typeahead" autocomplete="off"
|
|
|
32 |
style="margin-bottom: 10px;margin-left: 22px"> <input id="partnerId"
|
|
|
33 |
type="hidden">
|
|
|
34 |
<br>
|
|
|
35 |
</div>
|
|
|
36 |
</div>
|
|
|
37 |
</div>
|
|
|
38 |
#end
|
| 31805 |
amit.gupta |
39 |
<div class="row col-lg-12" style="float: right;">
|
|
|
40 |
|
|
|
41 |
|
| 32771 |
raveendra. |
42 |
#springMessage("reportsmysales.from") <input type="date" id="startDate-franchisee-sales" placeholder="" name="" value="$startDate" >
|
| 30164 |
manish |
43 |
|
| 32771 |
raveendra. |
44 |
#springMessage("reportsmysales.to") <input type="date" id="endDate-franchisee-sales" placeholder="" value="$endDate">
|
| 33092 |
tejus.loha |
45 |
<button type="submit" class="franchisee-sales-fetch-report">Fetch Report</button>
|
| 32771 |
raveendra. |
46 |
<button type="submit" class="download-franchisee-sales">#springMessage("reportsmysales.downloadreport") </button>
|
| 33092 |
tejus.loha |
47 |
|
|
|
48 |
</div>
|
|
|
49 |
|
| 30164 |
manish |
50 |
<div class="col-lg-12">
|
|
|
51 |
<table class="table table-border table-condensed table-bordered" id="focoSaleReportTable" style="width:100%">
|
|
|
52 |
|
|
|
53 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
54 |
|
|
|
55 |
<tr style="color:black;">
|
| 33092 |
tejus.loha |
56 |
## <th> #springMessage("reportsmysales.code")</th>
|
|
|
57 |
## <th> #springMessage("reportsmysales.name")</th>
|
|
|
58 |
## <th> #springMessage("reportsmysales.city")</th>
|
|
|
59 |
## <th> #springMessage("reportsmysales.state")</th>
|
|
|
60 |
##
|
|
|
61 |
## <th> #springMessage("reportsmysales.region")</th>
|
|
|
62 |
## <th> #springMessage("reportsmysales.itemid")</th>
|
| 32771 |
raveendra. |
63 |
<th> #springMessage("reportsmysales.brand")</th>
|
|
|
64 |
<th> #springMessage("reportsmysales.modelname")</th>
|
|
|
65 |
<th> #springMessage("reportsmysales.modelnumber")</th>
|
|
|
66 |
<th> #springMessage("reportsmysales.color")</th>
|
|
|
67 |
<th> #springMessage("reportsmysales.quantity")</th>
|
|
|
68 |
<th> #springMessage("reportsmysales.dp")</th>
|
| 32870 |
ranu |
69 |
<th> selling price</th>
|
| 32771 |
raveendra. |
70 |
<th> #springMessage("reportsmysales.mop")</th>
|
|
|
71 |
<th> #springMessage("reportsmysales.serialnumber")</th>
|
|
|
72 |
<th> #springMessage("reportsmysales.createdate")</th>
|
|
|
73 |
<th> #springMessage("reportsmysales.customername")</th>
|
|
|
74 |
<th> #springMessage("reportsmysales.customerphone")</th>
|
|
|
75 |
<th> #springMessage("reportsmysales.customercity")</th>
|
|
|
76 |
<th> #springMessage("reportsmysales.customerpincode")</th>
|
|
|
77 |
<th> #springMessage("reportsmysales.invoicenumber")</th>
|
|
|
78 |
<th> #springMessage("reportsmysales.purchasereference")</th>
|
|
|
79 |
<th> #springMessage("reportsmysales.customergstnumber")</th>
|
|
|
80 |
<th> #springMessage("reportsmysales.cancelledtimestamp")</th>
|
|
|
81 |
<th> #springMessage("reportsmysales.grncompletedate")</th>
|
|
|
82 |
<th> #springMessage("reportsmysales.hygienerating")</th>
|
|
|
83 |
<th> #springMessage("reportsmysales.rating")</th>
|
|
|
84 |
<th> #springMessage("reportsmysales.status")</th>
|
|
|
85 |
<th> #springMessage("reportsmysales.remark")</th>
|
|
|
86 |
<th> #springMessage("reportsmysales.createdtimestamp")</th>
|
|
|
87 |
<th> #springMessage("reportsmysales.disposedtimestamp")</th>
|
|
|
88 |
<th> #springMessage("reportsmysales.nexttimestamp")</th>
|
|
|
89 |
<th> #springMessage("reportsmysales.activationtimestamp")</th>
|
|
|
90 |
<th> #springMessage("reportsmysales.createtimestamp")</th>
|
|
|
91 |
<th>#springMessage("reportsmysales.label")</th>
|
| 30164 |
manish |
92 |
|
|
|
93 |
</tr>
|
|
|
94 |
</thead>
|
|
|
95 |
<tbody>
|
|
|
96 |
#foreach($focoSaleReport in $focoSaleReportList )
|
|
|
97 |
<tr>
|
| 33092 |
tejus.loha |
98 |
## <td>$focoSaleReport.getCode()</td>
|
|
|
99 |
## <td>$focoSaleReport.getName()</td>
|
|
|
100 |
## <td>$focoSaleReport.getCity()</td>
|
|
|
101 |
## <td>$focoSaleReport.getState()</td>
|
|
|
102 |
##
|
|
|
103 |
##
|
|
|
104 |
## <td>$focoSaleReport.getRegion()</td>
|
|
|
105 |
## <td>$focoSaleReport.getItemId()</td>
|
| 30164 |
manish |
106 |
<td>$focoSaleReport.getBrand()</td>
|
|
|
107 |
<td>$focoSaleReport.getModelName()</td>
|
|
|
108 |
|
|
|
109 |
<td>$focoSaleReport.getModelNumber()</td>
|
|
|
110 |
<td>$focoSaleReport.getColor()</td>
|
|
|
111 |
<td>$focoSaleReport.getQuantity()</td>
|
|
|
112 |
<td>$focoSaleReport.getDp()</td>
|
|
|
113 |
|
|
|
114 |
<td>$focoSaleReport.getSellingPrice()</td>
|
|
|
115 |
<td>$focoSaleReport.getMop()</td>
|
|
|
116 |
|
|
|
117 |
#if($focoSaleReport.getSerialNumber())
|
|
|
118 |
<td>$focoSaleReport.getSerialNumber()</td>
|
|
|
119 |
#else
|
|
|
120 |
<td> -- </td>
|
|
|
121 |
#end
|
| 31373 |
tejbeer |
122 |
<td>$focoSaleReport.getCreateDate().format($dateTimeFormatter)</td>
|
| 30164 |
manish |
123 |
|
|
|
124 |
<td>$focoSaleReport.getCustomerName()</td>
|
|
|
125 |
<td>$focoSaleReport.getCustomerPhone()</td>
|
|
|
126 |
<td>$focoSaleReport.getCustomerCity()</td>
|
|
|
127 |
<td>$focoSaleReport.getCustomerPincode()</td>
|
|
|
128 |
|
|
|
129 |
<td>$focoSaleReport.getInvoiceNumber()</td>
|
|
|
130 |
<td>$focoSaleReport.getPurchaseReference()</td>
|
|
|
131 |
<td>$focoSaleReport.getCustomerGstNumber()</td>
|
|
|
132 |
|
|
|
133 |
#if($focoSaleReport.getCancelledTimestamp())
|
|
|
134 |
<td>$focoSaleReport.getCancelledTimestamp()</td>
|
|
|
135 |
#else
|
|
|
136 |
<td> -- </td>
|
|
|
137 |
#end
|
| 30184 |
manish |
138 |
<td>$focoSaleReport.getGrnCompleteDate().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
139 |
#if($focoSaleReport.getHygieneRating())
|
|
|
140 |
<td>$focoSaleReport.getHygieneRating()</td>
|
|
|
141 |
#else
|
|
|
142 |
<td>0</td>
|
|
|
143 |
#end
|
|
|
144 |
#if($focoSaleReport.getRating())
|
|
|
145 |
<td>$focoSaleReport.getRating()</td>
|
|
|
146 |
#else
|
|
|
147 |
<td> --</td>
|
|
|
148 |
#end
|
|
|
149 |
|
|
|
150 |
#if($focoSaleReport.getStatus())
|
|
|
151 |
<td>$focoSaleReport.getStatus()</td>
|
|
|
152 |
#else
|
|
|
153 |
<td> -- </td>
|
|
|
154 |
#end
|
|
|
155 |
#if($focoSaleReport.getRemark())
|
|
|
156 |
<td>$focoSaleReport.getRemark()</td>
|
|
|
157 |
#else
|
|
|
158 |
<td> -- </td>
|
|
|
159 |
#end
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
#if($focoSaleReport.getCreatedTimestamp())
|
| 30183 |
manish |
163 |
<td>$focoSaleReport.getCreatedTimestamp().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
164 |
|
|
|
165 |
#else
|
|
|
166 |
<td> -- </td>
|
|
|
167 |
#end
|
|
|
168 |
|
|
|
169 |
#if($focoSaleReport.getDisposedTimestamp())
|
| 30183 |
manish |
170 |
<td>$focoSaleReport.getDisposedTimestamp().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
171 |
#else
|
|
|
172 |
<td> -- </td>
|
|
|
173 |
#end
|
|
|
174 |
#if($focoSaleReport.getNextTimestamp())
|
| 30183 |
manish |
175 |
<td>$focoSaleReport.getNextTimestamp().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
176 |
#else
|
|
|
177 |
<td> -- </td>
|
|
|
178 |
#end
|
|
|
179 |
#if($focoSaleReport.getActivationTimestamp())
|
|
|
180 |
|
| 30183 |
manish |
181 |
<td>$focoSaleReport.getActivationTimestamp().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
182 |
#else
|
|
|
183 |
<td> -- </td>
|
|
|
184 |
#end
|
|
|
185 |
#if($focoSaleReport.getActivationTimestamp())
|
| 30183 |
manish |
186 |
<td>$focoSaleReport.getCreateTimestamp().format($datehiphenFormatter)</td>
|
| 30164 |
manish |
187 |
|
|
|
188 |
#else
|
|
|
189 |
<td> -- </td>
|
|
|
190 |
#end
|
|
|
191 |
<td>$focoSaleReport.getLabel()</td>
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
</tr>
|
|
|
195 |
#end
|
|
|
196 |
|
|
|
197 |
</tbody>
|
|
|
198 |
|
|
|
199 |
</table>
|
|
|
200 |
</div>
|
|
|
201 |
|
|
|
202 |
</section>
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
<script>
|
|
|
207 |
|
|
|
208 |
var dtable = $('#focoSaleReportTable').DataTable(
|
|
|
209 |
{
|
|
|
210 |
"scrollX": true,
|
|
|
211 |
"bPaginate": true,
|
|
|
212 |
"bLengthChange": true,
|
|
|
213 |
"bFilter": true,
|
|
|
214 |
"bInfo": false,
|
|
|
215 |
"bAutoWidth": false,
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
});
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
</script>
|
| 33092 |
tejus.loha |
223 |
#if($isAdmin)
|
|
|
224 |
<script type="text/javascript">
|
|
|
225 |
$(function () {
|
|
|
226 |
getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
|
|
|
227 |
partnerId = selectedPartner.partnerId;
|
|
|
228 |
|
|
|
229 |
console.log(partnerId);
|
|
|
230 |
});
|
|
|
231 |
});
|
|
|
232 |
</script>
|
|
|
233 |
+#end
|