Join Slack
Powered by
Is there a way to script adding an item (in this c...
# suitescript
p
pen one
01/26/2021, 5:43 PM
Is there a way to script adding an item (in this case a markup item) on every invoice and add it to the last line?
m
Milcho Dimkov
01/26/2021, 6:10 PM
yes, you just need to write a user event script for that - the script will check if the item already exists and, if not, will add it on either
beforeSubmit
or
afterSubmit
p
pen one
01/26/2021, 6:20 PM
thanks!
s
stalbert
01/26/2021, 6:33 PM
I'd recommend doing this in a background script unless it really must happen in real time at the moment the user saves the invoice.
m
michoel
01/26/2021, 10:44 PM
If you use a user event, do this in beforeSubmit, otherwise you are doubling up on database saves
Open in Slack
Previous
Next