diff options
author | levinse <levinse> | 2011-05-16 18:48:25 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-05-16 18:48:25 +0000 |
commit | 170aa1e8078280e7c03a6ebfc67280de66fa1b9d (patch) | |
tree | 64729456f0178ab841f578a6efc3b099020be742 /httemplate/view/cust_main/payment_history.html | |
parent | 2238711675eefa60cd2feb47c8d3e43d3e6f1860 (diff) |
internationalization/localization, RT12515
Diffstat (limited to 'httemplate/view/cust_main/payment_history.html')
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 732e417db..e561c703e 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -450,4 +450,32 @@ foreach my $cust_refund ($cust_main->cust_refund) { } +sub translate_payby { + my ($payby,$payinfo) = (shift,shift); + my %payby = ( + BILL => $payinfo ? mt('Check #') : '', + CHEK => mt('Electronic check '), + PREP => mt('Prepaid card '), + CARD => mt('Credit card #'), + COMP => mt('Complimentary by '), + CASH => mt('Cash'), + WEST => mt('Western Union'), + MCRD => mt('Manual credit card'), + ); + $payby = (exists $payby{$payby}) ? $payby{$payby} : $payby; + $payby; +}; + +sub translate_payby_refund { + my ($payby,$payinfo) = (shift,shift); + my %payby = ( + BILL => $payinfo ? mt('Check #') : mt('Check'), + CHEK => mt('Electronic check '), + CARD => 'CARD ', + COMP => 'COMP ', + ); + $payby = (exists $payby{$payby}) ? $payby{$payby} : $payby; + $payby; +}; + </%init> |