From b5721e8758d8fa002a5006ef828cdbe48ce1ec64 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Nov 2014 15:44:46 +0100 Subject: [PATCH] Bug 12970: 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/basket.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index 4b3853c3ab..5379c3741a 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -352,14 +352,14 @@ if ( $op eq 'delete_confirm' ) { push @books_loop, $line; - $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}; } -- 2.39.2