Subversion Repositories SmartDukaan

Rev

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

Rev 2159 Rev 3063
Line 22... Line 22...
22
		if(typeInputs[i].checked)
22
		if(typeInputs[i].checked)
23
			selected = typeInputs[i].value; 
23
			selected = typeInputs[i].value; 
24
	if(selected == ''){
24
	if(selected == ''){
25
		dispError("Please select a payment method.");
25
		dispError("Please select a payment method.");
26
		return false;
26
		return false;
27
	} 
27
	}
-
 
28
	if(selected == 'COD'){
-
 
29
		payment_option = 3000;
-
 
30
	} else {
28
	payment_option = $("form[name='paymentModeSelection'] select[name='g"+ selected + "']").val();
31
		payment_option = $("form[name='paymentModeSelection'] select[name='g"+ selected + "']").val();
-
 
32
	}
29
	if(payment_option > 0){	
33
	if(payment_option > 0){	
30
		$("form[name='paymentModeSelection'] :input[name='payment_option']").val(payment_option);
34
		$("form[name='paymentModeSelection'] :input[name='payment_option']").val(payment_option);
31
		return true;
35
		return true;
32
	}else	
36
	}else	
33
		dispError("Please select a payment method.");
37
		dispError("Please select a payment method.");