[freeside-commits] branch FREESIDE_3_BRANCH updated. 09e75cf2902b0daa996e69fb70b86be4ff1ae8a1
Mark Wells
mark at 420.am
Fri Feb 20 14:40:55 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 09e75cf2902b0daa996e69fb70b86be4ff1ae8a1 (commit)
from d77b69f1bdf85945fefb9b6952cbd815118c0154 (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 09e75cf2902b0daa996e69fb70b86be4ff1ae8a1
Author: Mark Wells <mark at freeside.biz>
Date: Fri Feb 20 14:40:49 2015 -0800
unbreak projected future revenue query, #33599, fallout from #32472
diff --git a/FS/FS/Report/Table.pm b/FS/FS/Report/Table.pm
index 69686df..4797473 100644
--- a/FS/FS/Report/Table.pm
+++ b/FS/FS/Report/Table.pm
@@ -495,12 +495,17 @@ sub _cust_bill_pkg_recurring {
my @where = (
'(pkgnum != 0 OR feepart IS NOT NULL)',
- $self->with_classnum($opt{'classnum'}, $opt{'use_override'}),
$self->with_report_option(%opt),
$self->with_refnum(%opt),
$self->with_cust_classnum(%opt)
);
+ my $where_classnum = $self->with_classnum($opt{'classnum'}, $opt{'use_override'});
+ if ($opt{'project'}) {
+ $where_classnum =~ s/\bcust_bill_pkg/v_cust_bill_pkg/g;
+ }
+ push @where, $where_classnum;
+
if ( $opt{'distribute'} ) {
$where[0] = 'pkgnum != 0'; # specifically exclude fees
push @where, "cust_main.agentnum = $agentnum" if $agentnum;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Report/Table.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list