diff options
Diffstat (limited to 'httemplate/view/cust_bill-pdf.cgi')
-rwxr-xr-x | httemplate/view/cust_bill-pdf.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi index 51e47e00d..c1639fd48 100755 --- a/httemplate/view/cust_bill-pdf.cgi +++ b/httemplate/view/cust_bill-pdf.cgi @@ -31,6 +31,12 @@ my $cust_bill = qsearchs({ }); die "Invoice #$invnum not found!" unless $cust_bill; +if ( $notice_name eq 'Record' ) { + $opt{base}='rec'; +} elsif ( $notice_name eq 'Record Ignoring DUE DATE' ) { + $opt{base}='rec'; + $opt{ignore_due_date}=1; +} my $pdf = $cust_bill->print_pdf(\%opt); http_header('Content-Type' => 'application/pdf' ); |