This message was deleted.
# suitescript
s
This message was deleted.
n
Not without some level of logic around what / when I'm setting the column value. Fairly low effort to create a UE script though, why do you ask, do you have an issue?
j
We have estimated landed cost enabled and we set "landed cost per line" on our item receipt, which is a general setting. We have two subsidiaries that don't use it but they get a warning every time they save an item receipt. We just want to get rid of that, and then we need to uncheck "calculate est.landed cost" on the item receipt line.
That field is checked even though the company doesn't have any landed cost templates. The items do not have "track landed cost" either.
And "calculate est.landed cost" is not accessible in a workflow
n
So basically, check the subsidiary before submit in a user event, and if necessary set that checkbox on each line to false?
j
Yes, I know how to think but not it takes forever when I do it myself, due to lack of good syntax knowledge. But I will give it a try. Thank you!
s
if (subsidiary = something) _.map(transaction.item, line => line.someflag  = false)
👍 1