[freeside-commits] freeside/FS/FS/cust_main Billing.pm,1.29,1.30

Ivan,,, ivan at wavetail.420.am
Thu Apr 7 18:00:39 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv21800/FS/FS/cust_main

Modified Files:
	Billing.pm 
Log Message:
torrus: default to "preceding" behavior, RT#10574

Index: Billing.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Billing.pm,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -w -d -r1.29 -r1.30
--- Billing.pm	14 Mar 2011 22:06:33 -0000	1.29
+++ Billing.pm	8 Apr 2011 01:00:37 -0000	1.30
@@ -1019,11 +1019,11 @@
         'freq'      => $part_pkg->freq,
       };
 
-      if ( $part_pkg->option('recur_temporality', 1) eq 'preceding' ) {
+      if ( $part_pkg->recur_temporality eq 'preceding' ) {
         $cust_bill_pkg->sdate( $hash{last_bill} );
         $cust_bill_pkg->edate( $sdate - 86399   ); #60s*60m*24h-1
         $cust_bill_pkg->edate( $time ) if $options{cancel};
-      } else { #if ( $part_pkg->option('recur_temporality', 1) eq 'upcoming' ) {
+      } else { #if ( $part_pkg->recur_temporality eq 'upcoming' ) {
         $cust_bill_pkg->sdate( $sdate );
         $cust_bill_pkg->edate( $cust_pkg->bill );
         #$cust_bill_pkg->edate( $time ) if $options{cancel};



More information about the freeside-commits mailing list