This commit is contained in:
2023-01-23 00:59:38 +00:00
parent dec9ca1fff
commit ec6ec2701e
17 changed files with 924 additions and 94 deletions

View File

@@ -193,8 +193,7 @@ namespace Sockeye.Biz
.AddText(obj.CouponCode)
.AddText(obj.Wiki)
.AddText(obj.Tags)
.AddText(obj.Notes)
.AddText(obj.VendorData);
.AddText(obj.Notes);
}
////////////////////////////////////////////////////////////////////////////////////////////////
@@ -270,7 +269,7 @@ namespace Sockeye.Biz
{
vc.Add(await ct.Vendor.AsNoTracking().Where(x => x.Id == o.VendorId).Select(x => x.Name).FirstOrDefaultAsync(), "vendor", o.VendorId);
}
o.VendorViz = vc.Get("vendor", o.CustomerId);
o.VendorViz = vc.Get("vendor", o.VendorId);
if (!vc.Has("product", o.ProductId))
@@ -441,7 +440,7 @@ namespace Sockeye.Biz
{
//# NEW PURCHASE VENDOR NOTIFICATION
if (ayaEvent == SockEvent.Created && (!string.IsNullOrWhiteSpace(o.VendorData)))
if (ayaEvent == SockEvent.Created)
{
//Get product name and get customer name to notify
var productName = await ct.Product.AsNoTracking().Where(x => x.Id == o.ProductId).Select(x => x.Name).FirstOrDefaultAsync();