Fixed saving PackingLists
This commit is contained in:
parent
2a54d15b99
commit
e2b1af84d8
|
|
@ -382,8 +382,6 @@ $(function() {
|
|||
|
||||
$("#saveInvoiceButton").click(function() {
|
||||
saveDocument('Invoice');
|
||||
|
||||
|
||||
});
|
||||
//OA View.
|
||||
$("#saveOAButton").click(function() {
|
||||
|
|
@ -393,6 +391,16 @@ $(function() {
|
|||
$('.job-title').html($("#OrderAcknowledgementJobId :selected").text());
|
||||
});
|
||||
|
||||
|
||||
//PackingList View. Damn you past Karl.
|
||||
$("#savePackingListButton").click(function() {
|
||||
saveDocument('Packing List');
|
||||
//if the job has changed, the create invoice button wont work properly.
|
||||
window.location.reload(true);
|
||||
$('.job-title').html($("#PackingListJobId :selected").text());
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("#createOA").click(function() {
|
||||
$("#addJobConfirmation").dialog('open');
|
||||
|
|
|
|||
Loading…
Reference in a new issue