Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039448Openbravo ERP03. Procurement managementpublic2018-10-15 12:302019-09-27 13:33
plujan 
markmm82 
normalmajorhave not tried
closedfixed 
5
main 
3.0PR19Q1 
Sandrahuguet
Core
2017-11-06
3.0PR18Q1
https://code.openbravo.com/erp/devel/pi/rev/01c6dc6168f6 [^]
No
0039448: [PR18Q4] "Create Lines From" on Goods Receipt not working properly when using Alternate UOM
I've tried to create a partial receipt using the Create Lines From and when introducing the actual received quantity in AUoM the line is filled with the total quantity for the line.
Login As System Administrator
Go to Preference window and create a new preference:
Client = System
Organizatin = *
Property = Enable UOM Management
Value = Y
Visible at Client/Organization/User/Role/Window = all of them empty.

1. Login as QA Admin user
2. Create a Purchase Order header with the following data:
-Type: Purchase Order
-Business Partner: Vendor A
-Warehouse: Spain warehouse
-Payment method: 1 (Spain)

3. Create three lines:
-Line 1: 10 Quantity of "Raw Material A"
-Line 2: 10 Quantity of "Raw Material B"
-Line 3: 10 Quantity of "Raw Material C"

4. Book the Order

5. Create a new Goods Receipt header with the same date of the Order
6. Click the "Create Lines From" button to open the pop up
7. Complete all the related data. Mark the line for Raw Material A to full return and set Raw Material B to 8 (as shown in the screenshot)
8. Accept the changes and check the result. Note the line for Raw Material B was set to 10 instead (as shown in the second screenshot)
No tags attached.
depends on backport 00394543.0PR18Q4 closed markmm82 [PR18Q4] "Create Lines From" on Goods Receipt not working properly when using Alternate UOM 
depends on backport 00394553.0PR18Q3.2 closed markmm82 [PR18Q4] "Create Lines From" on Goods Receipt not working properly when using Alternate UOM 
depends on backport 00394563.0PR18Q2.3 closed markmm82 [PR18Q4] "Create Lines From" on Goods Receipt not working properly when using Alternate UOM 
caused by defect 0037221 closed collazoandy4 Cannot add a purchase order line to a goods receipt if both secondary UOM and alternate UOM are configured for the product 
png AUOM_Error_1.png (31,398) 2018-10-15 12:30
https://issues.openbravo.com/file_download.php?file_id=12265&type=bug
png

png AUOM_Error_2.png (37,886) 2018-10-15 12:30
https://issues.openbravo.com/file_download.php?file_id=12266&type=bug
png
Issue History
2018-10-15 12:30plujanNew Issue
2018-10-15 12:30plujanAssigned To => Triage Finance
2018-10-15 12:30plujanFile Added: AUOM_Error_1.png
2018-10-15 12:30plujanModules => Core
2018-10-15 12:30plujanTriggers an Emergency Pack => No
2018-10-15 12:30plujanFile Added: AUOM_Error_2.png
2018-10-15 12:43SandrahuguetAssigned ToTriage Finance => markmm82
2018-10-16 08:39SandrahuguetRegression date => 2017-11-06
2018-10-16 08:39SandrahuguetRegression introduced in release => 3.0PR18Q1
2018-10-16 08:39SandrahuguetRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/01c6dc6168f6 [^]
2018-10-16 08:40SandrahuguetStatusnew => scheduled
2018-10-16 09:20martinsdanIssue Monitored: martinsdan
2018-10-16 09:50SandrahuguetSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17764#r17764
2018-10-16 10:00SandrahuguetRelationship addedcaused by 0037221
2018-10-17 08:48hgbotCheckin
2018-10-17 08:48hgbotNote Added: 0107354
2018-10-17 08:48hgbotStatusscheduled => resolved
2018-10-17 08:48hgbotResolutionopen => fixed
2018-10-17 08:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ab186b7fabcd96fe988c40eef01b2c1424de167b [^]
2018-10-17 09:28SandrahuguetReview Assigned To => Sandrahuguet
2018-10-17 09:28SandrahuguetNote Added: 0107362
2018-10-17 09:28SandrahuguetStatusresolved => closed
2018-10-17 09:28SandrahuguetFixed in Version => 3.0PR19Q1
2018-12-11 20:22hudsonbotCheckin
2018-12-11 20:22hudsonbotNote Added: 0108431
2019-09-09 18:04hgbotCheckin
2019-09-09 18:04hgbotNote Added: 0114470
2019-09-27 13:33hgbotCheckin
2019-09-27 13:33hgbotNote Added: 0114844

Notes
(0107354)
hgbot   
2018-10-17 08:48   
Repository: erp/devel/pi
Changeset: ab186b7fabcd96fe988c40eef01b2c1424de167b
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Oct 15 22:39:09 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/ab186b7fabcd96fe988c40eef01b2c1424de167b [^]

Fixes issue 39448: "Create Lines From" on Goods Receipt not working properly
when using Alternate UOM

Was taking as the AUM Qty the original value from the line instead of the value
defned on the P&E, this way if the value is changed, for instance for partiall receipts
then the process will create a line with the selected quantity instead of the entire
quantity of the original line wich is creating from.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
---
(0107362)
Sandrahuguet   
2018-10-17 09:28   
Code review + testing OK
(0108431)
hudsonbot   
2018-12-11 20:22   
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/470e3cd384c5 [^]
Maturity status: Test
(0114470)
hgbot   
2019-09-09 18:04   
Repository: tools/automation/int
Changeset: cc307985f1d10f35e6c0301d3c58247c8a92e983
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Sun Aug 25 00:58:40 2019 -0400
URL: http://code.openbravo.com/tools/automation/int/rev/cc307985f1d10f35e6c0301d3c58247c8a92e983 [^]

Related to issue 39448: Added some automated test

---
M src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/CreateLinesFromPopUp.java
M src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/GoodsReceiptHeaderTab.java
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/procurement/testsuites/PRO_Regressions/PRO_RegressionSuite.java
M src-test/com/openbravo/test/integration/erp/testscripts/procurement/transactions/GoodsReceipt.java
A src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/CreateLinesFromData.java
A src-test/com/openbravo/test/integration/erp/modules/functionalteam/procurement/testsuites/PRO_Regressions/PRORegression39448.java
---
(0114844)
hgbot   
2019-09-27 13:33   
Repository: tools/automation/int
Changeset: 118ffc94215e7bb760c19e751e392f0d46446fbe
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Mon Sep 09 09:09:00 2019 -0400
URL: http://code.openbravo.com/tools/automation/int/rev/118ffc94215e7bb760c19e751e392f0d46446fbe [^]

Related to issue 39448: Fixed test sexecution in QA with install.source

---
M src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/CreateLinesFromPopUp.java
M src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/GoodsReceiptHeaderTab.java
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/procurement/testsuites/PRO_Regressions/PRO_RegressionSuite.java
M src-test/com/openbravo/test/integration/erp/testscripts/procurement/transactions/GoodsReceipt.java
A src-test/com/openbravo/test/integration/erp/gui/procurement/transactions/goodsreceipt/CreateLinesFromData.java
A src-test/com/openbravo/test/integration/erp/modules/functionalteam/procurement/testsuites/PRO_Regressions/PRORegression39448.java
---