We are using a RF-Smart. When we approve a Stock C...
# general
l
We are using a RF-Smart. When we approve a Stock Count record, it automatically creates an Inventory Adjustment. In the IA, we have a mandatory field that is not exposed on stock count, so we can't set the field value manually. The IA is being created by a map/reduce script based on the system notes. The stock count approval page looks like a suitelet. We have a user event script that automatically sets the value of the mandatory field on before submit. But UE doesn't get triggered at all. Is there any reason why it's not being triggered?
i
That may be because the IA is created off of a user event script already. Netsuite doesn't allow chained user events so that's probably why it doesn't fire. What you could do is use a workflow to set that field or a scheduled script.
l
Thanks, @Isaac M. But based on the system notes, the IA is created via map reduce script.
i
Interesting. Have you checked the script contexts? Maybe Map/Reduce is turned off in the context menu
l
No context restriction in the script record or within the script itself
i
Gotcha... That's an odd one. You should post this one in the SuiteScript channel.
l
Thanks!
a
@Luis RF-Smart is extremely responsive (they were back in 2017) they were based in Florida, they engaged in remote sessions and fix issues on the spot. Reaching out to them could be an option.
👍 1
f
That's odd, if your field is mandatory, then MR should not be able to create the transaction at all, unless MR is using (maybe) another customform which doesn't include the fields
l
@Fakhri Hilmi maybe ignoreMandatoryFields is set to true?
💯 1