Hi Jtrumpes,
let me explain it again with an example from a hotel.
You have 2 price ranges:
A: If you stay from Monday to Friday you pay 50$ a night
B: If you stay for the weekends, you pay 40$ a night (because all the business travelers are out of town).
Furthermore you have a discount strategy applying to all price ranges:
Discount: "If you stay with us more than three nights, you get 5$ off per night."
Let's say, you come Monday and stay for for nights, than your price would be:
4x50$ (costs per night) - 4x5$ (Discount) = 180 $
After the new release of the artio software we can also book over two time periods:
Let's say, you come Thursday and stay till Saturday:
1x50$ (week nights)+2x40$(weekend prices) = 130$.
Up to this point Artio is calculating correctly.
Now - if you assume to stay from Thursday to Monday, the CORRECT price would be:
1x50$ (week nights) + 3x40$ (weekend prices) - 4x5$Discount = 150$
Artio however calculates 170$, leaving out the discount for staying for nights, because it checks the "Discount condition" per price range (Price range a: only one night and price range B: only three nights).
This problem will arise to a lot of people who have a)different price ranges and b)additional mass or long-term-usage discount.
I hope that this made it clearer.