X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=5d74365e7223bc418034230cfe0a3afe15501edb;hb=f19956cf9995fee8897542fafa6c7ec13afde381;hp=ec7391b20ec0ca3b5a80593281b5574779bb55f8;hpb=028c83edfa000f6bdbcd32ee3ffd5ee5561110d2;p=freeside.git diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index ec7391b20..5d74365e7 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -23,37 +23,26 @@ <% 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 %> % if ( $conf->exists('part_pkg-term_discounts') ) { @@ -98,15 +87,17 @@ <% mt('Auto-apply to invoices') |h %> - + + + + + % } elsif ( $link eq 'invnum' ) { <% mt('Apply to') |h %> Invoice #<% $linknum %> only - + % }