[freeside-commits] freeside/FS/FS cust_bill.pm,1.196,1.197
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Apr 22 19:59:18 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18983
Modified Files:
cust_bill.pm
Log Message:
fixup return address fallback
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- cust_bill.pm 22 Apr 2008 19:46:59 -0000 1.196
+++ cust_bill.pm 23 Apr 2008 02:59:15 -0000 1.197
@@ -1785,13 +1785,17 @@
);
} elsif ( grep /\S/, $conf->config('company_address') ) {
- $returnaddress = join( "\n", $conf->config('company_address') );
-
- $returnaddress =
- join( '\\*'."\n", map s/( {2,})/'~' x length($1)/eg,
- $conf->config('company_address')
- )
- if $format eq 'latex';
+ my $convert_map = $convert_maps{$format}{'returnaddress'};
+ $returnaddress = join( "\n", &$convert_map(
+ map { s/( {2,})/'~' x length($1)/eg;
+ s/$/\\\\\*/;
+ $_
+ }
+ ( $conf->config('company_name'),
+ $conf->config('company_address'),
+ )
+ )
+ );
} else {
More information about the freeside-commits
mailing list