X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=a203e91317c3e1270ff2dee76559a49798db2902;hp=ec7391b20ec0ca3b5a80593281b5574779bb55f8;hb=44ed8f67ced13b6c2d4298577652243fe2eee453;hpb=028c83edfa000f6bdbcd32ee3ffd5ee5561110d2 diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index ec7391b20..a203e9131 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,59 +1,43 @@ % if ( $link eq 'popup' ) { <& /elements/header-popup.html, $title &> % } else { - <& /elements/header.html, $title, '' &> + <& /elements/header-cust_main.html, view=>'payment_history', custnum=>$custnum &> +

<% $title |h %>

% } <& /elements/init_calendar.html &> <& /elements/error.html &> -% unless ( $link eq 'popup' ) { - <% small_custview($custnum, $conf->config('countrydefault')) %> -% } - -
+ -
- <% 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 +82,17 @@ <% mt('Auto-apply to invoices') |h %> - + + + + + % } elsif ( $link eq 'invnum' ) { <% mt('Apply to') |h %> Invoice #<% $linknum %> only - + % } @@ -123,7 +109,7 @@
- +
@@ -131,7 +117,7 @@ % } else { - <& /elements/footer.html &> + <& /elements/footer-cust_main.html &> % } <%init>