From b87a7bcbcd391e5da93852efaf61d1fdd5e12ceb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 25 Nov 2020 18:56:47 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 35 +++++++++++++------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 4ed0117..2a4b3fe 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -444,24 +444,25 @@ namespace AyaNova.PlugIn.V8 d.name = GetUniqueName(c.FirstName + " " + c.LastName); if (IsDuplicateMapItem(c.ID, c.FirstName + " " + c.LastName, progress)) continue; progress.Op("User " + d.name); - throw new System.Exception("TODO: UserTypes sb done differently now to align"); - d.userType = (int)c.UserType; + //throw new System.Exception("TODO: UserTypes sb done differently now to align"); + //TODO: User type + //d.userType = (int)c.UserType; - //if special 3rd party user type then set their parent object id to -1 to signify will fill in later and satisfy biz rules at server - switch (c.UserType) - { - case UserTypes.Client: - d.customerId = -1; - break; - case UserTypes.HeadOffice: - d.headOfficeId = -1; - break; - } - if (c.VendorID != Guid.Empty) - { - d.userType = 7;//7 is the RAVEN user type for subcontractor - d.subVendorId = -1; - } + ////if special 3rd party user type then set their parent object id to -1 to signify will fill in later and satisfy biz rules at server + //switch (c.UserType) + //{ + // case UserTypes.Client: + // d.customerId = -1; + // break; + // case UserTypes.HeadOffice: + // d.headOfficeId = -1; + // break; + //} + //if (c.VendorID != Guid.Empty) + //{ + // d.userType = 7;//7 is the RAVEN user type for subcontractor + // d.subVendorId = -1; + //} d.active = false;//all imported users are inactive to start