X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=f9f99de7e0d47f7f209fd3fcdf5d5c7bcb8146aa;hb=c15c4b8b1afa91049915f77503487e663554938b;hp=353a041069828df7d4c42abd334d842074f3600e;hpb=df4c3a581b4e37920a144dee8342f296405d7946;p=freeside.git diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 353a04106..f9f99de7e 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,62 +1,79 @@ % 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') ) { - - - - + <& /elements/tr-input-date-field.html, \%date_args &> + +% } else { - + <& /elements/tr-fixed-date.html, \%date_args &> + +% } - - - + + - <& /elements/tr-select-discount_term.html, - 'custnum' => $custnum, - 'cgi' => $cgi - &> +% if ( $conf->exists('part_pkg-term_discounts') ) { + <& /elements/tr-select-discount_term.html, + 'custnum' => $custnum, + 'amount_id' => 'paid', + &> +% } % if ( $payby eq 'BILL' ) { - + -% } +% } +% elsif ( $payby eq 'CASH' and $conf->exists('require_cash_deposit_info') ) { + + + + + + + + + + + + + + + + + + + + +% } % if ( $link eq 'custnum' || $link eq 'popup' ) { @@ -64,15 +81,17 @@ + + + + + % } elsif ( $link eq 'invnum' ) { - - - + + + % } @@ -89,7 +108,7 @@
<% mt('Date') |h %> - - -
<% mt('Amount') |h %><% $money_char %> by <% FS::payby->payname($payby) %><% mt('Amount') |h %><% $money_char |h %> <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %>
<% mt('Check #') |h %><% mt('Check #') |h %>
<% mt('Bank') |h %>
<% mt('Check #') |h %>
<% mt('Teller #') |h %>
<% mt('Depositor') |h %>
<% mt('Account #') |h %>
<% mt('Auto-apply to invoices') |h %> - <% mt('Apply to') |h %>Invoice #<% $linknum %> only<% mt('Apply to') |h %>Invoice #<% $linknum %> only

- +
@@ -97,7 +116,7 @@ % } else { - <& /elements/footer.html &> + <& /elements/footer-cust_main.html &> % } <%init> @@ -142,8 +161,8 @@ die "access denied" my $paybatch = "webui-$_date-$$-". rand() * 2**32; -my $title = emt('Post '. FS::payby->payname($payby). ' payment'); -$title .= emt(" against Invoice #[_1]",$linknum) if $link eq 'invnum'; +my $title = mt('Post '. FS::payby->payname($payby). ' payment'); +$title .= mt(" against Invoice #[_1]",$linknum) if $link eq 'invnum'; my $custnum; if ( $link eq 'invnum' ) {