- <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>[% 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>
- <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>
<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 %]">
<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 %]">