X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_void.pm;h=f3dba9081958bf9a47bee15aec6f91f4dba43bdc;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=b9db81b93379559193778421a45d79b9d348ea87;hpb=0617a36106148efd7884c2f6ccd2a41075f9e5f6;p=freeside.git 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 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