case 3976

This commit is contained in:
2021-09-24 23:42:59 +00:00
parent 542926b748
commit ed78e94af9
19 changed files with 38 additions and 29 deletions

View File

@@ -222,7 +222,7 @@ namespace AyaNova.Biz
.AddText(obj.Wiki)
.AddText(obj.Tags)
.AddText(obj.WebAddress)
.AddText(obj.PopUpNotes)
.AddText(obj.AlertNotes)
.AddText(obj.TechNotes)
.AddText(obj.AccountNumber)
.AddText(obj.Phone1)

View File

@@ -139,7 +139,7 @@ namespace AyaNova.Biz
//l.Add(new FormField { TKey = "UsesBanking", FieldKey = "UsesBanking" });
l.Add(new FormField { TKey = "CustomerNotes", FieldKey = "Notes" });
l.Add(new FormField { TKey = "CustomerTechNotes", FieldKey = "TechNotes" });
l.Add(new FormField { TKey = "AlertNotes", FieldKey = "PopUpNotes" });
l.Add(new FormField { TKey = "AlertNotes", FieldKey = "AlertNotes" });
l.Add(new FormField { TKey = "Tags", FieldKey = "Tags" });
l.Add(new FormField { TKey = "Wiki", FieldKey = "Wiki" });
l.Add(new FormField { TKey = "Attachments", FieldKey = "Attachments" });
@@ -779,7 +779,7 @@ namespace AyaNova.Biz
l.Add(new FormField { TKey = "VendorContact", FieldKey = "Contact" });
l.Add(new FormField { TKey = "VendorNotes", FieldKey = "Notes" });
l.Add(new FormField { TKey = "VendorContactNotes", FieldKey = "ContactNotes" });
l.Add(new FormField { TKey = "AlertNotes", FieldKey = "PopUpNotes" });
l.Add(new FormField { TKey = "AlertNotes", FieldKey = "AlertNotes" });
l.Add(new FormField { TKey = "Tags", FieldKey = "Tags" });
l.Add(new FormField { TKey = "Wiki", FieldKey = "Wiki" });
l.Add(new FormField { TKey = "Attachments", FieldKey = "Attachments" });

View File

@@ -859,9 +859,9 @@ namespace AyaNova.Biz
await ItemPopulateVizFields(v, populateForReporting);
}
//popup Alert notes
//Alert notes
//Customer notes first then others below
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.PopUpNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.AlertNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
if (!string.IsNullOrWhiteSpace(custInfo.AlertViz))
{
o.AlertViz = $"{await Translate("Customer")} - {await Translate("AlertNotes")}\n{custInfo.AlertViz}\n\n";

View File

@@ -142,6 +142,7 @@ namespace AyaNova.Biz
var vnd = await ct.Vendor.AsNoTracking().Where(x => x.Id == po.VendorId).FirstOrDefaultAsync();
po.VendorViz = vnd.Name;
po.VendorAlertNotesViz = vnd.AlertNotes;
if (forReporting)
{
po.VendorAddressViz = vnd.Address;
@@ -164,7 +165,7 @@ namespace AyaNova.Biz
po.VendorContactViz = vnd.Contact;
po.VendorContactNotesViz = vnd.ContactNotes;
po.VendorPopUpNotesViz = vnd.PopUpNotes;
po.VendorAccountNumberViz = vnd.AccountNumber;
}

View File

@@ -838,9 +838,9 @@ namespace AyaNova.Biz
await ItemPopulateVizFields(v, populateForReporting);
}
//popup Alert notes
//Alert notes
//Customer notes first then others below
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.PopUpNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.AlertNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
if (!string.IsNullOrWhiteSpace(custInfo.AlertViz))
{
o.AlertViz = $"{await Translate("Customer")} - {await Translate("AlertNotes")}\n{custInfo.AlertViz}\n\n";

View File

@@ -206,7 +206,7 @@ namespace AyaNova.Biz
.AddText(obj.WebAddress)
.AddText(obj.Contact)
.AddText(obj.ContactNotes)
.AddText(obj.PopUpNotes)
.AddText(obj.AlertNotes)
.AddText(obj.AccountNumber)
.AddText(obj.Phone1)
.AddText(obj.Phone2)

View File

@@ -953,9 +953,9 @@ namespace AyaNova.Biz
await ItemPopulateVizFields(v, populateForReporting);
}
//popup Alert notes
//Alert notes
//Customer notes first then others below
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.PopUpNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
var custInfo = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => new { AlertViz = x.AlertNotes, x.TechNotes, CustomerViz = x.Name }).FirstOrDefaultAsync();
if (!string.IsNullOrWhiteSpace(custInfo.AlertViz))
{
o.AlertViz = $"{await Translate("Customer")} - {await Translate("AlertNotes")}\n{custInfo.AlertViz}\n\n";