Subversion Repositories SmartDukaan

Rev

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

Rev 23331 Rev 23340
Line 840... Line 840...
840
		$(this).removeClass("border-highlight");
840
		$(this).removeClass("border-highlight");
841
		if (!input || parseInt(input)<=0 || isNaN(input)){
841
		if (!input || parseInt(input)<=0 || isNaN(input)){
842
			error=true;
842
			error=true;
843
			$(this).addClass("border-highlight");
843
			$(this).addClass("border-highlight");
844
		}
844
		}
-
 
845
		var unitPrice = parseFloat(input);
-
 
846
		var mopPrice = parseFloat($(this).attr('mopPrice'));
-
 
847
		if(unitPrice < mopPrice){
-
 
848
			error = true;
-
 
849
			alert("sellingPrice must be greater than equal to mop")
-
 
850
			$(this).addClass("border-highlight");
-
 
851
		}
845
	});
852
	});
846
	
853
	
847
	// checking input discountAmount is not greater than maxDiscountAmount
854
	// checking input discountAmount is not greater than maxDiscountAmount
848
	$("form#cd input.discountAmount").each(function(){
855
	$("form#cd input.discountAmount").each(function(){
849
		var input = $(this).val().trim();
856
		var input = $(this).val().trim();