summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-07-17 14:34:54 -0700
committerMark Wells <mark@freeside.biz>2012-07-17 14:34:54 -0700
commit493be9f0635db1e24783e5c3945b8bef39624674 (patch)
tree4cee4be7877f804084fe54f2b52bbb52a8773ae9 /FS/FS/cust_bill.pm
parent55393622d8e4b87dca04e037d591074bbfabb2f6 (diff)
Optionally show previous invoices on statements, #15864
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 83748be1b..c3d48a61c 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -387,6 +387,19 @@ sub previous {
$total, @cust_bill;
}
+=item enable_previous
+
+Whether to show the 'Previous Charges' section when printing this invoice.
+The negation of the 'disable_previous_balance' config setting.
+
+=cut
+
+sub enable_previous {
+ my $self = shift;
+ my $agentnum = $self->cust_main->agentnum;
+ !$self->conf->exists('disable_previous_balance', $agentnum);
+}
+
=item cust_bill_pkg
Returns the line items (see L<FS::cust_bill_pkg>) for this invoice.