X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=18416c5fbcfd8511e6fc28a17855f9c116fcb116;hb=a284ef4c8d9d43db336a77db4c34996344cd5717;hp=a3565f1257b5a322bbcb0e25c2cb6bd9b67c55b6;hpb=19d8baa9a52d0c40b909d5323f59237f0ad557ef;p=freeside.git
diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi
index a3565f125..18416c5fb 100755
--- a/httemplate/edit/cust_credit.cgi
+++ b/httemplate/edit/cust_credit.cgi
@@ -6,15 +6,25 @@
-
<% ntable("#cccccc", 2) %>
-
- <% mt('Date') |h %> |
- <% time2str($date_format, $_date) %> |
-
+% my %date_args = (
+% 'name' => '_date',
+% 'label' => emt('Date'),
+% 'value' => $_date,
+% 'format' => $date_format. ' %r',
+% );
+% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate credit') ) {
+
+ <& /elements/tr-input-date-field.html, \%date_args &>
+
+% } else {
+
+ <& /elements/tr-fixed-date.html, \%date_args &>
+
+% }
<% mt('Amount') |h %> |
@@ -24,7 +34,7 @@
<& /elements/tr-select-reason.html,
'field' => 'reasonnum',
'reason_class' => 'R',
- 'control_button' => "document.getElementById('confirm_credit_button')",
+ 'control_button' => 'confirm_credit_button',
'cgi' => $cgi,
&>