[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.21.2.8, 1.21.2.9

Ivan,,, ivan at wavetail.420.am
Sun Jun 1 13:16:09 PDT 2008


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	payment_history.html 
Log Message:
backport cust_bill_ApplicationCommon::applied_to_invoice and cust_bill::invnum_date_pretty to 1.7

Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.21.2.8
retrieving revision 1.21.2.9
diff -u -d -r1.21.2.8 -r1.21.2.9
--- payment_history.html	1 Apr 2008 05:49:41 -0000	1.21.2.8
+++ payment_history.html	1 Jun 2008 20:16:03 -0000	1.21.2.9
@@ -141,8 +141,7 @@
 %    #completely unapplied
 %    $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
 %    $post = '</FONT></B>';
-%    if ( $curuser->access_right('Apply payment') # ) {
-%         || $curuser->access_right('Post payment') ) { #remove after 1.7.3
+%    if ( $curuser->access_right('Apply payment') ) {
 %      $apply = ' ('. include( '/elements/popup_link.html',
 %                                'label'       => 'apply',
 %                                'action'      => "${p}edit/cust_bill_pay.cgi?".
@@ -157,7 +156,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     ) {
@@ -171,7 +170,7 @@
 %      if ( $app->isa('FS::cust_bill_pay') ) {
 %        $desc .= '&nbsp;&nbsp;'.
 %                 '$'. $app->amount.
-%                 ' applied to Invoice #'. $app->invnum.
+%                 ' '. $app->applied_to_invoice.
 %                 '<BR>';
 %                 #' on '. time2str("%D", $cust_bill_pay->_date).
 %      } elsif ( $app->isa('FS::cust_pay_refund') ) {
@@ -187,8 +186,7 @@
 %      $desc .= '&nbsp;&nbsp;'.
 %               '<B><FONT COLOR="#FF0000">$'.
 %               $cust_pay->unapplied. ' unapplied</FONT></B>';
-%      if ( $curuser->access_right('Apply payment') # ) {
-%           || $curuser->access_right('Post payment') ) { #remove after 1.7.3
+%      if ( $curuser->access_right('Apply payment') ) {
 %        $desc = ' ('. include( '/elements/popup_link.html',
 %                                 'label'      => 'apply',
 %                                 'action'     => "${p}edit/cust_bill_pay.cgi?".
@@ -342,8 +340,7 @@
 %    #completely unapplied
 %    $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
 %    $post = '</FONT></B>';
-%    if ( $curuser->access_right('Apply credit') # ) {
-%         || $curuser->access_right('Post credit') ) { #remove after 1.7.3
+%    if ( $curuser->access_right('Apply credit') ) {
 %      $apply = ' ('. include( '/elements/popup_link.html',
 %                                'label'    => 'apply',
 %                                'action'   => "${p}edit/cust_credit_bill.cgi?".
@@ -358,7 +355,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      ) {
@@ -372,7 +369,7 @@
 %      if ( $app->isa('FS::cust_credit_bill') ) {
 %        $desc .= '&nbsp;&nbsp;'.
 %                 '$'. $app->amount.
-%                 ' applied to Invoice #'. $app->invnum.
+%                 ' '. $app->applied_to_invoice.
 %                 '<BR>';
 %                 #' on '. time2str("%D", $app->_date).
 %      } elsif ( $app->isa('FS::cust_credit_refund') ) {
@@ -387,8 +384,7 @@
 %    if ( $cust_credit->credited > 0 ) {
 %      $desc .= '&nbsp;&nbsp;<B><FONT COLOR="#FF0000">$'.
 %               $cust_credit->credited. ' unapplied</FONT></B>';
-%      if ( $curuser->access_right('Apply credit') # ) {
-%           || $curuser->access_right('Post credit') ) { #remove after 1.7.3
+%      if ( $curuser->access_right('Apply credit') ) {
 %        $desc = ' ('. include( '/elements/popup_link.html',
 %                                'label'       => 'apply',
 %                                'action'      => "${p}edit/cust_credit_bill.cgi?".



More information about the freeside-commits mailing list