Morning all, I have a script design/process questi...
# suitescript
j
Morning all, I have a script design/process question. Past developers have created scripts which handle a gross profit calculation which sets a value at the end which helps determine sales reps commissions. This is done with a few UE after submit events. I have recently been tasked to create a monster of volume discounts/ contract rebates/ net off invoice / marketing rebates and a few others (all unique to customers and items or a combination) which I'm handling in a few custom records which are created in a map/reduce tasked by an after submit event. Then during the reduce stage the sales order is loaded back up to set the overarching values summed off the custom records. The problem, these new values should also be added to the after submit gross profit calculation. My Question: I know that scripts won't trigger scripts, but what is the best way to get scripts to rerun on records? Or is this something I'll need to completely refactor to have the UE scripts added into the map/reduce? Thanks in advance.
e
What do you mean by
scripts won't trigger scripts
? Your M/R will trigger a UE. The only scripts that don't chain together are User Events.
j
@erictgrubaugh, Thanks. I guess I made a poor assumption. That makes my build SOO much easier. 🎉