[freeside-commits] branch master updated. 32d3fef150fd4ad2d900468dacb5a98688818f37

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


The branch, master has been updated
       via  32d3fef150fd4ad2d900468dacb5a98688818f37 (commit)
      from  11b4982061aac4c57c1a694cc87f8c1f264ac22a (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 32d3fef150fd4ad2d900468dacb5a98688818f37
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Sep 22 15:09:50 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