Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038880Openbravo ERP02. Master data managementpublic2018-06-19 19:272018-07-04 15:53
gsuarez 
collazoandy4 
immediatemajoralways
closedfixed 
5
pi 
3.0PR18Q1.43.0PR18Q1.4 
Sandrahuguet
Google Chrome
Core
Production - Confirmed Stable
2017-09-07
3.0PR17Q4
https://code.openbravo.com/erp/devel/pi/rev/9ba0cfebdf14fb6bf6dec4a657674975d16373a2 [^]
Yes
0038880: the process "Create price list" increases the product price incrementally
Run several times "Create price list" only calculates the price of one product and the other leaves you the same. That is, applying the process many times over the same version, modifies the price of one of the products incrementally.

I can send a video if needed
1. create price list
2. activate checks: default,Sales price list and Price ioncludes Tax
3. create price list version:
                             3.1 create Price list schema
                             3.2 create two lines with two different products
                                 that belong to the same product category
                             3.3 set Unit price discount% = -50
4. assign the previous Price list schema to the version
5. set base version (Default)the version must be of purchase, without activated checks.
6.  click "Create price list" and acept
7.  create the price list well
8.  click again on the button and this modify the price of one of the products
9.  click again on the button
10. the process modifies again the price of one of the products
attached video
No tags attached.
blocks defect 0038792 closed collazoandy4 the process "Create price list" increases the product price incrementally 
Issue History
2018-07-03 10:29SandrahuguetTypedefect => backport
2018-07-03 10:29SandrahuguetTarget Version => 3.0PR18Q1.4
2018-07-04 15:50hgbotCheckin
2018-07-04 15:50hgbotNote Added: 0105584
2018-07-04 15:50hgbotStatusscheduled => resolved
2018-07-04 15:50hgbotResolutionopen => fixed
2018-07-04 15:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q1.4/rev/360c01da1b1d76f49a35df3a0157e4ac34ee3be1 [^]
2018-07-04 15:50hgbotCheckin
2018-07-04 15:50hgbotNote Added: 0105585
2018-07-04 15:53SandrahuguetReview Assigned To => Sandrahuguet
2018-07-04 15:53SandrahuguetNote Added: 0105589
2018-07-04 15:53SandrahuguetStatusresolved => closed
2018-07-04 15:53SandrahuguetFixed in Version => 3.0PR18Q1.4

Notes
(0105584)
hgbot   
2018-07-04 15:50   
Repository: erp/backports/3.0PR18Q1.4
Changeset: 360c01da1b1d76f49a35df3a0157e4ac34ee3be1
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Mon Jun 25 15:28:36 2018 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR18Q1.4/rev/360c01da1b1d76f49a35df3a0157e4ac34ee3be1 [^]

Fixed issue 38880:The process "Create price list" increases the product price

The process Create Price List was increasing the product price when the price list
schema have two or more lines at product level.

Now the price list schema lines defined at product level is take into account in
the Create Price List process.

A new JUnit test was added to properly check this behavior.

A new preference was created to calculate the product price in a hierarchical way

---
M src-db/database/model/functions/M_PRICELIST_CREATE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-test/src/org/openbravo/test/pricelist/PriceListTest.java
M src-test/src/org/openbravo/test/pricelist/data/PriceListTestConstants.java
M src-test/src/org/openbravo/test/pricelist/data/PriceListTestData.java
A src-test/src/org/openbravo/test/pricelist/data/PriceListTestData17.java
---
(0105585)
hgbot   
2018-07-04 15:50   
Repository: erp/backports/3.0PR18Q1.4
Changeset: 4369d782a22b77e8aa662e3ef269f4550c8283c6
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Jul 04 09:22:23 2018 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR18Q1.4/rev/4369d782a22b77e8aa662e3ef269f4550c8283c6 [^]

related to issue 38880 added modulescript with default value of preference

added modulescript with default value of hierarchical price list
preference depends on the openbravo version.

---
A src-util/modulescript/build/classes/org/openbravo/modulescript/HierarchicalPriceListPreference.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/HierarchicalPriceListPreferenceData.class
A src-util/modulescript/src/org/openbravo/modulescript/HierarchicalPriceListPreference.java
A src-util/modulescript/src/org/openbravo/modulescript/HierarchicalPriceListPreference_data.xsql
---
(0105589)
Sandrahuguet   
2018-07-04 15:53   
Code review + testing OK