summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-04-22 19:46:28 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-04-22 19:46:28 -0500
commitfb3f24328beb8e4d8703ea0d5376cdaaa86533a0 (patch)
treeba9e8cab89125701a17908416977ce2936686bc7 /httemplate/misc
parent048756865bec53d4c5fd7e2b6240ea8ecd583eaa (diff)
RT#34134: Processing a Credit Card Payment on Accounts
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/payment.cgi4
1 files changed, 3 insertions, 1 deletions
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;