Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027947 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 04. Warehouse management | minor | always | 2014-10-22 13:40 | 2014-12-30 23:23 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | umartirena | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | a5d83a77b1e4 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 64 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Professional Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0027947: An exception is raised when running Costing Background process | |||||||
Description | An exception is raised when running Costing Background process | |||||||
Steps To Reproduce | In "QA Testing" client: Create a new Product named "Costing N2" for Spain organization. Go to Price tab, select "Purchase" price list and enter a unit/list price of 5 €. Go to Goods Receipt window and create a new receipt dated on 22-10-2014, product "Costing N2" and quantity 10. Complete. Let's say this is receipt 10000506. Navigate to Process Request window and run "Costing Background process". Go to receipt window and post the receipt 10000506. Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit) Go to Goods Shipment window and create a new shipment dated on 01-11-2014, product "Costing N2" and quantity 8. Complete. Let's say this is shipment 500276. Navigate to Process Request window and run "Costing Background process". Go to shipment window and post the shipment 500276. Realize that the value posted to the ledger is 40.00 (8 units * 5 €/unit) Go to Goods Receipt window and create a new receipt dated on 06-11-2014, product "Costing N2" and quantity 10. Complete. Let's say this is receipt 10000507. Navigate to Process Request window and run "Costing Background process". Go to receipt window and post the receipt 10000507. Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit) Go to Goods Shipment window and create a new shipment dated on 27-10-2014, product "Costing N2" and quantity 10. Complete. Let's say this is shipment 500277. Navigate to Process Request window and run "Costing Background process". Go to shipment window and post the shipment 500277. Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit) Realize that an error and an exception have been raised during the last execution of "Costing Background process": ERROR org.openbravo.costing.CostingBackground - Unknown entity: org.openbravo.model.common.enterprise.Organization org.hibernate.MappingException: Unknown entity: org.openbravo.model.common.enterprise.Organization Navigate to Cost Adjustment window, search the last created record: - Cost adjustment 1: source process Backdated Transaction, adjusted amount 0.00, inventory transaction points to shipment 500277. | |||||||
Proposed Solution | The cost adjustment created is correct but the Costing Background process shouldn't raise any exception. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0071139) hgbot (developer) 2014-10-23 17:06 |
Repository: erp/devel/pi Changeset: a5d83a77b1e40c69e02f32d2889b8f2f598c078e Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com> Date: Thu Oct 23 17:04:33 2014 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/a5d83a77b1e40c69e02f32d2889b8f2f598c078e [^] Fixed issue 27947.Use org id instead of object in OBQuery When filtering a OBCriteria or OBQuery by a BaseOBObject after a clear session can fail if the object is not correctly reattached to the session. Filtering by its id avoid this issue. --- M src/org/openbravo/costing/CostingUtils.java --- |
(0071216) psanjuan (viewer) 2014-10-28 12:07 |
Verified. No exception is raised. |
(0072978) hudsonbot (viewer) 2014-12-30 23:23 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6525fe229e06 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2014-10-22 13:40 | aferraz | New Issue | |
2014-10-22 13:40 | aferraz | Assigned To | => umartirena |
2014-10-22 13:40 | aferraz | File Added: Exception.png | |
2014-10-22 13:40 | aferraz | OBNetwork customer | => No |
2014-10-22 13:40 | aferraz | Modules | => Core |
2014-10-22 13:40 | aferraz | Triggers an Emergency Pack | => No |
2014-10-22 18:47 | umartirena | Status | new => scheduled |
2014-10-22 18:47 | umartirena | fix_in_branch | => pi |
2014-10-23 17:06 | hgbot | Checkin | |
2014-10-23 17:06 | hgbot | Note Added: 0071139 | |
2014-10-23 17:06 | hgbot | Status | scheduled => resolved |
2014-10-23 17:06 | hgbot | Resolution | open => fixed |
2014-10-23 17:06 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a5d83a77b1e40c69e02f32d2889b8f2f598c078e [^] |
2014-10-28 12:07 | psanjuan | Note Added: 0071216 | |
2014-10-28 12:07 | psanjuan | Status | resolved => closed |
2014-10-28 12:07 | psanjuan | fix_in_branch | pi => |
2014-12-30 23:23 | hudsonbot | Checkin | |
2014-12-30 23:23 | hudsonbot | Note Added: 0072978 |
Copyright © 2000 - 2009 MantisBT Group |