[freeside-commits] freeside/FS/FS/part_event/Condition cust_bill_age.pm, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Fri Nov 19 13:26:29 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition
In directory wavetail.420.am:/tmp/cvs-serv14829

Modified Files:
	cust_bill_age.pm 
Log Message:
fix late fees being applied a month late?, RT#10547

Index: cust_bill_age.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/cust_bill_age.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- cust_bill_age.pm	22 Nov 2008 22:17:27 -0000	1.3
+++ cust_bill_age.pm	19 Nov 2010 21:26:27 -0000	1.4
@@ -23,7 +23,7 @@
 
   my $age = $self->option_age_from('age', $opt{'time'} );
 
-  $cust_bill->_date <= $age;
+  ( $cust_bill->_date - 60 ) <= $age;
 
 }
 
@@ -32,7 +32,7 @@
 
   my $age  = $class->condition_sql_option_age_from('age', $opt{'time'} );
 
-  "cust_bill._date <= $age";
+  "( cust_bill._date - 60 ) <= $age";
 }
 
 sub order_sql {



More information about the freeside-commits mailing list