From faf31da3a0c5112557d491f6bae9c32d3843781f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 12 Mar 2018 15:37:47 +0100 Subject: [PATCH] Auftrags-Controller: Belegnummer in Titlezeile anzeigen --- js/kivi.Order.js | 4 ++++ templates/webpages/order/form.html | 2 +- templates/webpages/order/tabs/basic_data.html | 8 ++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 1a5924c11..ef30e1303 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -150,6 +150,10 @@ namespace('kivi.Order', function(ns) { email_dialog.dialog("close"); }; + ns.set_number_in_title = function(elt) { + $('#nr_in_title').html($(elt).val()); + }; + ns.reload_cv_dependant_selections = function() { var data = $('#order_form').serializeArray(); data.push({ name: 'action', value: 'Order/customer_vendor_changed' }); diff --git a/templates/webpages/order/form.html b/templates/webpages/order/form.html index 0e2864254..6020fd7b7 100644 --- a/templates/webpages/order/form.html +++ b/templates/webpages/order/form.html @@ -2,7 +2,7 @@ [%- USE LxERP %] [%- USE L %] [%- USE HTML %] -

[% FORM.title %]

+

[% FORM.title %] [%- SELF.order.number -%]