Thanks. Is there at least some way of not loosing ...
# general
a
Thanks. Is there at least some way of not loosing all the data you entered when saving and throwing an error in the User Event?
n
What's your scenario?
a
Several lines of Adjust Inventory is entered (a large roll (-1) is cut into smaller pieces and the smaller pieces are (several +1s) adjusted back into inventory) and the lot numbers of the smaller pieces must be incremental to the large roll lot number of the first line. If I throw an error if they are not I loose all the lines entered.
You only save at the end because I also make sure the sizes work out to zero (with scrap). That code works and only allows a save at the end when the total is zero.
I'm using SuiteScript 2.0 and the help also says that the 2.0 functions I use are supported in client script (even though they error when you try and use them)