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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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