X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpayment.html;fp=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpayment.html;h=d7322a2d6ed8f07046ac68e97ab1ec67f322ed1e;hb=93ec97f7d887bfd8e172f476edd8477546b5d597;hp=e0241cc8f279deb774a70fe68d4ec147242ab8aa;hpb=b017568f0d15d6756de1c04da19530462749469b;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html index e0241cc8f..d7322a2d6 100644 --- a/httemplate/view/cust_main/payment_history/payment.html +++ b/httemplate/view/cust_main/payment_history/payment.html @@ -33,18 +33,26 @@ if ($conf->exists('cust_bill_pay_pkg-manual')) { my $apply = ''; +my $italicize_otaker = 0; my $otaker = $cust_pay->otaker; -$otaker = 'auto billing' if $otaker eq 'fs_daily'; -$otaker = 'customer self-service' if $otaker eq 'fs_selfservice'; +if ( $otaker eq 'fs_daily' ) { + $otaker = 'auto billing'; + $italicize_otaker = 1; +} +if ( $otaker eq 'fs_selfservice' ) { + $otaker = 'customer self-service'; + $italicize_otaker = 1; +} my $payment = emt("Payment by [_1]",$otaker); +$payment =~ s/$otaker/$otaker<\/i>/ if $italicize_otaker; if ( scalar(@cust_bill_pay) == 0 && scalar(@cust_pay_refund) == 0 ) { #completely unapplied - $payment = '' - . emt("Unapplied Payment by [_1]",$otaker) - . ''; + $payment = emt("Unapplied Payment by [_1]",$otaker); + $payment =~ s/$otaker/$otaker<\/i>/ if $italicize_otaker; + $payment = ''.$payment.''; if ( $curuser->access_right('Apply payment') ) { if ( $cust_pay->cust_main->total_owed > 0 ) { $apply = ' ('.