Lines 78-84
BEGIN {
Link Here
|
78 |
&PrepareSerialsData &GetNextExpected &ModNextExpected |
78 |
&PrepareSerialsData &GetNextExpected &ModNextExpected |
79 |
&GetPreviousSerialid |
79 |
&GetPreviousSerialid |
80 |
|
80 |
|
81 |
&GetSuppliersWithLateIssues &getsupplierbyserialid |
81 |
&GetSuppliersWithLateIssues |
82 |
&GetDistributedTo &SetDistributedTo |
82 |
&GetDistributedTo &SetDistributedTo |
83 |
&getroutinglist &delroutingmember &addroutingmember |
83 |
&getroutinglist &delroutingmember &addroutingmember |
84 |
&reorder_members |
84 |
&reorder_members |
Lines 1942-1974
sub updateClaim {
Link Here
|
1942 |
{}, CLAIMED, @$serialids ); |
1942 |
{}, CLAIMED, @$serialids ); |
1943 |
} |
1943 |
} |
1944 |
|
1944 |
|
1945 |
=head2 getsupplierbyserialid |
|
|
1946 |
|
1947 |
$result = getsupplierbyserialid($serialid) |
1948 |
|
1949 |
this function is used to find the supplier id given a serial id |
1950 |
|
1951 |
return : |
1952 |
hashref containing serialid, subscriptionid, and aqbooksellerid |
1953 |
|
1954 |
=cut |
1955 |
|
1956 |
sub getsupplierbyserialid { |
1957 |
my ($serialid) = @_; |
1958 |
my $dbh = C4::Context->dbh; |
1959 |
my $sth = $dbh->prepare( |
1960 |
"SELECT serialid, serial.subscriptionid, aqbooksellerid |
1961 |
FROM serial |
1962 |
LEFT JOIN subscription ON serial.subscriptionid = subscription.subscriptionid |
1963 |
WHERE serialid = ? |
1964 |
" |
1965 |
); |
1966 |
$sth->execute($serialid); |
1967 |
my $line = $sth->fetchrow_hashref; |
1968 |
my $result = $line->{'aqbooksellerid'}; |
1969 |
return $result; |
1970 |
} |
1971 |
|
1972 |
=head2 check_routing |
1945 |
=head2 check_routing |
1973 |
|
1946 |
|
1974 |
$result = &check_routing($subscriptionid) |
1947 |
$result = &check_routing($subscriptionid) |