X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a14368a23b433e316abe5a1bc00e30a516b7a37e..4493d1eb7845b7eba868f0a16ec2e623dcf1d591:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index c3ab47e28..1dc7a64d1 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1648,18 +1648,22 @@ sub ship_to { call_sub($::form->{vc} . "_details", qw(name department_1 department_2 street zipcode city country gln contact email phone fax), $::form->{vc} . "number"); $::form->{rowcount}--; + my $cvars = SL::DB::Shipto->new->cvars_by_config; my @shipto_vars = qw(shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptogln shiptocontact shiptocp_gender shiptophone shiptofax shiptoemail shiptodepartment_1 shiptodepartment_2); - my $previous_form = $::auth->save_form_in_session(skip_keys => [ @shipto_vars, qw(header shipto_id) ]); + my $previous_form = $::auth->save_form_in_session(skip_keys => [ @shipto_vars, qw(header shipto_id), map { "shiptocvar_" . $_->config->name } @{ $cvars } ]); $::form->{title} = $::locale->text('Ship to'); $::form->header; my $vc_obj = ($::form->{vc} eq 'customer' ? "SL::DB::Customer" : "SL::DB::Vendor")->new(id => $::form->{$::form->{vc} . "_id"})->load; + $_->value($::form->{"shiptocvar_" . $_->config->name}) for @{ $cvars }; + print $::form->parse_html_template('io/ship_to', { previousform => $previous_form, nextsub => $::form->{display_form} || 'display_form', vc_obj => $vc_obj, + cvars => $cvars, }); $main::lxdebug->leave_sub();