Subversion Repositories SmartDukaan

Rev

Rev 26721 | Rev 26952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26721 Rev 26748
Line 19... Line 19...
19
	}
19
	}
20
</style>
20
</style>
21
 
21
 
22
<section class="wrapper">            
22
<section class="wrapper">            
23
	<div class="row">
23
	<div class="row">
24
		<div class="col-lg-12">
24
	<div class="col-lg-12">
25
		 #if ($isAdmin)
25
		#if ($isAdmin)
26
			<h3 class="page-header"><i class="icon_document_alt"></i>Create/Edit Allocation</h3>
26
			<h3 class="page-header"><i class="icon_document_alt"></i>Create/Edit Allocation</h3>
27
			<ol class="breadcrumb">
27
			<ol class="breadcrumb">
28
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
28
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
29
				#if($retailerName)
29
				#if($retailerName)
30
				<script type="text/javascript">
30
				<script type="text/javascript">
Line 33... Line 33...
33
				<li><i class="icon_document_alt"></i><b>Allocation for $retailerName (Counter Size - $counterSize)</b></li>
33
				<li><i class="icon_document_alt"></i><b>Allocation for $retailerName (Counter Size - $counterSize)</b></li>
34
				#else
34
				#else
35
				<li><i class="icon_document_alt"></i><b>Standard Allocation (Counter Size - $counterSize)</b></li>
35
				<li><i class="icon_document_alt"></i><b>Standard Allocation (Counter Size - $counterSize)</b></li>
36
				#end
36
				#end
37
			</ol>
37
			</ol>
38
		#else 
38
		#else
39
			<h3 class="page-header"><i class="icon_document_alt"></i>My Business Plan <span style ="font-size:18px";>(Open from <b>26<sup>th</sup> to 7<sup>th</sup></b> of each Month)</span></h3>
39
			<h3 class="page-header"><i class="icon_document_alt"></i>My Business Plan <span style ="font-size:18px";>(Open from <b>26<sup>th</sup> to 7<sup>th</sup></b> of each Month)</span></h3>
40
			
40
			
41
		#end 
41
		#end
42
		
-
 
43
				
-
 
44
		</div>
42
		</div>
45
		
43
		
46
		
44
		
47
	</div>
45
	</div>
48
	
46
	
49
    <div>
47
    <div>
50
    <!--	#if ($isAdmin)
-
 
51
    	<div class="row">
-
 
52
    		<div class="col-lg-3">
-
 
53
                <div class="input-group">
-
 
54
			    	<input id="partnerId" type="text" class="typeahead form-control form-control-sm" placeholder="Search Partner by Store" data-provide="typeahead" 
-
 
55
			    	 #if(${retailerName}) value="${retailerName}" #end
-
 
56
			    	 autocomplete="off"/>
-
 
57
	               	<div class="input-group-btn">
-
 
58
		    			<button class="create_indent btn btn-primary">Get Partner Allocation</button>
-
 
59
		    			<button class="download_indent btn btn-primary">Download</button>
-
 
60
		    		</div>
-
 
61
		    	</div>
-
 
62
    		</div>
-
 
63
		    <div class="col-lg-3">
-
 
64
			    <div class="dropdown">
-
 
65
			 		<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Change Counter Size
-
 
66
					  <span class="caret"></span></button>
-
 
67
					  <ul class="dropdown-menu">
-
 
68
					  #foreach($counterSiz in $counterSizes)
-
 
69
					    <li class="mk_counter_size #if(${counterSiz}==${counterSize}) active#end"><a href="javascript:void(0)">$counterSiz</a></li>
-
 
70
					  #end
-
 
71
			  		</ul>
-
 
72
				</div>
-
 
73
	    	</div>
-
 
74
    	</div>
-
 
75
    	#end
-
 
76
    	-->
48
    
77
    	
49
    
78
    	<div class="row">
50
    	<div class="row">
79
    		   <div class="col-lg-3" style="text-align:left;">
