summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-05-16 15:45:10 -0700
committerMark Wells <mark@freeside.biz>2012-05-16 15:45:10 -0700
commit27b6c1f10411eb95abec60d6e14a8a63b279cabd (patch)
tree8c234684252d1fe616f5cca268cba6d34e20b178 /FS
parent1f119bfc22ca45df1e3714444f41851fce503fb5 (diff)
fix prepaid income report SQL, #13289
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill_pkg.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm
index 9b31108f5..4e8201ece 100644
--- a/FS/FS/cust_bill_pkg.pm
+++ b/FS/FS/cust_bill_pkg.pm
@@ -1075,9 +1075,9 @@ and 'setuprecur' (set to "setup" or "recur" to limit to one or the other).
sub owed_sql {
my ($class, $start, $end, %opt) = @_;
my $charged =
- $opt{setuprecur} =~ /^s/ ? 'setup' :
- $opt{setuprecur} =~ /^r/ ? 'recur' :
- 'setup + recur';
+ $opt{setuprecur} =~ /^s/ ? 'cust_bill_pkg.setup' :
+ $opt{setuprecur} =~ /^r/ ? 'cust_bill_pkg.recur' :
+ 'cust_bill_pkg.setup + cust_bill_pkg.recur';
if ( $opt{no_usage} ) {
$charged .= ' - ' . $class->usage_sql;