From d2062945973d28e65b942f37bbbd9a5ab4f4172c Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 15 Sep 2006 19:15:34 +0000 Subject: add link to customer tax exemptions to customer view page --- httemplate/view/cust_main/payment_history.html | 49 ++++++++++++++------------ 1 file changed, 27 insertions(+), 22 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 244635c9a..a922cfc0a 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -1,25 +1,9 @@ -% -% my( $cust_main ) = @_; -% my $custnum = $cust_main->custnum; -% -% my $conf = new FS::Conf; -% -% my $curuser = $FS::CurrentUser::CurrentUser; -% -% my @payby = grep /\w/, $conf->config('payby'); -% #@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) -% @payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) -% unless @payby; -% my %payby = map { $_=>1 } @payby; -% -% my $s = 0; -% -%

Payment History
-% if ( $payby{'BILL'} && $curuser->access_right('Post payment') ) { +% my $s = 0; +% if ( $payby{'BILL'} && $curuser->access_right('Post payment') ) { <% $s++ ? ' | ' : '' %> Enter check payment @@ -61,16 +45,20 @@ Post manual (offline) credit card payment % } -
-% if ( $curuser->access_right('Post credit') ) { - +% if ( $curuser->access_right('Post credit') ) { Enter credit +
+% } +% if ( $curuser->access_right('View customer tax exemptions') ) { + View tax exemptions
% } -% + + + %#get payment history %my @history = (); % @@ -567,3 +555,20 @@ function show_history () { +<%init> + +my( $cust_main ) = @_; +my $custnum = $cust_main->custnum; + +my $conf = new FS::Conf; + +my $curuser = $FS::CurrentUser::CurrentUser; + +my @payby = grep /\w/, $conf->config('payby'); +#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) +@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) + unless @payby; +my %payby = map { $_=>1 } @payby; + + + -- cgit v1.2.1