[freeside-commits] branch FREESIDE_3_BRANCH updated. f4787c50372862c133f7d020a7014f999f4a704a

Ivan ivan at 420.am
Mon Jan 26 21:05:29 PST 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  f4787c50372862c133f7d020a7014f999f4a704a (commit)
      from  2cb16bcb5d43d9194ca1eaf95fe5e59ec9076b76 (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 f4787c50372862c133f7d020a7014f999f4a704a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Jan 26 21:05:26 2015 -0800

    add salesnum to new_customer API, RT#33218

diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index 2463e8b..609008b 100644
--- a/FS/FS/API.pm
+++ b/FS/FS/API.pm
@@ -383,7 +383,11 @@ Exact name on credit card for CARD/DCRD, bank name for CHEK/DCHK
 
 =item referral_custnum
 
-referring customer number
+Referring customer number
+
+=item salesnum
+
+Sales person number
 
 =item agentnum
 
@@ -422,7 +426,7 @@ sub new_customer {
       'tagnum'   => [ FS::part_tag->default_tags ],
 
       map { $_ => $opt{$_} } qw(
-        agentnum refnum agent_custid referral_custnum
+        agentnum salesnum refnum agent_custid referral_custnum
         last first company 
         daytime night fax mobile
         payby payinfo paydate paycvv payname
diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm
index d507b8e..1c62f61 100644
--- a/FS/FS/ClientAPI/Signup.pm
+++ b/FS/FS/ClientAPI/Signup.pm
@@ -529,6 +529,7 @@ sub new_customer {
     'tagnum'   => [ FS::part_tag->default_tags ],
 
     ( map { $_ => $packet->{$_} } qw(
+            salesnum
             ss stateid stateid_state
 
             payby
@@ -623,7 +624,7 @@ sub new_customer {
                                     );
     }
 
-    $cust_main->payby('BILL')   # MCRD better?
+    $cust_main->payby('BILL')   # MCRD better?  no, that's for something else
       if $gw && $gw->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
   }
 


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

Summary of changes:
 FS/FS/API.pm              |    8 ++++++--
 FS/FS/ClientAPI/Signup.pm |    3 ++-
 2 files changed, 8 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list