X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=f9f99de7e0d47f7f209fd3fcdf5d5c7bcb8146aa;hp=638679a46302765bc29dff277efcd4af55a38b5a;hb=90e15da7354b55cc5461b58ac087096ed47e0240;hpb=d390a44c761d9245f5910e5ef931182fc205eb39 diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 638679a46..f9f99de7e 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -1,89 +1,106 @@ % if ( $link eq 'popup' ) { - <% include('/elements/header-popup.html', $title ) %> + <& /elements/header-popup.html, $title &> % } else { - <% include("/elements/header.html", $title, '') %> + <& /elements/header-cust_main.html, view=>'payment_history', custnum=>$custnum &> +

<% $title |h %>

% } -<% include('/elements/init_calendar.html') %> +<& /elements/init_calendar.html &> -<% include('/elements/error.html') %> +<& /elements/error.html &> -% unless ( $link eq 'popup' ) { - <% small_custview($custnum, $conf->config('countrydefault')) %> -% } - -
+ -

+ -Payment -<% 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 &> - +% } - - - + + - <% include('/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' ) { - + + + + + + % } elsif ( $link eq 'invnum' ) { - - - + + + % } % if ( $conf->exists('pkg-balances') ) { - <% include('/elements/tr-select-cust_pkg-balances.html', + <& /elements/tr-select-cust_pkg-balances.html, 'custnum' => $custnum, 'cgi' => $cgi - ) - %> + &> % } else { % } @@ -91,7 +108,7 @@ Payment
Date - - -
Amount<% $money_char %> by <% FS::payby->payname($payby) %><% mt('Amount') |h %><% $money_char |h %> <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %>
Check #<% mt('Check #') |h %>
<% mt('Bank') |h %>
<% mt('Check #') |h %>
<% mt('Teller #') |h %>
<% mt('Depositor') |h %>
<% mt('Account #') |h %>
Auto-apply
to invoices
<% mt('Auto-apply to invoices') |h %> - Apply toInvoice #<% $linknum %> only<% mt('Apply to') |h %>Invoice #<% $linknum %> only

- +
@@ -99,7 +116,7 @@ Payment % } else { - <% include('/elements/footer.html') %> + <& /elements/footer-cust_main.html &> % } <%init> @@ -144,8 +161,8 @@ die "access denied" my $paybatch = "webui-$_date-$$-". rand() * 2**32; -my $title = 'Post '. FS::payby->payname($payby). ' payment'; -$title .= " against Invoice #$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' ) {