X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fcust_pay.cgi;h=888335fbb54b23c3a172ff2c1aacdb43698157da;hb=062f38f2f5d0da64c6fd0702d4df2e805473a1f5;hp=07e51989e75d8ce74946337a401ee08b01c4786f;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index 07e51989e..888335fbb 100755
--- a/httemplate/edit/cust_pay.cgi
+++ b/httemplate/edit/cust_pay.cgi
@@ -1,12 +1,12 @@
% if ( $link eq 'popup' ) {
- <% include('/elements/header-popup.html', $title ) %>
+ <& /elements/header-popup.html, $title &>
% } else {
- <% include("/elements/header.html", $title, '') %>
+ <& /elements/header.html, $title, '' &>
% }
-<% 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')) %>
@@ -18,54 +18,82 @@
-
+
-Payment
+<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
-
- Date |
-
- ">
-
- |
-
+% 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 &>
+
+% }
- Amount |
- <% $money_char %> |
- by <% FS::payby->payname($payby) %> |
+ <% mt('Amount') |h %> |
+ <% $money_char |h %> <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> |
+% if ( $conf->exists('part_pkg-term_discounts') ) {
+ <& /elements/tr-select-discount_term.html,
+ 'custnum' => $custnum,
+ 'amount_id' => 'paid',
+ &>
+% }
+
% if ( $payby eq 'BILL' ) {
- Check # |
+ <% mt('Check #') |h %> |
|
-% }
+% }
+% elsif ( $payby eq 'CASH' and $conf->exists('require_cash_deposit_info') ) {
+
+ <% mt('Bank') |h %> |
+ |
+
+
+ <% mt('Check #') |h %> |
+ |
+
+
+ <% mt('Teller #') |h %> |
+ |
+
+
+ <% mt('Depositor') |h %> |
+ |
+
+
+ <% mt('Account #') |h %> |
+ |
+
+% }
% if ( $link eq 'custnum' || $link eq 'popup' ) {
- Auto-apply to invoices |
+ <% mt('Auto-apply to invoices') |h %> |
+ |
% } elsif ( $link eq 'invnum' ) {
- Apply to |
+ <% mt('Apply to') |h %> |
Invoice #<% $linknum %> only |
@@ -73,11 +101,10 @@ Payment
% 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 {
% }
@@ -85,7 +112,7 @@ Payment
-
+
@@ -93,17 +120,15 @@ Payment