This commit is contained in:
2023-02-06 22:28:57 +00:00
parent 3091391006
commit 89085c93b8

View File

@@ -184,7 +184,7 @@ namespace Sockeye.Biz
res = await client.GetAsync($"{URL_ROCKFISH}api/customer/{jCustomerListItem["id"].Value<long>()}");
var jCustomer = JObject.Parse(await res.Content.ReadAsStringAsync());
var CustomerName = jCustomer["name"].Value<string>();
//SITES
res = await client.GetAsync($"{URL_ROCKFISH}api/customer/{jCustomerListItem["id"].Value<long>()}/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<string>();
if (multiSite)
{
CustomerName += " - " + jSite["name"].Value<string>();
@@ -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<long?>());
s.CouponCode = jPurchase["couponCode"].Value<string>();
s.ExpireDate = DateUtil.EpochToDateNullIsNull(jPurchase["expireDate"].Value<long?>());