View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Show collection (0 pages)
Collections help



Discounts and Promotions, formerly Price Adjustments, defines rules to be applied to invoice and order lines to adjust prices.


This feature is an Openbravo Advanced Feature that is hidden by default, however and as any other advanced feature can be shown in a very easy way.

This advanced feature requires to set as "Active":

Please review the Advanced Features section of this user guide to better understand how a window and a tab of a window can be shown.

How Promotions are applied

Rules are applied to order or invoice lines based on the filters in that rule, for example to a specific Business Partner Category acquiring a concrete set of products during a fixed period of time.

When the line is saved, actual price shown in it does not take into account promotions. Promotions are calculated when the invoice/order is processed or by clicking the Calculate Promotions button.

Bulbgraph.png   Previous to 3.0MP17, Price Adjustments were calculated on the fly, while editing line, so price actual included all applicable adjustments. This behavior has changed because Promotions and Discounts can be extended to implement much more complex rules that attend not to a single line but to all lines in the invoice, being impossible for those ones to be calculated in advance. Only for the Discounts and Promotions of type Price Adjustment, in order to maintain backwards compatibility, this behavior has been kept (from 3.0MP20), though Discount and Promotions lines are not inserted/updated until the whole document is posted or Calculate Promotions button clicked.

Openbravo manages prices in 3 chunks:

Multiple promotions can be chained in cascade, in this case the one applied in 2nd position will use as base the actual price obtained after applying the first one. An alternative mechanism to apply promotions in WebPOS is implemented by Promotions Best Deal Case module.

How Promotions are defined

The main fields to take into account when defining a promotion are:

Price Adjustment

Price Adjustment is the promotion type included by default in Openbravo 3 distribution, it behaves almost in the same way Price Adjustments did before they were extended to Promotions and Discounts.

As opposed to the rest of Promotions and Discounts, in order to maintain backwards compatibility, prices with adjustments are calculated while the order/invoice line is being edited so final price is shown there even before processing it. Unlike it behaved before 3.0MP17, Promotions and Discounts lines are not created until the document is processed. Because of this different behavior between Price Adjustments and the rest of Discounts and Promotions, it is advisable not to use both of them together, so in case Price Adjustments are defined and applied, do not define other types to be applied to the same products.

To define a promotion of Price Adjustment type, follow the indications in the section above for filtering. In the Definition section these are the fields to be taken into account:

Retrieved from ""

This page has been accessed 1,175 times. This page was last modified on 11 February 2014, at 10:38. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.