Subversion Repositories SmartDukaan

Rev

Rev 31219 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31219 Rev 34651
Line 1... Line 1...
1
<section class="wrapper">
1
<section class="wrapper">
2
	<div class="row">
2
	<div class="row">
3
		<div class="col-lg-12">
3
		<div class="col-lg-12 h-25">
4
			<h3 class="page-header"><i class="icon_document_alt"></i>PriceDrop</h3>
4
			<h3 class="page-header"><i class="icon_document_alt"></i>PriceDrop</h3>
5
			<ol class="breadcrumb">
5
			<ol class="breadcrumb">
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
				<li><i class="icon_document_alt"></i>PriceDrop</li>
7
				<li><i class="icon_document_alt"></i>PriceDrop</li>
8
				<li>
8
				<li>
Line 187... Line 187...
187
						</div>
187
						</div>
188
 
188
 
189
					</div>
189
					</div>
190
				</div>
190
				</div>
191
			</ol>
191
			</ol>
-
 
192
			<div class="d-flex ms-5 ">
-
 
193
				<input placeholder="Set Duration" name="priceDropStatementPeriod"
-
 
194
					   id="priceDropStatementPeriod"
-
 
195
					   type="text" value="" class="input-sm">
-
 
196
				<input
-
 
197
						class="btn btn-primary fetch-price-drop-statement-report" type="button"
-
 
198
						value="Submit">
-
 
199
				<input
-
 
200
						class="btn btn-primary download-price-drop-statement-report" type="button"
-
 
201
						value="Download">
-
 
202
			</div>
192
		</div>
203
		</div>
193
	</div>
204
	</div>
194
 
205
 
195
	<div class="price-drop-table">
-
 
196
		<div class="row">
-
 
197
			<div class="col-lg-12" id="priceDrop">
-
 
198
				<table class="table table-striped table-condensed table-bordered">
206
	<!-- Table Container - This will be replaced with AJAX content -->
199
					<thead>
-
 
200
					<tr>
-
 
201
						<th>Drop Id</th>
-
 
202
						<th>Item Name</th>
-
 
203
						<th>TP</th>
-
 
204
						<th>DP</th>
-
 
205
						<th>Mop</th>
-
 
206
						<th>Price Drop</th>
-
 
207
						<th>New DP</th>
-
 
208
						<th>Affected On</th>
207
	<div id="table-container">
209
						<th>Created On</th>
-
 
210
						<th>Payout</th>
-
 
211
						#if(!$processOn)
-
 
212
							<th>Processed On</th>
-
 
213
						#else
-
 
214
						#end
-
 
215
						<th>Download IMEIs</th>
-
 
216
 
-
 
217
					</tr>
-
 
218
					</thead>
-
 
219
					<tbody>
-
 
220
						#foreach($priceDrop in $priceDrops )
-
 
221
						<tr data-pricedropid="$priceDrop.getId()">
-
 
222
							<td>$priceDrop.getId()</td>
208
		#parse("price-drop-table.vm")
223
							<td>$catalogDescription.get($priceDrop.getCatalogItemId())</td>
-
 
224
							<td class="currency">$priceDrop.getTp()</td>
-
 
225
							<td class="currency">$priceDrop.getOldDp()</td>
-
 
226
							<td class="currency">$priceDrop.getMop()</td>
-
 
227
							<td class="currency">$priceDrop.getAmount()</td>
-
 
228
							<td class="currency">$priceDrop.getNewDp()</td>
-
 
229
							<td>$priceDrop.getAffectedOn().format($dateFormatter)</td>
-
 
230
							<td>$priceDrop.getCreatedOn().format($dateFormatter)</td>
-
 
231
							<td>
-
 
232
								#if($priceDrop.getProcessTimestamp())
-
 
233
									$priceDrop.getProcessTimestamp().format($dateTimeFormatter)<br>
-
 
234
									<input type="number" name="partnerPayout" readonly value="$priceDrop.getAutoPartnerPayout()" class="form-control partner-payout input-sm"/>
-
 
235
								#else
-
 
236
									<input type="number" name="partnerPayout" value="$priceDrop.getAutoPartnerPayout()" class="form-control partner-payout input-sm"/>
-
 
237
								#end
-
 
238
							</td>
-
 
239
							#if(!$priceDrop.getCompleteTimestamp())
-
 
240
							<td>
-
 
241
								<input class="btn btn-info btn-sm mk_view_imeis" data-toggle="modal" data-target="#viewImeisModal" type="submit" value="Process Manually"/>
-
 
242
								<input class="btn btn-info btn-sm mk_auto_process" data-activatedonly="false" type="submit" value="Process All"/><br>
-
 
243
								<input class="btn btn-info btn-sm mk_auto_process" data-activatedonly="true" type="submit" value="Process Activated Only"/>
-
 
244
							</td>
-
 
245
							#else
-
 
246
 
-
 
247
							#end
-
 
248
							<td>
-
 
249
								<input class="downloadtotalIMEI btn btn-info btn-sm" value="Download" type="submit" />
-
 
250
							</td>
-
 
251
						</tr>
-
 
252
						#end
-
 
253
					</tbody>
-
 
254
				</table>
-
 
255
			</div>
-
 
256
		</div>
-
 
257
	</div>
209
	</div>
258
</section>
210
</section>
259
<script type="text/javascript">
211
<script type="text/javascript">
-
 
212
	$('input[name="priceDropStatementPeriod"]').daterangepicker(getRangedDatePicker());
260
	$(document).ready(function () {
213
	$(document).ready(function () {
261
		$(".modal").on("hidden.bs.modal", function () {
214
		$(".modal").on("hidden.bs.modal", function () {
262
			$(".modal-body1").find(".mk_imeis_text").val('');
215
			$(".modal-body1").find(".mk_imeis_text").val('');
263
		});
216
		});
264
 
217