Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028840Openbravo ERP04. Warehouse managementpublic2015-02-02 19:122015-03-09 09:26
VictorVillar 
umartirena 
immediatemajoralways
closedfixed 
5
pi 
pi 
Sandrahuguet
Core
No
0028840: 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.
No tags attached.
depends on backport 00291923.0PR15Q1.2 closed umartirena Wrong costing entries after some circumstancies 
Issue History
2015-02-02 19:12VictorVillarNew Issue
2015-02-02 19:12VictorVillarAssigned To => umartirena
2015-02-02 19:12VictorVillarModules => Core
2015-02-02 19:12VictorVillarTriggers an Emergency Pack => No
2015-02-02 19:13VictorVillarIssue Monitored: networkb
2015-02-03 13:52hgbotCheckin
2015-02-03 13:52hgbotNote Added: 0074027
2015-02-03 13:52hgbotStatusnew => resolved
2015-02-03 13:52hgbotResolutionopen => fixed
2015-02-03 13:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/de6027132069982d00515ce507c805a4a849df0b [^]
2015-02-04 14:28psanjuanNote Added: 0074088
2015-02-04 20:35hudsonbotCheckin
2015-02-04 20:35hudsonbotNote Added: 0074212
2015-02-26 17:38dmitry_mezentsevNote Added: 0074986
2015-03-05 18:45SandrahuguetReview Assigned To => Sandrahuguet
2015-03-05 18:45SandrahuguetNote Added: 0075216
2015-03-05 18:45SandrahuguetStatusresolved => closed
2015-03-05 18:45SandrahuguetFixed in Version => 3.0PR15Q2
2015-03-09 09:25umartirenaNote Added: 0075291
2015-03-09 09:25umartirenaStatusclosed => new
2015-03-09 09:25umartirenaResolutionfixed => open
2015-03-09 09:25umartirenaFixed in Version3.0PR15Q2 =>
2015-03-09 09:25umartirenaStatusnew => scheduled
2015-03-09 09:25umartirenaStatusscheduled => resolved
2015-03-09 09:25umartirenaFixed in Version => pi
2015-03-09 09:25umartirenaResolutionopen => fixed
2015-03-09 09:26umartirenaStatusresolved => closed

Notes
(0074027)
hgbot   
2015-02-03 13:52   
Repository: erp/devel/pi
Changeset: de6027132069982d00515ce507c805a4a849df0b
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Feb 03 13:51:05 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/de6027132069982d00515ce507c805a4a849df0b [^]

Fixes bug 28840: 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
---
(0074088)
psanjuan   
2015-02-04 14:28   
Verified.

Costing Background process introduces only 1 register in the m_costing.
(0074212)
hudsonbot   
2015-02-04 20:35   
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/f36c91d0ad63 [^]
Maturity status: Test
(0074986)
dmitry_mezentsev   
2015-02-26 17:38   
Not closed for 23 days!!!
(0075216)
Sandrahuguet   
2015-03-05 18:45   
Code review + testing OK
(0075291)
umartirena   
2015-03-09 09:25   
Reopened to add backport for 3.0PR15Q1.2