Bug 10613: (follow-up) fix typo supplierid vs booksellerid
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 25 Oct 2013 11:51:03 +0000 (13:51 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 4 May 2014 19:23:33 +0000 (19:23 +0000)
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 <abl@biblos.pk.edu.pl>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/invoice.pl

index 1306363..c59c490 100755 (executable)
@@ -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;