I have a formula called @MiscCharges and this returns the proper values in the Details section. However, when I try to include this formula within another formula to obtain a @TOTAL ((@Amount)+ @MiscCharges), the @MiscCharges values is not being included. The formula for the @MiscCharages is:
if isnull({Invoice_Detail.Invoice_Detail})
then {Invoice_Header.Orig_Invoice_Amt}
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [0,1,2]
then
Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2)
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [3]
Then Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2) + Round({Invoice_Detail.Prepaid_Amt}*-1/1,2)
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [4,5]
Then Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2)
I'm a bit stumped, and thanks for any feedback!
if isnull({Invoice_Detail.Invoice_Detail})
then {Invoice_Header.Orig_Invoice_Amt}
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [0,1,2]
then
Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2)
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [3]
Then Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2) + Round({Invoice_Detail.Prepaid_Amt}*-1/1,2)
else if not isnull({Invoice_Detail.Invoice_Detail}) and {Invoice_Detail.Source_Type} in [4,5]
Then Round({Invoice_Detail.Prepaid_Amt}*-1/ 1,2)
I'm a bit stumped, and thanks for any feedback!