Adding/Updating Fees in HUD 1200 section

Discussions concerning general integration topics.

Moderator: Phil Barton

chris.brady
Posts: 105
Joined: Wed Oct 17, 2012 4:20 pm

Re: Adding/Updating Fees in HUD 1200 section

Post by chris.brady »

Really appreciate the detailed explanation.

Based on the explanation for adding additional charges beyond the first default line, the same would go for lines like 801, 1101-1104, right? If I wanted to add an additional charge to 1103, it would look like

Code: Select all

dynamic line = hud.Lines[1103];
dynamic firstCharge = line.Charges[0];
dynamic secondCharge = order.CreateNew(“HUD1103Charge”);
line.Charges.Add(secondCharge);
Just want to make sure I've got this right, since I'll have to dynamically build a string to represent the line# in "HUDxxxxCharge".
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Adding/Updating Fees in HUD 1200 section

Post by BobRichards »

That looks OK. If in doubt, try it via the UI. If that works, it will work programmatically.
Bob Richards, Senior Software Developer, SoftPro
Post Reply