[freeside-commits] freeside/FS/FS/cust_main Billing.pm,1.50,1.51

Mark Wells mark at wavetail.420.am
Mon Feb 6 17:35:21 PST 2012


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

Modified Files:
	Billing.pm 
Log Message:
show prorate details on invoice, #16010

Index: Billing.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Billing.pm,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -w -d -r1.50 -r1.51
--- Billing.pm	31 Jan 2012 01:41:29 -0000	1.50
+++ Billing.pm	7 Feb 2012 01:35:19 -0000	1.51
@@ -1116,7 +1116,12 @@
         'freq'      => $part_pkg->freq,
       };
 
-      if ( $part_pkg->recur_temporality eq 'preceding' ) {
+      if ( $part_pkg->option('prorate_defer_bill',1) 
+           and !$hash{last_bill} ) {
+        # both preceding and upcoming, technically
+        $cust_bill_pkg->sdate( $cust_pkg->setup );
+        $cust_bill_pkg->edate( $cust_pkg->bill );
+      } elsif ( $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};



More information about the freeside-commits mailing list