[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.26, 1.27

Ivan,,, ivan at wavetail.420.am
Wed Feb 13 19:52:39 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv19985/httemplate/view/cust_main

Modified Files:
	payment_history.html 
Log Message:
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

Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- payment_history.html	14 Feb 2008 01:48:58 -0000	1.26
+++ payment_history.html	14 Feb 2008 03:52:36 -0000	1.27
@@ -118,7 +118,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
@@ -243,9 +243,13 @@
 %               qq!>unapply</A>)!;
 %  }
 %
+%  my $otaker = $cust_pay->otaker;
+%  $otaker = '<i>auto billing</i>'          if $otaker eq 'fs_daily';
+%  $otaker = '<i>customer self-service</i>' 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,



More information about the freeside-commits mailing list