From ca2f12276eb88b2e71762c76974ae564f008b8c1 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Jan 2018 19:47:44 -0500 Subject: RT# 34134 - removed payment amount field from payment screen, added 3 payment options (pay full balance, pay specific invoice, pay another amount) which will prefill the payment amount field. --- httemplate/misc/payment.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 35f57e8d6..7bf1713ff 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -12,7 +12,8 @@ - <& /elements/tr-amount_fee.html, + <& /elements/tr-select-payment_options.html, + 'custnum' => $cust_main->custnum, 'amount' => $amount, 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)), -- cgit v1.2.1 From 814e5db9cd3953afad6ee1901574180fa0890062 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 3 Jan 2018 09:49:58 -0500 Subject: RT# 34134 - removed config option manual_process-single_invoice_amount from config and payment page that used it. --- httemplate/misc/payment.cgi | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 7bf1713ff..5bfa29d70 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -14,7 +14,7 @@ <& /elements/tr-select-payment_options.html, 'custnum' => $cust_main->custnum, - 'amount' => $amount, + 'amount' => $balance, 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)), 'process-display' => scalar($conf->config('manual_process-display')), @@ -357,15 +357,6 @@ my %states = map { $_->state => 1 } } ); my @states = sort { $a cmp $b } keys %states; -my $amount = ''; -if ( $balance > 0 ) { - # when configured to do so, amount will only auto-fill with balance - # if balance represents a single invoice - $amount = $balance - unless $conf->exists('manual_process-single_invoice_amount') - && ($cust_main->open_cust_bill != 1); -} - my $payunique = "webui-payment-". time. "-$$-". rand() * 2**32; -- cgit v1.2.1