Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028238Openbravo ERP04. Warehouse managementpublic2014-11-20 13:592014-12-30 23:26
aferraz 
Sandrahuguet 
normalmajoralways
closedfixed 
30Professional Appliance
 
3.0PR15Q1 
Sandrahuguet
Core
No
0028238: [Costing] Cost Adjustment of type Landed Cost is not properly created if a good receipt and a good receipt line are entered
[Costing] Cost Adjustment of type Landed Cost is not properly created if a good receipt and a good receipt line are entered in the same record in the Receipt tab of the landed cost window.
In QA Testing client create a new product named "Costing LC111" with a "Purchase" price list and unit/list price of 111.00. Create another product named "Costing LC222" with a "Purchase" price list and unit/list price of 222.00. Create another product named "Costing LC333" with a "Purchase" price list and unit/list price of 333.00.

Go to goods receipt window and create a new one dated on 20/11/2014. Enter a line with "Costing LC111" product, 50 units. Add another line with "Costing LC222" product, 150 units,. Complete the receipt. Go to process request window and launch costing background process. Go back to goods receipt window and post it. Let's say this is receipt 10001797.

Go to goods receipt window and create a new one dated on 25/11/2014. Enter a line with "Costing LC222" product, 75 units. Add another line with "Costing LC333" product, 125 units. Complete the receipt. Go to process request window and launch costing background process. Go back to goods receipt window and post it. Let's say this is receipt 10001798.

Go to Landed Cost window and create a new landed cost for Spain organization, reference date 30/11/2014. Move to Cost tab and add a new line with landed cost type Transportation Cost, amount 325. Add another line with landed cost type Fees and amount 425. Move to Receipt tab and add a new line with goods receipt 10001797 and goods receipt line the line 10 of receipt 10001798. Click on Process button.

Go to Cost Adjustment window and realize a new record has been created:

- Line 1: Transaction receipt 10001798 line 10 - Amount 750.00

This is not correct. It should be:

- Line 1: Transaction receipt 10001797 line 10 - Amount 75.00

- Line 2: Transaction receipt 10001797 line 20 - Amount 450.00

- Line 3: Transaction receipt 10001798 line 10 - Amount 225.00
See above.
No tags attached.
Issue History
2014-11-20 13:59aferrazNew Issue
2014-11-20 13:59aferrazAssigned To => Sandrahuguet
2014-11-20 13:59aferrazModules => Core
2014-11-20 13:59aferrazTriggers an Emergency Pack => No
2014-11-26 14:06psanjuanNote Added: 0072033
2014-11-26 14:08psanjuanNote Edited: 0072033bug_revision_view_page.php?bugnote_id=0072033#r7150
2014-11-26 14:11psanjuanNote Edited: 0072033bug_revision_view_page.php?bugnote_id=0072033#r7151
2014-11-26 15:02psanjuanSummary[Costing] Cost Adjustment of type Landed Cost is not properly created => [Costing] Cost Adjustment of type Landed Cost is not properly created if a good receipt and a good receipt line are entered
2014-11-26 15:02psanjuanDescription Updatedbug_revision_view_page.php?rev_id=7155#r7155
2014-12-04 11:38hgbotCheckin
2014-12-04 11:38hgbotNote Added: 0072273
2014-12-04 11:38hgbotStatusnew => resolved
2014-12-04 11:38hgbotResolutionopen => fixed
2014-12-04 11:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/35d365d804ad4c709ff689dd78913f1a95167e14 [^]
2014-12-04 18:19hgbotCheckin
2014-12-04 18:19hgbotNote Added: 0072288
2014-12-05 14:25psanjuanNote Added: 0072312
2014-12-11 18:11SandrahuguetReview Assigned To => Sandrahuguet
2014-12-11 18:12SandrahuguetNote Added: 0072438
2014-12-11 18:12SandrahuguetStatusresolved => closed
2014-12-11 18:12SandrahuguetFixed in Version => 3.0PR15Q1
2014-12-30 23:26hudsonbotCheckin
2014-12-30 23:26hudsonbotNote Added: 0073168
2014-12-30 23:26hudsonbotCheckin
2014-12-30 23:26hudsonbotNote Added: 0073175

Notes
(0072033)
psanjuan   
2014-11-26 14:06   
(edited on: 2014-11-26 14:11)
Receipt tab of Landed Cost window should be designed as described below:

* either a Goods Receipt header is selected in "Goods Receipt" field -> this option implies that specified landed cost are distributed among all Goods Receipt lines

* or a Goods Receipt header is selected in Goods Receipt field and a Goods Receipt line "of the very same Goods Receipt" is selected in the field "Goods Receipt Line" -> this option implies that specified landed cost are distribute just for the Goods receipt line selected.

Above behaviour implies that Goods Receipt lines field lists only goods receipt lines of the goods receipt selected in Goods Receipt field.

(0072273)
hgbot   
2014-12-04 11:38   
Repository: erp/devel/pi
Changeset: 35d365d804ad4c709ff689dd78913f1a95167e14
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Dec 04 11:31:24 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/35d365d804ad4c709ff689dd78913f1a95167e14 [^]

Fixes Issue 28238: Cost Adjustment of Landed Cost type properly created.

Receipt tab of Landed Cost has been designed to work in the following way:
* either a Goods Receipt header is selected in 'Goods Receipt' field -> this option implies that specified landed cost are distributed among all Goods Receipt lines.
* or a Goods Receipt header is selected in Goods Receipt field and a Goods Receipt line 'of the very same Goods Receipt' is selected in the field 'Goods Receipt Line' -> this option implies that specified landed cost are distribute just for the Goods receipt line selected.
Above behaviour implies that Goods Receipt lines field lists only goods receipt lines of the goods receipt selected in Goods Receipt field. In order to do this a where clause has been added in Goods Receipt Lines selector to only display lines of the selected header, if no header is selected, no lines would be displayed.

---
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0072288)
hgbot   
2014-12-04 18:19   
Repository: erp/devel/pi
Changeset: 107d831cf383a7c2bee03c86cfc65360ebe42793
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Dec 04 16:58:28 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/107d831cf383a7c2bee03c86cfc65360ebe42793 [^]

Related to Issue 28238: Clear Goods Shipment Lines when changing Goods Shipment.

A callout has been implemented in Goods Shipment field.

---
M src-db/database/sourcedata/AD_CALLOUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
A src/org/openbravo/erpCommon/ad_callouts/SL_LandedCost_Receipt.java
---
(0072312)
psanjuan   
2014-12-05 14:25   
Verified.
(0072438)
Sandrahuguet   
2014-12-11 18:11   
Code review done
(0073168)
hudsonbot   
2014-12-30 23:26   
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
(0073175)
hudsonbot   
2014-12-30 23:26   
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