Subversion Repositories SmartDukaan

Rev

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

Rev 26131 Rev 26176
Line 8... Line 8...
8
  		text-decoration: none;
8
  		text-decoration: none;
9
	}
9
	}
10
	.retailer-details{
10
	.retailer-details{
11
		cursor:pointer;
11
		cursor:pointer;
12
	}
12
	}
-
 
13
	.indentMessage{
-
 
14
	text-transform: lowercase;
-
 
15
	display: inline-block;
-
 
16
	}
-
 
17
	.indentMessage:first-letter{
-
 
18
	text-transform: UpperCase;
-
 
19
	}
13
</style>
20
</style>
14
 
21
 
15
<section class="wrapper">            
22
<section class="wrapper">            
16
	<div class="row">
23
	<div class="row">
17
		<div class="col-lg-12">
24
		<div class="col-lg-12">
Line 27... Line 34...
27
				#else
34
				#else
28
				<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>
29
				#end
36
				#end
30
			</ol>
37
			</ol>
31
		#else
38
		#else
32
			<h3 class="page-header"><i class="icon_document_alt"></i>My Business Plan</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>
33
			<div style = "font-size:25px;font-weight:bold" >Monthly planning available for each month between 26 - 07</div>
-
 
34
			#if($freezed&&$planningMonth)
-
 
35
			<div style = "font-size:20px;font-weight:bold" >Monthly planning for $planningMonth Month Closed</div>
-
 
36
			#else
-
 
37
			<div style = "font-size:20px;font-weight:bold" >Monthly planning for $planningMonth Month</div>
-
 
38
			#end
-
 
39
			
-
 
40
			
40
			
41
		#end
41
		#end
42
		</div>
42
		</div>
43
		
43
		
44
		   <div class="col-lg-3" style="text-align:left;">
-
 
45
		
44
		
46
						<button type="button" class="btn btn-default previous-month" aria-label="Previous" >
-
 
47
							$previousPlanningMonth</button> 
-
 
48
						<button type="button" class="btn btn-default current-month" aria-label="Current" >
-
 
49
							$currentPlanningMonth</button> 
-
 
50
	    	</div>
-
 
51
	</div>
45
	</div>
52
	
46
	
53
    <div>
47
    <div>
54
    	#if ($isAdmin)
48
    	#if ($isAdmin)
55
    	<div class="row">
49
    	<div class="row">
Line 75... Line 69...
75
			  		</ul>
69
			  		</ul>
76
				</div>
70
				</div>
77
	    	</div>
71
	    	</div>
78
    	</div>
72
    	</div>
79
    	#end
73
    	#end
-
 
74
    	
-
 
75
    	<div class="row">
-
 
76
    		   <div class="col-lg-3" style="text-align:left;">
-
 
77
		
-
 
78
						<button type="button" class="btn btn-default previous-month" aria-label="Previous" >
-
 
79
							$previousPlanningMonth</button> 
-
 
80
						<button type="button" class="btn btn-default current-month" aria-label="Current" >
-
 
81
							$currentPlanningMonth</button> 
-
 
82
	           	</div>
-
 
83
	           	
-
 
84
	         #if($freezed&&$planningMonth)
-
 
85
			<div style = "font-size:20px;font-weight:bold;color:red;"  class="indentMessage"> $planningMonth Month Planning is <b>Closed</b></div>
-
 
86
			#else
-
 
87
			<div style = "font-size:20px;font-weight:bold;color:Green;" >$planningMonth Month Planning is <b>Open</b></div>
-
 
88
			#end
-
 
89
    	</div>
80
	         <div class="row">
90
	         <div class="row">
-
 
91
	         
81
	    		<div class="col-lg-8" id="indent-container">
92
	    		<div class="col-lg-8" id="indent-container">
-
 
93
	    	
82
	    			<table class="table table-striped table-condensed table-bordered" id="entire-catalog-table">
94
	    			<table class="table table-striped table-condensed table-bordered" id="entire-catalog-table">
83
		    			<thead>
95
		    			<thead>
84
				            <tr>
96
				            <tr>
85
								<th>Id</th>
97
								<th>Id</th>
86
	    						<th style="width:30%">Description</th>
98
	    						<th style="width:30%">Description</th>
87
	    						<th style="width:12%">DP</th>
99
	    						<th style="width:12%">DP</th>
88
	    						<th>MOP</th>
100
	    						<th>MOP</th>
89
	    						<th style="width:20%">Planned Qty</th>
101
	    						<th style="width:20%">Planned Qty</th>
90
	    						#if($previousMonth)
102
	    						#if($previousMonth||$mtd)
