Branch Coverage

File:C4/Circulation.pm
Coverage:4.3%

line%coveragebranch
14450TFunless $filter
14550TFunless $filter
146100TFif ($filter eq 'whitespace') { }
100TFelsif ($filter eq 'cuecat') { }
100TFelsif ($filter eq 'T-prefix') { }
100TFelsif ($filter eq 'libsuite8') { }
152100TFif $#results == 2
15450TFif ($barcode =~ /^[Tt](\d)/)
155100TFif defined $1 and $1 eq '0'
163100TFunless ($barcode =~ /^($branch)-/i)
164100TFif ($barcode =~ /^(\d)/i) { }
192100TFif ($l)
19350TFif ($l == 1)
2810TFif (not $itemnumber)
2910TFif ('C4::Context'->preference('UseBranchTransferLimits') == 1)
2920TFif ('C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype') { }
0TFelsif (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'C4::Context'->preference('BranchTransferLimitsType')})) { }
2930TFif (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'itype'}))
3040TFif ($hbr and $$branches{$hbr}{'PE'})
3100TFif ($fbr eq $tbr)
3160TFif ($$issue{'borrowernumber'})
3250TFif ($resfound and not $ignoreRs)
3330TFif ($dotransfer)
3540TF'C4::Context'->preference('item-level_itypes') ? :
3650TFif (defined $issuing_rule and defined $$issuing_rule{'maxissueqty'})
3710TFif ($rule_itemtype eq '*') { }
3750TFif ('C4::Context'->preference('item-level_itypes')) { }
3970TFif ('C4::Context'->preference('item-level_itypes')) { }
4090TFif ($rule_branch ne '*')
4100TFif ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { }
0TFelsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { }
4260TFif ($current_loan_count >= $max_loans_allowed)
4330TFif (defined $$branch_borrower_circ_rule{'maxissueqty'})
4400TFif ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { }
0TFelsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { }
4540TFif ($current_loan_count >= $max_loans_allowed)
5170TFunless $sth->execute($bibitem)
5360TFif (my $data2 = $sth2->fetchrow_hashref) { }
5420TF$$data{'wthdrawn'} eq '1' ? :
5570TFif (my $data2 = $sth2->fetchrow_hashref)
6760TFunless ($$item{'barcode'})
6790TFif %issuingimpossible
6840TFunless ($duedate)
6880TF'C4::Context'->preference('item-level_itypes') ? :
6940TFif ($duedate) { }
6950TFunless $duedate->output('iso') ge 'C4::Dates'->today('iso')
7040TFif ($$borrower{'category_type'} eq 'X' and $$item{'barcode'})
7100TFif ($$borrower{'flags'}{'GNA'})
7130TFif ($$borrower{'flags'}{'LOST'})
7160TFif ($$borrower{'flags'}{'DBARRED'})
7190TFif ($$borrower{'dateexpiry'} eq '0000-00-00') { }
7230TFif ($expirydate[0] == 0 or $expirydate[1] == 0 or $expirydate[2] == 0 or Date_to_Days(Today()) > Date_to_Days(@expirydate))
7380TFif ('C4::Context'->preference('IssuingInProcess')) { }
7390TFif ($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) { }
7480TFif ($amount > $amountlimit and $allowfineoverride) { }
0TFelsif ($amount > $amountlimit and not $allowfineoverride) { }
0TFelsif ($amount > 0 and $allfinesneedoverride) { }
7580TFif ($blocktype == -1) { }
0TFelsif ($blocktype == 1) { }
7600TFif ('C4::Context'->preference('OverduesBlockCirc') eq 'block') { }
0TFelsif ('C4::Context'->preference('OverduesBlockCirc') eq 'confirmation') { }
7760TFif ($max_loans_allowed eq 0) { }
7790TFif ($max_loans_allowed)
7890TFif ($$item{'notforloan'} and $$item{'notforloan'} > 0) { }
0TFelsif (not $$item{'notforloan'}) { }
7920TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8000TFif ('C4::Context'->preference('item-level_itypes')) { }
0TFelsif ($$biblioitem{'notforloan'} == 1) { }
8060TFif ($$notforloan{'notforloan'})
8070TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8150TFif (not 'C4::Context'->preference('AllowNotForLoanOverride')) { }
8220TFif ($$item{'wthdrawn'} and $$item{'wthdrawn'} > 0)
8260TFif ($$item{'restricted'} and $$item{'restricted'} == 1)
8310TFif ('C4::Context'->preference('IndependantBranches'))
8330TFif ($userenv and $$userenv{'flags'} % 2 != 1)
8340TFif $$item{'C4::Context'->preference('HomeOrHoldingBranch')} ne $$userenv{'branch'}
8360TFif $$borrower{'branchcode'} ne $$userenv{'branch'}
8440TFif ($$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { }
0TFelsif ($$issue{'borrowernumber'}) { }
8530TFif ($CanBookBeRenewed == 0) { }
8730TFunless ($ignore_reserves)
8760TFif ($restype)
8780TFif ($resbor ne $$borrower{'borrowernumber'})
8810TFif ($restype eq 'Waiting') { }
0TFelsif ($restype eq 'Reserved') { }
9520TFif (not defined $issuedate)
9570TFif ($borrower and $barcode and $barcodecheck ne '0')
9590TFunless my $item = GetItem('', $barcode)
9710TFif ($$actualissue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { }
9820TFif ($$actualissue{'borrowernumber'})
9950TFif ($datesent)
10150TFunless ($datedue)
10160TF'C4::Context'->preference('item-level_itypes') ? :
10280TFif ('C4::Context'->preference('ReturnToShelvingCart'))
10340TFif ($$item{'itemlost'})
10510TFif ($charge > 0)
10610TF$sipmode ? :
10750TFif ($circulation_alert->is_enabled_for(\%conditions))
10850TFif 'C4::Context'->preference('IssueLog')
11110TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11160TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11210TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11260TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11310TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11360TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11410TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11460TFif defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11710TFif defined $results and $$results{'hardduedate'} ne 'NULL'
11760TFif defined $results and $$results{'hardduedate'} ne 'NULL'
11810TFif defined $results and $$results{'hardduedate'} ne 'NULL'
11860TFif defined $results and $$results{'hardduedate'} ne 'NULL'
11910TFif defined $results and $$results{'hardduedate'} ne 'NULL'
11960TFif defined $results and $$results{'hardduedate'} ne 'NULL'
12010TFif defined $results and $$results{'hardduedate'} ne 'NULL'
12060TFif defined $results and $$results{'hardduedate'} ne 'NULL'
12340TFif defined $irule
12380TFif defined $irule
12420TFif defined $irule
12460TFif defined $irule
12500TFif defined $irule
12540TFif defined $irule
12580TFif defined $irule
12620TFif defined $irule
13120TFif ($result = $sth->fetchrow_hashref)
13220TFif ($result = $sth->fetchrow_hashref)
13320TFif ($result = $sth->fetchrow_hashref)
13410TFif ($result = $sth->fetchrow_hashref)
14020TFif defined($$result{'holdallowed'} = $dbh->selectrow_array($query, {}, @bind_params))
14870TFif ($branch and not GetBranchDetail($branch))
14910TFunless $branch
15010TFunless ($itemnumber)
15060TFif ($issue and $$issue{'borrowernumber'}) { }
15070TFunless $borrower = C4::Members::GetMemberDetails($$issue{'borrowernumber'})
15160TFif ('C4::Context'->preference('RecordLocalUseOnReturn'))
15220TFunless my $item = GetItem($itemnumber)
15330TFif ($hbr)
15350TFif $$branches{$hbr}{'PE'}
15390TFif ($hbr ne $branch and 'C4::Context'->preference('IndependantBranches'))
15530TFif ($$item{'wthdrawn'})
15590TFif ($doreturn)
15600TFunless $borrower
15620TFif ($dropbox)
15660TFunless $$item{'issuedate'} eq 'C4::Dates'->today('iso')
15690TFif ($borrowernumber)
15790TFif ($$item{'holdingbranch'} ne $branch)
15890TFif ($datesent)
15900TFif ($tobranch eq $branch) { }
16050TFif ($$item{'itemlost'})
16110TFif ($borrowernumber)
16130TFunless defined $fix
16170TFif $debardate
16230TFif ($resfound)
16450TFif ($doreturn and $circulation_alert->is_enabled_for(\%conditions))
16540TFif 'C4::Context'->preference('ReturnLog')
16610TFif ($doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'})
16620TFif ('C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')})) { }
16660TFif $debug
16670TFif $debug
17050TFif ($dropbox_branch) { }
0TFelsif ($returndate) { }
17260TFif ($privacy == 2)
17290TF'C4::Context'->preference('AnonymousPatron') ? :
17580TFif ($datedue) { }
17750TFunless $finedays
17780TFif ($deltadays - $grace > 0)
17820TFif (check_date($deby, $debm, $debd)) { }
17850TFif (Delta_Days(@olddate, @newdate) > 0)
18130TFunless ($borrowernumber = shift @_)
18170TFunless ($item = shift @_)
18320TFunless $data
18360TFif ($exemptfine) { }
0TFelsif ($dropbox and $$data{'lastincrement'}) { }
18380TFif ('C4::Context'->preference('FinesLog'))
18440TFif ('C4::Context'->preference('FinesLog'))
18480TFif ($outstanding >= 0 and $amt >= 0)
18740TFunless my $itemnumber = shift @_
18750TF@_ ? :
18760TF@_ ? :
18820TFunless $data
18830TFif $$data{'accounttype'} eq 'W'
18900TFif ($$data{'amountoutstanding'} == $amount) { }
19030TFif $amountleft < 0
19040TFif ($amountleft > 0)
19120TFif ($$accdata{'amountoutstanding'} < $amountleft) { }
19330TFif $amountleft > 0
19390TFif ($borrowernumber)
19710TFif ($circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'})) { }
0TFelsif ($circcontrol eq 'PatronLibrary') { }
19800TFif (not defined $branch and $branchfield eq 'holdingbranch')
20060TFunless $itemnumber
20140TFunless $data
20150TF$$data{'date_due'} lt 'C4::Dates'->today('iso') ? :
20630TFif ($history)
20720TFif ($history) { }
20790TF$$_{'date_due'} lt $today ? :
20980TFunless $biblionumber
21370TFunless exists $$params{'days_in_advance'}
22030TF'C4::Context'->preference('item-level_itypes') ? :
22320TFif (my $data1 = $sthcount->fetchrow_hashref)
22340TFif ($$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit) { }
22420TFif ($resfound)
22760TFunless my $borrowernumber = shift @_
22770TFunless my $itemnumber = shift @_
22810TFunless my $item = GetItem($itemnumber)
22820TFunless my $biblio = GetBiblioFromItemNumber($itemnumber)
22940TFif ($datedue and not $datedue->output('iso'))
23010TFunless ($datedue)
23030TFunless my $borrower = C4::Members::GetMember('borrowernumber', $borrowernumber)
23040TF'C4::Context'->preference('item-level_itypes') ? :
23060TF'C4::Context'->preference('RenewalPeriodBase') eq 'date_due' ? :
23280TFif ($charge > 0)
23320TFif 'C4::Context'->userenv
23710TFif $$data{'renewals'}
23800TFif ($renewsleft < 0)
24120TF'C4::Context'->preference('item-level_itypes') ? :
24200TFif (my $item_data = $sth->fetchrow_hashref)
24340TFif (@{$discount_rules;})
24500TFif (@{$rules_ref;} == 1)
24520TFdefined $discount ? :
24550TFif $$_{'branchcode'} eq $branch
24560TFif (@d)
24580TFdefined $discount ? :
24610TFif $$_{'branchcode'} eq '*'
24620TFif (@d)
24640TFdefined $discount ? :
24670TFif $$_{'branchcode'} eq $branch
24680TFif (@d)
24700TFdefined $discount ? :
24730TFif $$_{'branchcode'} eq '*'
24740TFif (@d)
24760TFdefined $discount ? :
24930TFif 'C4::Context'->userenv
25420TFunless $frombranch and $tobranch
26070TF'C4::Context'->preference('AnonymousPatron') ? :
26090TFif (defined $borrowernumber) { }
26800TFif (not $message) { }
27500TFif ('C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref')) { }
27550TFif ('C4::Context'->preference('useDaysMode') eq 'Days') { }
27680TFif ($hardduedate and $hardduedate->output('iso') and $hardduedate->output('iso') ne '0000-00-00')
27700TFif ($datedue->output('iso') gt $hardduedate->output('iso') and $hardduedatecompare == -1) { }
0TFelsif ($datedue->output('iso') lt $hardduedate->output('iso') and $hardduedatecompare == 1) { }
0TFelsif ($hardduedatecompare == 0) { }
27830TFif ('C4::Context'->preference('ReturnBeforeExpiry') and $datedue->output('iso') gt $$borrower{'dateexpiry'})
28150TFif $dow > 6
28190TFif ($result ne '0' or $countspecial ne '0' or $countspecialrepeatable ne '0')
28210TFif $i ne '1'
29430TFif ($toBranch eq $fromBranch)
29530TFif ($$limit{'limitId'}) { }
30200TFif (my $borrowernumber = $$issues{'borrowernumber'})
30220TFif $charge_fee
30260TFif $mark_returned