From 452c0ab719028fc04f665307d6e67e5bc683afe8 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 16 Feb 2010 21:46:54 +0100 Subject: [PATCH] MT2716: fixing finishreceive.pl Software Error finishreceive.pl was buggy when AcqCreateItem was set to recieve (wrong API) Signed-off-by: Galen Charlton --- acqui/finishreceive.pl | 2 +- acqui/orderreceive.pl | 6 +++++- .../intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl index 31c7c3570c..3042453ab0 100755 --- a/acqui/finishreceive.pl +++ b/acqui/finishreceive.pl @@ -103,7 +103,7 @@ if ($quantityrec > $origquantityrec ) { $itemhash{$item}->{'subfields'}, $itemhash{$item}->{'field_values'}, $itemhash{$item}->{'ind_tag'}, - $itemhash{$item}->{'indicator'}); + $itemhash{$item}->{'indicator'},'ITEM'); my $record=MARC::Record::new_from_xml($xml, 'UTF-8'); my ($biblionumber,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$biblionumber); } diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index bcf6f74769..a4bdbefdfd 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -111,7 +111,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( if ( $count == 1 ) { if (C4::Context->preference('AcqCreateItem') eq 'receiving') { # prepare empty item form - my $cell = PrepareItemrecordDisplay(); + my $cell = PrepareItemrecordDisplay('','','','ACQ'); + unless ($cell) { + $cell = PrepareItemrecordDisplay('','','',''); + $template->param('NoACQframework' => 1); + } my @itemloop; push @itemloop,$cell; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl index 62d712d665..8206ec4b2e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl @@ -38,6 +38,9 @@
Item + +

No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used

+
-- 2.39.5