projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing commit from nms auto-addition fixes, RT#15536
[freeside.git]
/
httemplate
/
search
/
timeworked.html
diff --git
a/httemplate/search/timeworked.html
b/httemplate/search/timeworked.html
index
1d877e6
..
e810822
100644
(file)
--- a/
httemplate/search/timeworked.html
+++ b/
httemplate/search/timeworked.html
@@
-45,12
+45,14
@@
my @groupby = ();
my $transactiontime = "
CASE Transactions.Type WHEN 'Set'
my $transactiontime = "
CASE Transactions.Type WHEN 'Set'
- THEN (TO_NUMBER(NewValue,'999999')-TO_NUMBER(OldValue, '999999')) * 60
+ THEN ( CASE WHEN NewValue = '' THEN 0 ELSE TO_NUMBER(NewValue,'999999') END
+ -TO_NUMBER(OldValue, '999999')
+ ) * 60
ELSE TimeTaken*60
END
";
ELSE TimeTaken*60
END
";
-push @groupby, qw(
transactions.type newvalue oldvalue timet
aken );
+push @groupby, qw(
Transactions.Type NewValue OldValue TimeT
aken );
my $appliedtimeclause = "COALESCE (SUM(acct_rt_transaction.seconds), 0)";
my $appliedtimeclause = "COALESCE (SUM(acct_rt_transaction.seconds), 0)";