RE: How to the price of an item?
Hi AKHILESH, Andre and Ludwig,
First thanks AKHILESH for the article it was very useful in helping me understanding the functionality.
So it seems, whatever the setup is whether it was standard setup or for a specific customer of for specific price group (trade agreement) or sales agreement maybe not sure. This method initFromInventTable retrieves the last correct price based on priorities of the setup? correct?
What i want
i want to create a class(service) where i can pass: (any itemId with custAccount) and get the correct salesPrice and NetAmount. So i guess this means i want to get the price of a trade agreement. But i'm now thinking that maybe this specific custAccount doesn't have a special price so then maybe i should get the generic price as well. Is there a function that can help?
Based on the method initFromInventTable i don't know how can i pass the custAccount.
And for the priceDisc class I think it's a little bit complex, can someone guide me?