X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.SalesPurchase.js;h=e8a1ba241cb3970764d50a558ba755c205bd2239;hb=ef0dc3865ba7fc827c761cb2814cc16203cb2d58;hp=2b63a1a33178bbc19e4ee8738045c619aab4f384;hpb=2338103baa331af44c3412d2e4fb2e23bf52740b;p=kivitendo-erp.git diff --git a/js/kivi.SalesPurchase.js b/js/kivi.SalesPurchase.js index 2b63a1a33..e8a1ba241 100644 --- a/js/kivi.SalesPurchase.js +++ b/js/kivi.SalesPurchase.js @@ -286,6 +286,7 @@ namespace('kivi.SalesPurchase', function(ns) { type: $('#type').val(), vc: vc, vc_id: $('#' + vc + '_id').val(), + project_id: $('#globalproject_id').val(), }; $('[name^=id_],[name^=partnumber_]').each(function(idx, elt) { @@ -312,7 +313,7 @@ namespace('kivi.SalesPurchase', function(ns) { this.activate_send_email_actions_regarding_printout = function() { var selected = $('#email_form_attachment_policy').val(); $('#email_form_attachment_filename').parents('tr')[selected !== 'no_file' ? 'show' : 'hide'](); - $('#email_form_print_options')[selected === 'normal' ? 'show' : 'hide'](); + $('#email_form_print_options')[selected !== 'no_file' ? 'show' : 'hide'](); }; // Printing records.