summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pkg.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-05-16 15:45:40 -0700
committerMark Wells <mark@freeside.biz>2012-05-16 15:45:40 -0700
commitbec96a5b94e6c2484a48ed2d4300a1294fa80de6 (patch)
treeb0edcc48f3e29e11ad25383e1620f140a7cab58f /FS/FS/cust_bill_pkg.pm
parent8e6571688709ddca07e83191af6610d4248574a3 (diff)
fix prepaid income report SQL, #13289
Diffstat (limited to 'FS/FS/cust_bill_pkg.pm')
-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 f196a0a..6551ca8 100644
--- a/FS/FS/cust_bill_pkg.pm
+++ b/FS/FS/cust_bill_pkg.pm
@@ -1082,9 +1082,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;