Hello everyone,
I have a formula where it sums the sales orders for the corresponding year
if year({ORDR.DocDate}) =year(currentdate) and year({ORIN.DocDate})=year(currentdate) then
({ORDR.DocTotal}-{ORDR.TotalExpSC})-{ORIN.DocTotal}
I am trying to add credit returns so that it takes that into account; however, as is, formula is subtracting credit return amount from each line.
How can I modify this formula so that credit return is subtracting only once for the corresponding year?