c# - Looking for patterns/best practices for calculating complex discounts -
I am developing a value calculation engine. I have seen everything and there is nothing in it that really fits Which we should However, now I'm looking at how to implement specific prices and / or exemptions. I do not want to present a rule based engine for my end users because they will not get it. For example, when you order an ItemX, the price is $ 30. But ItemX costs $ 20 with ItemY or when five itemX items are ordered, after each, only $ 15.
Where to start from any thoughts? How to take it? Perhaps some (open source) examples of such applications in which these practices are? Any one (technical) pattern I could use? Preferably thanks in advance in C #!
Find a decorator pattern to look at similar situation and become a good option
< P> Check out:Cheers
In addition, I am also checking for a straight type pattern that is looking to apply the discount:
Comments
Post a Comment