4 weeks ago
I've written a process to update the pricing for an item and uses a loop to go through any existing UoM's establishing if there is an entry present in ITM3/9 for the unit, where this is not the case the UoM entry is added along with the price.
Looping around the lines in "oItems.PriceList.UoMPrices" and on finding the required UoM updating the price or if not found adding a new line.
If there are no additional UoM's present for the item as the unit is the same as the default UoM for the items UoM Group this again works fine too, as "oItems.PriceList.Price" works fine to update the price.
The issue comes where the default pricing unit differs from the pricing unit, but there are no other UoM's with prices. The UI allows the entry of a price for that UoM however, I can't seem to get this to process via the DI as I'm getting the error.......
" 1470000147 - Invalid UoM; specify a purchase or sales UoM from ITM3 [ITM9.UomEntry][line: 1]"
Looking at the "oItems.PriceList" property, there's no object there to indicate the UoM, and looking at the table in SQL there is an entry in ITM9 but seemingly updating via the DI inside the record loop is failing when it comes to the "oItems.Update" process.
Does anyone have any ideas, or have hit this themselves?
Please have a looka t below video, maybe it will help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.