[freeside-commits] branch FREESIDE_2_3_BRANCH updated. dbca6f3dd99071e138ca7e5ee2859d41c00506ce
Ivan
ivan at 420.am
Wed Dec 26 16:13:13 PST 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via dbca6f3dd99071e138ca7e5ee2859d41c00506ce (commit)
from 09cc60b2e20f084c3f0ad0b007f3b821fe64a265 (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 dbca6f3dd99071e138ca7e5ee2859d41c00506ce
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Dec 26 16:13:09 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/cust_bill.pm b/FS/FS/cust_bill.pm
index 1d7dca5..e8fb61d 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -4997,7 +4997,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/cust_bill.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list