X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=5d74365e7223bc418034230cfe0a3afe15501edb;hb=e80770898cc86365b335845dd1a02b4d82bd7e40;hp=7a1bb00fae8d806196e3ca5ccf0df4dde52bdaae;hpb=8f43e32350b7f8a0925959f747f7296b9b42c09e;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index 7a1bb00fa..5d74365e7 100755
--- a/httemplate/edit/cust_pay.cgi
+++ b/httemplate/edit/cust_pay.cgi
@@ -23,33 +23,34 @@
<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
-
- <% mt('Date') |h %> |
-
-
-
- |
-
+% my %date_args = (
+% 'name' => '_date',
+% 'label' => emt('Date'),
+% 'value' => $_date,
+% 'format' => $date_format. ' %r',
+% 'colspan' => 2,
+% );
+% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate payment') ) {
+
+ <& /elements/tr-input-date-field.html, \%date_args &>
+
+% } else {
-
+ <& /elements/tr-fixed-date.html, \%date_args &>
+
+% }
<% mt('Amount') |h %> |
- <% $money_char %> |
- <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> |
+ <% $money_char |h %> <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> |
- <& /elements/tr-select-discount_term.html,
- 'custnum' => $custnum,
- 'amount_id' => 'paid',
- &>
+% if ( $conf->exists('part_pkg-term_discounts') ) {
+ <& /elements/tr-select-discount_term.html,
+ 'custnum' => $custnum,
+ 'amount_id' => 'paid',
+ &>
+% }
% if ( $payby eq 'BILL' ) {
@@ -86,15 +87,17 @@
<% mt('Auto-apply to invoices') |h %> |
- |
+
+
+
+
+
% } elsif ( $link eq 'invnum' ) {
<% mt('Apply to') |h %> |
Invoice #<% $linknum %> only |
-
+
% }