This commit is contained in:
2022-03-09 20:33:24 +00:00
parent e0c0768c31
commit 06ab8f48c8
3 changed files with 32 additions and 11 deletions

View File

@@ -350,7 +350,36 @@ namespace AyaNova.Util
cmd.CommandText = "update apurchaseorderitem set workorderitempartrequestid=null;";
await cmd.ExecuteNonQueryAsync();
cmd.CommandText = "update aglobalbizsettings set taxpartpurchaseid=null,taxpartsaleid=null,taxratesaleid=null;";
//cmd.CommandText = "update aglobalbizsettings set taxpartpurchaseid=null,taxpartsaleid=null,taxratesaleid=null;";
cmd.CommandText = "update aglobalbizsettings set "
+ "webaddress =null, phone1 =null, phone2 =null, emailaddress =null, postaddress =null, postcity =null, postregion =null, postcountry =null, postcode =null, "
+ "address =null, city =null, region =null, country =null, latitude=null, longitude =null, "
+ "filtercasesensitive = FALSE, "
+ "useinventory = TRUE, "
+ "allowscheduleconflicts = TRUE, "
+ "workordercompletebyage = '00:00:00', "
+ "workordertraveldefaultminutes = 0, "
+ "worklaborscheduledefaultminutes = 0, "
+ "signaturetitle =null, "
+ "signatureheader =null, "
+ "signaturefooter =null, "
+ "customerservicerequestinfotext =null, "
+ "customerallowcsr = FALSE, customerallowcsrintags ='{}', "
+ "customerallowcreateunit = FALSE, customerallowcreateunitintags ='{}', "
+ "customerallowviewwo = FALSE, customerallowviewwointags ='{}', "
+ "customerworkorderreport1tags ='{}', customerworkorderreport2tags ='{}', "
+ "customerworkorderreport3tags ='{}', customerworkorderreport4tags ='{}', customerworkorderreport5tags ='{}', "
+ "customerallowwowiki = FALSE, customerallowwowikiintags ='{}', "
+ "customerallowwoattachments = FALSE, customerallowwoattachmentsintags ='{}', "
+ "customerallowusersettings = FALSE, customerallowusersettingsintags ='{}', "
+ "customerallownotifyserviceimminent = FALSE, customerallownotifyserviceimminentintags ='{}', "
+ "customerallownotifycsraccepted = FALSE, customerallownotifycsracceptedintags ='{}', "
+ "customerallownotifycsrrejected = FALSE, customerallownotifycsrrejectedintags ='{}', "
+ "customerallownotifywocreated = FALSE, customerallownotifywocreatedintags ='{}', "
+ "customerallownotifywocompleted = FALSE, customerallownotifywocompletedintags ='{}', "
+ "taxpartpurchaseid=null,taxpartsaleid=null,taxratesaleid=null, "
+ "customerdefaultworkorderreportid=null, customertagworkorderreport1id=null, customertagworkorderreport2id=null, "
+ "customertagworkorderreport3id=null, customertagworkorderreport4id=null, customertagworkorderreport5id=null ";
await cmd.ExecuteNonQueryAsync();
//reset global settings cache taxes
ServerGlobalBizSettings.Cache.TaxPartPurchaseId = null;
@@ -464,7 +493,7 @@ namespace AyaNova.Util
await EraseTableAsync("anotifyevent", conn);
await EraseTableAsync("anotifydeliverylog", conn);
await EraseTableAsync("anotifysubscription", conn);
await EraseTableAsync("acustomernotifyevent", conn);
await EraseTableAsync("acustomernotifyevent", conn);
await EraseTableAsync("acustomernotifydeliverylog", conn);
await EraseTableAsync("acustomernotifysubscription", conn);