From: Bernd Bleßmann Date: Mon, 28 Sep 2015 20:12:52 +0000 (+0200) Subject: FlattenToForm: $form->{vc} auch für Order setzen. X-Git-Tag: release-3.4.1~695 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=10c58e4ea58e285640f987307f54a639dcb95e00;p=kivitendo-erp.git FlattenToForm: $form->{vc} auch für Order setzen. Hintergrund: SL::IC->retrieve_accounts verwendet vc, um die Steuern zu ermitteln. Dieses wieder wird in SL::Form::prepare_for_printing benutzt. --- diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index 04101c3f0..4b87a5567 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -25,7 +25,7 @@ sub flatten_to_form { $form->{$transdate_idx} = $self->transdate->to_lxoffice; } - $form->{vc} = $vc if ref($self) =~ /^SL::DB::.*Invoice/; + $form->{vc} = $vc if ref($self) =~ m{^SL::DB::(?:.*Invoice|Order)}; my @vc_fields = (qw(account_number bank bank_code bic business city contact country creditlimit department_1 department_2 discount email fax homepage iban language name