diff options
author | Mark Wells <mark@freeside.biz> | 2015-04-20 09:43:34 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-04-20 09:43:34 -0700 |
commit | c14803e37f1bfdcff882ee5cb35a9b10a93a88c9 (patch) | |
tree | 80229cc92340219b9cf2ebe1bb0cabffa6e281aa /FS/FS/cust_bill.pm | |
parent | f2cf5c2843dcef5db0941a1673538eb922fd5a5a (diff) |
quotations + tax refactor, part 2
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r-- | FS/FS/cust_bill.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index b7b7367..95e7058 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -143,6 +143,16 @@ Invoices are normally created by calling the bill method of a customer object =cut sub table { 'cust_bill'; } +sub template_conf { 'invoice_'; } + +sub has_sections { + my $self = shift; + my $agentnum = $self->cust_main->agentnum; + my $tc = $self->template_conf; + + $self->conf->exists($tc.'sections', $agentnum) || + $self->conf->exists($tc.'sections_by_location', $agentnum); +} # should be the ONLY occurrence of "Invoice" in invoice rendering code. # (except email_subject and invnum_date_pretty) |