From c4b71bc4459cb7d403cbebede470aeb2c6292a6e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 27 Jul 2011 23:27:15 +0000 Subject: add per-customer "Invoice reports" link, RT#13802 --- httemplate/view/cust_main/payment_history.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index f29ae164b..fa9c16697 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -1,3 +1,7 @@ + + + + + + +
+ %# payment links % my $s = 0; @@ -28,6 +32,9 @@ <% mt('Enter Western Union payment') |h %> % } +
+% $s=0; + % if ( ( $payby{'CARD'} || $payby{'DCRD'} ) % && $curuser->access_right(['Process payment', 'Process credit card payment']) % && ! $cust_main->is_encrypted($cust_main->payinfo) @@ -113,8 +120,17 @@ <% mt('Post manual (offline/POS) credit card refund') |h %> % } +
+ +%# invoice reports +% if ( $curuser->access_right('List invoices') ) { + <% mt('Invoice reports') |h %> +% }
+%# XXX payments, credits, refund reports + %# tax exemption link % my $view_exemptions = $curuser->access_right('View customer tax exemptions'); @@ -166,6 +182,11 @@ <% mt('View pending payments') |h %>
% } +
+ %# and now the table <& /elements/table-grid.html &> @@ -318,6 +339,9 @@ % balance_forward_row($balance, $lastdate, $money_char); %} +
+ +