]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Einkauf/Verkauf: Bemerkungsfelder gleich groß anzeigen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 17 Jul 2019 10:17:16 +0000 (12:17 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 18 Jul 2019 08:42:45 +0000 (10:42 +0200)
bin/mozilla/ir.pl
bin/mozilla/is.pl
bin/mozilla/oe.pl
templates/webpages/do/form_footer.html
templates/webpages/ir/form_footer.html
templates/webpages/is/form_footer.html
templates/webpages/oe/form_footer.html

index 234bbc515afb2b778090d30fe7b0ca5982bc54ca..dd4f113ce2b772075a9350a79fddb4c0889fae02 100644 (file)
@@ -498,12 +498,6 @@ sub form_footer {
   $form->{invtotal}    = $form->{invsubtotal};
   $form->{oldinvtotal} = $form->{invtotal};
 
-  # note rows
-  $form->{rows} = max 2,
-    $form->numtextrows($form->{notes},    26, 8),
-    $form->numtextrows($form->{intnotes}, 35, 8);
-
-
   # tax, total and subtotal calculations
   my ($tax, $subtotal);
   $form->{taxaccounts_array} = [ split / /, $form->{taxaccounts} ];
index 9b8fc2a1285e17fc82d3630655dfa8ed67ee0b36..9baad4d3db792e776c2c74e28e689058955b736b 100644 (file)
@@ -582,12 +582,6 @@ sub form_footer {
 
   $form->{invtotal}    = $form->{invsubtotal};
 
-  # note rows
-  $form->{rows} = max 2,
-    $form->numtextrows($form->{notes},    26, 8),
-    $form->numtextrows($form->{intnotes}, 35, 8);
-
-
   # tax, total and subtotal calculations
   my ($tax, $subtotal);
   $form->{taxaccounts_array} = [ split(/ /, $form->{taxaccounts}) ];
index ad0cbf3483f1beeb39fce39747b5be3eea8544d9..c62e694a3e3c266afe0265757df2a745d913950d 100644 (file)
@@ -680,13 +680,8 @@ sub form_footer {
 
   $form->{invtotal} = $form->{invsubtotal};
 
-  my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
-
   my $TMPL_VAR = $::request->cache('tmpl_var', {});
 
-  $TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 350px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
-  $TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
-
   if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
     my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();
     $form->{taxincluded} = defined($customer->taxincluded_checked) ? $customer->taxincluded_checked : $myconfig{taxincluded_checked};
index 1aae254aff7e6599ac1ecf714d198878e91c7c52..68d8f07370ae05d83a14f746a1ff441d9be4a42d 100644 (file)
@@ -21,7 +21,7 @@
           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
          [% END %]
         </td>
-        <td><textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" cols="35" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea></td>
+        <td>[% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]</td>
        </tr>
 
        <tr>
index 69fb993003a139759b6662690a50b8057660c7f8..f9880ad8059e25269cfb74c2d9f7c7dc151c1553 100644 (file)
@@ -18,7 +18,7 @@
           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
          </td>
          <td>
-          <textarea name="intnotes" rows="[% rows %]" cols="35" wrap="soft">[% intnotes %]</textarea>
+          [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
          </td>
          <td>
            <table>
index c5bb70cf818930a791dedcbb425f1a87e5adb9c8..7d4c6089d167e11d9291b6364c4926fa2db35532 100644 (file)
@@ -18,7 +18,7 @@
           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
          </td>
          <td>
-          <textarea name="intnotes" rows="[% rows %]" cols="35">[% intnotes %]</textarea>
+          [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
          </td>
          <td>
            <table>
index a576fff56c1136f5f711eb4e8d77fc4e64eae49b..14f29547b2b2aee2d340a336e3f6f2e84e99da9a 100644 (file)
@@ -22,8 +22,8 @@
                 <th align="left">[% 'Internal Notes' | $T8 %]</th>
               </tr>
               <tr valign="top">
-                <td>[% notes %]</td>
-                <td>[% intnotes %]</td>
+                <td>[% L.textarea_tag('notes',    notes,    style="width: 350px; height: 150px", class="texteditor") %]</td>
+                <td>[% L.textarea_tag('intnotes', intnotes, style="width: 350px; height: 150px") %]</td>
               </tr>
               <tr>
                 <th align="right">[% 'Payment Terms' | $T8 %]</th>