51
    		   <div class="col-lg-3" style="text-align:left;">
80
		                 #if(!$isAdmin)
52
		                 #if(!$isAdmin)
81
						<button type="button" class="btn btn-default previous-month" aria-label="Previous" >
53
						<button type="button" class="btn btn-default previous-month" aria-label="Previous" >
82
							$previousPlanningMonth</button> 
54
							$previousPlanningMonth</button> 
Line 123... Line 95...
123
	    					<tr>
95
	    					<tr>
124
	    						<td>$modelListing.getCatalogId()</td>
96
	    						<td>$modelListing.getCatalogId()</td>
125
	    						<td>$modelListing.getItemDescription()</td>
97
	    						<td>$modelListing.getItemDescription()</td>
126
	    						<td class="currency">$modelListing.getDp()</td>
98
	    						<td class="currency">$modelListing.getDp()</td>
127
	    						<td class="currency">$modelListing.getMop()</td>
99
	    						<td class="currency">$modelListing.getMop()</td>
128
	    						#if($freezed&&$previousMonth || $isAdmin)
100
	    						#if($freezed&&$previousMonth)
129
	    						<td>
101
	    						<td>
130
	    						<input type="number" min="0" max="40" 
102
	    						<input type="number" min="0" max="40" 
131
	    						data-catalog-id="$modelListing.getCatalogId()"
103
	    						data-catalog-id="$modelListing.getCatalogId()"
132
	    						data-selling-price="$modelListing.getDp()"
104
	    						data-selling-price="$modelListing.getDp()"
133
	    						data-brand-name="$modelListing.getBrand()"
105
	    						data-brand-name="$modelListing.getBrand()"
134
	    						data-description="$modelListing.getItemDescription()" 
106
	    						data-description="$modelListing.getItemDescription()" 
135
	    						value="$modelListing.getAllocatedQuantity()" readonly/>
107
	    						value="$modelListing.getAllocatedQuantity()" readonly/>
136
	    						</td>
108
	    						</td>
137
	    						#elseif($freezed || $isAdmin)
109
	    						#elseif($freezed)
138
	    						<td>
110
	    						<td>
139
	    						<input type="number" min="0" max="40" 
111
	    						<input type="number" min="0" max="40" 
140
	    						data-catalog-id="$modelListing.getCatalogId()"
112
	    						data-catalog-id="$modelListing.getCatalogId()"
141
	    						data-selling-price="$modelListing.getDp()"
113
	    						data-selling-price="$modelListing.getDp()"
142
	    						data-brand-name="$modelListing.getBrand()"
114
	    						data-brand-name="$modelListing.getBrand()"
Line 175... Line 147...
175
	    			</table>
147
	    			</table>
176
	    		</div>
148
	    		</div>
177
	    		<div class="col-lg-7" id="indent-container1" style="display:none"></div>
149
	    		<div class="col-lg-7" id="indent-container1" style="display:none"></div>
178
	    		<div class="col-lg-4">
150
	    		<div class="col-lg-4">
179
	    			<div class="panel panel-default">
151
	    			<div class="panel panel-default">
180
	    			#if(!$isAdmin)
152
	    		##	#if(!$isAdmin) 
181
	                <div class="panel-heading">Allocation Update Summary #if($retailerName) (Counter Size - $counterSize) #end</div>
153
	                <div class="panel-heading">Allocation Update Summary #if($retailerName) (Counter Size - $counterSize) #end</div>
182
	                  <div class="panel-content">
154
	                  <div class="panel-content">
183
		                  <div id="plansummary">
155
		                  <div id="plansummary">
184
		                  </div>
156
		                  </div>
185
		                  <div id="planbuttons">
157
		                  <div id="planbuttons">
Line 187... Line 159...
187
					          <button class="btn btn-primary bk_toedit_indent" style="display:none">Edit</button> -->
159
					          <button class="btn btn-primary bk_toedit_indent" style="display:none">Edit</button> -->
