X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=5d74365e7223bc418034230cfe0a3afe15501edb;hb=2c112f32561f23f9c538ace00db46659ce16da32;hp=d4414e44e754f98d33275a3f2c5f433bea26cc2a;hpb=1c71ab4b81802a8ee9074917306d35a582349766;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index d4414e44e..5d74365e7 100755
--- a/httemplate/edit/cust_pay.cgi
+++ b/httemplate/edit/cust_pay.cgi
@@ -23,43 +23,34 @@
<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
+% my %date_args = (
+% 'name' => '_date',
+% 'label' => emt('Date'),
+% 'value' => $_date,
+% 'format' => $date_format. ' %r',
+% 'colspan' => 2,
+% );
% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate payment') ) {
-
- <% mt('Date') |h %> |
-
-
-
- |
-
-
-% }
-% else {
-
- <% mt('Date') |h %> |
-
- <% time2str($date_format.' %r',$_date) %>
- |
-
+ <& /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' ) {
@@ -96,15 +87,17 @@
<% mt('Auto-apply to invoices') |h %> |
- |
+
+
+
+
+
% } elsif ( $link eq 'invnum' ) {
<% mt('Apply to') |h %> |
Invoice #<% $linknum %> only |
-
+
% }