| line | % | coverage | condition |
| 156 | 67 | | defined $1 and $1 eq '0' |
| 293 | 0 | | 'C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype' |
| 305 | 0 | | $hbr and $$branches{$hbr}{'PE'} |
| 326 | 0 | | $resfound and not $ignoreRs |
| 366 | 0 | | defined $issuing_rule and defined $$issuing_rule{'maxissueqty'} |
| 512 | 0 | | $dbh->prepare('Select * from items where items.biblioitemnumber = ?') || die($dbh->errstr) |
| 685 | 0 | | $duedate and ref $duedate ne 'DateTime' |
| 712 | 0 | | $$borrower{'category_type'} eq 'X' and $$item{'barcode'} |
| 727 | 0 | | not defined $$borrower{'dateexpiry'} or $$borrower{'dateexpiry'} eq '0000-00-00' |
| 731 | 0 | | $y and $m and $d |
| 759 | 0 | | $allfinesneedoverride and $amount > 0 |
| 0 | | $allfinesneedoverride and $amount > 0 and $amount <= $amountlimit and not $inprocess |
| 0 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $amount > $amountlimit and not $inprocess and not $allowfineoverride |
| 0 | | $amount > $amountlimit and not $inprocess and $allowfineoverride |
| 768 | 0 | | $amount > 0 and $allfinesneedoverride |
| 0 | | $amount > $amountlimit and $allowfineoverride |
| 0 | | $amount > $amountlimit and not $allowfineoverride |
| 796 | 0 | | defined $max_loans_allowed and $max_loans_allowed == 0 |
| 809 | 0 | | $$item{'notforloan'} and $$item{'notforloan'} > 0 |
| 842 | 0 | | $$item{'wthdrawn'} and $$item{'wthdrawn'} > 0 |
| 846 | 0 | | $$item{'restricted'} and $$item{'restricted'} == 1 |
| 853 | 0 | | $userenv and $$userenv{'flags'} % 2 != 1 |
| 864 | 0 | | $$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'} |
| 971 | 0 | | $datedue and ref $datedue ne 'DateTime' |
| 984 | 0 | | $borrower and $barcode and $barcodecheck ne '0' |
| 1137 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1142 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1147 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1152 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1157 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1162 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1167 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1172 | 0 | | defined $loanlength and $$loanlength{'issuelength'} |
| 1201 | 0 | | defined $results and $$results{'hardduedate'} |
| 1206 | 0 | | defined $results and $$results{'hardduedate'} |
| 1211 | 0 | | defined $results and $$results{'hardduedate'} |
| 1216 | 0 | | defined $results and $$results{'hardduedate'} |
| 1221 | 0 | | defined $results and $$results{'hardduedate'} |
| 1226 | 0 | | defined $results and $$results{'hardduedate'} |
| 1231 | 0 | | defined $results and $$results{'hardduedate'} |
| 1236 | 0 | | defined $results and $$results{'hardduedate'} |
| 1524 | 0 | | $branch and not GetBranchDetail($branch) |
| 1543 | 0 | | $issue and $$issue{'borrowernumber'} |
| 1562 | 0 | | GetBranchItemRule($$item{'homebranch'}, $$item{'itype'})->{'returnbranch'} || 'homebranch' |
| 1564 | 0 | | $$item{$hbr} || $branch |
| 1567 | 0 | | $$borrower{'borrowernumber'} || undef |
| 1577 | 0 | | $hbr ne $branch and 'C4::Context'->preference('IndependantBranches') |
| 1684 | 0 | | $doreturn and $circulation_alert->is_enabled_for(\%conditions) |
| 1700 | 0 | | A | B | C | D | E | dec |
|---|
| 0 | 0 | X | X | X | 0 | | 0 | 1 | 0 | X | X | 0 | | 0 | 1 | 1 | 0 | X | 0 | | 0 | 1 | 1 | 1 | 0 | 0 | | 0 | 1 | 1 | 1 | 1 | 1 | | 1 | X | 0 | X | X | 0 | | 1 | X | 1 | 0 | X | 0 | | 1 | X | 1 | 1 | 0 | 0 | | 1 | X | 1 | 1 | 1 | 1 |
| $doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'} |
| 1701 | 0 | | 'C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')}) |
| 1819 | 0 | | $$borrower{'debarred'} and $borrower_debar_dt |
| 1873 | 0 | | $dropbox and $$data{'lastincrement'} |
| 1885 | 0 | | $outstanding >= 0 and $amt >= 0 |
| 1948 | 0 | | $accdata = $msth->fetchrow_hashref and $amountleft > 0 |
| 2008 | 0 | | $circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'}) |
| 0 | | 'C4::Context'->userenv and 'C4::Context'->userenv->{'branch'} |
| 2013 | 0 | | 'C4::Context'->preference('HomeOrHoldingBranch') || 'homebranch' |
| 2017 | 0 | | not defined $branch and $branchfield eq 'holdingbranch' |
| 2280 | 0 | | A | B | C | dec |
|---|
| 0 | X | 0 | 0 | | 0 | X | 1 | 1 | | 1 | 0 | 0 | 0 | | 1 | 0 | 1 | 1 | | 1 | 1 | X | 1 |
| $$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit |
| 2326 | 0 | | shift @_ || 'DateTime'->now('time_zone', 'C4::Context'->tz)->ymd |
| 2340 | 0 | | defined $datedue and ref $datedue ne 'DateTime' |
| 2588 | 0 | | $frombranch and $tobranch |
| 2808 | 0 | | 'C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref') |
| 2865 | 0 | | $hardduedatecompare == 0 or $hardduedatecompare == $cmp |
| 3172 | 0 | | $issue and $$issue{'borrowernumber'} ne $$borrower{'borrowernumber'} |