This commit is contained in:
2021-07-29 23:15:08 +00:00
parent e677fa56e4
commit fb693fe457
2 changed files with 88 additions and 76 deletions

2
.vscode/launch.json vendored
View File

@@ -53,7 +53,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_13\\bin\\"

View File

@@ -5244,6 +5244,8 @@ namespace AyaNova.Biz
//todo: NOTIFY FAIL
continue;
}
try
{
//make new workorder
if (await NewServiceWorkOrderFromPMAsync(p, ct, log))
{
@@ -5333,6 +5335,15 @@ namespace AyaNova.Biz
continue;
}
}
}
catch (Exception ex)
{
log.LogError(ex, $"PMBiz::GenerateAsync error generating Work order from PM {p.Serial}");
//todo: NOTIFY FAIL
continue;
}
}
}
@@ -5421,6 +5432,7 @@ namespace AyaNova.Biz
var wip = new WorkOrderItemPart();
wip.Description = pmp.Description;
wip.PartId = pmp.PartId;
wip.PartWarehouseId = pmp.PartWarehouseId;
wip.PriceOverride = pmp.PriceOverride;
wip.Quantity = pmp.Quantity;
//wip.Serials=pmp.Serials;