From 6d8fc7da66950248e9b01d42134ea26c6cda3d3f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 22 Nov 2010 18:02:48 +0100 Subject: [PATCH] Steuerkonten beim Drucken richtig setzen --- SL/Form.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index 39f575f94..9bb946fdf 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -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/) { -- 2.20.1