From c14803e37f1bfdcff882ee5cb35a9b10a93a88c9 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 20 Apr 2015 09:43:34 -0700 Subject: quotations + tax refactor, part 2 --- FS/FS/cust_bill_void.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'FS/FS/cust_bill_void.pm') 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 -- cgit v1.2.1