=cut
-use strict;
-use warnings;
+use Modern::Perl;
use Carp;
use C4::Auth;
$total = $total + ( $order->{ecost_tax_excluded} * $order->{quantity} );
}
}
- $total .= " " . ($bookseller->invoiceprice // 0);
return $total;
}
}
}
- $ord->{itemtype} = ( $ord->{itemtype} and $biblioitem->itemtype ) ? Koha::ItemTypes->find( $biblioitem->itemtype )->description : undef;
+ my $itemtype = ( $ord->{itemtype} and $biblioitem->itemtype )
+ ? Koha::ItemTypes->find( $biblioitem->itemtype )
+ : undef;
+ $ord->{itemtype} = $itemtype ? $itemtype->description : undef;
+
$ord->{en} = $en ? $en : undef;
$ord->{edition} = $edition ? $edition : undef;