Subversion Repositories SmartDukaan

Rev

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

Rev 9725 Rev 9734
Line 222... Line 222...
222
		jAlert('Illegal Entry In Max NLC field', 'ERROR');
222
		jAlert('Illegal Entry In Max NLC field', 'ERROR');
223
		return false;
223
		return false;
224
	}
224
	}
225
	
225
	
226
	if (parseFloat(sellingPrice) < minPossibleSp){
226
	if (parseFloat(sellingPrice) < minPossibleSp){
227
		if (!(confirm('Selling Price is below Minimum Possible Selling Price.Do you want to update?'))){
227
		if ((confirm('Selling Price is below Minimum Possible Selling Price.Do you want to update?'))){
-
 
228
			if (!(confirm('Are you sure?Selling Price is below Minimum Possible Selling Price.'))){
-
 
229
			return false;
-
 
230
			}
-
 
231
		}
-
 
232
		else{
228
			return false;
233
			return false;
229
		}
234
		}
230
	}
235
	}
231
	
236
	
232
	
237
	
Line 243... Line 248...
243
        },
248
        },
244
        complete: function(){
249
        complete: function(){
245
        $('#ajax-spinner').hide();
250
        $('#ajax-spinner').hide();
246
        },
251
        },
247
        success: function (data) {
252
        success: function (data) {
-
 
253
			if(data==0){
-
 
254
				alert("Backend validation failed");
-
 
255
				return false;
-
 
256
			}
248
            alert("Changes propagated successfully");
257
            alert("Changes propagated successfully");
249
        },
258
        },
250
		 error : function() {
259
		 error : function() {
251
		 	alert("OOPS!!!Failed to do changes.Try Again.");
260
		 	alert("OOPS!!!Failed to do changes.Try Again.");
252
		 },
261
		 },