Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051700Retail ModulesWeb POSpublic2023-02-26 18:492023-03-07 13:31
rqueralta 
rqueralta 
normalmajorhave not tried
closedfixed 
5
 
RR23Q2 
No
0051700: Being able to define a maximum price for Products
Have the possibility to define a Maximum Price per product that will block the price change in case of adding bigger amounts than the defined one.
Create a new field in the Price List window, Product Price tab named “Max. Price”.

This field will not be mandatory.

If a Max. Price is entered for a product in a given Price List, it should not be possible to sale it for a price about that maximum price.

Price List is the correct place to put this feature in place, as it will be available for any kind of product and Price List also include other information as currency and whether VAT is included in that price or not.
No tags attached.
Issue History
2023-02-26 18:49rqueraltaNew Issue
2023-02-26 18:49rqueraltaAssigned To => Retail
2023-02-26 18:49rqueraltaTriggers an Emergency Pack => No
2023-02-26 18:49rqueraltaAssigned ToRetail => rqueralta
2023-02-26 18:50rqueraltaStatusnew => scheduled
2023-02-28 21:19hgbotNote Added: 0147137
2023-03-07 13:31hgbotResolutionopen => fixed
2023-03-07 13:31hgbotStatusscheduled => closed
2023-03-07 13:31hgbotNote Added: 0147326
2023-03-07 13:31hgbotFixed in Version => RR23Q2
2023-03-07 13:31hgbotNote Added: 0147327

Notes
(0147137)
hgbot   
2023-02-28 21:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1081 [^]
(0147326)
hgbot   
2023-03-07 13:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1081 [^]
(0147327)
hgbot   
2023-03-07 13:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: bc2a3afb9bb0e10de3c3780553e12ef841d34ef4
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 07-03-2023 12:31:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/bc2a3afb9bb0e10de3c3780553e12ef841d34ef4 [^]

Fixed ISSUE-51700: Being able to define a maximum price for Products
Have the possibility to define a Maximum Price per product that will block the price change in case of adding bigger amounts than the defined one.

---
A src-db/database/model/modifiedTables/M_PRODUCTPRICE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/posterminal/master/ProductProperties.java
M web-test/model/business-object/ticket/actions/SetLinePrice-actionPreparation.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/SetLinePrice.js
M web/org.openbravo.retail.posterminal/js/model/product.js
---