Subversion Repositories SmartDukaan

Rev

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

Rev 9736 Rev 9780
Line 195... Line 195...
195
	var itemId=$('#itemId').val();
195
	var itemId=$('#itemId').val();
196
	var maxNlc=$('#maxNlc').val();
196
	var maxNlc=$('#maxNlc').val();
197
	var minPossibleSp=$('#minPosSp').val();
197
	var minPossibleSp=$('#minPosSp').val();
198
	var sellingPrice=$('#sellingPrice').val();
198
	var sellingPrice=$('#sellingPrice').val();
199
	var otherCost=$('#otherCost').val();
199
	var otherCost=$('#otherCost').val();
-
 
200
	var supc_code=$('#supc').val();
-
 
201
	var sdItem=$('#sdItemCode').val();
-
 
202
	
-
 
203
	if (supc_code=="" || supc_code==null){
-
 
204
		jAlert('Illegal Entry In SUPC', 'ERROR');
-
 
205
		return false;
-
 
206
	}
-
 
207
	
-
 
208
	if (sdItem=="" || sdItem==null){
-
 
209
		jAlert('Illegal Entry In Sku@Snapdeal', 'ERROR');
-
 
210
		return false;
-
 
211
	}
200
	
212
	
201
	if (warehouseId=="" || isNaN(warehouseId)){
213
	if (warehouseId=="" || isNaN(warehouseId)){
202
		jAlert('Illegal Entry In Warehouse Id', 'ERROR');
214
		jAlert('Illegal Entry In Warehouse Id', 'ERROR');
203
		return false;
215
		return false;
204
	}
216
	}
Line 280... Line 292...
280
	var itemId=$('#itemId').val();
292
	var itemId=$('#itemId').val();
281
	var maxNlc=$('#maxNlc').val();
293
	var maxNlc=$('#maxNlc').val();
282
	var otherCost=$('#otherCost').val();
294
	var otherCost=$('#otherCost').val();
283
	var minPossibleSp=$('#minPosSp').val();
295
	var minPossibleSp=$('#minPosSp').val();
284
	var sellingPrice=$('#sellingPrice').val();
296
	var sellingPrice=$('#sellingPrice').val();
-
 
297
	var supc=$('#supc').val();
-
 
298
	var sdItem=$('#sdItemCode').val();
-
 
299
	
-
 
300
	if (supc=="" || supc==null){
-
 
301
		jAlert('Illegal Entry In SUPC', 'ERROR');
-
 
302
		return false;
-
 
303
	}
-
 
304
	
-
 
305
	if (sdItem=="" || sdItem==null){
-
 
306
		jAlert('Illegal Entry In Sku@Snapdeal', 'ERROR');
-
 
307
		return false;
-
 
308
	}
285
	
309
	
286
	if (itemId==0 || itemId=="" || isNaN(itemId)){
310
	if (itemId==0 || itemId=="" || isNaN(itemId)){
287
		jAlert('Illegal Entry In Item Id ', 'ERROR');
311
		jAlert('Illegal Entry In Item Id ', 'ERROR');
288
		return false;
312
		return false;
289
	}
313
	}
Line 336... Line 360...
336
        },
360
        },
337
        complete: function(){
361
        complete: function(){
338
        $('#ajax-spinner').hide();
362
        $('#ajax-spinner').hide();
339
        },
363
        },
340
        success: function (data) {
364
        success: function (data) {
-
 
365
           if(data==0){
-
 
366
				alert("Backend validation failed");
-
 
367
				return false;
-
 
368
			}
-
 
369
			else{
-
 
370
				alert("Backend validation sucess");
-
 
371
			}
341
            alert("Changes propagated successfully");
372
            alert("Changes propagated successfully");
342
        },
373
        },
343
		 error : function() {
374
		 error : function() {
344
		 	alert("OOPS!!!Failed to do changes.Try Again.");
375
		 	alert("OOPS!!!Failed to do changes.Try Again.");
345
		 },
376
		 },