Page 1 of 1

Amount values are different on the object from the values shown in the UI

Posted: Fri Apr 02, 2021 2:06 pm
by merak.marey
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.

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();
Thanks

Re: Amount values are different on the object from the values shown in the UI

Posted: Wed Apr 07, 2021 9:24 am
by merak.marey
Disregard this issue. A type on the testing environment.

Re: Amount values are different on the object from the values shown in the UI

Posted: Wed Apr 07, 2021 10:46 am
by BobRichards
Glad you found the problem!