Auftrags-Controller: Bemerkungen und interne Bemerkungen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 16 Sep 2015 08:16:46 +0000 (10:16 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 11 Mar 2016 11:45:30 +0000 (12:45 +0100)
SL/Controller/Order.pm
templates/webpages/order/tabs/basic_data.html

index 8ecfaf6..496031a 100644 (file)
@@ -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 {
index d109954..8d1a257 100644 (file)
       <td colspan="100%" width="100%">
         <table width="100%">
           <tr>
+            <td>
+              <table>
+                <tr>
+                  <th align="left">[% 'Notes' | $T8 %]</th>
+                  <th align="left">[% 'Internal Notes' | $T8 %]</th>
+                </tr>
+                <tr valign="top">
+                  <td>
+                    [% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
+                  </td>
+                  <td>
+                    [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %]
+                  </td>
+                </tr>
+              </table>
+            </td>
+
             <td>
               <table>
                 <tr>