Subversion Repositories SmartDukaan

Rev

Rev 27755 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27755 Rev 34201
Line 210... Line 210...
210
}
210
}
211
 
211
 
212
function refferalAmountSubmit(refereeEmail, count, month) {
212
function refferalAmountSubmit(refereeEmail, count, month) {
213
	var refferalAmount = 0;
213
	var refferalAmount = 0;
214
	if (count <= 4) {
214
	if (count <= 4) {
215
		refferalAmount = count * 5000;
215
		refferalAmount = count * 2000;
216
	} else if (count <= 9) {
216
	} else if (count <= 9) {
217
		refferalAmount = count * 10000;
217
		refferalAmount = count * 4000;
218
	} else if (count >= 10) {
218
	} else if (count >= 10) {
219
		refferalAmount = 20000;
219
		refferalAmount = 8000;
220
	}
220
	}
221
	console.log(refferalAmount)
221
	console.log(refferalAmount)
222
 
222
 
223
	if (confirm("Are you sure you want add money!") == true) {
223
	if (confirm("Are you sure you want add money!") == true) {
224
		doPostAjaxRequestHandler(context + "/addMoneyToWallet?amount="
224
		doPostAjaxRequestHandler(context + "/addMoneyToWallet?amount="
Line 237... Line 237...
237
 
237
 
238
function oldRefferalAmountSubmit(refereeEmail, count, month) {
238
function oldRefferalAmountSubmit(refereeEmail, count, month) {
239
	console.log(refereeEmail);
239
	console.log(refereeEmail);
240
	var refferalAmount = 0;
240
	var refferalAmount = 0;
241
	if (count <= 4) {
241
	if (count <= 4) {
242
		refferalAmount = count * 5000;
242
		refferalAmount = count * 2000;
243
	} else if (count <= 9) {
243
	} else if (count <= 9) {
244
		refferalAmount = count * 10000;
244
		refferalAmount = count * 4000;
245
	} else if (count >= 10) {
245
	} else if (count >= 10) {
246
		refferalAmount = 20000;
246
		refferalAmount = 8000;
247
	}
247
	}
248
	console.log(refferalAmount)
248
	console.log(refferalAmount)
249
	if (confirm("Are you sure you want add money!") == true) {
249
	if (confirm("Are you sure you want add money!") == true) {
250
		doPostAjaxRequestHandler(context
250
		doPostAjaxRequestHandler(context
251
			+ "/addMoneyToWalletPreviousMonth?amount=" + refferalAmount
251
			+ "/addMoneyToWalletPreviousMonth?amount=" + refferalAmount