[freeside-commits] branch FREESIDE_4_BRANCH updated. 33a8d01e61dacf87044b699c15094c0171b34516

Ivan ivan at 420.am
Fri Sep 22 15:09:53 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  33a8d01e61dacf87044b699c15094c0171b34516 (commit)
      from  2457674c0550465a5070f9353691523a31c03331 (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 33a8d01e61dacf87044b699c15094c0171b34516
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Sep 22 15:09:52 2017 -0700

    vitelity: send customer name instead of requiring company, RT#73618

diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm
index 574592f..d715535 100644
--- a/FS/FS/part_export/vitelity.pm
+++ b/FS/FS/part_export/vitelity.pm
@@ -286,8 +286,8 @@ sub _export_insert {
 
     my $cust_main = $svc_phone->cust_svc->cust_pkg->cust_main;
 
-    return 'Customer company is required'
-      unless $cust_main->company;
+    #return 'Customer company is required'
+    #  unless $cust_main->company;
 
     return 'Customer day phone (for contact, not porting) is required'
       unless $cust_main->daytime;
@@ -306,7 +306,7 @@ sub _export_insert {
       'partial'       => 'no',
       'wireless'      => 'no',
       'carrier'       => $svc_phone->lnp_other_provider,
-      'company'       => $cust_main->company,
+      'company'       => $cust_main->company || $cust_main->contact,
       'accnumber'     => $svc_phone->lnp_other_provider_account,
       'name'          => $svc_phone->phone_name_or_cust,
       'streetnumber'  => $sa->{number},

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

Summary of changes:
 FS/FS/part_export/vitelity.pm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list