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_void.pm | |
parent | f2cf5c2843dcef5db0941a1673538eb922fd5a5a (diff) |
quotations + tax refactor, part 2
Diffstat (limited to 'FS/FS/cust_bill_void.pm')
-rw-r--r-- | FS/FS/cust_bill_void.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/FS/FS/cust_bill_void.pm b/FS/FS/cust_bill_void.pm index b9db81b93..f3dba9081 100644 --- a/FS/FS/cust_bill_void.pm +++ b/FS/FS/cust_bill_void.pm @@ -108,7 +108,17 @@ points to. You can ask the object for a copy with the I<hash> method. sub table { 'cust_bill_void'; } sub notice_name { 'VOIDED Invoice'; } -#XXXsub template_conf { 'quotation_'; } +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); +} + =item insert |