Condition Coverage

File:C4/Circulation.pm
Coverage:0.9%

line%coveragecondition
15667
ABdec
0X0
100
111
defined $1 and $1 eq '0'
2930
ABdec
0X0
100
111
'C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype'
3050
ABdec
0X0
100
111
$hbr and $$branches{$hbr}{'PE'}
3260
ABdec
0X0
100
111
$resfound and not $ignoreRs
3660
ABdec
0X0
100
111
defined $issuing_rule and defined $$issuing_rule{'maxissueqty'}
5120
Adec
00
11
$dbh->prepare('Select * from items where items.biblioitemnumber = ?') || die($dbh->errstr)
6850
ABdec
0X0
100
111
$duedate and ref $duedate ne 'DateTime'
7120
ABdec
0X0
100
111
$$borrower{'category_type'} eq 'X' and $$item{'barcode'}
7270
ABdec
000
011
1X1
not defined $$borrower{'dateexpiry'} or $$borrower{'dateexpiry'} eq '0000-00-00'
7310
ABCdec
0XX0
10X0
1100
1111
$y and $m and $d
7590
ABdec
0X0
100
111
$allfinesneedoverride and $amount > 0
0
ABCdec
0XX0
10X0
1100
1111
$allfinesneedoverride and $amount > 0 and $amount <= $amountlimit and not $inprocess
0
ABCDdec
0XXX0
10XX0
110X0
11100
11111
$amount > $amountlimit and not $inprocess and not $allowfineoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and not $inprocess and $allowfineoverride
7680
ABdec
0X0
100
111
$amount > 0 and $allfinesneedoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and $allowfineoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and not $allowfineoverride
7960
ABdec
0X0
100
111
defined $max_loans_allowed and $max_loans_allowed == 0
8090
ABdec
0X0
100
111
$$item{'notforloan'} and $$item{'notforloan'} > 0
8420
ABdec
0X0
100
111
$$item{'wthdrawn'} and $$item{'wthdrawn'} > 0
8460
ABdec
0X0
100
111
$$item{'restricted'} and $$item{'restricted'} == 1
8530
ABdec
0X0
100
111
$userenv and $$userenv{'flags'} % 2 != 1
8640
ABdec
0X0
100
111
$$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'}
9710
ABdec
0X0
100
111
$datedue and ref $datedue ne 'DateTime'
9840
ABCdec
0XX0
10X0
1100
1111
$borrower and $barcode and $barcodecheck ne '0'
11370
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11420
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11470
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11520
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11570
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11620
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11670
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
11720
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'}
12010
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12060
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12110
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12160
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12210
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12260
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12310
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
12360
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'}
15240
ABdec
0X0
100
111
$branch and not GetBranchDetail($branch)
15430
ABdec
0X0
100
111
$issue and $$issue{'borrowernumber'}
15620
Adec
00
11
GetBranchItemRule($$item{'homebranch'}, $$item{'itype'})->{'returnbranch'} || 'homebranch'
15640
ABdec
000
011
1X1
$$item{$hbr} || $branch
15670
Adec
00
11
$$borrower{'borrowernumber'} || undef
15770
ABdec
0X0
100
111
$hbr ne $branch and 'C4::Context'->preference('IndependantBranches')
16840
ABdec
0X0
100
111
$doreturn and $circulation_alert->is_enabled_for(\%conditions)
17000
ABCDEdec
00XXX0
010XX0
0110X0
011100
011111
1X0XX0
1X10X0
1X1100
1X1111
$doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'}
17010
ABCdec
00X0
0100
0111
1XX1
'C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')})
18190
ABdec
0X0
100
111
$$borrower{'debarred'} and $borrower_debar_dt
18730
ABdec
0X0
100
111
$dropbox and $$data{'lastincrement'}
18850
ABdec
0X0
100
111
$outstanding >= 0 and $amt >= 0
19480
ABdec
0X0
100
111
$accdata = $msth->fetchrow_hashref and $amountleft > 0
20080
ABdec
0X0
100
111
$circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'})
0
ABdec
0X0
100
111
'C4::Context'->userenv and 'C4::Context'->userenv->{'branch'}
20130
Adec
00
11
'C4::Context'->preference('HomeOrHoldingBranch') || 'homebranch'
20170
ABdec
0X0
100
111
not defined $branch and $branchfield eq 'holdingbranch'
22800
ABCdec
0X00
0X11
1000
1011
11X1
$$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit
23260
ABdec
000
011
1X1
shift @_ || 'DateTime'->now('time_zone', 'C4::Context'->tz)->ymd
23400
ABdec
0X0
100
111
defined $datedue and ref $datedue ne 'DateTime'
25880
ABdec
0X0
100
111
$frombranch and $tobranch
28080
ABdec
0X0
100
111
'C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref')
28650
ABdec
000
011
1X1
$hardduedatecompare == 0 or $hardduedatecompare == $cmp
31720
ABdec
0X0
100
111
$issue and $$issue{'borrowernumber'} ne $$borrower{'borrowernumber'}