188
					          
160
					          
189
					          #if($freezed&&$previousMonth)
161
					          #if($freezed&&$previousMonth)
190
					           <button class="btn btn-primary confirm_indent" disabled>Confirm Update</button>
162
					           <button class="btn btn-primary confirm_indent" disabled>Confirm Update</button>
191
					          #elseif($freezed)
163
					          #elseif($freezed)
192
					          <button class="btn btn-primary confirm_indent" disabled>Confirm Update</button>
164
					          <button class="btn btn-primary confirm_indent" disabled >Confirm Update</button>
193
					          #else
165
					          #else
194
					           <button class="btn btn-primary confirm_indent" style="display:none">Confirm Update</button>
166
					           <button class="btn btn-primary confirm_indent" style="display:none">Confirm Update</button>
195
					          #end
167
					          #end
196
				          </div>
168
				          </div>
197
	                  </div>
169
	                  </div>
198
                	</div>
170
                	</div>
199
                	#else
-
 
200
                	#set($diff=$totalAmount - $walletAmount)
-
 
201
	                <div class="panel-heading">PO Summary(Total Amount in Wallet - <span class="currency">$walletAmount</span>)</div>
-
 
202
	                  <div class="panel-content">
-
 
203
	                  	<table class="table table-sm" id="summary-table">
-
 
204
	                  		  <thead>
-
 
205
							    <tr>
-
 
206
							      <th class="col">#</th>
-
 
207
							      <th class="col">Total Pcs</th>
-
 
208
							      <th class="col">Amount to Pay</th>
-
 
209
							      <th class="col">Action</th>
-
 
210
							    </tr>
-
 
211
							  </thead>
-
 
212
							  <tbody>
-
 
213
							  #**
-
 
214
							    <tr>
-
 
215
							      <th class="row">Partial PO</th>
-
 
216
							      <td>$partialPcs</td>
-
 
217
							      <td>$partialAmount</td>
-
 
218
							      <td><button class="btn btn-sm btn-primary confirm_indent #if(${diff} > 0)disabled#end"
-
 
219
							      >Raise Partial PO</button></td>
-
 
220
							    </tr>
-
 
221
							   **#
-
 
222
							    <tr>
-
 
223
							      <th class="row">Complete PO</th>
-
 
224
							      <td>$totalPcs</td>
-
 
225
							      <td class="currency">$totalAmount</td>
-
 
226
							      #if($totalPcs)
-
 
227
							      <td><button class="btn btn-primary raise_po#if($diff > 0) disabled#end">Raise Complete PO</button></td>
-
 
228
							      #else
-
 
229
							      <td>Nothing to order!</td>
-
 
230
							      #end
-
 
231
							    </tr>
-
 
232
							  </tbody>	
-
 
233
	                  	</table>
-
 
234
	                  #if($diff>0)
-
 
235
	                  	<div class="alert alert-warning">
-
 
236
							<medium>Please add Rs.<span class="currency">$diff</span> to complete this transaction.</meduim>
-
 
237
						</div>
-
 
238
					  #end
-
 
239
	                  </div>
-
 
240
                	</div>
-
 
241
                	#end
171
                	
242
                	
172
                	
243
                
173
                
244
    	         	<div class="panel panel-default">
174
    	         	<div class="panel panel-default">
245
	    			
-
 
246
	                <div class="panel-heading">Brand Stock</div>
175
	                <div class="panel-heading">Brand Stock</div>
247
	                  <div class="panel-content">
176
	                  <div class="panel-content">
248
		                 <table class="table table-sm" id="stock-table">
177
		                 <table class="table table-sm" id="stock-table">
249
	                  		  <thead>
178
	                  		  <thead>
250
							    <tr>
179
							    <tr>
Line 265... Line 194...
265
							    #end
194
							    #end
266
							   </tbody>
195
							   </tbody>
267
							</table>
196
							</table>
268
	                  </div>
197
	                  </div>
269
                  	</div>
