This commit is contained in:
@@ -360,11 +360,14 @@ namespace Sockeye.Biz
|
|||||||
|
|
||||||
if (CustomerId != 0)
|
if (CustomerId != 0)
|
||||||
{
|
{
|
||||||
if (!vc.Has("customer", CustomerId))
|
if (!vc.Has("customername", CustomerId))
|
||||||
{
|
{
|
||||||
vc.Add(await ct.Customer.AsNoTracking().Where(x => x.Id == CustomerId).Select(x => x.Name).FirstOrDefaultAsync(), "customer", CustomerId);
|
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == CustomerId).FirstOrDefaultAsync();
|
||||||
|
vc.Add(custInfo.Name, "customername", CustomerId);
|
||||||
|
vc.Add(custInfo.EmailAddress, "customeremail", CustomerId);
|
||||||
}
|
}
|
||||||
o.CustomerViz = vc.Get("customer", CustomerId);
|
o.CustomerViz = vc.Get("customername", CustomerId);
|
||||||
|
o.CustomerEmailViz = vc.Get("customeremail", CustomerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vc.Has("productname", o.ProductId))
|
if (!vc.Has("productname", o.ProductId))
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ namespace Sockeye.Models
|
|||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string CustomerViz { get; set; }
|
public string CustomerViz { get; set; }
|
||||||
|
[NotMapped]
|
||||||
|
public string CustomerEmailViz { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public List<string> Tags { get; set; } = new List<string>();
|
public List<string> Tags { get; set; } = new List<string>();
|
||||||
|
|||||||
10
todo.txt
10
todo.txt
@@ -15,18 +15,16 @@ TODO:
|
|||||||
|
|
||||||
TODO: make a filter showing expired but not set to inactive subscription items
|
TODO: make a filter showing expired but not set to inactive subscription items
|
||||||
|
|
||||||
TODO: dashboard items related to subscriptions
|
|
||||||
- revenue per month for next 12 months graph
|
|
||||||
- overdue expired subs list
|
|
||||||
- active count of each product subscription bar graph
|
|
||||||
|
|
||||||
todo: build email address list by active subscription product no dupes
|
todo: build email address list by active subscription product no dupes
|
||||||
maybe in a report?
|
maybe in a report?
|
||||||
This is for alerting subscribers to update or non subscribers to update separately
|
This is for alerting subscribers to update or non subscribers to update separately
|
||||||
maybe it's a full on feature?
|
maybe it's a full on feature?
|
||||||
|
|
||||||
|
|
||||||
|
TODO: dashboard items related to subscriptions
|
||||||
|
- revenue per month for next 12 months graph
|
||||||
|
- overdue expired subs list
|
||||||
|
- active count of each product subscription bar graph
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user