diff options
author | ivan <ivan> | 2007-01-10 05:51:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-10 05:51:14 +0000 |
commit | 2278aeb34af0741c3e80d665760e9ea7e09b8e52 (patch) | |
tree | cc485b35e7f51138d3fe0a479198d85118ca459e | |
parent | 93c1f21416fb08f307f60c456f4bb3736eb2fbce (diff) |
add custnum to invoice template vars
-rw-r--r-- | FS/FS/cust_bill.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 1656658ca..e5e741c73 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1628,12 +1628,14 @@ sub print_text { #setup template variables package FS::cust_bill::_template; #! - use vars qw( $invnum $date $page $total_pages @address $overdue @buf $agent ); + use vars qw( $custnum $invnum $date $agent @address $overdue + $page $total_pages @buf ); + $custnum = $self->custnum; $invnum = $self->invnum; $date = $self->_date; - $page = 1; $agent = $self->cust_main->agent->agent; + $page = 1; if ( $FS::cust_bill::invoice_lines ) { $total_pages = @@ -1766,6 +1768,7 @@ sub print_latex { } my %invoice_data = ( + 'custnum' => $self->custnum, 'invnum' => $self->invnum, 'date' => time2str('%b %o, %Y', $self->_date), 'today' => time2str('%b %o, %Y', $today), @@ -2166,6 +2169,7 @@ sub print_html { or die 'While compiling ' . $templatefile . ': ' . $Text::Template::ERROR; my %invoice_data = ( + 'custnum' => $self->custnum, 'invnum' => $self->invnum, 'date' => time2str('%b %o, %Y', $self->_date), 'today' => time2str('%b %o, %Y', $today), |