X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=e561c703e98a1957eb9821a055e3ed84ef4e61b0;hp=732e417db6d2bf18b94b748c5c89d6260dfe67b8;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hpb=2238711675eefa60cd2feb47c8d3e43d3e6f1860 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; +}; +