198
                  	</div>
270
    	        
199
    	  
271
    	        </div>
200
    	        </div>
272
    	   
-
 
273
                	<!-- #if($isAdmin)
-
 
274
                	<div class="panel panel-default">
-
 
275
                		<div class="panel-heading">Brandwise Target and Performance</div>
-
 
276
                		<div class="panel-content">
-
 
277
                		<ul class="nav nav-tabs">
-
 
278
						  <li role="presentation" class="active brandLi"><a href="javascript:void(0)">Mobiles</a></li>
-
 
279
						  <li role="presentation" class="brandLi"><a href="javascript:void(0)">Accessories</a></li>
-
 
280
						</ul>
-
 
281
 
-
 
282
						<table class="brandPerformance table table-striped table-condensed table-bordered">
-
 
283
							<thead>
-
 
284
								<tr>
-
 
285
									<th rowspan="2">Brand Name</th>
-
 
286
									<th rowspan="2" align="center">Target Value</th>
-
 
287
									<th colspan="2" align="center">Achieved</th>
-
 
288
									<th colspan="2">Brand Share(%)</th>
-
 
289
								</tr>
-
 
290
								<tr>
-
 
291
									<th>Value</th>
-
 
292
									<th>Percentage</th>
-
 
293
									<th>Target</th>
-
 
294
									<th>Achieved</th>
-
 
295
								</tr>
-
 
296
							</thead>
-
 
297
							<tbody>
-
 
298
							#foreach($brandPerformance in $brandPerformanceList)
-
 
299
								<tr>
-
 
300
									<th>$brandPerformance.getBrandName()</th>
-
 
301
									<td class="currency">$brandPerformance.getTarget()</td>
-
 
302
									<td class="currency">$brandPerformance.getAchieved()</td>
-
 
303
									<td>$brandPerformance.getAchievedPercentage()%</td>
-
 
304
									<td>$brandPerformance.getBrandTargetShare()</td>
-
 
305
									<td>$brandPerformance.getBrandAchievedShare()</td>
-
 
306
								</tr>
-
 
307
							#end
-
 
308
							<tbody>
-
 
309
							</tbody>
-
 
310
						</table>
-
 
311
						<table style="display:none" class="table brandPerformance table-striped table-condensed table-bordered">
-
 
312
							<thead>
-
 
313
								<tr>
-
 
314
									<th rowspan="2">Brand Name</th>
-
 
315
									<th rowspan="2" align="center">Target Value</th>
-
 
316
									<th colspan="2" align="center">Achieved</th>
-
 
317
									<th colspan="2">Brand Share(%)</th>
-
 
318
								</tr>
-
 
319
								<tr>
-
 
320
									<th>Value</th>
-
 
321
									<th>Percentage</th>
-
 
322
									<th>Target</th>
-
 
323
									<th>Achieved</th>
-
 
324
								</tr>
-
 
325
							</thead>
-
 
326
							<tbody>
-
 
327
							#foreach($brandPerformance in $accsBrandPerformanceList)
-
 
328
								<tr>
-
 
329
									<th>$brandPerformance.getBrandName()</th>
-
 
330
									<td>$brandPerformance.getTarget()</td>
-
 
331
									<td>$brandPerformance.getAchieved()</td>
-
 
332
									<td>$brandPerformance.getAchievedPercentage()%</td>
-
 
333
									<td>$brandPerformance.getBrandTargetShare()</td>
-
 
334
									<td>$brandPerformance.getBrandAchievedShare()</td>
-
 
335
								</tr>
-
 
336
							#end
-
 
337
							<tbody>
-
 
338
							</tbody>
-
 
339
						</table>
-
 
340
                		</div>
-
 
341
                		
-
 
342
                	</div>
-
 
343
                	#end -->
-
 
344
	    		</div>
201
	    		</div>
345
	    	</div>
202
	    	</div>
346
    	</div>
203
    	</div>
347
    
204
    
348
    	
205