diff options
author | khoff <khoff> | 2005-03-21 22:13:39 +0000 |
---|---|---|
committer | khoff <khoff> | 2005-03-21 22:13:39 +0000 |
commit | 18c025613fa052cf4ba8d484f1296cc2a1719a24 (patch) | |
tree | 334919583d3ecdd78413ad7405b6092e62f614ad /httemplate/view/cust_bill.cgi | |
parent | 30189fa2e5987bafeb4714a83b7f130c568b221c (diff) |
Added support for FAX invoice destinations using a HylaFAX server.
Faxing plain text invoices is not supported.
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index ca0612d09..c217cc389 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -7,6 +7,8 @@ $query =~ /^((.+)-)?(\d+)$/; my $templatename = $2; my $invnum = $3; +my $conf = new FS::Conf; + my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); die "Invoice #$invnum not found!" unless $cust_bill; my $custnum = $cust_bill->getfield('custnum'); @@ -27,9 +29,11 @@ if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) { qq!Re-email this invoice</A>!; } +print qq! | <A HREF="${p}misc/fax-invoice.cgi?$invnum">Refax this invoice</A>! + if ($conf->exists('hylafax')); + print '<BR><BR>'; -my $conf = new FS::Conf; if ( $conf->exists('invoice_latex') ) { my $link = "${p}view/cust_bill-pdf.cgi?"; $link .= "$templatename-" if $templatename; |