Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027947
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementminoralways2014-10-22 13:402014-12-30 23:23
ReporteraferrazView Statuspublic 
Assigned Toumartirena 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiona5d83a77b1e4
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027947: An exception is raised when running Costing Background process

DescriptionAn exception is raised when running Costing Background process
Steps To ReproduceIn "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 SolutionThe cost adjustment created is correct but the Costing Background process shouldn't raise any exception.
TagsNo tags attached.
Attached Filespng file icon Exception.png [^] (174,205 bytes) 2014-10-22 13:40

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 (manager)
2014-10-28 12:07

Verified. No exception is raised.
(0072978)
hudsonbot (developer)
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

- Issue History
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 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
Powered by Mantis Bugtracker