X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b4f72528ec0f4d74f8f0f0771c0c923541940ecc..4c4939d0:/templates/webpages/is/form_header.html
diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html
index 3ebc298e4..77133a805 100644
--- a/templates/webpages/is/form_header.html
+++ b/templates/webpages/is/form_header.html
@@ -172,7 +172,7 @@
| [% 'Credit Note 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()') %] |
[%- ELSE %]
@@ -181,7 +181,7 @@
| [% '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()') %] |
| [% 'Due Date' | $T8 %] |
@@ -253,6 +253,17 @@
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
});
+ function set_duedate() {
+ $.ajax({
+ url: 'is.pl?action=set_duedate',
+ data: {
+ invdate: $('#invdate').val(),
+ payment_id: $('#payment_id').val(),
+ },
+ dataType: 'text',
+ success: function (data) { $('#duedate').val(data); }
+ })
+ }
//-->