Lines 504-510
sub calculate {
Link Here
|
504 |
$strcalc .= " LEFT JOIN borrower_attributes AS attribute_$_ ON (statistics.borrowernumber = attribute_$_.borrowernumber AND attribute_$_.code = '$_') "; |
504 |
$strcalc .= " LEFT JOIN borrower_attributes AS attribute_$_ ON (statistics.borrowernumber = attribute_$_.borrowernumber AND attribute_$_.code = '$_') "; |
505 |
} |
505 |
} |
506 |
} |
506 |
} |
507 |
$strcalc .= "LEFT JOIN items ON statistics.itemnumber=items.itemnumber " |
507 |
$strcalc .= "LEFT JOIN (SELECT * FROM items UNION SELECT * FROM deleteditems) items ON statistics.itemnumber=items.itemnumber " |
508 |
if ( $linefield =~ /^items\./ |
508 |
if ( $linefield =~ /^items\./ |
509 |
or $colfield =~ /^items\./ |
509 |
or $colfield =~ /^items\./ |
510 |
or $process == 5 |
510 |
or $process == 5 |
511 |
- |
|
|