Changing GetSerials2 to take more than one status in parameter.

status=1,3
will display all the serials late and waited.
This commit is contained in:
hdl 2007-06-30 05:26:25 +00:00
parent f6c5b4db42
commit 0a9ee0c59b

View file

@ -526,7 +526,7 @@ sub GetSubscriptionsFromBiblionumber {
if (C4::Context->preference('IndependantBranches') &&
C4::Context->userenv &&
C4::Context->userenv->{'flags'} != 1){
$query.=" AND subscription.branchcode IN ('".C4::Context->userenv->{'branch'}."',\"''\")";
$query.=" AND subscription.branchcode IN ('".C4::Context->userenv->{'branch'}."',\"\")";
}
my $sth = $dbh->prepare($query);
$sth->execute($biblionumber);
@ -793,7 +793,7 @@ sub GetSerials2 {
my $query = qq|
SELECT serialid,serialseq, status, planneddate, publisheddate,notes
FROM serial
WHERE subscriptionid=$subscription AND status=$status
WHERE subscriptionid=$subscription AND status IN ($status)
ORDER BY publisheddate,serialid DESC
|;
# warn $query;