X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Foe.pl;h=298d3326f6d0fb738499b4ead11b28539bd34168;hb=72f018a6943ea8776f163e12f37bc0d91000b9aa;hp=26d607076531edcb0fd823552916e14b8261a06e;hpb=0710af696dd6818306c9ec9880ede7a92eed35d3;p=kivitendo-erp.git diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 26d607076..298d3326f 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -47,6 +47,8 @@ use List::MoreUtils qw(any none); use List::Util qw(min max reduce sum); use Data::Dumper; +use SL::DB::Customer; + require "bin/mozilla/io.pl"; require "bin/mozilla/arap.pl"; require "bin/mozilla/reportgenerator.pl"; @@ -434,6 +436,8 @@ sub form_header { $form->{javascript} .= qq||; $form->{javascript} .= qq||; + $::request->layout->use_stylesheet('presenter/record/record_list.css'); + $form->header; $TMPL_VAR{HIDDENS} = [ map { name => $_, value => $form->{$_} }, @@ -479,12 +483,9 @@ sub form_footer { $TMPL_VAR{notes} = qq||; $TMPL_VAR{intnotes} = qq||; - my $paymet_id = $::form->{payment_id}; - IS->get_customer(\%myconfig, $::form) if $form->{type} =~ /sales_(order|quotation)/; - $::form->{payment_id} = $paymet_id; - - if ( $form->{vc} eq 'customer' && !$form->{taxincluded_changed_by_user} ) { - $form->{taxincluded} = defined($form->{taxincluded_checked}) ? $form->{taxincluded_checked} : $myconfig{taxincluded_checked}; + if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) { + my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load(); + $form->{taxincluded} = defined($customer->taxincluded_checked) ? $customer->taxincluded_checked : $myconfig{taxincluded_checked}; } if (!$form->{taxincluded}) {