Files
tryton/modules/sale_extra
Cédric Krier 1050494552 Use binary version of psycopg for tests
(grafted from 844c3d391796ffe89afce54d12f6bf5f4aa8ef4e)

--HG--
branch : 7.0
2026-07-17 22:16:19 +02:00
..
2024-02-18 18:35:54 +01:00
…
2024-09-16 20:25:40 +02:00
2024-04-17 12:36:44 +02:00
…
…
…
2024-09-16 20:25:48 +02:00

Sale Extra
##########

The sale_extra module allows to add extra line on sale based on criteria.

The extra products are added when the sale goes into quotation but the added
lines can be modified when going back to draft.

The criteria are defined by the *Sale Extras* of the *Price List*.

Sale Extra
**********

Each matching *Sale Extra* is evaluated to add an extra line.
The criteria are the fields:

- *Price List*
- *Start/End Date*
- *Sale Amount*: If untaxed sale amount is greater or equal
  (in the price list company currency).

Sale Extra Line
***************

Once a *Sale Extra* is selected, its first line that match the line's criteria
is used to setup the extra line.
The criteria are the fields:

- *Sale Amount*: If the untaxed sale amount is greater or equal
  (in the price list company currency).

The sale line is setup using the fields:

- *Product*: The product to use on the sale line.
- *Quantity*: The quantity to set on the sale line (in the *Unit*).
- *Unit*: The unit of measure to use.
- *Free*: Set unit price of the sale line to zero, otherwise to the sale price.