add salesnum to new_customer API, RT#33218
authorIvan Kohler <ivan@freeside.biz>
Tue, 27 Jan 2015 05:05:26 +0000 (21:05 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 27 Jan 2015 05:05:26 +0000 (21:05 -0800)
FS/FS/API.pm
FS/FS/ClientAPI/Signup.pm

index 2463e8b..609008b 100644 (file)
@@ -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
index d507b8e..1c62f61 100644 (file)
@@ -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';
   }