jaime buccheri
jaime buccheri

Reputation: 1

Transforming PO to Item Receipt via SuiteScript 2.0

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

Answers (1)

dailyinvention
dailyinvention

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:

image in NetSuite documentation stating that the transform does not work for dropship purchase orders

Upvotes: 0

Related Questions