From: Bernd Bleßmann Date: Tue, 12 Jan 2021 15:34:00 +0000 (+0100) Subject: Wiedervorlage aus Angebot/Auftrag: Betreff aus Vorgangsbezeichnung vorbelegen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~530 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7b447b4dd0e756dc1578c44601d352811b768514;p=kivitendo-erp.git Wiedervorlage aus Angebot/Auftrag: Betreff aus Vorgangsbezeichnung vorbelegen nur "neuer" Controller --- diff --git a/bin/mozilla/fu.pl b/bin/mozilla/fu.pl index 9b19ba8d7..d9001e35c 100644 --- a/bin/mozilla/fu.pl +++ b/bin/mozilla/fu.pl @@ -42,6 +42,8 @@ sub add { $form->get_employee($form->get_standard_dbh(\%myconfig)); $form->{created_for_user} = $form->{employee_id}; + $form->{subject} = $form->{trans_subject_1} if $form->{trans_subject_1}; + my $link_details; if (0 < scalar @{ $form->{LINKS} }) { diff --git a/js/follow_up.js b/js/follow_up.js index 4b11dcdb5..f22308bb0 100644 --- a/js/follow_up.js +++ b/js/follow_up.js @@ -12,14 +12,16 @@ function follow_up_window() { if (typeof trans_rowcount != "undefined") { for (i = 1; i <= trans_rowcount[0].value; i++) { - var trans_id = document.getElementsByName("follow_up_trans_id_" + i); - var trans_type = document.getElementsByName("follow_up_trans_type_" + i); - var trans_info = document.getElementsByName("follow_up_trans_info_" + i); + var trans_id = document.getElementsByName("follow_up_trans_id_" + i); + var trans_type = document.getElementsByName("follow_up_trans_type_" + i); + var trans_info = document.getElementsByName("follow_up_trans_info_" + i); + var trans_subject = document.getElementsByName("follow_up_trans_subject_" + i); url += "&" + - "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" + - "trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" + - "trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : ""); + "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" + + "trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" + + "trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "") + "&" + + "trans_subject_" + i + "=" + encodeURIComponent(typeof trans_subject != "undefined" ? trans_subject[0].value : ""); } url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value); diff --git a/js/kivi.Order.js b/js/kivi.Order.js index d74e3470d..8a40e2862 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -904,6 +904,7 @@ namespace('kivi.Order', function(ns) { $('').appendTo('#order_form').val(id); $('').appendTo('#order_form').val(type); $('').appendTo('#order_form').val(info); + $('').appendTo('#order_form').val($('#order_transaction_description').val()); follow_up_window(); };