X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fir%2Fform_header.html;h=4065b039e768b212a01064a2261c286fc3eb6b6f;hb=a1a1263bff85923b68be47848cd9441dfdba7fb1;hp=17757b776a196f8878be9f96ff474d38125fe9f3;hpb=b2ba4ab31e8263ede1bf76686d99e5ba59fc9fec;p=kivitendo-erp.git diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 17757b776..4065b039e 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -3,7 +3,6 @@ [%- USE LxERP %] [%- USE L %] [%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %] -
@@ -34,6 +33,7 @@[% 'Employee' | $T8 %] | -- [%- INCLUDE 'generic/multibox.html' - name = 'employee_id', - DATA = ALL_EMPLOYEES, - id_key = 'id', - label_sub = 'sales_employee_labels' -%] - | +[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] |
---|---|---|
[% 'Credit Note Date' | $T8 %] | -- - - | +[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate(this)') %] |
[% 'Invoice Date' | $T8 %] | -[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL') %] | +[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate(this)') %] |
[% 'Due Date' | $T8 %] | @@ -210,11 +195,20 @@ [% IF creditwarning != '' %] alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); [% ELSE %] - focus(); [% END %] - setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); - setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]'); }); + function set_duedate() { + $.ajax({ + url: 'ir.pl?action=get_duedate_vendor', + data: { + invdate: $('#invdate').val(), + vendor_id: $('input[name="vendor_id"]').val(), + old_duedate: $('#duedate').val(), + }, + dataType: 'text', + success: function (data) { $('#duedate').val(data); } + }) + } //-->