@@ -, +, @@ table /cgi-bin/koha/acqui/basket.pl?basketno=XXXXX - your vendor page => Basket groups - create basket group - (tick the "close this basket group" check box) your vendor page => Basket groups => Closed replace with the relevant type code DELETE from itemtypes where itemtype = "BOOK"; this is the bug (no kidding ^^) that has the same code as the deleted one table at the bottom of the document → "Document" column --- acqui/basketgroup.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) --- a/acqui/basketgroup.pl +++ a/acqui/basketgroup.pl @@ -195,7 +195,18 @@ sub printbasketgrouppdf{ } } - $ord->{itemtype} = ( $ord->{itemtype} and $biblioitem->itemtype ) ? Koha::ItemTypes->find( $biblioitem->itemtype )->description : undef; + # BEGIN WIP + my $item_has_type_description = ($ord->{itemtype} + and $biblioitem->itemtype + and Koha::ItemTypes->find( $biblioitem->itemtype )); + # use Data::Dumper; + # warn Dumper('########################################################'); + # warn Dumper($item_has_type_description); + # warn Dumper(($ord->{itemtype} and $biblioitem->itemtype)); + # warn Dumper('########################################################'); + $ord->{itemtype} = $item_has_type_description ? Koha::ItemTypes->find( $biblioitem->itemtype )->description : undef; + # END WIP + #$ord->{itemtype} = ( $ord->{itemtype} and $biblioitem->itemtype ) ? Koha::ItemTypes->find( $biblioitem->itemtype )->description : undef; $ord->{en} = $en ? $en : undef; $ord->{edition} = $edition ? $edition : undef; --