@@ -, +, @@ 1) Log into staff client 2) Acquisitions 3) Click 'Search' in the 'Manage orders' box 4) Click '+ New basket' because a vendor name 5) Type 'Test Basket' into basket name 6) Click 'Save' 7) Click 'Add to basket' 8) Click 'From an external source' 9) Type 'Green Eggs and Ham' into the Title text box 'Accounting details' box basket group text area NOTE: If there is a space issue, see Bug 9654. This can be applied separately from that bug. --- acqui/basketgroup.pl | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- a/acqui/basketgroup.pl +++ a/acqui/basketgroup.pl @@ -250,6 +250,7 @@ if ( $op eq "add" ) { # else, edit (if it is open) or display (if it is close) the basketgroup basketgroupid # the template will know if basketgroup must be displayed or edited, depending on the value of closed key # + my $bookseller = &GetBookSellerFromId($booksellerid); if(! $booksellerid){ # Unknown bookseller # FIXME : ungroupedlist does not seem to be used in this file nor in template @@ -277,8 +278,8 @@ if ( $op eq "add" ) { if ( $basketgroupid ) { # Get the selected baskets in the basketgroup to display them my $selecteds = GetBasketsByBasketgroup($basketgroupid); - foreach (@{$selecteds}){ - $_->{total} = BasketTotal($_->{basketno}, $_); + foreach my $basket(@{$selecteds}){ + $basket->{total} = BasketTotal($basket->{basketno}, $bookseller); } $template->param(basketgroupid => $basketgroupid, selectedbaskets => $selecteds); @@ -311,7 +312,6 @@ if ( $op eq "add" ) { # the template will display a unique basketgroup $template->param(grouping => 1); my $basketgroups = &GetBasketgroups($booksellerid); - my $bookseller = &GetBookSellerFromId($booksellerid); my $baskets = &GetBasketsByBookseller($booksellerid); displaybasketgroups($basketgroups, $bookseller, $baskets); } elsif ($op eq 'mod_basket') { --