projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3564f61
)
#23171 Fix contract age condition
author
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 2 Jul 2013 19:20:50 +0000
(15:20 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 2 Jul 2013 19:20:50 +0000
(15:20 -0400)
FS/FS/part_event/Condition/pkg_age.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_event/Condition/pkg_age.pm
b/FS/FS/part_event/Condition/pkg_age.pm
index
24a73e2
..
de58970
100644
(file)
--- a/
FS/FS/part_event/Condition/pkg_age.pm
+++ b/
FS/FS/part_event/Condition/pkg_age.pm
@@
-57,7
+57,7
@@
sub condition_sql {
my $field = $class->condition_sql_option('field');
#amazingly, this is actually faster
my $sql = '( CASE';
- foreach( qw(setup last_bill bill adjourn susp expire cancel) ) {
+ foreach( qw(setup last_bill bill adjourn susp expire cancel
contract_end
) ) {
$sql .= " WHEN $field = '$_' THEN (cust_pkg.$_ IS NOT NULL AND cust_pkg.$_ <= $age)";
}
$sql .= ' END )';