Hi Community,
I’m using a Generic Inquiry (GI) and I’ve written a formula to add slight randomization to a calculated amount using the last 3 digits of CustomerID. The formula works fine, except when Quantity = -1 in those cases, I want to skip the random cents and keep the values as-is.
=Switch( [ARTran.Qty] = -1, -1, Round( ([ARTran.Qty] * IIf([ARTran.DrCr] = 'D', -1, 1) * 2) + (((CInt(Right(CStr([ARTran.CustomerID]), 3)) % 99) + 1) / 100.0), 2 ))
Can you any one guide please