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.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
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/20171118220446.GS4011%40kei.

Reply via email to