Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027963Openbravo ERP04. Warehouse managementpublic2014-10-23 13:192014-12-30 23:23
psanjuan 
umartirena 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
 
Core
No
0027963: Differences between estimated landed cost and invoiced landed cost handle as unit cost
Differences between estimated landed cost and invoiced landed cost handle as unit cost. This is not correct as landed cost adjustments should be handle as Unit Cost = No.
Create a product named "Landed Cost Test 4".
Go to price tab and enter a unit/list price = 250.00

Go to Goods Receipt and create a new one dated on 23/10/2014. Select the product and enter 1 unit. Complete.

Run the costing background process and go back to the receipt and post it.

Realize that value posted in product asset account is 250.00.

Go to product window, search the product and verify that the costing and the transaction value = 250.00

Go to landed cost window and create a new one dated on 27/10/2014
Go to Cost tab and select an account type landed cost, i.e duties
Enter an amount of 5.00
Go to receipt tab and select the receipt just created.

Process the landed cost and post it.

Posting would look like
Debit: 5.00 (product asset account)
Credit: 5.00 (expense account)

Go to purchase invoice and enter a new one dated on 30/05/2014.
Go to lines and select the account G/L item of the landed cost type (i.e. duties)
Enter an amount of 2.00
Complete and post the invoice.

Press the button Match LC Cost and select the landed cost created. Enter an amount matched of 2.00 and select the check Is matching adjusted. Select as well the check Process Matching.

Once done realize that a new costing adjustment has been created for an amount of -3 (this is correct).

What it is not correct is that this cost adjustment is flagged as Unit Cost = Yes. It should be as Unit Cost =No

Go back to landed cost window and post the matching
Posting looks like:
Debit: 5.00 (expense account)
Credit: 3.00 (product asset)
Credit: 2.00 (expense account)

Above posting is correct as leads to a product asset value of 250+5-3=252

Go to Product window and search the product. Go to Transaction tab, realize that
Trx Original cost = 250 (this is correct)
Total Cost = 252 (250+5-3) (this is correct)
Unit Cost = 247 (250-3) (this is not correct. It should be 250)

No tags attached.
Issue History
2014-10-23 13:19psanjuanNew Issue
2014-10-23 13:19psanjuanAssigned To => dmiguelez
2014-10-23 13:19psanjuanModules => Core
2014-10-23 13:19psanjuanTriggers an Emergency Pack => No
2014-10-23 13:20psanjuanAssigned Todmiguelez => umartirena
2014-10-23 13:20psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6888#r6888
2014-10-24 09:57hgbotCheckin
2014-10-24 09:57hgbotNote Added: 0071153
2014-10-24 09:57hgbotStatusnew => resolved
2014-10-24 09:57hgbotResolutionopen => fixed
2014-10-24 09:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e6566a390dbad92849bdd81ee06868e327e48650 [^]
2014-10-28 13:16psanjuanNote Added: 0071220
2014-10-28 13:16psanjuanStatusresolved => closed
2014-12-30 23:23hudsonbotCheckin
2014-12-30 23:23hudsonbotNote Added: 0072982

Notes
(0071153)
hgbot   
2014-10-24 09:57   
Repository: erp/devel/pi
Changeset: e6566a390dbad92849bdd81ee06868e327e48650
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Fri Oct 24 09:56:21 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e6566a390dbad92849bdd81ee06868e327e48650 [^]

Fixes Issue 27963: Set Unit Cost false in LC Adjustments created in Match LC P&E

Also set as currency of this Landed Cost Adjustment lines the currency of the Landed Cost header.

---
M src/org/openbravo/costing/LCMatchingProcess.java
---
(0071220)
psanjuan   
2014-10-28 13:16   
Verified. Cost adjustments related to landed cost differences are now do not set as Unit Cost.
(0072982)
hudsonbot   
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