is there a way to lock a sales order if there is a...
# suitescript
l
is there a way to lock a sales order if there is an item fulfillment attached to it
n
i would suggest using before load event with edit context. Throw an error if the status if Pending Billing, Partially Fulfilled, Partially Fulfilled/Pending Billing.
Or to ensure that any Picked or Packed IF is also included, search for any item fulfillment where created form is the current SO. If the results are found, throw an error on Edit mode.
m
You can also lock via a workflow, which will show a lock icon in the UI in view mode