I'm trying to set a default department and class b...
# suitescript
l
I'm trying to set a default department and class based on account type. It is deployed on the Deposit record (Other Deposits sublist). The account and account type are logged but it still not setting any value. I've tried the same script on Vendor Bill and Checks and it worked. Did change the sublist ID. I understand though that they are still different records that might have different behavior. But I'm completely lost here.
b
unlikely that you want to be setting the expense sublist
l
I don't get it. It says 'other' in the browser.
b
id give you line numbers if this was text
try using your ide's find function
search for expense
l
Ohh okay. I forgot to update the rest. Embarrassing. Thanks a lot! It's now working.