Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027977Openbravo ERP03. Procurement managementpublic2014-10-24 11:182014-12-30 23:27
maite 
reinaldoguerra 
highminoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q1 
Sandrahuguet
Core
No
0027977: Error obtained in Pending Goods Receipt when working with secondary UOM and conversion is only defined from second UOM to first
In case you defined conversion from secondary unit to main unit, process shows error "You have filled in Quantity order without selecting a corresponding UOM order , or vice versa. Fill in both fields, or leave them empty".

Problem is that MaterialReceiptPending.java is only checking is exists conversion defined from main UOM to secondary UOM but not vice-versa
1. Display UOM tab at Product window
2. Display Conversion tab at UOM window
3. Display "Order Quantity" and "Order UOM" fields at purchase order line tab
4. Logout and login
5. Access product "Zumo de piña" en configure "Ounce" uom in UOM tab
6. Access "Ounce" uom and define conversion to "Unit" uom as multiply=2
7. Register Purchase Order for España organization and La Fruta es la Vida, S.L. business partner
8. Add line for Zumo de Piña, set Product UOM "Ounce" and Order Quantity "10". Verify that Ordered Quantity has been automatically calculated to 5. Process Order
9. Access "Pending goods receipt" form and try to generate receipt form that order line. Error will be raised "You have filled in Quantity order without selecting a corresponding UOM order , or vice versa. Fill in both fields, or leave them empty"
Process should also check if conversion exists from secondary UOM to main UOM (as purchase order line's callout is properly working when only that conversion is defined) in line 371 to 384 of MaterialReceiptPending.java
No tags attached.
related to defect 00304813.0PR15Q4 closed AtulOpenbravo Wrong quantity conversion in goods receipts under some circumstancies 
Issue History
2014-10-24 11:18maiteNew Issue
2014-10-24 11:18maiteAssigned To => dmiguelez
2014-10-24 11:18maiteModules => Core
2014-10-24 11:18maiteResolution time => 1420585200
2014-10-24 11:18maiteTriggers an Emergency Pack => No
2014-10-24 11:19maiteIssue Monitored: networkb
2014-10-31 13:09dmitry_mezentsevAssigned Todmiguelez => Sandrahuguet
2014-11-12 05:05reinaldoguerraAssigned ToSandrahuguet => reinaldoguerra
2014-11-12 05:05reinaldoguerraStatusnew => scheduled
2014-11-13 01:09reinaldoguerraNote Added: 0071622
2014-12-01 13:41egoitzTarget Version3.0PR15Q1 => 3.0PR15Q2
2014-12-15 16:44hgbotCheckin
2014-12-15 16:44hgbotNote Added: 0072517
2014-12-15 16:44hgbotStatusscheduled => resolved
2014-12-15 16:44hgbotResolutionopen => fixed
2014-12-15 16:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e565273a954e38882f5fdadb61b3b6c124b87675 [^]
2014-12-15 16:45SandrahuguetReview Assigned To => Sandrahuguet
2014-12-15 16:45SandrahuguetNote Added: 0072518
2014-12-15 16:45SandrahuguetStatusresolved => closed
2014-12-15 16:45SandrahuguetFixed in Version => 3.0PR15Q1
2014-12-30 23:27hudsonbotCheckin
2014-12-30 23:27hudsonbotNote Added: 0073220
2015-08-21 08:56aferrazRelationship addedrelated to 0030481

Notes
(0071622)
reinaldoguerra   
2014-11-13 01:09   
Test plan used:
1- Login into Openbravo ERP
2- As system administrator go to product window and set as active UOM tab
3- Go to Unit of Measure window and set as active Conversion tab
4- Display "Order Quantity" and "Order UOM" fields at purchase order line tab
5- Logout and login
6- Access product "Zumo de piña" en configure "Ounce" uom in UOM tab
7- Access "Ounce" UOM window and define conversion to "Unit" uom as Divide Rate By: 2
8- Register Purchase Order for España organization and La Fruta es la Vida, S.L. as business partner
9- Add line for Zumo de Piña product, set Product UOM as "Ounce" and Order Quantity: "10". Verify that Ordered Quantity has been automatically calculated to 5.
10- Book the order
11- Access "Pending goods receipt" form and try to generate receipt form that order line. A new good receipt is created successfuly.
(0072517)
hgbot   
2014-12-15 16:44   
Repository: erp/devel/pi
Changeset: e565273a954e38882f5fdadb61b3b6c124b87675
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Wed Nov 12 16:39:51 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/e565273a954e38882f5fdadb61b3b6c124b87675 [^]

Fixed bug 27977: Error when conversion is only defined from second UOM to first.

Pending goods receipt form class named MaterialReceiptPending was changed to also check if conversion exists from secondary UOM to main UOM.
Now it is possible to define only conversion from secondary UOM to main UOM for purchase order product and then process Pending goods receipt successfuly.

---
M src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java
---
(0072518)
Sandrahuguet   
2014-12-15 16:45   
Code review + testing OK
(0073220)
hudsonbot   
2014-12-30 23:27   
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/6525fe229e06 [^]
Maturity status: Test