This commit is contained in:
2021-11-16 23:02:10 +00:00
parent f831cf0a07
commit e3eed6122f
4 changed files with 43 additions and 5 deletions

View File

@@ -1659,6 +1659,23 @@ namespace AyaNova.Util
{
GlobalBizSettingsBiz biz = GlobalBizSettingsBiz.GetBiz(ct);
var gbiz = await biz.GetAsync(false);
gbiz.Latitude = (decimal)Fake.Address.Latitude();
gbiz.Longitude = (decimal)Fake.Address.Longitude();
gbiz.Address = Fake.Address.StreetAddress();
gbiz.City = Fake.Address.City();
gbiz.Region = Fake.Address.State();
gbiz.Country = Fake.Address.Country();
gbiz.PostAddress = Fake.Address.StreetAddress();
gbiz.PostCity = gbiz.City;
gbiz.PostRegion = gbiz.Region;
gbiz.PostCountry = gbiz.Country;
gbiz.PostCode = Fake.Address.ZipCode();
gbiz.Phone1 = Fake.Phone.PhoneNumber();
gbiz.Phone2 = Fake.Phone.PhoneNumber();
gbiz.WebAddress = Fake.Internet.Protocol() + "://example." + Fake.Internet.DomainSuffix();
gbiz.EmailAddress = Fake.Internet.ExampleEmail();
gbiz.TaxPartPurchaseId = TCGoods;
gbiz.TaxPartSaleId = TCGoods;
gbiz.TaxRateSaleId = TCServices;
@@ -1670,9 +1687,9 @@ namespace AyaNova.Util
gbiz.CustomerAllowNotifyWOCreated = true;
gbiz.CustomerAllowUserSettings = true;
gbiz.CustomerAllowViewWO = true;
// gbiz.CustomerDefaultWorkOrderReportId=1;
// gbiz.CustomerDefaultWorkOrderReportId=1;
gbiz.CustomerAllowWOWiki = true;
gbiz.CustomerAllowWOAttachments=true;
gbiz.CustomerAllowWOAttachments = true;
await biz.PutAsync(gbiz);
ServerGlobalBizSettings.Initialize(gbiz, null);