[freeside-commits] freeside/FS/FS cust_bill.pm, 1.350.2.10, 1.350.2.11
Ivan,,,
ivan at wavetail.420.am
Fri Nov 11 16:35:32 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv7486/FS/FS
Modified Files:
Tag: FREESIDE_2_3_BRANCH
cust_bill.pm
Log Message:
invoice language from self-servie, RT#13656
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.350.2.10
retrieving revision 1.350.2.11
diff -u -w -d -r1.350.2.10 -r1.350.2.11
--- cust_bill.pm 19 Oct 2011 23:45:41 -0000 1.350.2.10
+++ cust_bill.pm 12 Nov 2011 00:35:29 -0000 1.350.2.11
@@ -2362,11 +2362,13 @@
notice_name - overrides "Invoice" as the name of the sent document (templates from 10/2009 or newer required)
+locale - override customer's locale
+
=cut
#what's with all the sprintf('%10.2f')'s in here? will it cause any
# (alignment in text invoice?) problems to change them all to '%.2f' ?
-# yes: fixed width (dot matrix) text printing will be borked
+# yes: fixed width/plain text printing will be borked
sub print_generic {
my( $self, %params ) = @_;
my $conf = $self->conf;
@@ -2655,7 +2657,7 @@
);
#localization
- my $lh = FS::L10N->get_handle($cust_main->locale);
+ my $lh = FS::L10N->get_handle( $params{'locale'} || $cust_main->locale );
$invoice_data{'emt'} = sub { &$escape_function($self->mt(@_)) };
my %info = FS::Locales->locale_info($cust_main->locale || 'en_US');
# eval to avoid death for unimplemented languages
More information about the freeside-commits
mailing list