diff --git a/server/biz/GlobalBizSettingsBiz.cs b/server/biz/GlobalBizSettingsBiz.cs index 162db09..4783779 100644 --- a/server/biz/GlobalBizSettingsBiz.cs +++ b/server/biz/GlobalBizSettingsBiz.cs @@ -184,7 +184,7 @@ namespace Sockeye.Biz res = await client.GetAsync($"{URL_ROCKFISH}api/customer/{jCustomerListItem["id"].Value()}"); var jCustomer = JObject.Parse(await res.Content.ReadAsStringAsync()); - + var CustomerName = jCustomer["name"].Value(); //SITES res = await client.GetAsync($"{URL_ROCKFISH}api/customer/{jCustomerListItem["id"].Value()}/sites"); var jaSiteList = JArray.Parse(await res.Content.ReadAsStringAsync()); @@ -196,7 +196,7 @@ namespace Sockeye.Biz long CurrentCustomerId = 0; using (AyContext ct = ServiceProviderProvider.DBContext) { - var CustomerName = jCustomer["name"].Value(); + if (multiSite) { CustomerName += " - " + jSite["name"].Value(); @@ -293,6 +293,7 @@ namespace Sockeye.Biz s.ProductId = p.Id; s.PGroup = p.PGroup; s.CustomerId = CurrentCustomerId; + s.RegTo=CustomerName; s.CancelDate = DateUtil.EpochToDateNullIsNull(jPurchase["cancelDate"].Value()); s.CouponCode = jPurchase["couponCode"].Value(); s.ExpireDate = DateUtil.EpochToDateNullIsNull(jPurchase["expireDate"].Value());