projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add per-customer "Invoice reports" link, RT#13802
[freeside.git]
/
httemplate
/
view
/
cust_main
/
payment_history.html
diff --git
a/httemplate/view/cust_main/payment_history.html
b/httemplate/view/cust_main/payment_history.html
index
5586897
..
3288f15
100644
(file)
--- a/
httemplate/view/cust_main/payment_history.html
+++ b/
httemplate/view/cust_main/payment_history.html
@@
-1,7
+1,11
@@
+<TABLE>
+ <TR>
+ <TD ALIGN="left">
+
%# payment links
% my $s = 0;
%# payment links
% my $s = 0;
-% if ( $payby{'BILL'} && $curuser->access_right(
'Post payment'
) ) {
+% if ( $payby{'BILL'} && $curuser->access_right(
['Post payment', 'Post check payment' ]
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check payment',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check payment',
@@
-14,7
+18,7
@@
%>
% }
%>
% }
-% if ( $payby{'CASH'} && $curuser->access_right(
'Post payment'
) ) {
+% if ( $payby{'CASH'} && $curuser->access_right(
['Post payment', 'Post cash payment']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash payment',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash payment',
@@
-32,8
+36,11
@@
<A HREF="<% $p %>edit/cust_pay.cgi?payby=WEST;custnum=<% $custnum %>">Enter Western Union payment</A>
% }
<A HREF="<% $p %>edit/cust_pay.cgi?payby=WEST;custnum=<% $custnum %>">Enter Western Union payment</A>
% }
+<BR>
+% $s=0;
+
% if ( ( $payby{'CARD'} || $payby{'DCRD'} )
% if ( ( $payby{'CARD'} || $payby{'DCRD'} )
-% && $curuser->access_right(
'Process payment'
)
+% && $curuser->access_right(
['Process payment', 'Process credit card payment']
)
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
@@
-41,7
+48,7
@@
% }
% if ( ( $payby{'CHEK'} || $payby{'DCHK'} )
% }
% if ( ( $payby{'CHEK'} || $payby{'DCHK'} )
-% && $curuser->access_right(
'Process payment'
)
+% && $curuser->access_right(
['Process payment', 'Process Echeck payment']
)
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
<% $s++ ? ' | ' : '' %>
@@
-73,7
+80,7
@@
%# refund links
% $s = 0;
%# refund links
% $s = 0;
-% if ( $payby{'BILL'} && $curuser->access_right(
'Post refund'
) ) {
+% if ( $payby{'BILL'} && $curuser->access_right(
['Post refund', 'Post check refund']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check refund',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter check refund',
@@
-86,7
+93,7
@@
%>
% }
%>
% }
-% if ( $payby{'CASH'} && $curuser->access_right(
'Post refund'
) ) {
+% if ( $payby{'CASH'} && $curuser->access_right(
['Post refund', 'Post cash refund']
) ) {
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash refund',
<% $s++ ? ' | ' : '' %>
<% include('/elements/popup_link-cust_main.html',
'label' => 'Enter cash refund',
@@
-123,8
+130,17
@@
<A HREF="<% $p %>edit/cust_refund.cgi?payby=MCRD;custnum=<% $custnum %>">Post manual (offline/POS) credit card refund</A>
% }
<A HREF="<% $p %>edit/cust_refund.cgi?payby=MCRD;custnum=<% $custnum %>">Post manual (offline/POS) credit card refund</A>
% }
+ </TD>
+ <TD ALIGN="right" VALIGN="top">
+
+%# invoice reports
+% if ( $curuser->access_right('List invoices') ) {
+ <A HREF="<% $p %>search/report_cust_bill.html?custnum=<% $custnum %>">Invoice reports</A>
+% }
<BR>
<BR>
+%# XXX payments, credits, refund reports
+
%# tax exemption link
% my $view_exemptions = $curuser->access_right('View customer tax exemptions');
%# tax exemption link
% my $view_exemptions = $curuser->access_right('View customer tax exemptions');
@@
-178,6
+194,11
@@
<A HREF="<% $p %>search/cust_pay_pending.html?magic=_date;statusNOT=done;custnum=<% $custnum %>">View pending payments</A><BR>
% }
<A HREF="<% $p %>search/cust_pay_pending.html?magic=_date;statusNOT=done;custnum=<% $custnum %>">View pending payments</A><BR>
% }
+ </TD>
+ </TR>
+ <TR>
+ <TD COLSPAN=2>
+
%# and now the table
<% include("/elements/table-grid.html") %>
%# and now the table
<% include("/elements/table-grid.html") %>
@@
-331,6
+352,9
@@
%}
</TABLE>
%}
</TABLE>
+ </TD>
+ </TR>
+</TABLE>
<SCRIPT TYPE="text/javascript">
<SCRIPT TYPE="text/javascript">