Subversion Repositories SmartDukaan

Rev

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

Rev 27171 Rev 27517
Line 9... Line 9...
9
			delete pendingPO;
9
			delete pendingPO;
10
			delete pendingPOCustomer;
10
			delete pendingPOCustomer;
11
		}
11
		}
12
		loadCatalog("main-content", "");
12
		loadCatalog("main-content", "");
13
	});
13
	});
-
 
14
	
-
 
15
	$('.view-invoices').live('click', function() {
-
 
16
		loadInvoice();
-
 
17
	});
14
 
18
 
15
	$(".review_order").live('click', function() {
19
	$(".review_order").live('click', function() {
16
		loadOrder("main-content");
20
		loadOrder("main-content");
17
	});
21
	});
18
 
22
 
Line 687... Line 691...
687
				$('.notify-cancel-order-Items-container .modal-content').html(
691
				$('.notify-cancel-order-Items-container .modal-content').html(
688
						response);
692
						response);
689
 
693
 
690
			});
694
			});
691
}
695
}
-
 
696
 
-
 
697
function loadInvoice(serialNumber) {
-
 
698
	let url = `${context}/view-invoices`;
-
 
699
	if(typeof serialNumber != "undefined") {
-
 
700
		url = `${url}?serialNumber=${serialNumber}`;
-
 
701
		doAjaxGetDownload(url, `invoice-${serialNumber}.pdf`) 
-
 
702
	} else {
-
 
703
		doGetAjaxRequestHandler(url, function(response) {
-
 
704
			$('#main-content').html(response);
-
 
705
		});
-
 
706
	}
-
 
707
}