Subversion Repositories SmartDukaan

Rev

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

Rev 29012 Rev 29014
Line 80... Line 80...
80
		var $element = $(this);
80
		var $element = $(this);
81
		var unitPrice = parseFloat($element.val());
81
		var unitPrice = parseFloat($element.val());
82
		if (!isNaN(unitPrice)) {
82
		if (!isNaN(unitPrice)) {
83
			var itemType = parseFloat($(this).closest('tr').find('.serialNumber').attr("itemType"));
83
			var itemType = parseFloat($(this).closest('tr').find('.serialNumber').attr("itemType"));
84
			var mopPrice = parseFloat($(this).attr('mopPrice'));
84
			var mopPrice = parseFloat($(this).attr('mopPrice'));
85
			var isMop = parseBoolean($(this).attr('isMop'));
85
			var isMop = JSON.parse($(this).attr('isMop'));
86
			var dp = parseFloat($(this).attr('dp'));
86
			var dp = parseFloat($(this).attr('dp'));
87
			var mrp = parseFloat($(this).attr('mrp'));
87
			var mrp = parseFloat($(this).attr('mrp'));
88
			if (mrp != 0 && unitPrice > mrp) {
88
			if (mrp != 0 && unitPrice > mrp) {
89
				alert("Selling Price should not be greater than MRP");
89
				alert("Selling Price should not be greater than MRP");
90
				$element.addClass("border-highlight");
90
				$element.addClass("border-highlight");