Amount values are different on the object from the values shown in the UI
Posted: Fri Apr 02, 2021 2:06 pm
Hi Bob
I'm having an issue with the order. For the E section (Escrow/Closing page 2) the amounts shown in the order object are all zero, but in the UI it has values.
Here's my code below.
Thanks
I'm having an issue with the order. For the E section (Escrow/Closing page 2) the amounts shown in the order object are all zero, but in the UI it has values.
Here's my code below.
Code: Select all
dynamic order = (dynamic)_order;
dynamic cdf = order.CDFs[0];
dynamic Lines = cdf.Lines;
var sections = new List<string> { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" };
if ((!String.IsNullOrEmpty(Sections)) && (Sections != "-"))
{
sections.Clear();
var sectionChars = Sections.ToCharArray();
foreach (var charS in sectionChars)
{
sections.Add(charS.ToString());
}
}
dynamic lines = (dynamic)((IEnumerable)Lines).Cast<dynamic>()
.Where(p => (!String.IsNullOrEmpty(p.Description)) && ((string)p.SectionNumber).StartsWithAny(sections)).ToList();