Subversion Repositories SmartDukaan

Rev

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

Rev 26487 Rev 26490
Line 57... Line 57...
57
				if (type == "") {
57
				if (type == "") {
58
					alert("Please Choose Reference Type");
58
					alert("Please Choose Reference Type");
59
					return;
59
					return;
60
				}
60
				}
61
				if(['INCENTIVES', 'OTHERS', 'AUTOMATED_ADVANCE', 'BRAND_FEE', 'DIWALI_OFFER',
61
				if(['INCENTIVES', 'OTHERS', 'AUTOMATED_ADVANCE', 'BRAND_FEE', 'DIWALI_OFFER',
62
					'GOODWILL_GESTURE', 'EOL', 'ACTIVATION_SCHEME', 'BOOSTER_SCHEME', 'SALES_MARKETING_SUPPORT'].indexOf(type)){
62
					'GOODWILL_GESTURE', 'EOL', 'ACTIVATION_SCHEME', 'BOOSTER_SCHEME', 'SALES_MARKETING_SUPPORT'].indexOf(type)<0){
63
					if(reference == ""){
63
					if(reference == ""){
64
						alert("Reference Id is required");
64
						alert("Reference Id is required");
65
						return;
65
						return;
66
					}
66
					}
67
				}
67
				}
Line 81... Line 81...
81
				}
81
				}
82
				if (retailerId == "") {
82
				if (retailerId == "") {
83
					alert("Partner name is required");
83
					alert("Partner name is required");
84
					return;
84
					return;
85
				}
85
				}
86
				if (typeof startDate != "string") {
86
				if (typeof startDate == "string") {
87
					if (confirm("Business Date is " + startDate.split("T")[0] + "?") == true) {
87
					if (confirm("Business Date is " + startDate.split("T")[0] + "?") == true) {
88
						if (confirm("Are you sure you want update wallet") == true) {
88
						if (confirm("Are you sure you want update wallet") == true) {
89
	
89
	
90
							doPostAjaxRequestHandler(context
90
							doPostAjaxRequestHandler(context
91
									+ "/walletUpdate?reference=" + reference
91
									+ "/walletUpdate?reference=" + reference
Line 104... Line 104...
104
								}
104
								}
105
								
105
								
106
							});
106
							});
107
						}
107
						}
108
					}
108
					}
-
 
109
				} else {
-
 
110
					alert("Valid date is required");
109
				}
111
				}
110
 
112
 
111
			});
113
			});
112
 
114
 
113
});
115
});