This commit is contained in:
2020-04-28 19:48:43 +00:00
parent 5c1e0c52d1
commit 7de2a003e3

View File

@@ -349,8 +349,24 @@ namespace AyaNova.PlugIn.V8
d.name = c.FirstName + " " + c.LastName;
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;
}
d.active = false;//all imported users are inactive to start
d.roles = 0;//todo: try to determine role from v7 member of group? or is that even possible?