I have a fairly simple nested formula, but I'm struggling to get the correct format. I know that the formula at the end is redundant, but I was just trying to figure out how to get it to work.
Code:
Round
(if isnull({tei.dteFileCreated}) then
if {vtr.Mode}="LTL"
then ({vtr.TotalARAmt}-{vtr.curARAddedFee})*1.37+{vtr.curARAddedFee}
else
if {vtr.Mode}<>"TL"
THEN ({vtr.TotalARAmt}-{vtr.curARAddedFee})*1.1+{vtr.curARAddedFee})
ELSE
IF {vtr.Mode}="TL"
THEN ({vtr.TotalARAmt}-{vtr.curARAddedFee})*1.23+{vtr.curARAddedFee})
else if NOT isnull ({tei.dteFileCreated}) then {tei.curARAmtwMarkup}+{tei.curFee},2)