1 <I><% mt('Payment attempt') |h %> <% $info |h %></I>
4 my( $cust_pay_pending, %opt ) = @_;
6 my ($payby,$payinfo) = translate_payinfo($cust_pay_pending);
7 $payby = translate_payby($payby,$payinfo);
8 my $info = $payby ? "($payby$payinfo)" : '';
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;
15 $info .= ': '. $cust_pay_pending->statustext
16 if length($cust_pay_pending->statustext);