Subversion Repositories SmartDukaan

Rev

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

Rev 30148 Rev 30429
Line 160... Line 160...
160
	schemeObject['type'] = $("#schemeType option:selected").val();
160
	schemeObject['type'] = $("#schemeType option:selected").val();
161
	schemeObject['amountType'] = $("#amountType option:selected").val();
161
	schemeObject['amountType'] = $("#amountType option:selected").val();
162
	schemeObject['amount'] = $('#schemeAmount').val();
162
	schemeObject['amount'] = $('#schemeAmount').val();
163
	schemeObject['partnerType'] = $('#retailerType').val();
163
	schemeObject['partnerType'] = $('#retailerType').val();
164
	schemeObject['cashback'] = $("#cashbackScheme").is(":checked")
164
	schemeObject['cashback'] = $("#cashbackScheme").is(":checked")
-
 
165
	schemeObject['schemeReversal'] = $("#schemeReversal").is(":checked")
-
 
166
	schemeObject['gstReversal'] = $("#gstReversal").is(":checked")
165
	schemeObject['startDate'] = $("#schemeDuration").data('daterangepicker').startDate.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
167
	schemeObject['startDate'] = $("#schemeDuration").data('daterangepicker').startDate.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
166
	schemeObject['endDate'] = $("#schemeDuration").data('daterangepicker').endDate.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
168
	schemeObject['endDate'] = $("#schemeDuration").data('daterangepicker').endDate.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
167
	schemeObject['catalogIds'] = [];
169
	schemeObject['catalogIds'] = [];
168
	schemeObject['catalogIds'] = $("select.catalogItemsDescription").val();
170
	schemeObject['catalogIds'] = $("select.catalogItemsDescription").val();
169
	return JSON.stringify(schemeObject);
171
	return JSON.stringify(schemeObject);