View | Details | Raw Unified | Return to bug 10789
Collapse All | Expand All

(-)a/acqui/basketgroup.pl (-4 / +3 lines)
Lines 250-255 if ( $op eq "add" ) { Link Here
250
# else, edit (if it is open) or display (if it is close) the basketgroup basketgroupid
250
# else, edit (if it is open) or display (if it is close) the basketgroup basketgroupid
251
# the template will know if basketgroup must be displayed or edited, depending on the value of closed key
251
# the template will know if basketgroup must be displayed or edited, depending on the value of closed key
252
#
252
#
253
    my $bookseller = &GetBookSellerFromId($booksellerid);
253
    if(! $booksellerid){
254
    if(! $booksellerid){
254
# Unknown bookseller
255
# Unknown bookseller
255
# FIXME : ungroupedlist does not seem to be used in this file nor in template
256
# FIXME : ungroupedlist does not seem to be used in this file nor in template
Lines 277-284 if ( $op eq "add" ) { Link Here
277
        if ( $basketgroupid ) {
278
        if ( $basketgroupid ) {
278
            # Get the selected baskets in the basketgroup to display them
279
            # Get the selected baskets in the basketgroup to display them
279
            my $selecteds = GetBasketsByBasketgroup($basketgroupid);
280
            my $selecteds = GetBasketsByBasketgroup($basketgroupid);
280
            foreach (@{$selecteds}){
281
            foreach my $basket(@{$selecteds}){
281
                $_->{total} = BasketTotal($_->{basketno}, $_);
282
                $basket->{total} = BasketTotal($basket->{basketno}, $bookseller);
282
            }
283
            }
283
            $template->param(basketgroupid => $basketgroupid,
284
            $template->param(basketgroupid => $basketgroupid,
284
                             selectedbaskets => $selecteds);
285
                             selectedbaskets => $selecteds);
Lines 311-317 if ( $op eq "add" ) { Link Here
311
    # the template will display a unique basketgroup
312
    # the template will display a unique basketgroup
312
    $template->param(grouping => 1);
313
    $template->param(grouping => 1);
313
    my $basketgroups = &GetBasketgroups($booksellerid);
314
    my $basketgroups = &GetBasketgroups($booksellerid);
314
    my $bookseller = &GetBookSellerFromId($booksellerid);
315
    my $baskets = &GetBasketsByBookseller($booksellerid);
315
    my $baskets = &GetBasketsByBookseller($booksellerid);
316
    displaybasketgroups($basketgroups, $bookseller, $baskets);
316
    displaybasketgroups($basketgroups, $bookseller, $baskets);
317
} elsif ($op eq 'mod_basket') {
317
} elsif ($op eq 'mod_basket') {
318
- 

Return to bug 10789