summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-10-26 03:24:00 +0000
committerivan <ivan>2011-10-26 03:24:00 +0000
commit64377333493b795990716893179c0f1bec02a625 (patch)
treede334703cd8cbb3a9dd76e255208bb7361d1af0e
parent5c6846607476c97d2ef84b52b1be8b6d76c7339d (diff)
add legacy_cust_bill to hold legacy invoice content, RT#12981
-rw-r--r--httemplate/view/cust_main/payment_history.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index 752f56562..467c3bc0c 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -267,7 +267,9 @@
%
% my $charge = exists($item->{'charge'})
% ? sprintf("$money_char\%.2f", $item->{'charge'})
-% : '';
+% : exists($item->{'charge_nobal'})
+% ? sprintf("$money_char\%.2f", $item->{'charge_nobal'})
+% : '';
%
% my $payment = exists($item->{'payment'})
% ? sprintf("-&nbsp;$money_char\%.2f", $item->{'payment'})
@@ -401,7 +403,7 @@ foreach my $legacy_cust_bill ($cust_main->legacy_cust_bill) {
push @history, {
'date' => $legacy_cust_bill->_date,
'desc' => include('payment_history/legacy_invoice.html', $legacy_cust_bill, %opt ),
- 'charge' => $legacy_cust_bill->charged,
+ 'charge_nobal' => $legacy_cust_bill->charged,
};
}