</tr>
<tr>
<th align="right" nowrap>[% 'Invoice Date' | $T8 %]</th>
- <td>[% L.date_tag('transdate', transdate) %]</td>
+ <td>[% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Due Date' | $T8 %]</th>
[% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %]
</td>
<td>
- [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
+ [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %]
</td>
<tr>
</table>