[freeside-commits] branch FREESIDE_3_BRANCH updated. 6bf88c075270636dd11150941de53f152e6018a7

Ivan ivan at 420.am
Thu May 21 10:07:49 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  6bf88c075270636dd11150941de53f152e6018a7 (commit)
      from  e51dc8ee781dee3d6b2c63bc5164c9fd763a9a5c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6bf88c075270636dd11150941de53f152e6018a7
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu May 21 10:07:48 2015 -0700

    don't credit-card-surcharge-percentage to ACH, RT#34815

diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index d4bd1f3..5980bf5 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -343,8 +343,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;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main/Billing_Realtime.pm |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list