This commit is contained in:
2020-04-28 22:14:36 +00:00
parent 6a67d03c19
commit 76579ce810

View File

@@ -166,13 +166,17 @@ namespace AyaNova.PlugIn.V8
try
{
Map.Clear();
//admin user (not exported but is there already)
Map.Add(User.AdministratorID, 1);
//not sure if this is a good idea or not because in some cases would want to know if something is unexpectedly empty but will see for now
Map.Add(Guid.Empty, 0);
//Map.Add(Guid.Empty, 0);
/*
TODO:
* How to empty postgres tables and reset autoid to 1 or multiple imports would cause crazy high id numbers
* Userskill, user cert as tags?
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
* manager user, should it copy email address and stuff or...??
*/
@@ -398,7 +402,11 @@ namespace AyaNova.PlugIn.V8
foreach (UserPickList.UserPickListInfo i in pl)
{
User c = User.GetItem(i.ID);
await util.EventLog(3, Map[c.ID], Map[c.Creator], Map[c.Modifier], c.Created, c.Modified);
var newId = Map[c.ID];
var creator = Map[c.Creator];
var modifier = Map[c.Modifier];
await util.EventLog(3, newId, creator, modifier, c.Created, c.Modified);
}
//todo fixup post import
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");