X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=49d6ff4cd1c9d8b64ac04bf124707ffd98ed7399;hb=7ef2ddadbd35cad8b9e65a3682e870230e5f8c89;hp=732e417db6d2bf18b94b748c5c89d6260dfe67b8;hpb=2238711675eefa60cd2feb47c8d3e43d3e6f1860;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 732e417db..49d6ff4cd 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -450,4 +450,37 @@ 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; +}; + +sub areyousure_link { + my ($url,$msg,$title,$label) = (shift,shift,shift,shift); + ' ('.$label.')'; +} +