Discussions
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"