Datenbank-IDs in Formularen nicht durch "format_amount" jagen, sondern 1:1 speichern.
[kivitendo-erp.git] / templates / webpages / ic / price_row_de.html
index 0115380..421256f 100644 (file)
@@ -1,5 +1,6 @@
 [%- USE HTML %]
-[%- IF PRICES.count %]
+[%- USE LxERP %]
+[%- IF PRICES.size %]
   <tr>
     <td>
       <table width=100%>
@@ -10,8 +11,8 @@
 [%- FOREACH row = PRICES %]
         <tr>
           <td width=50%><input type=hidden name="pricegroup_[% loop.count %]" size=30  value="[% HTML.escape(row.pricegroup) %]">[% HTML.escape(row.pricegroup) %]</td>
-          <td width=50%><input name="price_[% loop.count %]" size=11 value="[% HTML.escape(row.price) %]"></td>
-          <input type=hidden name="pricegroup_id_[% loop.count %]" value="[% HTML.escape(row.pricegroup_id) %]">
+          <td width=50%><input name="price_[% loop.count %]" size=11 value="[% LxERP.format_amount(row.price, -2) %]"></td>
+          <input type="hidden" name="pricegroup_id_[% loop.count %]" value="[% HTML.escape(row.pricegroup_id) %]">
         </tr>
 [%- END %]
       </table>