Lines 251-257
sub calculate {
Link Here
|
251 |
( $line =~ /datetime/ ) ? @$filters[0] |
251 |
( $line =~ /datetime/ ) ? @$filters[0] |
252 |
: ( $line =~ /category/ ) ? @$filters[2] |
252 |
: ( $line =~ /category/ ) ? @$filters[2] |
253 |
: ( $line =~ /itemtype/ ) ? @$filters[3] |
253 |
: ( $line =~ /itemtype/ ) ? @$filters[3] |
254 |
: ( $line =~ /branch/ ) ? @$filters[4] |
254 |
: ( $line =~ /^branch/ ) ? @$filters[4] |
255 |
: ( $line =~ /ccode/ ) ? @$filters[5] |
255 |
: ( $line =~ /ccode/ ) ? @$filters[5] |
256 |
: ( $line =~ /location/ ) ? @$filters[6] |
256 |
: ( $line =~ /location/ ) ? @$filters[6] |
257 |
: ( $line =~ /sort1/ ) ? @$filters[9] |
257 |
: ( $line =~ /sort1/ ) ? @$filters[9] |
Lines 511-517
sub calculate {
Link Here
|
511 |
if ( $linefield =~ /^items\./ |
511 |
if ( $linefield =~ /^items\./ |
512 |
or $colfield =~ /^items\./ |
512 |
or $colfield =~ /^items\./ |
513 |
or $process == 5 |
513 |
or $process == 5 |
514 |
or ( $colsource eq 'items' ) || @$filters[5] || @$filters[6] || @$filters[7] || @$filters[8] ); |
514 |
or ( $colsource eq 'items' ) || @$filters[5] || @$filters[6] || @$filters[7] || @$filters[8] || @$filters[9] || @$filters[10] || @$filters[11] || @$filters[12] || @$filters[13] ); |
515 |
|
515 |
|
516 |
$strcalc .= "WHERE 1=1 "; |
516 |
$strcalc .= "WHERE 1=1 "; |
517 |
@$filters = map { defined($_) and s/\*/%/g; $_ } @$filters; |
517 |
@$filters = map { defined($_) and s/\*/%/g; $_ } @$filters; |
518 |
- |
|
|