Does anyone know if it is possible to link a cash ...
# suitescript
e
Does anyone know if it is possible to link a cash sale to a sales order that was created with webservices/suitetalk? Setting
createdfrom
doesn't stick. For them to be linked/related, does the cash sale need to be created via record.transform?
m
AFAIK you can only do this with record.transform. Iv tried before in suitescript and it errors to save
e
I'm not getting errors, it just ignores the field. I've tried setting
createdfrom
in beforeSubmit and still nothing. Thanks for confirming
s
as you know, SuiteScript is often silent when it otherwise probably should throw an error. To your question, I don't recall ever being able to set
createdfrom
- as mayerlench mentioned, I think that's only set by the platform. One option is to just add a custom field to hold your link?
e
I thought about that, but since I am not an accountant I am not sure how that affects reporting
I'm not sure if NS does something GL/reporting wise when the record is transformed
s
just having a link (i.e. custom field of type list/record) shouldn't effect anything.... however if lacking the
createdfrom
is your concern then I'm not sure
e
yeah, that's what I mean
s
aye,
transform
can do magic behind the scenes