summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-12-23 15:21:55 +0000
committerivan <ivan>2002-12-23 15:21:55 +0000
commit1014e988be16a7158ff7ca0d0a6e7aac730517a0 (patch)
tree7ccc9846b57b5652fc2dcace300961a7a35b555d
parent21771a118aaf154f605cfae05ee830eaeb4dd818 (diff)
make agent available to invoice templates
-rw-r--r--FS/FS/cust_bill.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 48315199a..331c809bc 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1048,11 +1048,12 @@ sub print_text {
#setup template variables
package FS::cust_bill::_template; #!
- use vars qw( $invnum $date $page $total_pages @address $overdue @buf );
+ use vars qw( $invnum $date $page $total_pages @address $overdue @buf $agent );
$invnum = $self->invnum;
$date = $self->_date;
$page = 1;
+ $agent = $self->cust_main->agent->agent;
if ( $FS::cust_bill::invoice_lines ) {
$total_pages =
@@ -1120,7 +1121,7 @@ sub print_text {
=head1 VERSION
-$Id: cust_bill.pm,v 1.58 2002-12-23 14:22:48 steve Exp $
+$Id: cust_bill.pm,v 1.59 2002-12-23 15:21:55 ivan Exp $
=head1 BUGS