Subversion Repositories SmartDukaan

Rev

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

Rev 33995 Rev 34163
Line 330... Line 330...
330
			alert("Purchase booked successfully");
330
			alert("Purchase booked successfully");
331
			$("#purchase-reference-submit-button").click();
331
			$("#purchase-reference-submit-button").click();
332
		}
332
		}
333
	});
333
	});
334
}
334
}
-
 
335
 
-
 
336
$(document).on('click', ".hid-allocation", function () {
-
 
337
	doGetAjaxRequestHandler(context + "/pur-sale-ratio/stock/hid-allocation",
-
 
338
		function (response) {
-
 
339
			$('#' + 'main-content').html(response);
-
 
340
		});
-
 
341
});
-
 
342
 
-
 
343
$(document).on('click', '.partner-hid-allocation', function () {
-
 
344
	partnerHidAllocationList();
-
 
345
});
-
 
346
 
-
 
347
function partnerHidAllocationList() {
-
 
348
	if (typeof partnerId != "undefined") {
-
 
349
		doGetAjaxRequestHandler(context + "/pur-sale-ratio/stock/hid-catalog-allocation-list?fofoId=" + partnerId,
-
 
350
			function (response) {
-
 
351
				$('.hid-allocation-conatiner').html(response);
-
 
352
				$('#hidCatalogAllocationList').DataTable({
-
 
353
					"scrollX": true,
-
 
354
					"bPaginate": true,
-
 
355
					"bLengthChange": true,
-
 
356
					"bFilter": true,
-
 
357
					"bInfo": false,
-
 
358
					"bAutoWidth": false
-
 
359
				});
-
 
360
			});
-
 
361
	} else {
-
 
362
		doGetAjaxRequestHandler(context + "/pur-sale-ratio/stock/hid-catalog-allocation-list?fofoId=0",
-
 
363
			function (response) {
-
 
364
				$('.hid-allocation-conatiner').html(response);
-
 
365
				$('#hidCatalogAllocationList').DataTable({
-
 
366
					"scrollX": true,
-
 
367
					"bPaginate": true,
-
 
368
					"bLengthChange": true,
-
 
369
					"bFilter": true,
-
 
370
					"bInfo": false,
-
 
371
					"bAutoWidth": false
-
 
372
				});
-
 
373
			});
-
 
374
	}
-
 
375
}
-
 
376
 
-
 
377