]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Form.pm
Steuerkonten beim Drucken richtig setzen
[kivitendo-erp.git] / SL / Form.pm
index 39f575f94093de5ea23f5427ee83bb283df0d651..9bb946fdffbfa9c9a9d6c765a851d2387da97166 100644 (file)
@@ -54,6 +54,7 @@ use SL::CVar;
 use SL::DB;
 use SL::DBUtils;
 use SL::DO;
+use SL::IC;
 use SL::IS;
 use SL::Mailer;
 use SL::Menu;
@@ -3538,6 +3539,9 @@ sub prepare_for_printing {
     $output_longdates    = 1;
   }
 
+  # Retrieve accounts for tax calculation.
+  IC->retrieve_accounts(\%::myconfig, $self, map { $_ => $self->{"id_$_"} } 1 .. $self->{rowcount});
+
   if ($self->{type} =~ /_delivery_order$/) {
     DO->order_details();
   } elsif ($self->{type} =~ /sales_order|sales_quotation|request_quotation|purchase_order/) {