From: Jan Büren Date: Thu, 18 Oct 2018 07:44:06 +0000 (+0200) Subject: BDVs für abweichende Lieferadresse auch in Verkaufsrechnungen anzeigen X-Git-Tag: release-3.5.4~252 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=285578d375248bccf0f244d4835d7972bd0a4a88;p=kivitendo-erp.git BDVs für abweichende Lieferadresse auch in Verkaufsrechnungen anzeigen --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 15105d31d..a9e2963de 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -615,6 +615,12 @@ sub form_footer { $form->{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted(); + my $shipto_cvars = SL::DB::Shipto->new->cvars_by_config; + foreach my $var (@{ $shipto_cvars }) { + my $name = "shiptocvar_" . $var->config->name; + $var->value($form->{$name}) if exists $form->{$name}; + } + print $form->parse_html_template('is/form_footer', { is_type_credit_note => ($form->{type} eq "credit_note"), totalpaid => $totalpaid, @@ -626,6 +632,7 @@ sub form_footer { : ($::instance_conf->get_is_changeable == 1), today => DateTime->today, vc_obj => $form->{customer_id} ? SL::DB::Customer->load_cached($form->{customer_id}) : undef, + shipto_cvars => $shipto_cvars, }); ##print $form->parse_html_template('is/_payments'); # parser ##print $form->parse_html_template('webdav/_list'); # parser diff --git a/templates/webpages/is/form_footer.html b/templates/webpages/is/form_footer.html index 23646f105..c5bb70cf8 100644 --- a/templates/webpages/is/form_footer.html +++ b/templates/webpages/is/form_footer.html @@ -152,7 +152,7 @@