Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037067Openbravo ERP03. Procurement managementpublic2017-01-03 14:292018-01-25 16:54
psanjuan 
nonofrancisco 
urgentmajoralways
closedfixed 
20Professional Appliance
 
3.0PR17Q3.33.0PR17Q3.3 
dmiguelez
No
Core
No
0037067: RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet.
RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet.
Log in as System Admin.
Go to preference window and create a new one with below setup:
Client = System
Organization = *
Property = Enable UOM Management
Value = Y
Visible at = empty for all

Go to Unit of Measure window and create a new one with below setup:
Organization = *
EDI Code = PA
Name = Pallet
Costing precision = Standard Precision = 2
Symbol = PA.

Log out and Log in.

Go to product window and create a new product for F&B España. Configure a purchase and a sales price list for it. Enter any price.
Go to "Alternate UOM" tab and create a new record with below setup:

UOM = Pallet
Conversion Rate = 10
Sales= Purchase = Primary
Logistics = Not Applicable.

Go to Purchase order and create a new one for F&B España, Bebidas Alegres business partner.
Go to lines and select the product just created. Enter an Operative Qty = 500 (pallets). 5000 Units.
Book the order.

Go to Goods Receipt and create a new one for F&B España, Bebidas Alegres business partner.
Use Create Lines from. Select the order and receipt all units in RN-0-0-0
Complete the receipt.

Go to Return to Vendor window and create a new one for F&B España, Bebidas Alegres business partner.
Click on Pick/Edit lines. Select the receipt just created and enter 50 in the field "Returned". Press Done.

Verify that Operative Qty shown = 50 (pallet) and Return = 500 Units.
Complete the order.

Go to Return to Vendor shipment window and create a new one for F&B España, Bebidas Alegres business partner.
Click on Pick/Edit lines. Select the RM order just created.

Verify that Ship Qty shows 500, and Returned UOM = Unit.

Change Ship Qty to 5, press tab key and change Returned UOM to Pallet.

Check that Ship Qty is "Automatically Updated" to 50, while 5 pallets need to be returned. See images attached.
Ship Qty does not need to be updated to 5, once Returned UOM is changed from Unit to Pallet.
No tags attached.
blocks defect 0034841 closed nonofrancisco RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet. 
Issue History
2017-10-13 15:13nonofranciscoTypedefect => backport
2017-10-13 15:13nonofranciscoTarget Version => 3.0PR17Q3.1
2017-11-02 16:22dmiguelezTarget Version3.0PR17Q3.1 => 3.0PR17Q3.2
2017-12-26 13:54vmromanosTarget Version3.0PR17Q3.2 => 3.0PR17Q3.3
2018-01-25 16:52hgbotCheckin
2018-01-25 16:52hgbotNote Added: 0101962
2018-01-25 16:52hgbotStatusscheduled => resolved
2018-01-25 16:52hgbotResolutionopen => fixed
2018-01-25 16:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/192f90ba65e832083074b50b8f91caa42b379d47 [^]
2018-01-25 16:54dmiguelezReview Assigned To => dmiguelez
2018-01-25 16:54dmiguelezStatusresolved => closed
2018-01-25 16:54dmiguelezFixed in Version => 3.0PR17Q3.3

Notes
(0101962)
hgbot   
2018-01-25 16:52   
Repository: erp/backports/3.0PR17Q3.3
Changeset: 192f90ba65e832083074b50b8f91caa42b379d47
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Mon Jan 22 12:49:49 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/192f90ba65e832083074b50b8f91caa42b379d47 [^]

Fixes issue 37067: RTV shipment (Pick/Edit Lines) not properly working if
Returned UOM is changed from Unit to Pallet.

When changing Ship Qty and then returned Uom, just pending field is updated,
showing the pending quantity expressed in returned Uom.

Same behaviour in Return Material Receipt window.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
---