Typeset Invoice vs Text Invoice

James McDonald james at homelandinternet.com
Tue Apr 26 19:37:05 PDT 2005


I'm using Freeside 1.5.0pre6 on FreeBSD 5.3 with Perl 5.8.6 and 
Postgresql 8. I have modified cust_bill.pm to populate a variable 
called $custnum with the customer number and modified the text invoice 
to display the contents of the variable. This works without a problem, 
but when I make the same modification to the LaTeX invoice code, the 
variable $custnum just displays the text "custnum".

The modified code from cust_bill.pm is:

use vars qw( $custnum $invnum $date $page $total_pages @address 
$overdue @buf
$agent );

   $invnum = $self->invnum;
   $custnum = $self->custnum;

The modified code for the text invoice is:

Invoice Number: { $invnum; }
Customer Number: { $custnum; }

The modified code from the LaTeX invoice is:

Invoice date & Customer number & Invoice number \\
\vspace{0.2cm}
\textbf{$date} & \textbf{$custnum} & \textbf{$invnum} \\\hline

As I said, the text invoice works fine, it's just the postscript 
invoice that isn't displaying the variable correctly.

Thanks!

James




More information about the freeside-users mailing list