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!
Creating new items with Unit Types
This is support case 606631
In the code below, I am creating a new item.
I send the cost, price, weight information where the purchase unit is 1 and the sales unit is 6, the cost, price and weight are all multiplied by 6.
However, if I run the same job again, there is no multiplication. Should I set the units in one call and then follow it up with cost, price and weight?
Dim currentItem As InventoryItem = New InventoryItem()
currentItem.cost = Row.ProductCost
Dim pm As PricingMatrix = New PricingMatrix()
pm.pricing = New Pricing(1) {}
pm.pricing(0) = New Pricing()
pm.pricing(0).priceLevel = New RecordRef()
pm.pricing(0).priceLevel.internalId = "1"
0