label_key = 'description',
show_empty = 1
allow_textbox = 0 -%]
- <script type='text/javascript'>$('#payment_id').change(function(){
- if (this.value) set_duedate(['payment_id__' + this.value, 'invdate__' + invdate.value],['duedate'])})
- </script>
+ <script type='text/javascript'>$('#payment_id').change(function(){ if (this.value) set_duedate()})</script>
</td>
</tr>
[%- IF id && follow_ups.size %]
<table>
<tr>
<th align=left>[% 'Ertrag' | $T8 %]</th>
- <td>[% LxERP.format_amount(marge_total, 2, 0) %]</td>
+ <td>
+ [% LxERP.format_amount(marge_total, 2, 0) %]
+ <input type=hidden name="marge_total" value="[% marge_total %]">
+ </td>
</tr>
<tr>
<th align=left>[% 'Ertrag prozentual' | $T8 %]</th>
- <td>[% LxERP.format_amount(marge_percent, 2, 0) %] %</td>
+ <td>
+ [% LxERP.format_amount(marge_percent, 2, 0) %] %
+ <input type=hidden name="marge_percent" value="[% marge_percent %]">
+ </td>
</tr>
- <input type=hidden name="marge_total" value="[% marge_total %]">
- <input type=hidden name="marge_percent" value="[% marge_percent %]">
</table>
</td>
<td align="right">
[% END %]
<input type="hidden" name="rowcount" value="[% rowcount %]">
-<input type="hidden" name="callback" value="[% callback %]">
+<input type="hidden" name="callback" value="[% callback | html %]">
<input type="hidden" name="draft_id" value="[% draft_id %]">
<input type="hidden" name="draft_description" value="[% draft_description %]">
<input type="hidden" name="customer_discount" value="[% customer_discount %]">