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.
Changing Inventory Item Price | PHP
I have yet to successfully update any of the pricing for inventory items in PHP.
So far I think it has to do with updating the pricing matrix, but finding out how to do that has been complicated. Here is what I have so far, that doesn't work[PHP]
$itemUpdate = new nsComplexObject("InventoryItem");
$item['internalId'] = $internalId;
$item['itemId'] = $pc;
///*
$item['pricingMatrix'] = array(
'pricing' => array(
array(
'price' => $price
)
)
);
//*/
$itemUpdate->setFields($item);
[/PHP]
Anyone have a working example or know what is wrong?
So far I think it has to do with updating the pricing matrix, but finding out how to do that has been complicated. Here is what I have so far, that doesn't work[PHP]
$itemUpdate = new nsComplexObject("InventoryItem");
$item['internalId'] = $internalId;
$item['itemId'] = $pc;
///*
$item['pricingMatrix'] = array(
'pricing' => array(
array(
'price' => $price
)
)
);
//*/
$itemUpdate->setFields($item);
[/PHP]
Anyone have a working example or know what is wrong?
0