From: Bernd Bleßmann Date: Tue, 12 Jan 2021 16:11:20 +0000 (+0100) Subject: Auftrags_Controller: js: hiddens f. Wiedervorlage nur einmal anhängen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~529 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c372f6f8cf2c9fb7ec1e9cb0a746eaf345fe96f8;p=kivitendo-erp.git Auftrags_Controller: js: hiddens f. Wiedervorlage nur einmal anhängen --- diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 8a40e2862..938cfb7d0 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -900,11 +900,18 @@ namespace('kivi.Order', function(ns) { if (number_info !== '') { info += ' (' + number_info + ')' } if (name_info !== '') { info += ' (' + name_info + ')' } - $('').appendTo('#order_form').val(1); - $('').appendTo('#order_form').val(id); - $('').appendTo('#order_form').val(type); - $('').appendTo('#order_form').val(info); - $('').appendTo('#order_form').val($('#order_transaction_description').val()); + if (!$('#follow_up_rowcount').lenght) { + $('').appendTo('#order_form'); + $('').appendTo('#order_form'); + $('').appendTo('#order_form'); + $('').appendTo('#order_form'); + $('').appendTo('#order_form'); + } + $('#follow_up_rowcount').val(1); + $('#follow_up_trans_id_1').val(id); + $('#follow_up_trans_type_1').val(type); + $('#follow_up_trans_info_1').val(info); + $('#follow_up_trans_subject_1').val($('#order_transaction_description').val()); follow_up_window(); };