Reputation: 1
I'm trying to transform a PO to an "itemreceipt". This code keeps crashing and I am getting the error message:
INVALID_INITIALIZE_REF: You can not initialize itemreceipt: invalid reference.
var item_recepit = record.transform({
fromType: record.Type.PURCHASE_ORDER,
fromId: 59669735,
toType: record.Type.ITEM_RECEIPT
});
Upvotes: 0
Views: 1172
Reputation: 21
You can only do transforms from a Purchase Order to Item Receipt if the Purchase Order is a Special Order Purchase Order and not a Drop Ship Purchase Order. From NetSuite's documentation:
Upvotes: 0