diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-05-21 10:07:47 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-05-21 10:07:47 -0700 |
commit | 904f7bbe9bebcaeb194a276eab8d8579fbd91b4a (patch) | |
tree | 9d041226abb7b859e52ef305b9a42b52736338b1 /FS | |
parent | 96a13f50757181b21c66e6bd15840d7072f254da (diff) |
don't credit-card-surcharge-percentage to ACH, RT#34815
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main/Billing_Realtime.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 1f6a9e91a..d973896c8 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -374,8 +374,9 @@ sub realtime_bop { my $cc_surcharge = 0; my $cc_surcharge_pct = 0; $cc_surcharge_pct = $conf->config('credit-card-surcharge-percentage') - if $conf->config('credit-card-surcharge-percentage'); - + if $conf->config('credit-card-surcharge-percentage') + && $options{method} eq 'CC'; + # always add cc surcharge if called from event if($options{'cc_surcharge_from_event'} && $cc_surcharge_pct > 0) { $cc_surcharge = $options{'amount'} * $cc_surcharge_pct / 100; |