[freeside-commits] branch FREESIDE_3_BRANCH updated. e522b7d9cdd4ce8bc1cd3e3d1d9a56afb470ff93

Ivan ivan at 420.am
Wed Jun 3 15:24:10 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  e522b7d9cdd4ce8bc1cd3e3d1d9a56afb470ff93 (commit)
      from  a563768f26549778585a03835e655e65e2dd6919 (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 e522b7d9cdd4ce8bc1cd3e3d1d9a56afb470ff93
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jun 3 15:24:09 2015 -0700

    fix "Invoice is newer than last payment type change" condition, RT#33766

diff --git a/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm b/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm
index 96d9da8..5a81fbb 100644
--- a/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm
+++ b/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm
@@ -34,12 +34,12 @@ sub condition {
             'order_by' => 'ORDER BY history_date DESC LIMIT 1',
         }))
   {
-    my $newest = $replace_new->history_date;
+    $newest = $replace_new->history_date;
     my $replace_old = qsearchs({
       'table' => 'h_cust_main',
       'hashref' => { 'custnum'        => $replace_new->custnum,
                      'history_action' => 'replace_old',
-                     'history_date'   => $replace_new->history_date,
+                     'history_date'   => $replace_new->history_date, #fuzz?
                    }
     }) or next; #no replace_old?  ignore and continue on i guess
 

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

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




More information about the freeside-commits mailing list