Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041128Retail ModulesWeb POSpublic2019-06-17 13:292019-07-15 08:57
guillermogil 
guilleaer 
immediatemajoralways
closedfixed 
5
 
RR19Q1.2RR19Q1.2 
guilleaer
Production - Confirmed Stable
2019-12-16
RR19Q1
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/331aa4146a49 [^]
No
0041128: QtyDelivered has changed its representation on DB
QtyDelivered has changed its representation on DB and now is saved with decimal values and before 19Q1 it did not have decimal values at database level.
As an example:
On 18Q4 qtyDelivered at DB level was 1
On 19Q1 qtyDelivered at DB level is 1.0

As the representation of the value have changed some third party integration could be broken.

It will happen with every column saved with a "BigDecimal.valueof"
Previously it was a "new BigDecimal"

It will be needed to check OrderLoader to review all the properties that have changed.
We've identified QtyDelivered column but it is needed to check for more.
Create a ticket on WebPOS and check QtyDelivered column.
Modify:
BigDecimal.valueOf(jsonOrderLine.getDouble("XXX"))

To:
new BigDecimal(jsonOrderLine.getString("XXX"))

See diff attached.
No tags attached.
blocks defect 0041103 closed guilleaer QtyDelivered has changed its representation on DB 
Issue History
2019-06-19 16:05migueldejuanaTypedefect => backport
2019-06-19 16:05migueldejuanaTarget Version => RR19Q1.2
2019-06-19 16:09hgbotCheckin
2019-06-19 16:09hgbotNote Added: 0112898
2019-06-19 16:09hgbotStatusscheduled => resolved
2019-06-19 16:09hgbotResolutionopen => fixed
2019-06-19 16:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6bc44e82d318c0563a74a88db91941db7154bbb5 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1.2/org.openbravo.retail.posterminal/rev/4d42fec1c1534ef9b4b8a726601a3ca555331dde [^]
2019-06-19 16:13hgbotCheckin
2019-06-19 16:13hgbotNote Added: 0112901
2019-07-08 13:29guilleaerReview Assigned To => guilleaer
2019-07-08 13:29guilleaerStatusresolved => closed
2019-07-08 13:29guilleaerFixed in Version => RR19Q1.2
2019-07-15 08:57hgbotCheckin
2019-07-15 08:57hgbotNote Added: 0113347

Notes
(0112898)
hgbot   
2019-06-19 16:09   
Repository: retail/backports/3.0RR19Q1.2/org.openbravo.retail.posterminal
Changeset: 4d42fec1c1534ef9b4b8a726601a3ca555331dde
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Jun 19 16:09:36 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1.2/org.openbravo.retail.posterminal/rev/4d42fec1c1534ef9b4b8a726601a3ca555331dde [^]

fixed Issue 41128: Use new instead of value of for qtyDelivered

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0112901)
hgbot   
2019-06-19 16:13   
Repository: retail/backports/3.0RR19Q1.2/pi-mobile
Changeset: b3a0611648539264af58d07ca41612b9c096063e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Jun 19 16:12:58 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1.2/pi-mobile/rev/b3a0611648539264af58d07ca41612b9c096063e [^]

Related to issue 41128: Adapt test

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/productlockeddiscontinued/VerifyProductDiscontinuedWithoutStock.java
---
(0113347)
hgbot   
2019-07-15 08:57   
Repository: tools/automation/pi-mobile
Changeset: b3a0611648539264af58d07ca41612b9c096063e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Jun 19 16:12:58 2019 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b3a0611648539264af58d07ca41612b9c096063e [^]

Related to issue 41128: Adapt test

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/productlockeddiscontinued/VerifyProductDiscontinuedWithoutStock.java
---