Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
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. Register now
import sales order via web services
Hi I am trying to import sales orders through web services without billing the customer. When I run the following code it is billing my customers again that have a default CC assigned.
// create array of fields
$purchaseOrderFields = array (
'entity' => array ('internalId' => $netsuiteId),
'account' => array ('internalId' => 131),
'ccApproved' => 'T',
'customForm' => array ('internalId'=> 95),
'tranDate' => $date,
'itemList' => array (
'item' => array (
array( 'item' => array('internalId' => $leadtypeId),
'quantity' => 1,
'rate' =>$rate,
'taxCode' =>$taxcode))
)
);
// create purchase order record
$purchaseOrder = new nsComplexObject('CashSale');
// set fields
$purchaseOrder->setFields($purchaseOrderFields);
// this will create a purchase order with 1 line item