diff options
author | Mark Wells <mark@freeside.biz> | 2013-02-01 08:34:26 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-02-01 08:34:26 -0800 |
commit | 2b62f0042d6e9eb004372bc25c5ea281f0cb8d5b (patch) | |
tree | c4054103a88f053243242f01c7be422837d64ed2 /httemplate/view/cust_main/payment_history.html | |
parent | eb26deab89a94f5ba7a2d21fa2a5a98cb7bb8885 (diff) |
show declined batch payments in customer display, #21117
Diffstat (limited to 'httemplate/view/cust_main/payment_history.html')
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 8745cac87..7701cb6b0 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -501,6 +501,17 @@ foreach my $cust_pay_pending ($cust_main->cust_pay_pending_attempt) { #'target' => $target, #XXX }; } +#declined batch payments +foreach my $cust_pay_batch ( + $cust_main->cust_pay_batch(hashref => {status => 'Declined'}) +) { + my $pay_batch = $cust_pay_batch->pay_batch; + push @history, { + 'date' => $pay_batch->upload, + 'desc' => include('payment_history/attempted_batch_payment.html', $cust_pay_batch, %opt), + 'void_payment' => $cust_pay_batch->amount, + }; +} #credits (some false laziness w/payments) foreach my $cust_credit ($cust_main->cust_credit) { |