Intercompany Transfer Orders: I have a User Event...
# suitescript
e
Intercompany Transfer Orders: I have a User Event beforeLoad inspecting newRecord.type - I load two transactions, on one it appears as transferorder, the other intercompanytransferorder, even though the UI “label” of the transaction type on top of the form is “Intercompany Transfer Order” on both transactions. Is there any way in a UE script to identify an I/C TO? Shall I use the “multisubsidiary” field (which apparently is only available in search and not on the record itself). Which further complicates things, because I don’t know which type to use because of the above issue (unless I go with “transaction”). Is it reliable to leverage the value found in the “tosubsidiary” to determine if this is a true intercompany transaction?
k
I would just use recorcType and check if that values is equal to "intercompanytransferorder"
e
I would, too, but it’s inaccurate. I have a transaction that looks like an I/C TO, smells like an I/C TO, quacks like… but for some reason the type in beforeLoad
newRecord.type == record.Type.TRANSFER_ORDER
and not “i/c” for some reason!