Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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