91
	    						<th style="width:6%">Sale</th>
103
	    						<th style="width:6%">Sale</th>
92
	    						#else		
104
	    						#else		
93
	    						<th style="width:6%">15 days sale</th>
105
	    						<th style="width:6%">15 days sale</th>
94
	    						#end
106
	    						#end
95
	    						<th style="width:9%">In Stock</th>
107
	    						<th style="width:9%">In Stock</th>
96
	    						<th style="width:9%">In Transit</th>
108
	    						<th style="width:9%">In Transit</th>
97
	    						<th style="width:6%">Recommended</th>
109
	    						<th style="width:6%">Recommended</th>
98
	    						<th style="width:6%">Minimum</th>
110
	    						<th style="width:6%">Minimum</th>
99
	    						
111
	    						
-
 
112
	    						<th>Remaining</th>
-
 
113
	    						
-
 
114
	    						
100
				            </tr>
115
				            </tr>
101
				        </thead>
116
				        </thead>
102
	    				<tbody>
117
	    				<tbody>
103
	    					#foreach( $modelListing in $catalogTagListings )
118
	    					#foreach( $modelListing in $catalogTagListings )
104
	    					<tr>
119
	    					<tr>
Line 134... Line 149...
134
	    						value="$modelListing.getAllocatedQuantity()"/> 						
149
	    						value="$modelListing.getAllocatedQuantity()"/> 						
135
	    						</td>
150
	    						</td>
136
	    						#end
151
	    						#end
137
	    						#if($previousMonth)
152
	    						#if($previousMonth)
138
	    						<td>$modelListing.getLastMonthSaleMap()</td>
153
	    						<td>$modelListing.getLastMonthSaleMap()</td>
-
 
154
	    						#elseif($mtd)
-
 
155
	    						<td>$modelListing.getLast15DaysSale()</td>
139
	    						#else
156
	    						#else
140
	    						<td>$modelListing.getLast15DaysSale()</td>
157
	    						<td>$modelListing.getLast15DaysSale()</td>
141
	    						#end
158
	    						#end
142
	    						<td>$modelListing.getStockInHand()</td>
159
	    						<td>$modelListing.getStockInHand()</td>
143
	    						<td>$modelListing.getInTransitQuantity()</td>
160
	    						<td>$modelListing.getInTransitQuantity()</td>
144
	    						<td>$modelListing.getRecommendedQty()</td>
161
	    						<td>$modelListing.getRecommendedQty()</td>
145
	    						<td>$modelListing.getMinimumQty()</td>
162
	    						<td>$modelListing.getMinimumQty()</td>
-
 
163
	    						#if($mtd)
-
 
164
	    						<td>$modelListing.getRemaining()</td>
-
 
165
	    						#else
-
 
166
	    						<td></td>
146
	    						
167
	    						#end
147
	    					</tr>
168
	    					</tr>
148
	    					#end
169
	    					#end
149
	    				</tbody>
170
	    				</tbody>
150
	    			</table>
171
	    			</table>
151
	    		</div>
172
	    		</div>
Line 357... Line 378...
357
}
378
}
358
 
379
 
359
/* Initialise the table with the required column ordering data types */
380
/* Initialise the table with the required column ordering data types */
360
var customRetailers = ${customRetailers};
381
var customRetailers = ${customRetailers};
361
$(document).ready(function() {
382
$(document).ready(function() {
-
 
383
 
362
    indentTable = $('#entire-catalog-table').DataTable({
384
    indentTable = $('#entire-catalog-table').DataTable({
363
    	"scrollY":"600px",
385
    	"scrollY":"600px",
364
    	"columns": [
386
    	"columns": [
365
    	
387
    	
366
    	
388
    	
367
            { "visible": false }, null,null, null,
389
            { "visible": false }, null,null, null,
368
            { "orderDataType": "dom-text-numeric" }, null, null, null,null,null
390
            { "orderDataType": "dom-text-numeric" }, null, null, null,null,null,null
369
        ],
391
        ],
370
        "lengthMenu":[[25,50],[25,50]],
392
        "lengthMenu":[[25,50],[25,50]],
371
        "order": []
393
        "order": []
372
	});
394
	});
-
 
395
 
373
	indentMap = {};
396
	indentMap = {};
374
	indentTable.rows().data().each(function(arr){
397
	indentTable.rows().data().each(function(arr){
375
		var $input = $(arr[4]);
398
		var $input = $(arr[4]);
376
		quantity = parseInt($input.val(), 10);
399
		quantity = parseInt($input.val(), 10);
377
		if(quantity > 0){
400
		if(quantity > 0){