summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-pdf.cgi
diff options
context:
space:
mode:
authorivan <ivan>2011-07-14 17:13:07 +0000
committerivan <ivan>2011-07-14 17:13:07 +0000
commit4cdb4d97098422b1e55f59b144ea9950b1a99ffd (patch)
tree675bc4d925b861c9a8bd0b649e04495562b47fda /httemplate/view/cust_bill-pdf.cgi
parent248bdb67a29a2c7098b4004f8d3dd8c49495dca5 (diff)
fix CDRs showing on typeset (but not printed) invoices w/squelch_cdr, RT#13561
Diffstat (limited to 'httemplate/view/cust_bill-pdf.cgi')
-rwxr-xr-xhttemplate/view/cust_bill-pdf.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi
index 51e47e00d..323e502b4 100755
--- a/httemplate/view/cust_bill-pdf.cgi
+++ b/httemplate/view/cust_bill-pdf.cgi
@@ -17,9 +17,12 @@ if ( $query =~ /^((.+)-)?(\d+)(.pdf)?$/ ) {
$notice_name = ( $cgi->param('notice_name') || 'Invoice' );
}
+my $conf = new FS::Conf;
+
my %opt = (
- 'template' => $template,
- 'notice_name' => $notice_name,
+ 'unsquelch_cdr' => $conf->exists('voip-cdr_email'),
+ 'template' => $template,
+ 'notice_name' => $notice_name,
);
my $cust_bill = qsearchs({