diff options
| author | Mike Robinson <miker@freeside.biz> | 2012-05-01 12:40:56 -0500 |
|---|---|---|
| committer | Mike Robinson <miker@freeside.biz> | 2012-05-01 12:40:56 -0500 |
| commit | 7abae1137cfd0830f108cd65fff01370c42e3028 (patch) | |
| tree | aae1a94f3f14acde02b9f7e2b155c86e9365cae7 /httemplate/edit/cust_pay.cgi | |
| parent | 6487b344f2d3944d2ce6b185556516887836d3b9 (diff) | |
17528 Backdate payment access right.
Diffstat (limited to 'httemplate/edit/cust_pay.cgi')
| -rwxr-xr-x | httemplate/edit/cust_pay.cgi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 7a1bb00fa..f0826f652 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -23,6 +23,7 @@ <% mt('Payment') |h %> <% ntable("#cccccc", 2) %> +% if ( $FS::CurrentUser::CurrentUser->access_right(['Backdate payment']) ) { <TR> <TD ALIGN="right"><% mt('Date') |h %></TD> <TD COLSPAN=2> @@ -39,6 +40,15 @@ align: "BR" }); </SCRIPT> +% } +% else { +<TR> + <TD ALIGN="right"><% mt('Date') |h %></TD> + <TD COLSPAN=2> + <% time2str($date_format.' %r',$_date) %> + </TD> +</TR> +% } <TR> <TD ALIGN="right"><% mt('Amount') |h %></TD> |
