Subversion Repositories SmartDukaan

Rev

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

Rev 36027 Rev 36316
Line 11... Line 11...
11
 
11
 
12
	$(document).on('click', "a.view-debit-note", function() {
12
	$(document).on('click', "a.view-debit-note", function() {
13
		viewDebitNotes("main-content");
13
		viewDebitNotes("main-content");
14
	});
14
	});
15
 
15
 
-
 
16
	$(document).on('click', "a.unsettled-purchase-returns", function () {
-
 
17
		doAjaxRequestHandler(context + "/return/unsettled", "GET", function (response) {
-
 
18
			$('#main-content').html(response);
-
 
19
		});
-
 
20
	});
-
 
21
 
-
 
22
	$(document).on('click', "a.create-purchase-return", function () {
-
 
23
		doAjaxRequestHandler(context + "/return/unsettled/new", "GET", function (response) {
-
 
24
			$('#main-content').html(response);
-
 
25
		});
-
 
26
	});
-
 
27
 
16
	$(document).on('click', "a.wh-display-name", function() {
28
	$(document).on('click', "a.wh-display-name", function() {
17
		var whId = $(this).closest('tr').data('id');
29
		var whId = $(this).closest('tr').data('id');
18
		$("#approved-returns-container").find("tr.filter").hide().filter('[data-id="' + whId + '"]').show();
30
		$("#approved-returns-container").find("tr.filter").hide().filter('[data-id="' + whId + '"]').show();
19
		$(this).closest('table').find('tr').removeClass('warning');
31
		$(this).closest('table').find('tr').removeClass('warning');
20
		$(this).closest('tr').addClass('warning');
32
		$(this).closest('tr').addClass('warning');