I am on a credit memo record, and I want to apply a negative journal line to that credit memo, While I can see a lot of items in the apply sublist in UI, when I do a getLineCount in script, I get zero, If I am not getting any, I cannot apply any? Do you know if these lines can be applied via suitescript?
e
ec
01/09/2024, 5:43 PM
Do you already have the customer and sub selected?
c
Craig Haroldson
01/09/2024, 6:01 PM
Is this in a client script? User event? Something else (SL, SS, MR)?
Craig Haroldson
01/09/2024, 6:03 PM
If you're creating or editing the record using something other than CS/UE, try record.load (or create) with the isDynamic = true parameter.
t
tuli
01/10/2024, 12:26 PM
Yeah, I had the customer selected, I was testing this on chrome console.