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?

Regard
--
Christophe CRIER
Adiczion - http://adiczion.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/6e1798b4-1c87-bae5-e353-c6bf77ee980e%40adiczion.net.

Reply via email to