X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=ec7391b20ec0ca3b5a80593281b5574779bb55f8;hb=b3bcbc3dda6f1b994f206c22b02acddb17ebdf1a;hp=3c28774988367861ec73a799bf52e0c914a22803;hpb=46a7257273fdae101658c8a1ee74f654ca0876b5;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index 3c2877498..ec7391b20 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,64 +18,112 @@
-
+
-Payment
+<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
+% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate payment') ) {
- Date |
+ <% mt('Date') |h %> |
- ">
-
+
+
|
+% }
+% 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 %> |
+% 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 |
% }
+% if ( $conf->exists('pkg-balances') ) {
+ <& /elements/tr-select-cust_pkg-balances.html,
+ 'custnum' => $custnum,
+ 'cgi' => $cgi
+ &>
+% } else {
+
+% }
+
-
+
@@ -83,26 +131,24 @@ Payment