@@ -, +, @@ orders - from OPAC, shows up in patron account as 'requested', pending in staff - from staff, shows up in list of pending suggestions - from list - from edit page - from list - from edit page - new basket - ordered 2 accepted suggestions - Status in database is now ORDERED - Already ordered suggestions no longer show up on list of suggestions to order from. - Patron account shows 'Ordered by the library (Bestseller)' - Suggestion management page shows a new tab 'Ordered' - For the suggestion with a valid 'suggestedby' borrowernumber, a mail was generated. (bug 7094) - received my ordered suggestions - No message was generated to inform the patron - Status stays ORDERED - Patron account still shows item as ordered, no change to 4) --- C4/Suggestions.pm | 2 +- acqui/addorder.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Suggestions.pm +++ a/C4/Suggestions.pm @@ -113,7 +113,7 @@ sub SearchSuggestion { LEFT JOIN borrowers AS U2 ON managedby=U2.borrowernumber LEFT JOIN branches AS B2 ON B2.branchcode=U2.branchcode LEFT JOIN categories AS C2 ON C2.categorycode = U2.categorycode - WHERE STATUS NOT IN ('CLAIMED') + WHERE 1=1 } , map { if ( my $s = $suggestion->{$_} ) { push @sql_params,'%'.$s.'%'; --- a/acqui/addorder.pl +++ a/acqui/addorder.pl @@ -212,7 +212,7 @@ if ( $orderinfo->{quantity} ne '0' ) { my ($biblionumber,$bibitemnum) = AddBiblio($record,''); # change suggestion status if applicable if ($$orderinfo{suggestionid}) { - ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, status=>'ORDERED', biblionumber=>$biblionumber} ); + ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, STATUS=>'ORDERED', biblionumber=>$biblionumber} ); } $orderinfo->{biblioitemnumber}=$bibitemnum; $orderinfo->{biblionumber}=$biblionumber; --