Metadata-Version: 2.4
Name: trytond_sale_promotion
Version: 8.0.0
Summary: Sale promotions for Tryton
Project-URL: homepage, https://www.tryton.org/
Project-URL: documentation, https://docs.tryton.org/modules-sale-promotion/
Project-URL: changelog, https://docs.tryton.org/modules-sale-promotion/releases.html
Project-URL: forum, https://www.tryton.org/forum
Project-URL: issues, https://bugs.tryton.org/tryton
Project-URL: repository, https://code.tryton.org/tryton
Project-URL: funding, https://www.tryton.org/donate
Author: B2CK SRL
Author-email: Cédric Krier <cedric.krier@b2ck.com>
Maintainer-email: Tryton <foundation@tryton.org>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: sale,tryton
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Office/Business :: Financial :: Point-Of-Sale
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: python-sql
Requires-Dist: simpleeval
Requires-Dist: trytond-company<8.1,>=8.0
Requires-Dist: trytond-currency<8.1,>=8.0
Requires-Dist: trytond-product-price-list<8.1,>=8.0
Requires-Dist: trytond-product<8.1,>=8.0
Requires-Dist: trytond-sale-price-list<8.1,>=8.0
Requires-Dist: trytond-sale<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Requires-Dist: proteus<8.1,>=8.0; extra == 'test'
Requires-Dist: trytond-sale-point<8.1,>=8.0; extra == 'test'
Description-Content-Type: text/x-rst

Sale Promotion
##############

The sale_promotion module allows to apply promotions on sale based on criteria.

The promotion is applied by changing the unit price of the affected lines when
the sale goes into quotation but the unit price is restored when going back to
draft.

Sale Promotion
**************

Each matching *Sale Promotion* is considered for application but only those who
reduces the unit price of the lines are really applied.
The criteria are the fields:

- *Company*: The company should be the same as the sale.
- *Price List*: The sale price list.
- *Start Date*/*End Date*: The period for which the promotion is valid.
- *Amount*: The amount of the sale.
- *Quantity*: The sum quantity of the sale lines which have the same *Unit*.
- *Products*: The list of products to apply the promotion.
- *Categories*: The list of product categories to apply the promotion.

The new unit price is computed by the field *Formula*.
