From fb3f24328beb8e4d8703ea0d5376cdaaa86533a0 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Wed, 22 Apr 2015 19:46:28 -0500 Subject: RT#34134: Processing a Credit Card Payment on Accounts --- httemplate/misc/payment.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/payment.cgi') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 90b03c7e8..b83ad7166 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -273,7 +273,9 @@ my @states = sort { $a cmp $b } keys %states; my $amount = ''; if ( $balance > 0 ) { - $amount = $balance; + $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