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

index 99e0477..62a97d8 100644 (file)
@@ -384,7 +384,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
 
index 6116609..9d0bcf3 100644 (file)
@@ -530,6 +530,7 @@ sub new_customer {
     'tagnum'   => [ FS::part_tag->default_tags ],
 
     ( map { $_ => $packet->{$_} } qw(
+            salesnum
             ss stateid stateid_state
 
             payby
@@ -624,7 +625,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';
   }
 
@@ -933,6 +934,7 @@ sub new_customer_minimal {
       'payby'    => 'BILL',
 
       map { $_ => $packet->{$_} } qw(
+        salesnum
         last first company daytime night fax mobile
         ss
       ),
index 4405600..283683b 100644 (file)
@@ -109,7 +109,7 @@ sub API_insert {
       '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