sub can_be_deleted {
my ($self) = @_;
my $nb_items = Koha::Items->search( { itype => $self->itemtype, deleted_at => undef } )->count;
my $nb_items = Koha::Items->search( { itype => $self->itemtype, deleted_on => undef } )->count;
my $nb_biblioitems = Koha::Biblioitems->search( { itemtype => $self->itemtype } )->count;
return $nb_items + $nb_biblioitems == 0 ? 1 : 0;
}
my $test_item = GetItem( $item->{itemnumber} );
isnt( $test_item->{deleted_at}, undef,
isnt( $test_item->{deleted_on}, undef,
"DelItemCheck should delete item if ItemSafeToDelete returns true"
);
-