X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=acc67c4b54aa97018f39750e22bc4516d92d57f8;hp=f0826f65215c963bc8fa8028ca42f719924867e0;hb=0353e495131736a7c03d87b4d8c1d500cb96b863;hpb=b3f48204012dd722912dcb3703908bd1eaf6df7b diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index f0826f652..acc67c4b5 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,65 +1,50 @@ % 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) %> -% if ( $FS::CurrentUser::CurrentUser->access_right(['Backdate payment']) ) { - - <% 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 &> - -% } -% else { - - <% mt('Date') |h %> - - <% time2str($date_format.' %r',$_date) %> - - % } <% 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 +81,17 @@ <% mt('Auto-apply to invoices') |h %> - + + + + + % } elsif ( $link eq 'invnum' ) { <% mt('Apply to') |h %> Invoice #<% $linknum %> only - + % } @@ -121,7 +108,7 @@
- +
@@ -129,7 +116,7 @@ % } else { - <& /elements/footer.html &> + <& /elements/footer-cust_main.html &> % } <%init>