SBarnes wrote:I had though this allowed the option of customising how Jiwa got to the final price which I had always thought to be a good design feature.
That would only be possible if we discontinued the scripted pricing - which is one of the reasons why we wanted to retire scripted pricing. If we did remove scripted pricing, the equivalent of scripted pricing could be achieved by plugins - but you'd need to add handlers in many different business logic objects to achieve that (anything getting a price - like sales orders, sales quotes, service jobs and so on). That wouldn't be ideal - as you're now not using a nice centralised point to get the price, and you don't know what 3rd party bits of logic are getting prices from the price scheme object currently.
In reality, the current methodology of defining price elements via the price schemes system simply provides a list of stored procs - and if used, also scripted prices - which are executed in order as defined by the price scheme - and as each price scheme has the ability to define the order of price elements to be examined and if the cheapest price is to always be used, so if you wanted to alter the how the price is determined you do that by either changing the price element in the priority order, or changing the cheapest price option.
If that's not flexible enough (and I don't think we've
ever been accused of that when it comes to price determination -
it's one of the things our competitors still have not managed to match) - then we can perhaps add some events to the price scheme object to allow plugins to override what price should be determined. There would be a
performance penalty for that if the cheapest price option is off for the price scheme, as we'd need to call every stored proc, every pricing script in the price scheme and not trip out once a price is obtained from the ordered list of price elements - and then raise an event so a plugin handler could make it's own price determination based on all the available prices.
If it's important for you to have this, let us know and we'll consider backlogging an improvement to allow plugins to override the pricing logic in a neat, centralised fashion.
Mike