@@ -49,6 +51,7 @@
id = 'customer',
name = 'customer',
style = 'width: 250px',
+ class = 'initial_focus',
DATA = ALL_CUSTOMERS,
id_sub = 'vc_keys',
label_key = 'name',
@@ -75,7 +78,8 @@
| [% 'Shipping Address' | $T8 %] |
- [% L.select_tag('shipto_id', ALL_SHIPTO, default = shipto_id, value_key = 'shipto_id', title_key = 'displayable_id', with_empty = 1, style='width: 250px', onChange = "document.getElementById('update_button').click();") %]
+ [% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
+ L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
|
[%- END %]
@@ -110,7 +114,7 @@
| [% '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 %]
@@ -158,7 +162,7 @@
|
| [% 'Transaction description' | $T8 %] |
- |
+ |
@@ -268,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);
}
//-->