[freeside-commits] branch master updated. fed4da7a88ca7255b4945589286fe6f8bc63cd79

Ivan ivan at 420.am
Wed Dec 26 16:12:49 PST 2012


The branch, master has been updated
       via  fed4da7a88ca7255b4945589286fe6f8bc63cd79 (commit)
      from  b7a163f65da97e7252c885fd7bdc3834c8597f33 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fed4da7a88ca7255b4945589286fe6f8bc63cd79
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Dec 26 16:12:45 2012 -0800

    don't set %item_dates for custom invoice formats if package option disable_line_item_date_ranges is on, RT#19907

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 025e0d1..adab9d5 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -2239,7 +2239,9 @@ sub _items_cust_bill_pkg {
 
         # start/end dates for invoice formats that do nonstandard 
         # things with them
-        my %item_dates = map { $_ => $cust_bill_pkg->$_ } ('sdate', 'edate');
+        my %item_dates = ();
+        %item_dates = map { $_ => $cust_bill_pkg->$_ } ('sdate', 'edate')
+          unless $cust_pkg->part_pkg->option('disable_line_item_date_ranges',1);
 
         if (    (!$type || $type eq 'S')
              && (    $cust_bill_pkg->setup != 0

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Template_Mixin.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list