Rev 27618 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>.btn:hover{color: grey;text-decoration: none;}.btn-info:hover{color: grey;text-decoration: none;}}</style><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Catalog Item Management</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>PriceDrop</li><li><button type="button" data-toggle="modal" class="btn btn-sm btn-primary mk_download_pricing" data-target="#addPricing">Download Pricing</li><li><button type="button" data-toggle="modal" class="btn btn-sm btn-primary" data-target="#addPriceModal">Add/Update Pricing</li></ol></div></div><div class="form-group row"><div class="col-lg-8"><label for="typeaheaditem1">Item:</label><input placeholder="Search Item" type="text" class="form-control typeahead" id="typeaheaditem1" name="Item" data-provide="typeahead" autocomplete="off"></div><div class="col-lg-4"><div> </div><button type="button" class="btn btn-primary mk_pause_button">Active/Pause</button></div></div></section><script type="text/javascript">$(document).ready(function() {var start = moment().subtract(29, 'days');var end = moment();priceDropTable = $('#priceDrop').find('table').DataTable({pageLength: 20,order:[[ 5, 'desc' ]]});getItemAheadOptions($("#typeaheaditem"),function(selectedItem){currentItem = selectedItem;doGetAjaxRequestHandler(context+"/item-pricing/"+currentItem.itemId, function(response){response = JSON.parse(response);$('#oldDp').html(response.dp);$('#oldMop').html(response.mop);$('#oldTp').html(response.tp);$('#oldNlc').html(response.nlc);});});getItemAheadOptions($("#typeaheaditem1"), function(selectedItem){currentItem = selectedItem;doGetAjaxRequestHandler(context+"/item-pricing/"+currentItem.itemId, function(response){$('.mk_pause_button').data("id", currentItem.catalogId);$('.mk_pause_button').data("description", currentItem.itemDescription);response = JSON.parse(response);$("#mop").val(response.mop);$("#mrp").val(response.mrp);$("#dp").val(response.dp);$("#tp").val(response.tp);$('#dpValue').html("DP -" + response.dp);$('#mopValue').html("MOP -" + response.mop);$('#mrpValue').html("MRP -"+ response.mrp);$('#tpValue').html("TP -"+ response.tp);});});affectedDateInput=$('#affectedDate');affectedDateInput.daterangepicker(getSingleDatePicker(), dateRangeCallback);$("#newPriceDropModal").on('hidden.bs.modal', function () {$("#pdForm").trigger("reset");});$("#addPriceModal").on('hidden.bs.modal', function () {$("#pdForm1").trigger("reset");});});</script>