Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030936Openbravo ERP04. Warehouse managementpublic2015-09-25 14:362015-10-05 17:04
VictorVillar 
dmiguelez 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q4 
vmromanos
Core
No
0030936: Wrong cost after executing the Price Correction Background
Wrong cost after executing the Price Correction Background
As group admin role,
  Go to Purchase Order:
    create a new one for a new product. 5 Ud. 60€/Ud.
 Create the goods receipt related.
Launch the Costing Background process. Average cost: 60
Create the Purchase invoice related. 50€/Ud
Launch the 'Price Correction Background'
Create the Return to Vendor. Qty: 3. 60€/Ud.
Create the Return to vendor shipment.
Launch the Costing Background Process. Unit Cost: 50. OK
Create the Purchase Invoice related with the RTV Shipment. 50€Ud.
Launch the 'Price Correction Background. The Cost Adjustment generates a new costing = 200. This is wrong.

    
No tags attached.
depends on backport 00310493.0PR15Q3.2 closed dmiguelez Wrong cost after executing the Price Correction Background 
Issue History
2015-09-25 14:36VictorVillarNew Issue
2015-09-25 14:36VictorVillarAssigned To => Triage Finance
2015-09-25 14:36VictorVillarModules => Core
2015-09-25 14:36VictorVillarResolution time => 1443477600
2015-09-25 14:36VictorVillarTriggers an Emergency Pack => No
2015-09-25 14:36VictorVillarIssue Monitored: networkb
2015-09-29 09:47dmiguelezNote Added: 0080686
2015-09-29 12:54vmromanosStatusnew => scheduled
2015-09-29 12:54vmromanosAssigned ToTriage Finance => dmiguelez
2015-09-29 13:11vmromanosTarget Version3.0PR16Q1 => 3.0PR15Q4
2015-09-29 13:12hgbotCheckin
2015-09-29 13:12hgbotNote Added: 0080700
2015-09-29 13:12hgbotStatusscheduled => resolved
2015-09-29 13:12hgbotResolutionopen => fixed
2015-09-29 13:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9ee648f47df57c516636c1937eb93081dc02f7e7 [^]
2015-09-29 13:12vmromanosReview Assigned To => vmromanos
2015-09-29 13:12vmromanosNote Added: 0080701
2015-09-29 13:12vmromanosStatusresolved => closed
2015-09-29 22:42hudsonbotCheckin
2015-09-29 22:42hudsonbotNote Added: 0080727
2015-10-05 17:03dmiguelezNote Added: 0080833
2015-10-05 17:03dmiguelezStatusclosed => new
2015-10-05 17:03dmiguelezResolutionfixed => open
2015-10-05 17:03dmiguelezStatusnew => scheduled
2015-10-05 17:04dmiguelezStatusscheduled => resolved
2015-10-05 17:04dmiguelezResolutionopen => fixed
2015-10-05 17:04dmiguelezStatusresolved => closed

Notes
(0080686)
dmiguelez   
2015-09-29 09:47   
As group admin role
  Create a new Product for Organization F&B. It must of Product Type Item and Stocked = 'Y'
  Create a new record for this Product in the Price List Tab for Be Soft Drinker Price List with both Unit and List Price = 60
  Go to Purchase Order:
    create a new one for the new product. 5 Ud. 60€/Ud.
 Create the goods receipt related.
Launch the Costing Background process.
  Check in the Costing Tab of Product Window that Average cost: 60
Create the Purchase invoice related. Change the Net Unit Price to 50€/Ud
Launch the 'Price Correction Background' Process
Create the Return to Vendor. Qty: 3. 60€/Ud.
Create the Return to vendor shipment.
Launch the Costing Background Process. Check in the Transactions Tab, in Procut Window, that the last Transaction, ordered by Transaction Process date has Unit Cost: 50. OK
Create the Purchase Invoice related with the RTV Shipment. Change the Net Unit Price to 50€Ud.
Launch the 'Price Correction Background.
Check in both the Costing Tab and Transactions Tab of Product Window that this Price Correction Process has not modified the data.
(0080700)
hgbot   
2015-09-29 13:12   
Repository: erp/devel/pi
Changeset: 9ee648f47df57c516636c1937eb93081dc02f7e7
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 28 18:10:02 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9ee648f47df57c516636c1937eb93081dc02f7e7 [^]

Fixes Issue 30936. Return Material flow should not be included
in Price Correction Process.
Also, make sure every Transaction that goes through this process
is set to no longer check Price Correction.

---
M src/org/openbravo/costing/PriceDifferenceProcess.java
---
(0080701)
vmromanos   
2015-09-29 13:12   
Code review + testing OK
(0080727)
hudsonbot   
2015-09-29 22:42   
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/ebe9ebd06ddd [^]
Maturity status: Test
(0080833)
dmiguelez   
2015-10-05 17:03   
Opened to add Transplant