internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / payment_history / attempted_payment.html
1 <I><% mt('Payment attempt') |h %> <% $info |h %></I>
2 <%init>
3
4 my( $cust_pay_pending, %opt ) = @_;
5
6 my ($payby,$payinfo) = translate_payinfo($cust_pay_pending);
7 $payby = translate_payby($payby,$payinfo);
8 my $info = $payby ? "($payby$payinfo)" : '';
9
10 if ( $opt{'pkg-balances'} && $cust_pay_pending->pkgnum ) {
11   my $cust_pkg = qsearchs('cust_pkg', { 'pkgnum'=>$cust_pay_pending->pkgnum } );
12   $info .= ' for '. $cust_pkg->pkg_label_long;
13 }
14
15 $info .= ': '. $cust_pay_pending->statustext
16   if length($cust_pay_pending->statustext);
17
18 </%init>