Auftrags-Controller: Marge in zweiter Zeile
[kivitendo-erp.git] / templates / webpages / order / tabs / _second_row.html
index 8b9939a..a29b5eb 100644 (file)
     <th>[%- 'Subtotal' | $T8 %]</th>
     <td>[% L.yes_no_tag("order.orderitems[].subtotal", ITEM.subtotal) %]</td>
     [%- IF ITEM.order.is_sales %]
+      <th>[%- 'Ertrag' | $T8 %]</th>
+      <td>
+        <div name="linemargin">
+          <span[%- IF ITEM.marge_total < 0 -%] class="plus0"[%- END -%]>
+            [%- LxERP.format_amount(ITEM.marge_total, 2, 0) %]&nbsp;&nbsp;
+            [%- LxERP.format_amount(ITEM.marge_percent, 2, 0) %]%
+          </span>
+       </div>
+      </td>
       <th>[%- 'LP' | $T8 %]</th>
       <td>[%- LxERP.format_amount(ITEM.part.listprice, 2, 0) %]</td>
     [%- END %]