Subversion Repositories SmartDukaan

Rev

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

Rev 9734 Rev 9736
Line 252... Line 252...
252
        success: function (data) {
252
        success: function (data) {
253
			if(data==0){
253
			if(data==0){
254
				alert("Backend validation failed");
254
				alert("Backend validation failed");
255
				return false;
255
				return false;
256
			}
256
			}
-
 
257
			else{
-
 
258
				alert("Backend validation sucess");
-
 
259
			}
257
            alert("Changes propagated successfully");
260
            alert("Changes propagated successfully");
258
        },
261
        },
259
		 error : function() {
262
		 error : function() {
260
		 	alert("OOPS!!!Failed to do changes.Try Again.");
263
		 	alert("OOPS!!!Failed to do changes.Try Again.");
261
		 },
264
		 },
Line 309... Line 312...
309
		jAlert('Illegal Entry In Max NLC field', 'ERROR');
312
		jAlert('Illegal Entry In Max NLC field', 'ERROR');
310
		return false;
313
		return false;
311
	}
314
	}
312
	
315
	
313
	if (parseFloat(sellingPrice) < minPossibleSp){
316
	if (parseFloat(sellingPrice) < minPossibleSp){
314
		if (!(confirm('Selling Price is below Minimum Possible Selling Price.Do you want to update?'))){
317
		if ((confirm('Selling Price is below Minimum Possible Selling Price.Do you want to update?'))){
-
 
318
			if (!(confirm('Are you sure?Selling Price is below Minimum Possible Selling Price.'))){
-
 
319
			return false;
-
 
320
			}
-
 
321
		}
-
 
322
		else{
315
			return false;
323
			return false;
316
		}
324
		}
317
	}
325
	}
318
	
326
	
319
    var data = $(this).serialize() 
327
    var data = $(this).serialize()