I have a custom field on an Item Fulfillment that references a Journal Entry. I would like to prevent deletion of the Item Fulfillment if there is a journal entry attached. Is there an easy way to make the entry a dependent of the IF?
w
wbermudo
10/21/2021, 10:25 PM
Before Submit UE that check:
if (context.Type === ‘delete’) throw error.create(‘JE Ref Exist’);
n
Nicholas Penree
10/21/2021, 10:33 PM
I was hoping to avoid showing the user a suitescript error page
Nicholas Penree
10/21/2021, 10:33 PM
I would rather show them the dependent records error