Merge remote branch 'kc/new/bug_5769' into kcmaster
[koha.git] / acqui / basket.pl
index afdc460..221a26b 100755 (executable)
@@ -205,6 +205,7 @@ if ( $op eq 'delete_confirm' ) {
                            name =>   "No group");
         if ( ! $basket->{basketgroupid} ) {
             $emptygroup{default} = 1;
+            $emptygroup{nogroup} = 1;
         }
         unshift( @$basketgroups, \%emptygroup );
     }
@@ -218,7 +219,7 @@ if ( $op eq 'delete_confirm' ) {
 
     my @results = GetOrders( $basketno );
     
-       my $gist = $bookseller->{gstrate} || C4::Context->preference("gist") || 0;
+       my $gist = $bookseller->{gstrate} // C4::Context->preference("gist") // 0;
        my $discount = $bookseller->{'discount'} / 100;
     my $total_rrp;      # RRP Total, its value will be assigned to $total_rrp_gsti or $total_rrp_gste depending of $bookseller->{'listincgst'}
        my $total_rrp_gsti; # RRP Total, GST included