Sales Order Line lets Price under the Price Limit when updating

Description

Set the Enforce Price Limit to selected in Standard Price List.
Create a new Sales Order with Standard Price List
Add new line with product Azalea and change Price 23.75 to 10.
Shows error: Under Limit Price wich is correct.
Leave the original Price 23.75, save and close window.
Open Sales Order again and search for the recent Order, go to the the line just created and modify Price to 10
Shows no error. Incorrect. Lets to update wrong Price.
See: CallOutOrder.amt ctx variable EnforcePriceLimit not setted when updating.
See CallOutOrder.priceList ctx variable EnforcePriceLimit only setted when product changes.

Environment

WebUI

Attachments

4

Activity

Carlos Ruiz 
January 24, 2014 at 2:56 AM

Last commit opened a different bug:
https://groups.google.com/d/msg/idempiere-es/-1L9PQi9geU/AfpD7ombtiYJ

Reopening this to research what the last commit was trying to solve and implement a different solution
https://bitbucket.org/idempiere/idempiere/commits/dfc4781

Jesus Garcia 
December 12, 2013 at 8:48 PM

Please consider this new setting. Regards.
IDEMPIERE-1574-Patch-3-20131212_BeforeSaveFix.patch

Jesus Garcia 
December 3, 2013 at 9:43 PM

Code patch to enforce validation in before save.

Jesus Garcia 
December 3, 2013 at 9:29 PM

Code patch solving the issue

Jesus Garcia 
December 3, 2013 at 5:28 PM

The same issue is present in Sales Invoice Line.

Fixed

Details

Assignee

Reporter

Labels

Components

Priority

Created November 27, 2013 at 10:50 PM
Updated June 6, 2014 at 2:27 PM
Resolved January 24, 2014 at 9:57 PM