From 4aa65d22b908c96e495e93a1ab52be663c9fb916 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 14 Feb 2008 03:54:13 +0000 Subject: add cust_pay.otaker field; populate it based on history on upgrades, and show the order taker on all payments (on customer view and payment search) closes: #2953 --- httemplate/view/cust_main/payment_history.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 651a42ce6..b7fa7c22b 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -108,7 +108,7 @@ % $payby =~ s/^WEST$/Western Union/; % $payby =~ s/^MCRD$/Manual credit card/; % $payby =~ s/^BILL$//; -% my $info = $payby ? " ($payby$payinfo)" : ''; +% my $info = $payby ? "($payby$payinfo)" : ''; % % my( $pre, $post, $desc, $apply, $ext ) = ( '', '', '', '', '' ); % if ( scalar(@cust_bill_pay) == 0 @@ -235,9 +235,13 @@ % qq!>unapply)!; % } % +% my $otaker = $cust_pay->otaker; +% $otaker = 'auto billing' if $otaker eq 'fs_daily'; +% $otaker = 'customer self-service' if $otaker eq 'fs_selfservice'; +% % push @history, { % 'date' => $cust_pay->_date, -% 'desc' => $pre. "Payment$post$info$desc". +% 'desc' => $pre. "Payment$post by $otaker $info$desc". % "$view$apply$refund$void$delete$unapply", % 'payment' => $cust_pay->paid, % 'target' => $target, -- cgit v1.2.1