From c5c4fdaedc6b8a98fd4363f03b83bde0c7d62078 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 Oct 2013 13:51:03 +0200 Subject: [PATCH] [SIGNED-OFF] 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. Signed-off-by: Jacek Ablewicz --- 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