This commit is contained in:
@@ -281,6 +281,12 @@ namespace AyaNova.Util
|
||||
cmd.CommandText = "update auser set customerid=null;";
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
|
||||
cmd.Connection = conn;
|
||||
cmd.CommandText = "update aunit set replacedbyunitid=null, parentunitid=null, purchasedfromvendorid=null, unitmodelid=null;";
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
|
||||
|
||||
|
||||
cmd.CommandText = "update auser set headofficeid=null;";
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
|
||||
@@ -315,7 +321,7 @@ namespace AyaNova.Util
|
||||
await EraseTableAsync("asearchkey", conn);
|
||||
await EraseTableAsync("asearchdictionary", conn);
|
||||
await EraseTableAsync("atag", conn);
|
||||
|
||||
await EraseTableAsync("aunit", conn);
|
||||
await EraseTableAsync("acustomernote", conn);
|
||||
await EraseTableAsync("acustomer", conn);
|
||||
await EraseTableAsync("aheadoffice", conn);
|
||||
@@ -332,7 +338,7 @@ namespace AyaNova.Util
|
||||
await EraseTableAsync("aquote", conn);
|
||||
await EraseTableAsync("aquotetemplateitem", conn);
|
||||
await EraseTableAsync("aquotetemplate", conn);
|
||||
await EraseTableAsync("aunit", conn);
|
||||
|
||||
await EraseTableAsync("aunitmodel", conn);
|
||||
await EraseTableAsync("avendor", conn);
|
||||
//--- WorkOrder
|
||||
@@ -363,7 +369,7 @@ namespace AyaNova.Util
|
||||
await EraseTableAsync("areminder", conn);//depends on User
|
||||
await EraseTableAsync("areview", conn);//depends on User
|
||||
|
||||
|
||||
|
||||
await EraseTableAsync("aservicerate", conn);
|
||||
await EraseTableAsync("atravelrate", conn);
|
||||
await EraseTableAsync("ataxcode", conn);
|
||||
|
||||
Reference in New Issue
Block a user