From d374d87b417f77a22679571ee054a358a2438123 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Nov 2014 15:51:24 +0100 Subject: [PATCH] Bug 12976: Fix the footer if several tax rate exist If more that 1 tax rate exist, 1 total ligne should be display in the footer. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- acqui/invoice.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acqui/invoice.pl b/acqui/invoice.pl index 59f2edc541..5fe3b27758 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -130,14 +130,14 @@ foreach my $order (@$orders) { ); my $line = get_infos( $order, $bookseller); - $foot{$$line{gstgsti}}{gstrate} = $$line{gstrate}; - $foot{$$line{gstgsti}}{gstvalue} += $$line{gstvalue}; + $foot{$$line{gstrate}}{gstrate} = $$line{gstrate}; + $foot{$$line{gstrate}}{gstvalue} += $$line{gstvalue}; $total_gstvalue += $$line{gstvalue}; - $foot{$$line{gstgsti}}{quantity} += $$line{quantity}; + $foot{$$line{gstrate}}{quantity} += $$line{quantity}; $total_quantity += $$line{quantity}; - $foot{$$line{gstgsti}}{totalgste} += $$line{totalgste}; + $foot{$$line{gstrate}}{totalgste} += $$line{totalgste}; $total_gste += $$line{totalgste}; - $foot{$$line{gstgsti}}{totalgsti} += $$line{totalgsti}; + $foot{$$line{gstrate}}{totalgsti} += $$line{totalgsti}; $total_gsti += $$line{totalgsti}; $line->{orderline} = $line->{parent_ordernumber}; -- 2.39.5