This commit is contained in:
@@ -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?>());
|
||||
|
||||
Reference in New Issue
Block a user