[freeside-commits] freeside/FS/FS/part_event/Condition billday.pm, 1.1.2.2, 1.1.2.3

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


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	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.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- billday.pm	24 Apr 2011 17:05:02 -0000	1.1.2.2
+++ billday.pm	26 Apr 2011 00:19:20 -0000	1.1.2.3
@@ -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