line | % | coverage | branch |
144 | 50 | T | F | unless $filter |
145 | 50 | T | F | unless $filter |
146 | 100 | T | F | if ($filter eq 'whitespace') { } |
| 100 | T | F | elsif ($filter eq 'cuecat') { } |
| 100 | T | F | elsif ($filter eq 'T-prefix') { } |
| 100 | T | F | elsif ($filter eq 'libsuite8') { } |
152 | 100 | T | F | if $#results == 2 |
154 | 50 | T | F | if ($barcode =~ /^[Tt](\d)/) |
155 | 100 | T | F | if defined $1 and $1 eq '0' |
163 | 100 | T | F | unless ($barcode =~ /^($branch)-/i) |
164 | 100 | T | F | if ($barcode =~ /^(\d)/i) { } |
192 | 100 | T | F | if ($l) |
193 | 50 | T | F | if ($l == 1) |
281 | 0 | T | F | if (not $itemnumber) |
291 | 0 | T | F | if ('C4::Context'->preference('UseBranchTransferLimits') == 1) |
292 | 0 | T | F | if ('C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype') { } |
| 0 | T | F | elsif (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'C4::Context'->preference('BranchTransferLimitsType')})) { } |
293 | 0 | T | F | if (not IsBranchTransferAllowed($tbr, $fbr, $$biblio{'itype'})) |
304 | 0 | T | F | if ($hbr and $$branches{$hbr}{'PE'}) |
310 | 0 | T | F | if ($fbr eq $tbr) |
316 | 0 | T | F | if ($$issue{'borrowernumber'}) |
325 | 0 | T | F | if ($resfound and not $ignoreRs) |
333 | 0 | T | F | if ($dotransfer) |
354 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
365 | 0 | T | F | if (defined $issuing_rule and defined $$issuing_rule{'maxissueqty'}) |
371 | 0 | T | F | if ($rule_itemtype eq '*') { } |
375 | 0 | T | F | if ('C4::Context'->preference('item-level_itypes')) { } |
397 | 0 | T | F | if ('C4::Context'->preference('item-level_itypes')) { } |
409 | 0 | T | F | if ($rule_branch ne '*') |
410 | 0 | T | F | if ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { } |
| 0 | T | F | elsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { } |
426 | 0 | T | F | if ($current_loan_count >= $max_loans_allowed) |
433 | 0 | T | F | if (defined $$branch_borrower_circ_rule{'maxissueqty'}) |
440 | 0 | T | F | if ('C4::Context'->preference('CircControl') eq 'PickupLibrary') { } |
| 0 | T | F | elsif ('C4::Context'->preference('CircControl') eq 'PatronLibrary') { } |
454 | 0 | T | F | if ($current_loan_count >= $max_loans_allowed) |
517 | 0 | T | F | unless $sth->execute($bibitem) |
536 | 0 | T | F | if (my $data2 = $sth2->fetchrow_hashref) { } |
542 | 0 | T | F | $$data{'wthdrawn'} eq '1' ? : |
557 | 0 | T | F | if (my $data2 = $sth2->fetchrow_hashref) |
676 | 0 | T | F | unless ($$item{'barcode'}) |
679 | 0 | T | F | if %issuingimpossible |
684 | 0 | T | F | unless ($duedate) |
688 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
694 | 0 | T | F | if ($duedate) { } |
695 | 0 | T | F | unless $duedate->output('iso') ge 'C4::Dates'->today('iso') |
704 | 0 | T | F | if ($$borrower{'category_type'} eq 'X' and $$item{'barcode'}) |
710 | 0 | T | F | if ($$borrower{'flags'}{'GNA'}) |
713 | 0 | T | F | if ($$borrower{'flags'}{'LOST'}) |
716 | 0 | T | F | if ($$borrower{'flags'}{'DBARRED'}) |
719 | 0 | T | F | if ($$borrower{'dateexpiry'} eq '0000-00-00') { } |
723 | 0 | T | F | if ($expirydate[0] == 0 or $expirydate[1] == 0 or $expirydate[2] == 0 or Date_to_Days(Today()) > Date_to_Days(@expirydate)) |
738 | 0 | T | F | if ('C4::Context'->preference('IssuingInProcess')) { } |
739 | 0 | T | F | if ($amount > $amountlimit and not $inprocess and not $allowfineoverride) { } |
| 0 | T | F | elsif ($amount > $amountlimit and not $inprocess and $allowfineoverride) { } |
| 0 | T | F | elsif ($allfinesneedoverride and $amount > 0 and $amount <= $amountlimit and not $inprocess) { } |
748 | 0 | T | F | if ($amount > $amountlimit and $allowfineoverride) { } |
| 0 | T | F | elsif ($amount > $amountlimit and not $allowfineoverride) { } |
| 0 | T | F | elsif ($amount > 0 and $allfinesneedoverride) { } |
758 | 0 | T | F | if ($blocktype == -1) { } |
| 0 | T | F | elsif ($blocktype == 1) { } |
760 | 0 | T | F | if ('C4::Context'->preference('OverduesBlockCirc') eq 'block') { } |
| 0 | T | F | elsif ('C4::Context'->preference('OverduesBlockCirc') eq 'confirmation') { } |
776 | 0 | T | F | if ($max_loans_allowed eq 0) { } |
779 | 0 | T | F | if ($max_loans_allowed) |
789 | 0 | T | F | if ($$item{'notforloan'} and $$item{'notforloan'} > 0) { } |
| 0 | T | F | elsif (not $$item{'notforloan'}) { } |
792 | 0 | T | F | if (not 'C4::Context'->preference('AllowNotForLoanOverride')) { } |
800 | 0 | T | F | if ('C4::Context'->preference('item-level_itypes')) { } |
| 0 | T | F | elsif ($$biblioitem{'notforloan'} == 1) { } |
806 | 0 | T | F | if ($$notforloan{'notforloan'}) |
807 | 0 | T | F | if (not 'C4::Context'->preference('AllowNotForLoanOverride')) { } |
815 | 0 | T | F | if (not 'C4::Context'->preference('AllowNotForLoanOverride')) { } |
822 | 0 | T | F | if ($$item{'wthdrawn'} and $$item{'wthdrawn'} > 0) |
826 | 0 | T | F | if ($$item{'restricted'} and $$item{'restricted'} == 1) |
831 | 0 | T | F | if ('C4::Context'->preference('IndependantBranches')) |
833 | 0 | T | F | if ($userenv and $$userenv{'flags'} % 2 != 1) |
834 | 0 | T | F | if $$item{'C4::Context'->preference('HomeOrHoldingBranch')} ne $$userenv{'branch'} |
836 | 0 | T | F | if $$borrower{'branchcode'} ne $$userenv{'branch'} |
844 | 0 | T | F | if ($$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { } |
| 0 | T | F | elsif ($$issue{'borrowernumber'}) { } |
853 | 0 | T | F | if ($CanBookBeRenewed == 0) { } |
873 | 0 | T | F | unless ($ignore_reserves) |
876 | 0 | T | F | if ($restype) |
878 | 0 | T | F | if ($resbor ne $$borrower{'borrowernumber'}) |
881 | 0 | T | F | if ($restype eq 'Waiting') { } |
| 0 | T | F | elsif ($restype eq 'Reserved') { } |
952 | 0 | T | F | if (not defined $issuedate) |
957 | 0 | T | F | if ($borrower and $barcode and $barcodecheck ne '0') |
959 | 0 | T | F | unless my $item = GetItem('', $barcode) |
971 | 0 | T | F | if ($$actualissue{'borrowernumber'} eq $$borrower{'borrowernumber'}) { } |
982 | 0 | T | F | if ($$actualissue{'borrowernumber'}) |
995 | 0 | T | F | if ($datesent) |
1015 | 0 | T | F | unless ($datedue) |
1016 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
1028 | 0 | T | F | if ('C4::Context'->preference('ReturnToShelvingCart')) |
1034 | 0 | T | F | if ($$item{'itemlost'}) |
1051 | 0 | T | F | if ($charge > 0) |
1061 | 0 | T | F | $sipmode ? : |
1075 | 0 | T | F | if ($circulation_alert->is_enabled_for(\%conditions)) |
1085 | 0 | T | F | if 'C4::Context'->preference('IssueLog') |
1111 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1116 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1121 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1126 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1131 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1136 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1141 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1146 | 0 | T | F | if defined $loanlength and $$loanlength{'issuelength'} ne 'NULL' |
1171 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1176 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1181 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1186 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1191 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1196 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1201 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1206 | 0 | T | F | if defined $results and $$results{'hardduedate'} ne 'NULL' |
1234 | 0 | T | F | if defined $irule |
1238 | 0 | T | F | if defined $irule |
1242 | 0 | T | F | if defined $irule |
1246 | 0 | T | F | if defined $irule |
1250 | 0 | T | F | if defined $irule |
1254 | 0 | T | F | if defined $irule |
1258 | 0 | T | F | if defined $irule |
1262 | 0 | T | F | if defined $irule |
1312 | 0 | T | F | if ($result = $sth->fetchrow_hashref) |
1322 | 0 | T | F | if ($result = $sth->fetchrow_hashref) |
1332 | 0 | T | F | if ($result = $sth->fetchrow_hashref) |
1341 | 0 | T | F | if ($result = $sth->fetchrow_hashref) |
1402 | 0 | T | F | if defined($$result{'holdallowed'} = $dbh->selectrow_array($query, {}, @bind_params)) |
1487 | 0 | T | F | if ($branch and not GetBranchDetail($branch)) |
1491 | 0 | T | F | unless $branch |
1501 | 0 | T | F | unless ($itemnumber) |
1506 | 0 | T | F | if ($issue and $$issue{'borrowernumber'}) { } |
1507 | 0 | T | F | unless $borrower = C4::Members::GetMemberDetails($$issue{'borrowernumber'}) |
1516 | 0 | T | F | if ('C4::Context'->preference('RecordLocalUseOnReturn')) |
1522 | 0 | T | F | unless my $item = GetItem($itemnumber) |
1533 | 0 | T | F | if ($hbr) |
1535 | 0 | T | F | if $$branches{$hbr}{'PE'} |
1539 | 0 | T | F | if ($hbr ne $branch and 'C4::Context'->preference('IndependantBranches')) |
1553 | 0 | T | F | if ($$item{'wthdrawn'}) |
1559 | 0 | T | F | if ($doreturn) |
1560 | 0 | T | F | unless $borrower |
1562 | 0 | T | F | if ($dropbox) |
1566 | 0 | T | F | unless $$item{'issuedate'} eq 'C4::Dates'->today('iso') |
1569 | 0 | T | F | if ($borrowernumber) |
1579 | 0 | T | F | if ($$item{'holdingbranch'} ne $branch) |
1589 | 0 | T | F | if ($datesent) |
1590 | 0 | T | F | if ($tobranch eq $branch) { } |
1605 | 0 | T | F | if ($$item{'itemlost'}) |
1611 | 0 | T | F | if ($borrowernumber) |
1613 | 0 | T | F | unless defined $fix |
1617 | 0 | T | F | if $debardate |
1623 | 0 | T | F | if ($resfound) |
1645 | 0 | T | F | if ($doreturn and $circulation_alert->is_enabled_for(\%conditions)) |
1654 | 0 | T | F | if 'C4::Context'->preference('ReturnLog') |
1661 | 0 | T | F | if ($doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'}) |
1662 | 0 | T | F | if ('C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')})) { } |
1666 | 0 | T | F | if $debug |
1667 | 0 | T | F | if $debug |
1705 | 0 | T | F | if ($dropbox_branch) { } |
| 0 | T | F | elsif ($returndate) { } |
1726 | 0 | T | F | if ($privacy == 2) |
1729 | 0 | T | F | 'C4::Context'->preference('AnonymousPatron') ? : |
1758 | 0 | T | F | if ($datedue) { } |
1775 | 0 | T | F | unless $finedays |
1778 | 0 | T | F | if ($deltadays - $grace > 0) |
1782 | 0 | T | F | if (check_date($deby, $debm, $debd)) { } |
1785 | 0 | T | F | if (Delta_Days(@olddate, @newdate) > 0) |
1813 | 0 | T | F | unless ($borrowernumber = shift @_) |
1817 | 0 | T | F | unless ($item = shift @_) |
1832 | 0 | T | F | unless $data |
1836 | 0 | T | F | if ($exemptfine) { } |
| 0 | T | F | elsif ($dropbox and $$data{'lastincrement'}) { } |
1838 | 0 | T | F | if ('C4::Context'->preference('FinesLog')) |
1844 | 0 | T | F | if ('C4::Context'->preference('FinesLog')) |
1848 | 0 | T | F | if ($outstanding >= 0 and $amt >= 0) |
1874 | 0 | T | F | unless my $itemnumber = shift @_ |
1875 | 0 | T | F | @_ ? : |
1876 | 0 | T | F | @_ ? : |
1882 | 0 | T | F | unless $data |
1883 | 0 | T | F | if $$data{'accounttype'} eq 'W' |
1890 | 0 | T | F | if ($$data{'amountoutstanding'} == $amount) { } |
1903 | 0 | T | F | if $amountleft < 0 |
1904 | 0 | T | F | if ($amountleft > 0) |
1912 | 0 | T | F | if ($$accdata{'amountoutstanding'} < $amountleft) { } |
1933 | 0 | T | F | if $amountleft > 0 |
1939 | 0 | T | F | if ($borrowernumber) |
1971 | 0 | T | F | if ($circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'})) { } |
| 0 | T | F | elsif ($circcontrol eq 'PatronLibrary') { } |
1980 | 0 | T | F | if (not defined $branch and $branchfield eq 'holdingbranch') |
2006 | 0 | T | F | unless $itemnumber |
2014 | 0 | T | F | unless $data |
2015 | 0 | T | F | $$data{'date_due'} lt 'C4::Dates'->today('iso') ? : |
2063 | 0 | T | F | if ($history) |
2072 | 0 | T | F | if ($history) { } |
2079 | 0 | T | F | $$_{'date_due'} lt $today ? : |
2098 | 0 | T | F | unless $biblionumber |
2137 | 0 | T | F | unless exists $$params{'days_in_advance'} |
2203 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
2232 | 0 | T | F | if (my $data1 = $sthcount->fetchrow_hashref) |
2234 | 0 | T | F | if ($$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit) { } |
2242 | 0 | T | F | if ($resfound) |
2276 | 0 | T | F | unless my $borrowernumber = shift @_ |
2277 | 0 | T | F | unless my $itemnumber = shift @_ |
2281 | 0 | T | F | unless my $item = GetItem($itemnumber) |
2282 | 0 | T | F | unless my $biblio = GetBiblioFromItemNumber($itemnumber) |
2294 | 0 | T | F | if ($datedue and not $datedue->output('iso')) |
2301 | 0 | T | F | unless ($datedue) |
2303 | 0 | T | F | unless my $borrower = C4::Members::GetMember('borrowernumber', $borrowernumber) |
2304 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
2306 | 0 | T | F | 'C4::Context'->preference('RenewalPeriodBase') eq 'date_due' ? : |
2328 | 0 | T | F | if ($charge > 0) |
2332 | 0 | T | F | if 'C4::Context'->userenv |
2371 | 0 | T | F | if $$data{'renewals'} |
2380 | 0 | T | F | if ($renewsleft < 0) |
2412 | 0 | T | F | 'C4::Context'->preference('item-level_itypes') ? : |
2420 | 0 | T | F | if (my $item_data = $sth->fetchrow_hashref) |
2434 | 0 | T | F | if (@{$discount_rules;}) |
2450 | 0 | T | F | if (@{$rules_ref;} == 1) |
2452 | 0 | T | F | defined $discount ? : |
2455 | 0 | T | F | if $$_{'branchcode'} eq $branch |
2456 | 0 | T | F | if (@d) |
2458 | 0 | T | F | defined $discount ? : |
2461 | 0 | T | F | if $$_{'branchcode'} eq '*' |
2462 | 0 | T | F | if (@d) |
2464 | 0 | T | F | defined $discount ? : |
2467 | 0 | T | F | if $$_{'branchcode'} eq $branch |
2468 | 0 | T | F | if (@d) |
2470 | 0 | T | F | defined $discount ? : |
2473 | 0 | T | F | if $$_{'branchcode'} eq '*' |
2474 | 0 | T | F | if (@d) |
2476 | 0 | T | F | defined $discount ? : |
2493 | 0 | T | F | if 'C4::Context'->userenv |
2542 | 0 | T | F | unless $frombranch and $tobranch |
2607 | 0 | T | F | 'C4::Context'->preference('AnonymousPatron') ? : |
2609 | 0 | T | F | if (defined $borrowernumber) { } |
2680 | 0 | T | F | if (not $message) { } |
2750 | 0 | T | F | if ('C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref')) { } |
2755 | 0 | T | F | if ('C4::Context'->preference('useDaysMode') eq 'Days') { } |
2768 | 0 | T | F | if ($hardduedate and $hardduedate->output('iso') and $hardduedate->output('iso') ne '0000-00-00') |
2770 | 0 | T | F | if ($datedue->output('iso') gt $hardduedate->output('iso') and $hardduedatecompare == -1) { } |
| 0 | T | F | elsif ($datedue->output('iso') lt $hardduedate->output('iso') and $hardduedatecompare == 1) { } |
| 0 | T | F | elsif ($hardduedatecompare == 0) { } |
2783 | 0 | T | F | if ('C4::Context'->preference('ReturnBeforeExpiry') and $datedue->output('iso') gt $$borrower{'dateexpiry'}) |
2815 | 0 | T | F | if $dow > 6 |
2819 | 0 | T | F | if ($result ne '0' or $countspecial ne '0' or $countspecialrepeatable ne '0') |
2821 | 0 | T | F | if $i ne '1' |
2943 | 0 | T | F | if ($toBranch eq $fromBranch) |
2953 | 0 | T | F | if ($$limit{'limitId'}) { } |
3020 | 0 | T | F | if (my $borrowernumber = $$issues{'borrowernumber'}) |
3022 | 0 | T | F | if $charge_fee |
3026 | 0 | T | F | if $mark_returned |