Check the item type in your script before you set ...
# suitescript
e
Check the item type in your script before you set the quantity and invert it, or if you never have negative quantity, then just always set the absolute value of the quantity
👍 1