From: Bernd Bleßmann Date: Wed, 16 Sep 2015 08:16:46 +0000 (+0200) Subject: Auftrags-Controller: Bemerkungen und interne Bemerkungen X-Git-Tag: release-3.4.1~351 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2ff1c023218df79f45ab9343dc467e123f5eaa82;p=kivitendo-erp.git Auftrags-Controller: Bemerkungen und interne Bemerkungen --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 8ecfaf6c9..496031abf 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -146,6 +146,7 @@ sub action_customer_vendor_changed { ->val('#order_taxzone_id', $self->order->taxzone_id) ->val('#order_payment_id', $self->order->payment_id) ->val('#order_delivery_term_id', $self->order->delivery_term_id) + ->val('#order_intnotes', $self->order->$cv_method->notes) ->focus('#order_' . $self->cv . '_id') ->render($self); } @@ -419,6 +420,8 @@ sub _pre_render { $self->{all_delivery_terms} = SL::DB::Manager::DeliveryTerm->get_all_sorted(); $self->{current_employee_id} = SL::DB::Manager::Employee->current->id; + + $::request->{layout}->use_javascript("${_}.js") for qw(ckeditor/ckeditor ckeditor/adapters/jquery); } sub _sales_order_type { diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index d10995416..8d1a25701 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -168,6 +168,23 @@ + +
+ + + + + + + + + +
[% 'Notes' | $T8 %][% 'Internal Notes' | $T8 %]
+ [% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] + + [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %] +
+