X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=ec7391b20ec0ca3b5a80593281b5574779bb55f8;hb=028c83edfa000f6bdbcd32ee3ffd5ee5561110d2;hp=0bb86e352e4bab0622273a68536f83ba70897fd4;hpb=d0c5ddbd31af8b1747d447f31623e1af05961eb4;p=freeside.git diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 0bb86e352..ec7391b20 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -18,11 +18,12 @@ -

+
<% mt('Payment') |h %> <% ntable("#cccccc", 2) %> +% if ( $FS::CurrentUser::CurrentUser->access_right('Backdate payment') ) { <% mt('Date') |h %> @@ -39,24 +40,57 @@ align: "BR" }); +% } +% else { + + <% mt('Date') |h %> + + <% time2str($date_format.' %r',$_date) %> + + +% } <% mt('Amount') |h %> <% $money_char %> - <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> + <% mt('by') |h %> <% mt(FS::payby->payname($payby)) |h %> - <& /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' ) { <% 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' ) {