Lines 1317-1327
returns the number of rows affected
Link Here
|
1317 |
|
1317 |
|
1318 |
sub ModSubscription { |
1318 |
sub ModSubscription { |
1319 |
my ( |
1319 |
my ( |
1320 |
$auser, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $startdate, |
1320 |
$manager_id, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $startdate, |
1321 |
$periodicity, $firstacquidate, $irregularity, $numberpattern, $locale, |
1321 |
$periodicity, $firstacquidate, $irregularity, $numberpattern, $locale, |
1322 |
$numberlength, $weeklength, $monthlength, $lastvalue1, $innerloop1, |
1322 |
$numberlength, $weeklength, $monthlength, $lastvalue1, $innerloop1, |
1323 |
$lastvalue2, $innerloop2, $lastvalue3, $innerloop3, $status, |
1323 |
$lastvalue2, $innerloop2, $lastvalue3, $innerloop3, $status, |
1324 |
$biblionumber, $callnumber, $notes, $letter, $manualhistory, |
1324 |
$biblionumber, $callnumber, $notes, $letter, $late_issue_letter_code, $manualhistory, |
1325 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, |
1325 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, |
1326 |
$graceperiod, $location, $enddate, $subscriptionid, $skip_serialseq, |
1326 |
$graceperiod, $location, $enddate, $subscriptionid, $skip_serialseq, |
1327 |
$itemtype, $previousitemtype, $mana_id, $ccode, $published_on_template |
1327 |
$itemtype, $previousitemtype, $mana_id, $ccode, $published_on_template |
Lines 1330-1336
sub ModSubscription {
Link Here
|
1330 |
my $subscription = Koha::Subscriptions->find($subscriptionid); |
1330 |
my $subscription = Koha::Subscriptions->find($subscriptionid); |
1331 |
$subscription->set( |
1331 |
$subscription->set( |
1332 |
{ |
1332 |
{ |
1333 |
librarian => $auser, |
1333 |
manager_id => $manager_id, |
1334 |
branchcode => $branchcode, |
1334 |
branchcode => $branchcode, |
1335 |
aqbooksellerid => $aqbooksellerid, |
1335 |
aqbooksellerid => $aqbooksellerid, |
1336 |
cost => $cost, |
1336 |
cost => $cost, |
Lines 1350-1355
sub ModSubscription {
Link Here
|
1350 |
status => $status, |
1350 |
status => $status, |
1351 |
notes => $notes, |
1351 |
notes => $notes, |
1352 |
letter => $letter, |
1352 |
letter => $letter, |
|
|
1353 |
late_issue_letter_code => $late_issue_letter_code, |
1353 |
firstacquidate => $firstacquidate, |
1354 |
firstacquidate => $firstacquidate, |
1354 |
irregularity => $irregularity, |
1355 |
irregularity => $irregularity, |
1355 |
numberpattern => $numberpattern, |
1356 |
numberpattern => $numberpattern, |
Lines 1383-1392
sub ModSubscription {
Link Here
|
1383 |
|
1384 |
|
1384 |
=head2 NewSubscription |
1385 |
=head2 NewSubscription |
1385 |
|
1386 |
|
1386 |
$subscriptionid = &NewSubscription($auser,branchcode,$aqbooksellerid,$cost,$aqbudgetid,$biblionumber, |
1387 |
$subscriptionid = &NewSubscription($manager_id,branchcode,$aqbooksellerid,$cost,$aqbudgetid,$biblionumber, |
1387 |
$startdate,$periodicity,$numberlength,$weeklength,$monthlength, |
1388 |
$startdate,$periodicity,$numberlength,$weeklength,$monthlength, |
1388 |
$lastvalue1,$innerloop1,$lastvalue2,$innerloop2,$lastvalue3,$innerloop3, |
1389 |
$lastvalue1,$innerloop1,$lastvalue2,$innerloop2,$lastvalue3,$innerloop3, |
1389 |
$status, $notes, $letter, $firstacquidate, $irregularity, $numberpattern, |
1390 |
$status, $notes, $letter, $late_issue_letter_code, $firstacquidate, $irregularity, $numberpattern, |
1390 |
$locale, $callnumber, $manualhistory, $internalnotes, $serialsadditems, |
1391 |
$locale, $callnumber, $manualhistory, $internalnotes, $serialsadditems, |
1391 |
$staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, |
1392 |
$staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, |
1392 |
$skip_serialseq, $itemtype, $previousitemtype); |
1393 |
$skip_serialseq, $itemtype, $previousitemtype); |
Lines 1400-1409
the id of this new subscription
Link Here
|
1400 |
|
1401 |
|
1401 |
sub NewSubscription { |
1402 |
sub NewSubscription { |
1402 |
my ( |
1403 |
my ( |
1403 |
$auser, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $biblionumber, |
1404 |
$manager_id, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $biblionumber, |
1404 |
$startdate, $periodicity, $numberlength, $weeklength, $monthlength, |
1405 |
$startdate, $periodicity, $numberlength, $weeklength, $monthlength, |
1405 |
$lastvalue1, $innerloop1, $lastvalue2, $innerloop2, $lastvalue3, |
1406 |
$lastvalue1, $innerloop1, $lastvalue2, $innerloop2, $lastvalue3, |
1406 |
$innerloop3, $status, $notes, $letter, $firstacquidate, $irregularity, |
1407 |
$innerloop3, $status, $notes, $letter, $late_issue_letter_code, $firstacquidate, $irregularity, |
1407 |
$numberpattern, $locale, $callnumber, $manualhistory, $internalnotes, |
1408 |
$numberpattern, $locale, $callnumber, $manualhistory, $internalnotes, |
1408 |
$serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, |
1409 |
$serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, |
1409 |
$location, $enddate, $skip_serialseq, $itemtype, $previousitemtype, $mana_id, $ccode, |
1410 |
$location, $enddate, $skip_serialseq, $itemtype, $previousitemtype, $mana_id, $ccode, |
Lines 1413-1419
sub NewSubscription {
Link Here
|
1413 |
|
1414 |
|
1414 |
my $subscription = Koha::Subscription->new( |
1415 |
my $subscription = Koha::Subscription->new( |
1415 |
{ |
1416 |
{ |
1416 |
librarian => $auser, |
1417 |
manager_id => $manager_id, |
1417 |
branchcode => $branchcode, |
1418 |
branchcode => $branchcode, |
1418 |
aqbooksellerid => $aqbooksellerid, |
1419 |
aqbooksellerid => $aqbooksellerid, |
1419 |
cost => $cost, |
1420 |
cost => $cost, |
Lines 1433-1438
sub NewSubscription {
Link Here
|
1433 |
status => $status, |
1434 |
status => $status, |
1434 |
notes => $notes, |
1435 |
notes => $notes, |
1435 |
letter => $letter, |
1436 |
letter => $letter, |
|
|
1437 |
late_issue_letter_code => $late_issue_letter_code, |
1436 |
firstacquidate => $firstacquidate, |
1438 |
firstacquidate => $firstacquidate, |
1437 |
irregularity => $irregularity, |
1439 |
irregularity => $irregularity, |
1438 |
numberpattern => $numberpattern, |
1440 |
numberpattern => $numberpattern, |