Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039455Openbravo ERP03. Procurement managementpublic2018-10-15 12:302018-10-17 09:27
normalmajorhave not tried
3.0PR18Q1 [^]
0039455: [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.
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.
blocks defect 0039448 closed markmm82 [PR18Q4] "Create Lines From" on Goods Receipt not working properly when using Alternate UOM 
Issue History
2018-10-16 08:40SandrahuguetTypedefect => backport
2018-10-16 08:40SandrahuguetTarget Version => 3.0PR18Q3.2
2018-10-17 09:16hgbotCheckin
2018-10-17 09:16hgbotNote Added: 0107356
2018-10-17 09:16hgbotStatusscheduled => resolved
2018-10-17 09:16hgbotResolutionopen => fixed
2018-10-17 09:16hgbotFixed in SCM revision => [^]
2018-10-17 09:27SandrahuguetReview Assigned To => Sandrahuguet
2018-10-17 09:27SandrahuguetNote Added: 0107360
2018-10-17 09:27SandrahuguetStatusresolved => closed
2018-10-17 09:27SandrahuguetFixed in Version => 3.0PR18Q3.2

2018-10-17 09:16   
Repository: erp/backports/3.0PR18Q3.2
Changeset: 96de74353fdaf1687fd38dcc95fa6cd80efcf0be
Author: Mark <markmm82 <at>>
Date: Tue Oct 16 09:29:38 2018 -0400
URL: [^]

Fixes issue 39455: "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/
2018-10-17 09:27   
Code review + testing OK