[freeside-commits] freeside/FS/FS/part_event/Condition billday.pm, 1.1, 1.2

Erik Levinson levinse at wavetail.420.am
Mon Apr 25 17:19:21 PDT 2011


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

Modified Files:
	billday.pm 
Log Message:
fix billday.pm bugs, RT10813

Index: billday.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/billday.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- billday.pm	24 Apr 2011 17:05:01 -0000	1.1
+++ billday.pm	26 Apr 2011 00:19:19 -0000	1.2
@@ -6,7 +6,7 @@
 use base qw( FS::part_event::Condition );
 
 sub description {
-  "Customer's monthly billing day matches current day or customer has no billing day";
+  "Customer's monthly billing day is before or on current day or customer has no billing day";
 }
 
 sub condition {
@@ -16,7 +16,7 @@
 
   my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
 
-  ($mday == $cust_main->billday) || (!$cust_main->billday);
+  (!$cust_main->billday) || ($mday >= $cust_main->billday);
 }
 
 sub condition_sql {
@@ -24,7 +24,7 @@
 
   my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
 
-  "cust_main.billday is null or cust_main.billday = $mday";
+  "cust_main.billday is null or $mday >= cust_main.billday";
 }
 
 1;



More information about the freeside-commits mailing list