diff options
| author | ivan <ivan> | 2008-06-04 18:50:25 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2008-06-04 18:50:25 +0000 | 
| commit | 2d33e855ad54a5332555ee2e2d45b05a374baeb8 (patch) | |
| tree | fbff1488359df7ceefe00200cef50c6eef7d439c | |
| parent | 5e9fa0e297a01cd0d89361f8dc4ae6808627229c (diff) | |
this should fix the random "HylaFax support has not been configured" error, caused by cust_bill->fax getting called instead of cust_main->fax field
| -rw-r--r-- | FS/FS/cust_bill.pm | 10 | ||||
| -rwxr-xr-x | httemplate/misc/fax-invoice.cgi | 2 | 
2 files changed, 8 insertions, 4 deletions
| diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 1426f554a..a20920918 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -838,13 +838,15 @@ sub send {    my @invoicing_list = $self->cust_main->invoicing_list; +  #$self->email_invoice($template, $invoice_from)    $self->email($template, $invoice_from)      if grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list or !@invoicing_list; +  #$self->print_invoice($template)    $self->print($template)      if grep { $_ eq 'POST' } @invoicing_list; #postal -  $self->fax($template) +  $self->fax_invoice($template)      if grep { $_ eq 'FAX' } @invoicing_list; #fax    ''; @@ -876,6 +878,7 @@ sub queueable_email {  } +#sub email_invoice {  sub email {    my $self = shift;    my $template = scalar(@_) ? shift : ''; @@ -925,6 +928,7 @@ TEMPLATENAME, if specified, is the name of a suffix for alternate invoices.  =cut +#sub print_invoice {  sub print {    my $self = shift;    my $template = scalar(@_) ? shift : ''; @@ -932,7 +936,7 @@ sub print {    do_print $self->lpr_data($template);  } -=item fax [ TEMPLATENAME ]  +=item fax_invoice [ TEMPLATENAME ]   Faxes this invoice. @@ -940,7 +944,7 @@ TEMPLATENAME, if specified, is the name of a suffix for alternate invoices.  =cut -sub fax { +sub fax_invoice {    my $self = shift;    my $template = scalar(@_) ? shift : ''; diff --git a/httemplate/misc/fax-invoice.cgi b/httemplate/misc/fax-invoice.cgi index e2e6db095..2591fceb8 100755 --- a/httemplate/misc/fax-invoice.cgi +++ b/httemplate/misc/fax-invoice.cgi @@ -12,7 +12,7 @@ my $invnum = $3;  my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});  die "Can't find invoice!\n" unless $cust_bill; -$cust_bill->fax($template); +$cust_bill->fax_invoice($template);  my $custnum = $cust_bill->getfield('custnum'); | 
