Notes |
|
(0059830)
|
hgbot
|
2013-07-03 10:55
|
|
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 43483bd5ab48e7373019371881f5e0704f852832
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jul 03 10:54:14 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/43483bd5ab48e7373019371881f5e0704f852832 [^]
Fixed issue 24145. Discretionary discounts with defined amounts will be applied for the receipt total amount instead of the discount total amount to avoid a negative total amount.
---
M web/org.openbravo.retail.discounts/js/promotion-manual.js
---
|
|
|
(0059831)
|
hgbot
|
2013-07-03 10:59
|
|
|
|
|
The solution finally adopted is the following:
- Discretionary discounts manually applied for an amount greater than the total of the order will be changed so that the discounted amount is the same as the total amount, so that the final total amount of the order is zero, not negative.
- Other types of discounts (ie. automatically applied discounts) are not changed. If these discounts produce a negative amount, this is considered a configuration error (this should only happen for example if a discount defined for a product has a discounted amount which is greater than the product price. This normally should never happen).
- In any case, a validation which prevents the user from paying an order with a negative amount has been added. This will prevent the user from mistakenly generating wrong orders in case of an incorrect configuration of the system. |
|
|
(0059864)
|
hgbot
|
2013-07-04 16:41
|
|
|
|
|
|