[freeside-commits] branch master updated. d4f9df58cf2ba98b83b90bf0739a44bac8611abf

Jeremy Davis jeremyd at 420.am
Tue Jul 2 12:21:29 PDT 2013


The branch, master has been updated
       via  d4f9df58cf2ba98b83b90bf0739a44bac8611abf (commit)
      from  3564f619654c5cbf22fc2acbe7eff0c08308e859 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d4f9df58cf2ba98b83b90bf0739a44bac8611abf
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Jul 2 15:20:50 2013 -0400

    #23171 Fix contract age condition

diff --git a/FS/FS/part_event/Condition/pkg_age.pm b/FS/FS/part_event/Condition/pkg_age.pm
index 24a73e2..de58970 100644
--- 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 )';

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_event/Condition/pkg_age.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list