Branch Coverage

File:C4/Circulation.pm
Coverage:4.1%

line%coveragebranch
14550TFunless $filter
14650TFunless $filter
147100TFif ($filter eq 'whitespace') { }
100TFelsif ($filter eq 'cuecat') { }
100TFelsif ($filter eq 'T-prefix') { }
100TFelsif ($filter eq 'libsuite8') { }
153100TFif $#results == 2
15550TFif ($barcode =~ /^[Tt](\d)/)
156100TFif defined $1 and $1 eq '0'
164100TFunless ($barcode =~ /^($branch)-/i)
165100TFif ($barcode =~ /^(\d)/i) { }
193100TFif ($l)
19450TFif ($l == 1)
2820TFif (not $itemnumber)
2920TFif ('C4::Context'->preference('UseBranchTransferLimits') == 1)
2930TFif ('C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype') { }
0TFelsif (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'C4::Context'->preference('BranchTransferLimitsType')})) { }
2940TFif (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'itype'}))
3050TFif ($hbr and $$branches{$hbr}{'PE'})
3110TFif ($fbr eq $tbr)
3170TFif ($$issue{'borrowernumber'})
3260TFif ($resfound and not $ignoreRs)
3340TFif ($dotransfer)
3550TF'C4::Context'->preference('item-level_itypes') ? :
3660TFif (defined $issuing_rule and defined $$issuing_rule{'maxissueqty'})
3720TFif ($rule_itemtype eq '*') { }
3760TFif ('C4::Context'->preference('item-level_itypes')) { }
3980TFif ('C4::Context'->preference('item-level_itypes')) { }
4100TFif ($rule_branch ne '*')
4110TFif ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { }
0TFelsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { }
4270TFif ($current_loan_count >= $max_loans_allowed)
4340TFif (defined $$branch_borrower_circ_rule{'maxissueqty'})
4410TFif ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { }
0TFelsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { }
4550TFif ($current_loan_count >= $max_loans_allowed)
5180TFunless $sth->execute($bibitem)
5370TFif (my $data2 = $sth2->fetchrow_hashref) { }
5430TF$$data{'wthdrawn'} eq '1' ? :
5580TFif (my $data2 = $sth2->fetchrow_hashref)
6770TFunless ($$item{'barcode'})
6800TFif %issuingimpossible
6850TFif ($duedate and ref $duedate ne 'DateTime')
6890TFunless ($duedate)
6930TF'C4::Context'->preference('item-level_itypes') ? :
6990TFif ($duedate) { }
7020TFif ('DateTime'->compare($duedate, $today) == -1)
7120TFif ($$borrower{'category_type'} eq 'X' and $$item{'barcode'})
7180TFif ($$borrower{'flags'}{'GNA'})
7210TFif ($$borrower{'flags'}{'LOST'})
7240TFif ($$borrower{'flags'}{'DBARRED'})
7270TFif (not defined $$borrower{'dateexpiry'} or $$borrower{'dateexpiry'} eq '0000-00-00') { }
7310TFif ($y and $m and $d) { }
7400TFif ('DateTime'->compare($today, $expiry_dt) == 1)
7580TFif ('C4::Context'->preference('IssuingInProcess')) { }
7590TFif ($amount > $amountlimit and not $inprocess and not $allowfineoverride) { }
0TFelsif ($amount > $amountlimit and not $inprocess and $allowfineoverride) { }
0TFelsif ($allfinesneedoverride and $amount > 0 and $amount <= $amountlimit and not $inprocess) { }
7680TFif ($amount > $amountlimit and $allowfineoverride) { }
0TFelsif ($amount > $amountlimit and not $allowfineoverride) { }
0TFelsif ($amount > 0 and $allfinesneedoverride) { }
7780TFif ($blocktype == -1) { }
0TFelsif ($blocktype == 1) { }
7800TFif ('C4::Context'->preference('OverduesBlockCirc') eq 'block') { }
0TFelsif ('C4::Context'->preference('OverduesBlockCirc') eq 'confirmation') { }
7960TFif (defined $max_loans_allowed and $max_loans_allowed == 0) { }
7990TFif ($max_loans_allowed)
8090TFif ($$item{'notforloan'} and $$item{'notforloan'} > 0) { }
0TFelsif (not $$item{'notforloan'}) { }
8120TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8200TFif ('C4::Context'->preference('item-level_itypes')) { }
0TFelsif ($$biblioitem{'notforloan'} == 1) { }
8260TFif ($$notforloan{'notforloan'})
8270TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8350TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8420TFif ($$item{'wthdrawn'} and $$item{'wthdrawn'} > 0)
8460TFif ($$item{'restricted'} and $$item{'restricted'} == 1)
8510TFif ('C4::Context'->preference('IndependantBranches'))
8530TFif ($userenv and $$userenv{'flags'} % 2 != 1)
8540TFif $$item{'C4::Context'->preference('HomeOrHoldingBranch')} ne $$userenv{'branch'}
8560TFif $$borrower{'branchcode'} ne $$userenv{'branch'}
8640TFif ($$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { }
0TFelsif ($$issue{'borrowernumber'}) { }
8730TFif ($CanBookBeRenewed == 0) { }
8930TFunless ($ignore_reserves)
8960TFif ($restype)
8980TFif ($resbor ne $$borrower{'borrowernumber'})
9010TFif ($restype eq 'Waiting') { }
0TFelsif ($restype eq 'Reserved') { }
9710TFif ($datedue and ref $datedue ne 'DateTime')
9750TFif (not defined $issuedate) { }
9790TFif (ref $issuedate ne 'DateTime')
9840TFif ($borrower and $barcode and $barcodecheck ne '0')
9860TFunless my $item = GetItem('', $barcode)
9980TFif ($$actualissue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { }
10090TFif ($$actualissue{'borrowernumber'})
10210TFif ($datesent)
10410TFunless ($datedue)
10420TF'C4::Context'->preference('item-level_itypes') ? :
10540TFif ('C4::Context'->preference('ReturnToShelvingCart'))
10600TFif ($$item{'itemlost'})
10770TFif ($charge > 0)
10870TF$sipmode ? :
11010TFif ($circulation_alert->is_enabled_for(\%conditions))
11110TFif 'C4::Context'->preference('IssueLog')
11370TFif defined $loanlength and $$loanlength{'issuelength'}
11420TFif defined $loanlength and $$loanlength{'issuelength'}
11470TFif defined $loanlength and $$loanlength{'issuelength'}
11520TFif defined $loanlength and $$loanlength{'issuelength'}
11570TFif defined $loanlength and $$loanlength{'issuelength'}
11620TFif defined $loanlength and $$loanlength{'issuelength'}
11670TFif defined $loanlength and $$loanlength{'issuelength'}
11720TFif defined $loanlength and $$loanlength{'issuelength'}
12010TFif defined $results and $$results{'hardduedate'}
12060TFif defined $results and $$results{'hardduedate'}
12110TFif defined $results and $$results{'hardduedate'}
12160TFif defined $results and $$results{'hardduedate'}
12210TFif defined $results and $$results{'hardduedate'}
12260TFif defined $results and $$results{'hardduedate'}
12310TFif defined $results and $$results{'hardduedate'}
12360TFif defined $results and $$results{'hardduedate'}
12640TFif defined $irule
12680TFif defined $irule
12720TFif defined $irule
12760TFif defined $irule
12800TFif defined $irule
12840TFif defined $irule
12880TFif defined $irule
12920TFif defined $irule
13420TFif ($result = $sth->fetchrow_hashref)
13520TFif ($result = $sth->fetchrow_hashref)
13620TFif ($result = $sth->fetchrow_hashref)
13710TFif ($result = $sth->fetchrow_hashref)
14370TFunless defined $$result{'holdallowed'}
14380TFunless defined $$result{'returnbranch'}
14420TFunless defined $$result{'holdallowed'}
14430TFunless defined $$result{'returnbranch'}
15240TFif ($branch and not GetBranchDetail($branch))
15280TFunless $branch
15380TFunless ($itemnumber)
15430TFif ($issue and $$issue{'borrowernumber'}) { }
15440TFunless $borrower = C4::Members::GetMemberDetails($$issue{'borrowernumber'})
15530TFif ('C4::Context'->preference('RecordLocalUseOnReturn'))
15590TFunless my $item = GetItem($itemnumber)
15710TFif ($hbr)
15730TFif $$branches{$hbr}{'PE'}
15770TFif ($hbr ne $branch and 'C4::Context'->preference('IndependantBranches'))
15910TFif ($$item{'wthdrawn'})
15970TFif ($doreturn)
15980TFunless $borrower
16000TFif ($dropbox)
16080TFif ($borrowernumber)
16180TFif ($$item{'holdingbranch'} ne $branch)
16280TFif ($datesent)
16290TFif ($tobranch eq $branch) { }
16440TFif ($$item{'itemlost'})
16500TFif ($borrowernumber)
16520TFunless defined $fix
16560TFif $debardate
16620TFif ($resfound)
16840TFif ($doreturn and $circulation_alert->is_enabled_for(\%conditions))
16930TFif 'C4::Context'->preference('ReturnLog')
17000TFif ($doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'})
17010TFif ('C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')})) { }
17050TFif $debug
17060TFif $debug
17440TFif ($dropbox_branch) { }
0TFelsif ($returndate) { }
17650TFif ($privacy == 2)
17680TF'C4::Context'->preference('AnonymousPatron') ? :
17960TFunless $datedue
18120TFunless $finedays
18150TFif (($deltadays - $grace)->is_positive)
18190TFif ($$borrower{'debarred'} and $borrower_debar_dt) { }
18210TFif ('DateTime'->compare($borrower_debar_dt, $new_debar_dt) == -1)
18500TFunless ($borrowernumber = shift @_)
18540TFunless ($item = shift @_)
18690TFunless $data
18730TFif ($exemptfine) { }
0TFelsif ($dropbox and $$data{'lastincrement'}) { }
18750TFif ('C4::Context'->preference('FinesLog'))
18810TFif ('C4::Context'->preference('FinesLog'))
18850TFif ($outstanding >= 0 and $amt >= 0)
19110TFunless my $itemnumber = shift @_
19120TF@_ ? :
19130TF@_ ? :
19190TFunless $data
19200TFif $$data{'accounttype'} eq 'W'
19270TFif ($$data{'amountoutstanding'} == $amount) { }
19400TFif $amountleft < 0
19410TFif ($amountleft > 0)
19490TFif ($$accdata{'amountoutstanding'} < $amountleft) { }
19700TFif $amountleft > 0
19760TFif ($borrowernumber)
20080TFif ($circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'})) { }
0TFelsif ($circcontrol eq 'PatronLibrary') { }
20170TFif (not defined $branch and $branchfield eq 'holdingbranch')
20430TFunless $itemnumber
20510TFunless $data
20570TF'DateTime'->compare($$data{'date_due'}, $dt) == -1 ? :
21060TFif ($history)
21150TFif ($history) { }
21250TF'DateTime'->compare($date_due, $today) == -1 ? :
21440TFunless $biblionumber
21830TFunless exists $$params{'days_in_advance'}
22490TF'C4::Context'->preference('item-level_itypes') ? :
22780TFif (my $data1 = $sthcount->fetchrow_hashref)
22800TFif ($$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit) { }
22880TFif ($resfound)
23220TFunless my $borrowernumber = shift @_
23230TFunless my $itemnumber = shift @_
23270TFunless my $item = GetItem($itemnumber)
23280TFunless my $biblio = GetBiblioFromItemNumber($itemnumber)
23400TFif (defined $datedue and ref $datedue ne 'DateTime')
23470TFunless ($datedue)
23490TFunless my $borrower = C4::Members::GetMember('borrowernumber', $borrowernumber)
23500TF'C4::Context'->preference('item-level_itypes') ? :
23520TF'C4::Context'->preference('RenewalPeriodBase') eq 'date_due' ? :
23750TFif ($charge > 0)
23790TFif 'C4::Context'->userenv
24170TFif $$data{'renewals'}
24260TFif ($renewsleft < 0)
24580TF'C4::Context'->preference('item-level_itypes') ? :
24660TFif (my $item_data = $sth->fetchrow_hashref)
24800TFif (@{$discount_rules;})
24960TFif (@{$rules_ref;} == 1)
24980TFdefined $discount ? :
25010TFif $$_{'branchcode'} eq $branch
25020TFif (@d)
25040TFdefined $discount ? :
25070TFif $$_{'branchcode'} eq '*'
25080TFif (@d)
25100TFdefined $discount ? :
25130TFif $$_{'branchcode'} eq $branch
25140TFif (@d)
25160TFdefined $discount ? :
25190TFif $$_{'branchcode'} eq '*'
25200TFif (@d)
25220TFdefined $discount ? :
25390TFif 'C4::Context'->userenv
25880TFunless $frombranch and $tobranch
26530TF'C4::Context'->preference('AnonymousPatron') ? :
26550TFif (defined $borrowernumber) { }
27160TFunless my $letter = C4::Letters::GetPreparedLetter('module', 'circulation', 'letter_code', $type, 'branchcode', $branch, 'tables', {'biblio', $$item{'biblionumber'}, 'biblioitems', $$item{'biblionumber'}, 'borrowers', $borrower, 'branches', $branch})
27330TFif (not $message) { }
28080TFif ('C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref')) { }
28190TFif ('C4::Context'->preference('useDaysMode') eq 'Days') { }
28240TFif ($$loanlength{'lengthunit'} eq 'hours') { }
28350TFif ($$loanlength{'lengthunit'} eq 'hours') { }
28410TFif (ref $startdate ne 'DateTime')
28460TFif ($$loanlength{'lengthunit'} eq 'days')
28560TFif ($hardduedate)
28650TFif ($hardduedatecompare == 0 or $hardduedatecompare == $cmp)
28730TFif ('C4::Context'->preference('ReturnBeforeExpiry'))
28750TFif ('DateTime'->compare($datedue, $expiry_dt) == 1)
29980TFif ($toBranch eq $fromBranch)
30080TFif ($$limit{'limitId'}) { }
30750TFif (my $borrowernumber = $$issues{'borrowernumber'})
30770TFif $charge_fee
30810TFif $mark_returned
31210TFif ($$operation{'action'} eq 'return') { }
0TFelsif ($$operation{'action'} eq 'issue') { }
31270TFif $$operation{'operationid'}
31370TFif ($itemnumber) { }
31390TFif ($issue) { }
31650TFif ($$borrower{'borrowernumber'}) { }
31670TFunless ($itemnumber)
31720TFif ($issue and $$issue{'borrowernumber'} ne $$borrower{'borrowernumber'})
32070TFunless my $item = GetItem($itemnumber)