X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=582fc8d7eb68ad668a0ae4f0b5cea382b7dd3d5a;hp=11c0d36a7867270c1833308c1b60b4c8cd15f678;hb=103527d74c16f4427b57ce88fc9b8eeb9a79cbda;hpb=4a800290f33bc515af0677d70444ef196a82b4bf
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index 11c0d36a7..582fc8d7e 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -166,7 +166,7 @@
% && scalar(@cust_pay_refund) == 0
% && $cust_pay->unapplied == 0 ) {
% #applied to one invoice, the usual situation
-% $desc = ' applied to Invoice #'. $cust_bill_pay[0]->invnum;
+% $desc = ' '. $cust_bill_pay[0]->applied_to_invoice;
% } elsif ( scalar(@cust_bill_pay) == 0
% && scalar(@cust_pay_refund) == 1
% && $cust_pay->unapplied == 0 ) {
@@ -180,7 +180,7 @@
% if ( $app->isa('FS::cust_bill_pay') ) {
% $desc .= ' '.
% '$'. $app->amount.
-% ' applied to Invoice #'. $app->invnum.
+% ' '. $app->applied_to_invoice.
% '
';
% #' on '. time2str("%D", $cust_bill_pay->_date).
% } elsif ( $app->isa('FS::cust_pay_refund') ) {
@@ -365,7 +365,7 @@
% && scalar(@cust_credit_refund) == 0
% && $cust_credit->credited == 0 ) {
% #applied to one invoice, the usual situation
-% $desc = ' applied to Invoice #'. $cust_credit_bill[0]->invnum;
+% $desc = ' '. $cust_credit_bill[0]->applied_to_invoice;
% } elsif ( scalar(@cust_credit_bill) == 0
% && scalar(@cust_credit_refund) == 1
% && $cust_credit->credited == 0 ) {
@@ -379,7 +379,7 @@
% if ( $app->isa('FS::cust_credit_bill') ) {
% $desc .= ' '.
% '$'. $app->amount.
-% ' applied to Invoice #'. $app->invnum.
+% ' '. $app->applied_to_invoice.
% '
';
% #' on '. time2str("%D", $app->_date).
% } elsif ( $app->isa('FS::cust_credit_refund') ) {