On 2017-11-10 17:52, Cédric Krier wrote:
> On 2017-11-10 17:15, Christophe (.net) wrote:
> > >> 2) Another point that stems from the first one, it is necessary that ALL
> > >> the lines having an applicable promotion causes a reduction of the price
> > >> otherwise nothing is applied even if certain lines could have a
> > >> promotion, it's very restrictive in real life, no ?
> > >
> > > What are you proposing to decide if a promotion applies or not?
> >
> > For example the display of the 2 fields (before and after promotion) or
> > a flag.
>
> I do not understand. How that makes the system decide to change the
> price or not?
>
> > > How would you choose between two promotions?
> >
> > Perhaps a priority in promotions and take the first that matches.
>
> Why limiting to a single promotion?
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.
--
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/20171111101832.GO9681%40kei.