X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=467c3bc0c4d32c0589b6c3f1091f394e49e9df3b;hb=3c54c844c665ed108c7892a154fd3972fab1f3e5;hp=fa9c166972aa0fb5e35882f13af7049f934c60ba;hpb=c4b71bc4459cb7d403cbebede470aeb2c6292a6e;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index fa9c16697..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("- $money_char\%.2f", $item->{'payment'}) @@ -396,6 +398,15 @@ my %opt = ( ) ); +#legacy invoices +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_nobal' => $legacy_cust_bill->charged, + }; +} + #invoices foreach my $cust_bill ($cust_main->cust_bill) { push @history, { @@ -507,6 +518,8 @@ sub translate_payinfo { my $payby = $object->payby; my $payinfo = $object->payinfo; + my $conf = new FS::Conf; + if ( $payby eq 'CARD' ) { $payinfo = $object->paymask; } elsif ( $payby eq 'CHEK' ) {