[%- END %]
[%- IF id %]
- <input type=button class=submit onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
+ <input type=button class=submit onclick="set_history_window([% id %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
[% IF INSTANCE_CONF.get_ap_show_mark_as_paid %]
<input type="submit" name="action" value="[% 'mark as paid' | $T8 %]">
[% END %]
[%- END %]
</form>
-
-<script type="text/javascript">
-<!--
-function set_duedate() {
- $.ajax({
- url: 'is.pl?action=set_duedate',
- data: {
- invdate: $('#transdate').val(),
- vendor_id: $('[name=vendor_id]').val(),
- },
- dataType: 'text',
- success: function(data) {
- $('#duedate').val(data);
- }
- });
- }
-//-->
-</script>