Lines 82-88
sub BasketTotal {
Link Here
|
82 |
$total = $total + ( $order->{ecost_tax_excluded} * $order->{quantity} ); |
82 |
$total = $total + ( $order->{ecost_tax_excluded} * $order->{quantity} ); |
83 |
} |
83 |
} |
84 |
} |
84 |
} |
85 |
$total .= " " . ($bookseller->invoiceprice // 0); |
|
|
86 |
return $total; |
85 |
return $total; |
87 |
} |
86 |
} |
88 |
|
87 |
|
Lines 97-102
sub displaybasketgroups {
Link Here
|
97 |
my $basketsqty = 0; |
96 |
my $basketsqty = 0; |
98 |
while($i < scalar(@$baskets)){ |
97 |
while($i < scalar(@$baskets)){ |
99 |
my $basket = @$baskets[$i]; |
98 |
my $basket = @$baskets[$i]; |
|
|
99 |
my $active_currency = Koha::Acquisition::Currencies->get_active; |
100 |
$basket->{currency} = $active_currency->currency; |
100 |
if($basket->{'basketgroupid'} && $basket->{'basketgroupid'} == $basketgroup->{'id'}){ |
101 |
if($basket->{'basketgroupid'} && $basket->{'basketgroupid'} == $basketgroup->{'id'}){ |
101 |
$basket->{total} = BasketTotal($basket->{basketno}, $bookseller); |
102 |
$basket->{total} = BasketTotal($basket->{basketno}, $bookseller); |
102 |
push(@{$basketgroup->{'baskets'}}, $basket); |
103 |
push(@{$basketgroup->{'baskets'}}, $basket); |
Lines 254-259
if ( $op eq "add" ) {
Link Here
|
254 |
my $selecteds = GetBasketsByBasketgroup($basketgroupid); |
255 |
my $selecteds = GetBasketsByBasketgroup($basketgroupid); |
255 |
foreach my $basket(@{$selecteds}){ |
256 |
foreach my $basket(@{$selecteds}){ |
256 |
$basket->{total} = BasketTotal($basket->{basketno}, $bookseller); |
257 |
$basket->{total} = BasketTotal($basket->{basketno}, $bookseller); |
|
|
258 |
my $active_currency = Koha::Acquisition::Currencies->get_active; |
259 |
$basket->{currency} = $active_currency->currency; |
257 |
} |
260 |
} |
258 |
$template->param(basketgroupid => $basketgroupid, |
261 |
$template->param(basketgroupid => $basketgroupid, |
259 |
selectedbaskets => $selecteds); |
262 |
selectedbaskets => $selecteds); |