Subversion Repositories SmartDukaan

Rev

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

Rev 23886 Rev 23888
Line 353... Line 353...
353
	customerObj['firstName'] = $("form#cd input[name=firstName]").val();
353
	customerObj['firstName'] = $("form#cd input[name=firstName]").val();
354
	customerObj['lastName'] = $("form#cd input[name=lastName]").val();
354
	customerObj['lastName'] = $("form#cd input[name=lastName]").val();
355
	customerObj['mobileNumber'] = $("form#cd input[name=phone]").val(); 
355
	customerObj['mobileNumber'] = $("form#cd input[name=phone]").val(); 
356
	customerObj['emailId'] = $("form#cd input[name=email]").val();
356
	customerObj['emailId'] = $("form#cd input[name=email]").val();
357
	customerObj['gstNumber'] = $("form#cd input[name=gstNumber]").val();
357
	customerObj['gstNumber'] = $("form#cd input[name=gstNumber]").val();
358
	customerObj['dateOfBirth'] = startDate;
358
	//customerObj['dateOfBirth'] = startDate;
359
	var customerAddress = {};
359
	var customerAddress = {};
360
	customerAddress['name'] = $("form#cd input[name=firstName]").val() + " " + $("form#cd input[name=lastName]").val();
360
	customerAddress['name'] = $("form#cd input[name=firstName]").val() + " " + $("form#cd input[name=lastName]").val();
361
	customerAddress['line1'] = $("form#cd input[name=line1]").val();
361
	customerAddress['line1'] = $("form#cd input[name=line1]").val();
362
	customerAddress['line2'] = $("form#cd input[name=line2]").val();
362
	customerAddress['line2'] = $("form#cd input[name=line2]").val();
363
	customerAddress['landmark'] = $("form#cd input[name=landmark]").val();
363
	customerAddress['landmark'] = $("form#cd input[name=landmark]").val();
Line 386... Line 386...
386
	}
386
	}
387
	
387
	
388
	console.log( JSON.stringify(paymentOptionIdAmount));
388
	console.log( JSON.stringify(paymentOptionIdAmount));
389
	
389
	
390
	var retObj = {};
390
	var retObj = {};
391
	var dateOfBirth = $("form#cd input[name=dateOfBirth]").val();
-
 
392
	if(globalInsurance){
391
	if(globalInsurance){
393
		retObj['customerDateOfBirth'] = (dateOfBirth);
392
		retObj['customerDateOfBirth'] = startDate;
394
	}
393
	}
395
	
394
	
396
	retObj['fofoOrderItems'] = (priceQtyArray);
395
	retObj['fofoOrderItems'] = (priceQtyArray);
397
	retObj['customer'] = (customerObj);
396
	retObj['customer'] = (customerObj);
398
	retObj['paymentOptions'] =  (paymentOptionIdAmount);
397
	retObj['paymentOptions'] =  (paymentOptionIdAmount);