From 9474d0ec69d9eda0d96ab616c1dd8c0ccaa8c07b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 12 Mar 2018 17:03:01 +0100 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Anzeige=20mit=20Infos=20?= =?utf8?q?=C3=BCber=20den=20Kunden-/Lieferantentyp?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 13 +++++++++++++ .../webpages/order/tabs/_business_info_row.html | 10 ++++++++++ templates/webpages/order/tabs/basic_data.html | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 templates/webpages/order/tabs/_business_info_row.html diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index b87049a0a..b3477b2e3 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -594,6 +594,7 @@ sub action_customer_vendor_changed { $self->js ->replaceWith('#order_cp_id', $self->build_contact_select) ->replaceWith('#order_shipto_id', $self->build_shipto_select) + ->replaceWith('#business_info_row', $self->build_business_info_row) ->val( '#order_taxzone_id', $self->order->taxzone_id) ->val( '#order_taxincluded', $self->order->taxincluded) ->val( '#order_payment_id', $self->order->payment_id) @@ -1016,6 +1017,14 @@ sub build_shipto_select { ); } +# render the info line for business +# +# Needed, if customer/vendor changed. +sub build_business_info_row +{ + $_[0]->p->render('order/tabs/_business_info_row', SELF => $_[0]); +} + # build the rows for displaying taxes # # Called if amounts where recalculated and redisplayed. @@ -1695,6 +1704,10 @@ reused from generic code. =over 4 +=item * C