From 854c8b2c42047d4eb2bd7eadf263ee0ac15ef860 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 Oct 2013 13:51:03 +0200 Subject: [PATCH] Bug 10613: FIX typo supplierid vs booksellerid GetInvoiceDetails returns a hashref with a key named booksellerid, not supplierid. The bookseller was not retrieved from the DB and the listincgst value was always false. --- acqui/invoice.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/invoice.pl b/acqui/invoice.pl index b2bda01..8802acb 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -100,7 +100,7 @@ elsif ( $op && $op eq 'delete' ) { my $details = GetInvoiceDetails($invoiceid); -my ($bookseller) = GetBookSellerFromId($details->{supplierid}); +my $bookseller = GetBookSellerFromId($details->{booksellerid}); my @orders_loop = (); my $orders = $details->{'orders'}; my $qty_total; -- 1.7.10.4