X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=d4414e44e754f98d33275a3f2c5f433bea26cc2a;hb=a72a10f754f7465121d6137bb3dcee0a21ea6443;hp=638679a46302765bc29dff277efcd4af55a38b5a;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index 638679a46..d4414e44e 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,16 +18,17 @@
-
+
-Payment
+<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
+% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate payment') ) {
- Date |
+ <% mt('Date') |h %> |
-
+
|
@@ -39,39 +40,69 @@ Payment
align: "BR"
});
+% }
+% else {
+
+ <% mt('Date') |h %> |
+
+ <% time2str($date_format.' %r',$_date) %>
+ |
+
+% }
- Amount |
+ <% mt('Amount') |h %> |
<% $money_char %> |
- by <% FS::payby->payname($payby) %> |
+ <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> |
- <% include('/elements/tr-select-discount_term.html',
+ <& /elements/tr-select-discount_term.html,
'custnum' => $custnum,
- 'cgi' => $cgi
- )
- %>
+ '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 |
@@ -79,11 +110,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 {
% }
@@ -91,7 +121,7 @@ Payment
-
+
@@ -99,7 +129,7 @@ Payment