X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fattempted_batch_payment.html;h=765e54281b4bdd80c63bef041668aa12c5e1a74d;hb=d5fa12d1022afb592e80803971e90d18eac414e0;hp=95947f5122fff57d8433a5253a43b0aea46d6829;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/attempted_batch_payment.html b/httemplate/view/cust_main/payment_history/attempted_batch_payment.html index 95947f512..765e54281 100644 --- a/httemplate/view/cust_main/payment_history/attempted_batch_payment.html +++ b/httemplate/view/cust_main/payment_history/attempted_batch_payment.html @@ -7,7 +7,14 @@ my ($payby,$payinfo) = translate_payinfo($cust_pay_batch); $payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; -$info .= ': '. $cust_pay_batch->error_message - if length($cust_pay_batch->error_message); +my $detail = ''; +if ( $cust_pay_batch->failure_status ) { + $detail = $cust_pay_batch->display_status; + $detail .= ' ('.$cust_pay_batch->error_message.')' + if $cust_pay_batch->error_message; +} else { + $detail = $cust_pay_batch->error_message; +} +$info .= ': '.$detail if length($detail);