X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=acqui%2Forderreceive.pl;h=2b59698a71c5f11b9fbfca75beb436f449afbc75;hb=HEAD;hp=659c10368a8d58902286d809b934d57812e618fa;hpb=0ef6b0d5c618c2bd4d0ec942e870a6f989632ca0;p=koha_gimpoz diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 659c10368a..2b59698a71 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -117,16 +117,15 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( # prepare the form for receiving if ( $count == 1 ) { if (C4::Context->preference('AcqCreateItem') eq 'receiving') { - # prepare empty item form - my $cell = PrepareItemrecordDisplay('','','','ACQ'); - unless ($cell) { - $cell = PrepareItemrecordDisplay('','','',''); + # Check if ACQ framework exists + my $marc = GetMarcStructure(1, 'ACQ'); + unless($marc) { $template->param('NoACQframework' => 1); } - my @itemloop; - push @itemloop,$cell; - - $template->param(items => \@itemloop); + $template->param( + AcqCreateItemReceiving => 1, + UniqueItemFields => C4::Context->preference('UniqueItemFields'), + ); } if ( @$results[0]->{'quantityreceived'} == 0 ) {