Hi I am creating intercompany journal and cannot g...
# suitescript
d
Hi I am creating intercompany journal and cannot get class onto the output journal. Even tho I set class, and i am able to read it from the newrecord object and print the newrecord.toJSON(). Once I save the new record class is not set on the journal. I am however able to set it manually afterwards. Looking at the documentation for the record class is not even on the head, but using the GUI I only see it on the head and not in the sublist. What gives?
m
Looking at the records browser, a record type of
advintercompanyjournalentry
doesn’t have a
class
field at the header, however,
intercompanyjournalentry
does have
class
defined at the header. Are you comparing the incorrect transaction types?
Perhaps you’re just using the wrong type in your code.
d
oh…
I had no idea there were several. perhaps this is why. Thanks!
message: "Legacy intercompany journal entries are not available in your account. Use advanced intercompany journal entries instead."
It does not look like I am able to use them. @Mike Robbins but thanks for the tip. I will try to figure out why I am unable to set it line level on the advintercompanyjournalentry.
s
fyi, I think
class
is a property on the AICJE
line
sublist.
BUT, in some cases it is read only. I've ran into issues on IIRC Revenue Element records where class is scriptable but cannot be set. (the system sets it - can read from script but setting has no effect)
d
Very curious. I am able to set it after the record has been created using either submitfields or load and set value. But in order to be able to save the record without it I cannot have class mandatory in the preferred journal input form which some administrator had set in our environment. Could it be NetSuite who cleanse the property off the submission before creating the record?