From 89085c93b8fd12db6431b26344becd928097acd3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Feb 2023 22:28:57 +0000 Subject: [PATCH] --- server/biz/GlobalBizSettingsBiz.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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());