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

Discussions related to custom development with Select.
Post Reply
merak.marey
Posts: 14
Joined: Fri Oct 30, 2020 10:41 am

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

Post 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
merak.marey
Posts: 14
Joined: Fri Oct 30, 2020 10:41 am

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

Post by merak.marey »

Disregard this issue. A type on the testing environment.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

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

Post by BobRichards »

Glad you found the problem!
Bob Richards, Senior Software Developer, SoftPro
Post Reply