% #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?".
% && 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 ) {
% if ( $app->isa('FS::cust_bill_pay') ) {
% $desc .= ' '.
% '$'. $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') ) {
% $desc .= ' '.
% '<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?".
% #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?".
% && 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 ) {
% if ( $app->isa('FS::cust_credit_bill') ) {
% $desc .= ' '.
% '$'. $app->amount.
-% ' applied to Invoice #'. $app->invnum.
+% ' '. $app->applied_to_invoice.
% '<BR>';
% #' on '. time2str("%D", $app->_date).
% } elsif ( $app->isa('FS::cust_credit_refund') ) {
% if ( $cust_credit->credited > 0 ) {
% $desc .= ' <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?".