Am Samstag, 18. November 2017, 23:04:46 CET schrieb Cédric Krier:
> On 2017-11-18 22:37, Christophe (.net) wrote:
> > Le 11/11/2017 à 11:18, Cédric Krier a écrit :
> > > I want to be clear about the design. It was done with the idea to
> > > apply on a set of line only one promotion. This way promotion does not
> > > accumulate (there is a unique field 'promotion' on sale line).
> > > I think we could maybe change the test to decide line by line if the
> > > promotion applied instead of having a unique test on all lines.
> > > 
> > > But the decision is to decide how to apply such kind of promotions:
> > >      - 15% if quantity of product is greater than 10kg.
> > >      - 10% for products of category "Fruits".
> > > 
> > > So now we have a sale with:
> > >      - 5kg of potatoes at 10€/kg
> > >      - 5kg of apples at 15€/kg
> > >      - 3u of melons at 20€/u
> > > 
> > > Should the sale be:
> > > 
> > > A)
> > > 
> > >      - potatoes: 8.5€/kg
> > >      - apples: 13.5€/kg
> > >      - melons: 18€/u
> > > 
> > > B)
> > > 
> > >      - potatoes: 8.5€/kg
> > >      - apples: 12.75€/kg
> > >      - melons: 18€/u
> > > 
> > > C)
> > > 
> > >      - potatoes: 8.5€/kg
> > >      - apples: 12.75€/kg
> > >      - melons: 20€/u
> > > 
> > > For now, we have option C implemented, but maybe we should implement B.
> > 
> > For case B, if it is sold 15kg of apples you think to apply both
> > promotions at once?
> 
> I do not understand the question. In the example of case B, both
> promotions are already applied.

But why? apples is less than 10kg, so only 10% for category 'fruits' should 
apply.

In general one would expect that all matching conditions are applied. So if 
15kg apples are sold, I would expect to see 11,25€/kg.

Cheers
Axel

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/2613359.ZzDFa6jg6C%40t520.axxite.internal.

Reply via email to