X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/88bfacbfaf2061150ebfc3ad4fa0190c5c6dc1f7..4ec753d:/templates/webpages/is/form_header.html
diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html
index 5fa5bb105..52e89b75b 100644
--- a/templates/webpages/is/form_header.html
+++ b/templates/webpages/is/form_header.html
@@ -35,6 +35,7 @@
[%- END %]
[%- IF id %]
| [% 'Steuersatz' | $T8 %] |
- [% L.select_tag('taxzone_id', ALL_TAXZONES, default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %]
+ [% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %]
[%- IF id %]
[%- END %]
@@ -271,15 +272,19 @@
[% END %]
});
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); }
- })
+ setTimeout(function() {
+ $.ajax({
+ url: 'is.pl?action=set_duedate',
+ data: {
+ invdate: $('#invdate').val(),
+ payment_id: $('#payment_id').val(),
+ },
+ dataType: 'text',
+ success: function (data) {
+ $('#duedate').val(data);
+ }
+ })
+ }, 0);
}
//-->
|