Is there a native way to prevent the ability to cr...
# administration
t
Is there a native way to prevent the ability to create an Item Fulfillment from a Sales Order? For example, via a workflow if a certain field is set? I’d like to prevent fulfillment at least via the UI and the Bulk Fulfill Orders page contexts, but hoping there’s just a simple global setting.
s
1. You could pretty easily remove the fulfill button in the UI with a workflow. I'm not sure if you can restrict the bulk fulfill orders with permissions or anything. 2 You could alternatively script the item fulfillment creation with a UserEvent script and reject in the the before submit if the context is UserInterface. Not sure if that method is doable with workflow, I use code more than workflow. EDIT- I also don't know if the second method stops the bulk fulfill page, as it is likely a background job NS fires to do the work
p
can you split the permissions with the role that can fulfill the order?
l
In theory you could remove the permission to create IF's from the user role, then create a script that adds a new "Fulfill" button only when you criteria is met. Then when this button is clicked, the script creates the IF - not sure if this bit is doable, so maybe the button ticks a (hidden) checkbox on the SO, and this can trigger a AfterSubmit script to create the SO if this box is ticked.
p
or you could use a scheduled script to trigger the fulfillment
t
Thanks! These all seem a little overly complex for the scope. We are going to go with a less administrative method—the fulfillment specialist can just filter the bulk fulfill orders page to exclude orders that have our new “do not fulfill” custom checkbox checked.