Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Dropship Purchase Order has Receive Button instead of Mark Shipped Button
I have a requirement to create purchase order from sales order in net suite through c# code.
code i have used to create purchase order:
var createPurchaseOrder = new PurchaseOrder();
createPurchaseOrder.entity = new RecordRef()
{
internalId = "653",
name = "Auto"
//type = RecordType.purchaseOrder,
//typeSpecified = true
};
RecordRef soRecordRef = new RecordRef();
soRecordRef.internalId = soInternalId;
soRecordRef.type = RecordType.salesOrder;
soRecordRef.typeSpecified = true;
createPurchaseOrder.createdFrom = soRecordRef;
RecordRef cFormRecordRef = new RecordRef();
cFormRecordRef.internalId = "106";
createPurchaseOrder.customForm = cFormRecordRef;
RecordRef depRecordRef = new RecordRef();
depRecordRef.internalId = "15";
depRecordRef.name = "01-Cash";
depRecordRef.type = RecordType.department;
depRecordRef.typeSpecified = true;
createPurchaseOrder.department = depRecordRef;
RecordRef locRecordRef = new RecordRef();
locRecordRef.internalId = "1";
locRecordRef.name = "2439";
locRecordRef.type = RecordType.location;
locRecordRef.typeSpecified