Subversion Repositories SmartDukaan

Rev

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

Rev 31860 Rev 31892
Line 151... Line 151...
151
	});
151
	});
152
 
152
 
153
	$(document).on('click', ".partnerPerformance", function() {
153
	$(document).on('click', ".partnerPerformance", function() {
154
		var fofoId = $('#fofo-users').val();
154
		var fofoId = $('#fofo-users').val();
155
 
155
 
156
		var url = context + "/partnerPerformance?fofoId=" + fofoId;
156
		//var url = context + "/partnerPerformance?fofoId=" + fofoId;
157
 
157
 
158
 
158
 
159
		$('.partner-performance-container').html(`<iframe class="wrapper" src="${url}" style="width:100%;height:100vh"> </iframe>`);
159
		//$('.partner-performance-container').html(`<iframe class="wrapper" src="${url}" style="width:100%;height:100vh"> </iframe>`); 
160
 
160
 
-
 
161
		doGetAjaxRequestHandler(context + "/partnerPerformance?fofoId=" + fofoId, function(response) {
-
 
162
			$('.partner-performance-container').html(response);
-
 
163
		});
-
 
164
 
-
 
165
	});
-
 
166
 
-
 
167
 
-
 
168
 
-
 
169
	$('#partnerSecondary').on('click', '.brandFocusedStock', function() {
-
 
170
		var fofoId = $(this).data('fofoid');
-
 
171
		var brand = $(this).data('brand');
-
 
172
 
-
 
173
		console.log(brand)
-
 
174
		console.log(fofoId)
-
 
175
 
-
 
176
		doGetAjaxRequestHandler(context + "/getPartnerShortageStock?brand=" + brand + "&fofoId="
-
 
177
			+ fofoId, function(response) {
-
 
178
 
-
 
179
				$('#itemWiseBrandStock .modal-content').html(response);
-
 
180
 
-
 
181
			});
161
	});
182
	});
-
 
183
 
-
 
184
 
-
 
185
 
-
 
186
 
-
 
187
 
-
 
188
 
-
 
189
 
-
 
190
 
162
	$(document).on('click', ".extend-billing", function() {
191
	$(document).on('click', ".extend-billing", function() {
163
		var fofoId = $(this).data("fofoid");
192
		var fofoId = $(this).data("fofoid");
164
		console.log(fofoId);
193
		console.log(fofoId);
165
		if (confirm("Are you sure you want to extend Billing?")) {
194
		if (confirm("Are you sure you want to extend Billing?")) {
166
			extendBilling($(this).parent(), fofoId);
195
			extendBilling($(this).parent(), fofoId);