Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040353 | Modules | FIFO Costing Algorithm | public | 2019-03-11 18:45 | 2019-03-22 09:28 |
|
Reporter | ngarcia | |
Assigned To | AtulOpenbravo | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | dmiguelez |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0040353: Costing Background process finishes with error in 18Q4 as the module has not been adapted to new Hibernate version |
Description | Costing Background process finishes with error in 18Q4 as the module has not been adapted to new Hibernate version |
Steps To Reproduce | Having some transactions whose cost is pending to be calculated launch the Costing Background process and check it finishes with the following error:
org.openbravo.model.common.plm.Product$HibernateProxy$3txKOgXY cannot be cast to java.base/java.lang.String
After fixing the code of that part, the next error shown was:
org.openbravo.model.common.enterprise.Organization$HibernateProxy$Fs9TMriZ cannot be cast to java.base/java.lang.String |
Proposed Solution | Add the .getId() function to the objects pass through in the setNamedParameter functions such as
inputQry.setNamedParameter("client", costOrg.getClient());
inputQry.setNamedParameter("org", costOrg);
outputQry.setNamedParameter("product", product);
|
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | feature request | 0037064 | | closed | caristu | Openbravo ERP | upgrade hibernate to 5.3.2 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-03-11 18:45 | ngarcia | New Issue | |
2019-03-11 18:45 | ngarcia | Assigned To | => Triage Finance |
2019-03-11 18:45 | ngarcia | Resolution time | => 1554069600 |
2019-03-11 18:45 | ngarcia | Relationship added | caused by 0037064 |
2019-03-11 18:45 | ngarcia | Issue Monitored: networkb | |
2019-03-12 08:17 | Sandrahuguet | Assigned To | Triage Finance => AtulOpenbravo |
2019-03-12 15:17 | AtulOpenbravo | Status | new => scheduled |
2019-03-13 09:59 | AtulOpenbravo | Note Added: 0110398 | |
2019-03-22 09:27 | hgbot | Checkin | |
2019-03-22 09:27 | hgbot | Note Added: 0110563 | |
2019-03-22 09:27 | hgbot | Status | scheduled => resolved |
2019-03-22 09:27 | hgbot | Resolution | open => fixed |
2019-03-22 09:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.costing.algorithm.fifo/rev/2a2221958894c456e3d8fd0ed21a8aa34f7218e0 [^] |
2019-03-22 09:27 | hgbot | Checkin | |
2019-03-22 09:27 | hgbot | Note Added: 0110564 | |
2019-03-22 09:28 | dmiguelez | Review Assigned To | => dmiguelez |
2019-03-22 09:28 | dmiguelez | Note Added: 0110565 | |
2019-03-22 09:28 | dmiguelez | Status | resolved => closed |
Notes |
|
|
Test Plan
- Install FIFO Costing Algorithm module.
- Make sure that there is no transaction whose cost is not yet calculated.
- Navigate to Costing Rule, create one for FIFO Costing Algorithm for F&B US Inc organization.
- Validate rule.
- Create a new Product. Set Purchase Price and Sales Price to it.
- Add a Goods Receipt for above product in F&B US Inc Organization.
- Add a Goods Shipment for above product in F&B US Inc Organization.
- Run Costing Backgroung process and realize that process is completed successfully and no error were logged. |
|
|
(0110563)
|
hgbot
|
2019-03-22 09:27
|
|
Repository: erp/pmods/org.openbravo.costing.algorithm.fifo
Changeset: 2a2221958894c456e3d8fd0ed21a8aa34f7218e0
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Mar 13 14:22:44 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.costing.algorithm.fifo/rev/2a2221958894c456e3d8fd0ed21a8aa34f7218e0 [^]
Fixes Issue 40353:Costing Background process finishes with error
in 18Q4 as the module has not been adapted to new Hibernate version
After the hibernate upgrade, the correct parameter value should be
provided i.e the business object ID
---
M src/org/openbravo/costing/algorithm/fifo/FifoAlgorithm.java
---
|
|
|
(0110564)
|
hgbot
|
2019-03-22 09:27
|
|
|
|
|
|