Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034841Openbravo ERP03. Procurement managementpublic2017-01-03 14:292018-02-22 18:18
psanjuan 
nonofrancisco 
urgentmajoralways
closedfixed 
20Professional Appliance
 
3.0PR18Q2 
dmiguelez
Core
No
0034841: 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.
depends on backport 00370663.0PR17Q4.1 closed nonofrancisco RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet. 
depends on backport 00370673.0PR17Q3.3 closed nonofrancisco RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet. 
depends on backport 00377193.0PR18Q1 closed nonofrancisco RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet. 
jpg 34841-1.jpg (15,845) 2017-01-03 14:54
https://issues.openbravo.com/file_download.php?file_id=10236&type=bug
jpg

jpg 34841-2.jpg (19,495) 2017-01-03 14:54
https://issues.openbravo.com/file_download.php?file_id=10237&type=bug
jpg
Issue History
2017-01-03 14:29psanjuanNew Issue
2017-01-03 14:29psanjuanAssigned To => Triage Finance
2017-01-03 14:29psanjuanModules => Core
2017-01-03 14:29psanjuanTriggers an Emergency Pack => No
2017-01-03 14:46psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14204#r14204
2017-01-03 14:53psanjuanCategory07. Sales management => 03. Procurement management
2017-01-03 14:53psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14205#r14205
2017-01-03 14:53psanjuanProposed Solution updated
2017-01-03 14:54psanjuanFile Added: 34841-1.jpg
2017-01-03 14:54psanjuanFile Added: 34841-2.jpg
2017-01-03 14:56psanjuanSummaryRTV shipment not properly working => RTV shipment (Pick/Edit Lines) not properly working if Returned UOM is changed from Unit to Pallet.
2017-01-03 14:56psanjuanDescription Updatedbug_revision_view_page.php?rev_id=14207#r14207
2017-01-03 14:58psanjuanNote Added: 0093134
2017-01-03 17:47markmm82Assigned ToTriage Finance => rqueralta
2017-01-04 11:51psanjuanNote Added: 0093170
2017-10-12 21:08nonofranciscoAssigned Torqueralta => nonofrancisco
2017-10-13 14:57nonofranciscoNote Added: 0099909
2017-10-13 15:13nonofranciscoStatusnew => scheduled
2018-01-24 17:24dmiguelezStatusscheduled => acknowledged
2018-01-24 17:24dmiguelezStatusacknowledged => scheduled
2018-01-25 16:45hgbotCheckin
2018-01-25 16:45hgbotNote Added: 0101954
2018-01-25 16:45hgbotStatusscheduled => resolved
2018-01-25 16:45hgbotResolutionopen => fixed
2018-01-25 16:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/208045acad06a0d847a2056f864037ccfbf48e80 [^]
2018-01-25 16:52dmiguelezReview Assigned To => dmiguelez
2018-01-25 16:52dmiguelezNote Added: 0101958
2018-01-25 16:52dmiguelezStatusresolved => closed
2018-01-25 16:52dmiguelezFixed in Version => 3.0PR18Q2
2018-02-22 18:18hudsonbotCheckin
2018-02-22 18:18hudsonbotNote Added: 0102686

Notes
(0093134)
psanjuan   
2017-01-03 14:58   
Please also check for Return Material Receipt Pick/Edit, for Purchase Cycle.
(0093170)
psanjuan   
2017-01-04 11:51   
Fix need to be backported to 17Q1
(0099909)
nonofrancisco   
2017-10-13 14:57   
Test Plan:

Purchase Flow
As System Admin

1.- 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

2.- 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.

As F&B International Group Admin

1.- 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.
2.- Go to "Alternate UOM" tab and create a new record with below setup:
  UOM = Pallet
  Conversion Rate = 10
  Sales= Purchase = Primary
  Logistics = Not Applicable.

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

6.- 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
7.- Complete the receipt.

8.- 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.
9.- Verify that Operative Qty shown = 50 (pallet) and Return = 500 Units.
10.- Complete the order.

11.- 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.
12.- Verify that Ship Qty shows 500, and Returned UOM = Unit.
13.- Change Ship Qty to 5, press tab key and change Returned UOM to Pallet.

Verify that Ship Qty remains 5, while pending is updated considering the return UOM selected.

Sales Flow
As F&B International Group Admin

1.- Go to Sales Order Window and create a new one for F&B España, Alimentos y Supermercados business partner
2.- Go to lines and select the product just created. Enter an Operative Qty = 400 (pallets). 4000 Units.
3.- Book the order.

4.- Go to Goods Shipment and create a new one for F&B España, Alimentos y Supermercados business partner.
  Use Create Lines from. Select the order just created
5.- Complete the receipt.

6.- Go to Return from Customer window and create a new one for F&B España, Alimentos y Supermercados business partner.
    Click on Pick/Edit lines. Select the product just created and enter 40 in the field "Returned". Press Done.
7.- Verify that Operative Qty shown = 40 (pallet) and Return = 400 Units.
8.- Complete the order.

9.- Go to Return Material Receipt window and create a new one for F&B España, Alimentos y Supermercados business partner.
     Click on Pick/Edit lines. Select the order just created.
10.- Verify that Received shows 40, and Returned UOM = Pallet.
11.- Change Received to 4, press tab key and change Returned UOM to Unit.

Verify that Received remains 4, while pending is updated considering the return UOM selected.
(0101954)
hgbot   
2018-01-25 16:45   
Repository: erp/devel/pi
Changeset: 208045acad06a0d847a2056f864037ccfbf48e80
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Mon Jan 22 12:49:49 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/208045acad06a0d847a2056f864037ccfbf48e80 [^]

Fixes issue 34841: 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
---
(0101958)
dmiguelez   
2018-01-25 16:52   
Code Review + Testing Ok
(0102686)
hudsonbot   
2018-02-22 18:18   
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/980a6ad5bbf5 [^]
Maturity status: Test