Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / part / _pricegroup_prices.html
diff --git a/templates/webpages/part/_pricegroup_prices.html b/templates/webpages/part/_pricegroup_prices.html
new file mode 100644 (file)
index 0000000..f481724
--- /dev/null
@@ -0,0 +1,24 @@
+[%- USE T8 %]
+[%- USE L %]
+[%- USE HTML %]
+[%- USE LxERP %]
+  <tr>
+    <td>
+      <table width=50%>
+        <tr>
+          <th class="listheading">[% 'Price group' | $T8 %]</th>
+          <th class="listheading">[% 'Price'       | $T8 %]</th>
+        </tr>
+        [%- FOREACH pricegroup = SELF.all_pricegroups %]
+          [% SET pricegroup_id = pricegroup.id
+                 price         = prices_map.$pricegroup_id %]
+        <tr class="listrow[% loop.count % 2 %]">
+          <td style='display:none'>[% L.hidden_tag('prices[+].pricegroup_id', pricegroup.id) %]
+          [% L.hidden_tag('prices[].price_id', price.id) # id not used? %]</td>
+          <td width=50%>[% L.hidden_tag('prices[].pricegroup', pricegroup.pricegroup) %][% HTML.escape(pricegroup.pricegroup) %]</td>
+          <td width=50%>[% L.input_tag('prices[].price', price.price_as_number, size=11, class='numeric reformat_number') %]</td>
+        </tr>
+        [%- END %]
+      </table>
+    </td>
+  </tr>