Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037719Openbravo ERP03. Procurement managementpublic2017-01-03 14:292018-01-25 17:00
psanjuan 
nonofrancisco 
urgentmajoralways
closedfixed 
20Professional Appliance
 
3.0PR18Q13.0PR18Q1 
dmiguelez
Core
No
0037719: 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
2018-01-24 17:24dmiguelezTypedefect => backport
2018-01-24 17:24dmiguelezTarget Version => 3.0PR18Q1
2018-01-25 16:59hgbotCheckin
2018-01-25 16:59hgbotNote Added: 0101973
2018-01-25 16:59hgbotStatusscheduled => resolved
2018-01-25 16:59hgbotResolutionopen => fixed
2018-01-25 16:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q1/rev/c20b18abfd462cb975abb601c8444ac3aba94d44 [^]
2018-01-25 17:00dmiguelezReview Assigned To => dmiguelez
2018-01-25 17:00dmiguelezNote Added: 0101975
2018-01-25 17:00dmiguelezStatusresolved => closed
2018-01-25 17:00dmiguelezFixed in Version => 3.0PR18Q1

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

Fixes issue 37719: 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
---
(0101975)
dmiguelez   
2018-01-25 17:00   
Code Review + Testing Ok