]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/part/_assembly.html
date error in mapping
[mfinanz.git] / templates / webpages / part / _assembly.html
index bc32cf8999ee1914b99ab2ed5c78a2c099174573..e10ec738b2032d216de00f19a6a7eb3f3fad55b7 100644 (file)
@@ -10,6 +10,7 @@
 
 [% L.hidden_tag('assembly_id', SELF.part.id) %]
 
+<div style="overflow-y: auto; height:65vh;">
 <table id="assembly_items">
  <thead>
    <tr class="listheading">
@@ -28,6 +29,7 @@
      <th class="listheading" nowrap width="5" >[%- 'Unit'         | $T8 %] </th>
      <th class="listheading" nowrap width="5" >[%- 'BOM'          | $T8 %] </th>
      <th class="listheading" nowrap width="5" >[%- 'Line Total'   | $T8 %] </th>
+     <th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th>
      <th id="sellprice_header_id"   class="listheading" nowrap width="10" ><a href='#' onClick='javascript:kivi.Part.reorder_items("sellprice")' >[%- 'Sellprice'       | $T8 %]</a></th>
      <th id="lastcost_header_id"   class="listheading" nowrap width="10" ><a href='#' onClick='javascript:kivi.Part.reorder_items("lastcost")'   >[%- 'Lastcost'       | $T8 %]</a></th>
      <th id="_header_id"   class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.Part.reorder_items("partsgroup")'         >[%- 'Partsgroup'       | $T8 %]</a></th>
@@ -54,6 +56,7 @@
  <td></td>
  [% END %]
  <td></td>
+ <td></td>
  <td align="right">[% 'Totals' | $T8 %]:</td>
  <td></td>
  <td id="items_sellprice_sum" class="numeric">[%- LxERP.format_amount(items_sellprice_sum, 2, 0) %]</td>
  <td></td>
 </tr>
 <tr>
+ [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
  <td></td>
  <td></td>
+ [% END %]
+ <td></td>
  <td></td>
  <td></td>
  <td></td>
  </td>
 </tr>
 <tr>
+ [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
  <td></td>
  <td></td>
+ [% END %]
+ <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
+ <td></td>
  <td align="right">[% L.button_tag("kivi.Part.set_assembly_sellprice()", LxERP.t8("Set sellprice")) %]</td>
  <td></td>
 </tr>
 </tbody>
 </table>
-
+</div>
 [% L.sortable_element('#assembly_rows') %]
 
 <div>