]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/oe.pl
Die Margen nur bei Verkaufsmasken anzeigen, und auch nur in Zeilen, in denen schon...
[kivitendo-erp.git] / bin / mozilla / oe.pl
index 452613c8f5f24e8282797758acef958b3129daaa..424cf34a6f2f99b87714cb16dbd9b96afacbe8ff 100644 (file)
@@ -1012,6 +1012,10 @@ sub form_footer {
          </td>
           <td>
             <table>
+|;
+
+  if ($form->{type} =~ /^sales_/) {
+    print qq|
             <tr>
               <th  align=left>| . $locale->text('Ertrag') . qq|</th>
               <td>| .  $form->format_amount(\%myconfig, $form->{marge_total}, 2, 0) . qq|</td>
@@ -1020,6 +1024,10 @@ sub form_footer {
               <th  align=left>| . $locale->text('Ertrag prozentual') . qq|</th>
               <td>| .  $form->format_amount(\%myconfig, $form->{marge_percent}, 2, 0) . qq| %</td>
             </tr>
+|;
+  }
+
+  print qq|
             <input type=hidden name="marge_total" value="$form->{"marge_total"}">
             <input type=hidden name="marge_percent" value="$form->{"marge_percent"}">
             </table>