Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029192Openbravo ERP04. Warehouse managementpublic2015-02-02 19:122015-04-01 08:31
VictorVillar 
umartirena 
immediatemajoralways
closedfixed 
5
pi 
3.0PR15Q1.23.0PR15Q1.2 
Sandrahuguet
Core
No
0029192: Wrong costing entries after some circumstancies
Wrong costing entries after some circumstancies
As group Admin role:
  Go to Preferences: Activate Negative Stock Corrections
Create a product
 Production: Yes
 Bill of materials: Yes

Costing tab:
   New register. Average. Cost: 6.1
   Starting Date: 01-01-2012
   Ending date: 31-12-9999
 
Go to Client window:
  Allow Negative stock: Yes

Create 2 Goods Shipment for that product. Qty: 10 units each.
1.- Movement date: 01-01-2015
2.- Movement date: 02-01-2015
Create a Physical Inventory: Qty count: 10
Movement date: 01-01-2015
Cost: 0.16

Process it.

Launch the Costing Background process and realise that the process has introduced 2 registers in the m_costing, which is wrong.
Approved
blocks defect 0028840 closed umartirena Wrong costing entries after some circumstancies 
Issue History
2015-03-09 09:25umartirenaTypedefect => backport
2015-03-09 09:25umartirenaTarget Version => 3.0PR15Q1.2
2015-03-09 19:59dmitry_mezentsevTag Attached: Approved
2015-03-23 17:05hgbotCheckin
2015-03-23 17:05hgbotNote Added: 0075888
2015-03-23 17:05hgbotStatusscheduled => resolved
2015-03-23 17:05hgbotResolutionopen => fixed
2015-03-23 17:05hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/de6027132069982d00515ce507c805a4a849df0b [^] => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/1b97ef82e96d9db4d2dfad13c68f1619f49cb89c [^]
2015-03-23 17:06SandrahuguetNote Added: 0075889
2015-03-23 17:06SandrahuguetStatusresolved => closed
2015-03-23 17:06SandrahuguetFixed in Version => 3.0PR15Q1.2
2015-04-01 08:09hgbotCheckin
2015-04-01 08:09hgbotNote Added: 0076232
2015-04-01 08:09hgbotStatusclosed => resolved
2015-04-01 08:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/1b97ef82e96d9db4d2dfad13c68f1619f49cb89c [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/1b97ef82e96d9db4d2dfad13c68f1619f49cb89c [^]
2015-04-01 08:31priyamStatusresolved => closed
2015-04-01 08:31priyamNote Added: 0076255

Notes
(0075888)
hgbot   
2015-03-23 17:05   
Repository: erp/backports/3.0PR15Q1.2
Changeset: 1b97ef82e96d9db4d2dfad13c68f1619f49cb89c
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Feb 03 13:51:05 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/1b97ef82e96d9db4d2dfad13c68f1619f49cb89c [^]

Fixes bug 29192: Fixed wrong costing entries after some circumstancies

Method 'getTrxCurrentCosting' in AverageCostAdjustment it was filtering by organization when working with 'production' type products, and this is not working, it should filter by client in this case, as all costing records for this type of products are at client level.

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0075889)
Sandrahuguet   
2015-03-23 17:06   
Code review + testing OK
(0076232)
hgbot   
2015-04-01 08:09   
Repository: erp/backports/3.0PR15Q2
Changeset: 1b97ef82e96d9db4d2dfad13c68f1619f49cb89c
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Feb 03 13:51:05 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/1b97ef82e96d9db4d2dfad13c68f1619f49cb89c [^]

Fixes bug 29192: Fixed wrong costing entries after some circumstancies

Method 'getTrxCurrentCosting' in AverageCostAdjustment it was filtering by organization when working with 'production' type products, and this is not working, it should filter by client in this case, as all costing records for this type of products are at client level.

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0076255)
priyam   
2015-04-01 08:31   
closed again, as the status changed due the merge tag of 3.0PR15Q1.2 to backports/3.0PR15Q2