</tr>
<tr valign="top">
<td>
- <textarea name="notes" rows="[% rows %]" cols="26">[% notes %]</textarea>
+ [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
</td>
<td>
<textarea name="intnotes" rows="[% rows %]" cols="35">[% intnotes %]</textarea>
label_key = 'description',
show_empty = 1
allow_textbox = 0 -%]
- <script type='text/javascript'>$('#payment_id').change(function(){ if (this.value) set_duedate()})</script>
+ <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
</td>
</tr>
<tr>
[% IF id %]
[%#- button for saving history %]
- <input type="button" class="submit" onclick="set_history_window([% id | html %]);" name="history" id="history" value="[% 'history' | $T8 %]">
+ <input type="button" class="submit" onclick="set_history_window([% id | html %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
[% IF INSTANCE_CONF.get_is_show_mark_as_paid %]
<input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
[% END %]
[% END %]
+ [% IF callback %]
+ <a href="[% callback %]">[% 'back' | $T8 %]</a>
+ [% END %]
+
<input type="hidden" name="rowcount" value="[% rowcount %]">
<input type="hidden" name="callback" value="[% callback | html %]">
<input type="hidden" name="draft_id" value="[% draft_id %]">