Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028775Openbravo ERP03. Procurement managementpublic2015-01-26 19:472015-02-23 05:11
maite 
reinaldoguerra 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q2pi 
umartirena
Core
No
0028775: "Order quantity" incorrectly set in Purchase Order Line when several requisition line are referenced
"Order quantity" incorrectly set in Purchase Order Line when several requisition line are referenced
1. Access as System Administrator and display:
  - "UOM" tab in Product window
  - "Conversion" tab in Unit of Measure window
  - "Order Quantity" and "Order UOM" fields in Purchase Order Line window
2. Logout and login
3. Create new Product with Unit= unit. Define Price for Bebidas Alegres pricelist. And define UOM as "Ounce"
4. Navigate to Unit of Measure window and define conversion from Ounce to Unit and multiplied by 5.
5. Create new Requisition document for Bebidas Alegres. Add line and select your product. Set Order UOM= Ounce and Order Quantity= 1. Verify that Quantity is calculated to 5 and Complete Requisition
6. Create new Requisition document identical to previous one and Complete it
7. Access Requisition to Order window, choose previous lines and create order
8. Access Purchase Order just created and verify that Ordered Quantity has been correctly set to 10 but Order Quantity is set to 1 (when it should be set to 2)
No tags attached.
related to defect 0030021 closed vmromanos Requisition To Order does not take into account several secondary UOMs 
causes defect 0030002 closed vmromanos Cannot create a purchase order from the Requisition To Order window 
Issue History
2015-01-26 19:47maiteNew Issue
2015-01-26 19:47maiteAssigned To => dmiguelez
2015-01-26 19:47maiteModules => Core
2015-01-26 19:47maiteResolution time => 1423868400
2015-01-26 19:47maiteTriggers an Emergency Pack => No
2015-01-26 19:47maiteAssigned Todmiguelez => Sandrahuguet
2015-01-26 19:48maiteIssue Monitored: networkb
2015-02-10 01:16reinaldoguerraAssigned ToSandrahuguet => reinaldoguerra
2015-02-10 01:16reinaldoguerraStatusnew => scheduled
2015-02-11 00:46reinaldoguerraNote Added: 0074344
2015-02-12 17:17SandrahuguetReview Assigned To => umartirena
2015-02-13 14:06hgbotCheckin
2015-02-13 14:06hgbotNote Added: 0074453
2015-02-13 14:06hgbotStatusscheduled => resolved
2015-02-13 14:06hgbotResolutionopen => fixed
2015-02-13 14:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/07f0f908a7eb8af5a08df2c96b3ee827dcc1eb52 [^]
2015-02-13 14:19umartirenaNote Added: 0074456
2015-02-13 14:19umartirenaStatusresolved => closed
2015-02-13 14:19umartirenaFixed in Version => pi
2015-02-23 05:11hudsonbotCheckin
2015-02-23 05:11hudsonbotNote Added: 0074757
2015-05-25 17:12ngarciaRelationship addedcauses 0030002
2015-05-26 18:48vmromanosRelationship addedrelated to 0030021

Notes
(0074344)
reinaldoguerra   
2015-02-11 00:46   
Test plan used:
1- Login into Openbravo ERP
2- As system administrator go to Product window
3- Set tab "UOM" as active
4- Now select "Conversion" tab in Unit of Measure window
5- Set it as active too
6- Select Purchase Order window
7- Go to lines tab and display "Order Quantity" and "Order UOM" fields
8- Logout and login
9- Go to Product window and create new one with UOM = Unit.
10- Go to Price tab and define prices for Tarifa Bebidas Alegres pricelist.
11- Go to UOM tab and create a new record, define UOM as "Ounce"
12- Navigate to Unit of Measure window, select Ounce in header and go to conversion tab. Define a new conversion to Unit and multiplied by 5.
13- Create new Requisition document for business partner Bebidas Alegres, S.L. Price List = Tarifa Bebidas Alegres
14- Add a line and select your product. Need by date = today. Set Order UOM = Ounce and Order Quantity = 1. Verify that Quantity is calculated to 5
15- Complete Requisition
16- Create new Requisition document identical to previous one (steps 13 y 14) and Complete it too.
17- Access Requisition to Order window, choose previous lines and create order
18- Access Purchase Order just created and verify that in the lines tab, Ordered Quantity has been correctly set to 10 and also Order Quantity is set to 2 as it is the sum of the Order Quantity defined in each requisition line.
(0074453)
hgbot   
2015-02-13 14:06   
Repository: erp/devel/pi
Changeset: 07f0f908a7eb8af5a08df2c96b3ee827dcc1eb52
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Tue Feb 10 21:06:42 2015 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/07f0f908a7eb8af5a08df2c96b3ee827dcc1eb52 [^]

Fixed bug 28775: "Order quantity" incorrectly set for several requisition lines.

Requisition to order process was also changed to accumulate order quantity field registered on each requisition's lines processed.
Now not just is calculated total lock quantity, but also order's quantity for all processed requisition lines, so "Order quantity" is registered successfuly in created purchase order.

---
M src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.java
---
(0074456)
umartirena   
2015-02-13 14:19   
Code Review + Testing OK
(0074757)
hudsonbot   
2015-02-23 05:11   
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/6856352d7235 [^]
Maturity status: Test