[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.161, 1.162
Ivan,,,
ivan at wavetail.420.am
Fri Nov 11 16:35:24 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv7461/FS/FS/ClientAPI
Modified Files:
MyAccount.pm
Log Message:
invoice language from self-servie, RT#13656
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -w -d -r1.161 -r1.162
--- MyAccount.pm 12 Nov 2011 00:10:05 -0000 1.161
+++ MyAccount.pm 12 Nov 2011 00:35:21 -0000 1.162
@@ -1140,7 +1140,10 @@
return { 'error' => '',
'invnum' => $invnum,
- 'invoice_pdf' => $cust_bill->print_pdf( { unsquelch_cdr => 1 } ),
+ 'invoice_pdf' => $cust_bill->print_pdf({
+ 'unsquelch_cdr' => 1,
+ 'locale' => $p->{'locale'},
+ }),
};
}
@@ -1154,10 +1157,15 @@
my $legacyinvnum = $p->{'legacyinvnum'};
- my $legacy_cust_bill = qsearchs('legacy_cust_bill', {
+ my %hash = (
'legacyinvnum' => $legacyinvnum,
'custnum' => $custnum,
- }) or return { 'error' => "Can't find legacyinvnum" };
+ );
+
+ my $legacy_cust_bill =
+ qsearchs('legacy_cust_bill', { %hash, 'locale' => $p->{'locale'} } )
+ || qsearchs('legacy_cust_bill', \%hash )
+ or return { 'error' => "Can't find legacyinvnum" };
#my %return;
More information about the freeside-commits
mailing list