1 <% $cgi->redirect("${p}view/cust_main.cgi?$custnum") %>
5 unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices');
8 my($query) = $cgi->keywords;
9 $query =~ /^((.+)-)?(\d+)$/;
12 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
13 die "Can't find invoice!\n" unless $cust_bill;
15 $cust_bill->fax_invoice({ 'template' => $template });
17 my $custnum = $cust_bill->getfield('custnum');