Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
change order status php
Hi,
I'm trying to change my po order status using php toolkit of suitetalk, but my code isn't working.
below is my code
$POId = 12321;
$PORecord = new nsComplexObject('PurchaseOrder');
$POFields = array(
'internalId' => $POId,
'orderStatus' => '_pendingReceipt');
$PORecord -> setFields($POFields);
$updateResponse = $myNSclient->update($PORecord);
if ($updateResponse->isSuccess) {
echo 'Update Successful';
}
else{
echo 'Update Unsuccessful';
}
any help would be much appreciated.
0