From b1c1559dec0570bc401ccd0e29e66a9bf6f151e1 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 27 Jul 2011 23:27:26 +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 046899e5e..3288f15a7 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; @@ -32,6 +36,9 @@ Enter Western Union payment % } +
+% $s=0; + % if ( ( $payby{'CARD'} || $payby{'DCRD'} ) % && $curuser->access_right(['Process payment', 'Process credit card payment']) % && ! $cust_main->is_encrypted($cust_main->payinfo) @@ -123,8 +130,17 @@ Post manual (offline/POS) credit card refund % } +
+ +%# invoice reports +% if ( $curuser->access_right('List invoices') ) { + Invoice reports +% }
+%# XXX payments, credits, refund reports + %# tax exemption link % my $view_exemptions = $curuser->access_right('View customer tax exemptions'); @@ -178,6 +194,11 @@ View pending payments
% } +
+ %# and now the table <% include("/elements/table-grid.html") %> @@ -330,6 +351,9 @@ % balance_forward_row($balance, $lastdate, $money_char); %} +
+ +