Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035692Openbravo ERP03. Procurement managementpublic2016-12-22 09:412017-04-04 19:14
psanjuan 
collazoandy4 
urgentmajoralways
closedfixed 
20Community Appliance
 
3.0PR17Q23.0PR17Q2 
aferraz
Core
No
0035692: Operative Quantity needs to be updated to 0 same as Ordered/Return quanity if the corresponding order is closed (not delivered)
Operative Quantity needs to be updated to 0 same as Ordered/Return quanity if the corresponding order is closed (not delivered)
Enable "Enable UOM Management" preference.

Go to Unit of Measure window and create a new UOM with below setup:
Edi Code = PA
Name = Pallet
Standard Precision = 2

Go to Product window and create a new one for F&B España with below setup:
Search key = Product 1
Name = Product 1
Go to price tab and select "Tarifa Bebidas Alegres" business partner.
Enter a unit price and a list price.
Go to Alternate UOM.
Enter Pallet, Conversion Rate = 10, Sales = Purchase = Primary. Logistics = Not applicable.
Save it.

Go to purchase order window and create one order for F&B España, Bebidas Alegres business partner, dated on today's date.
Go to lines and select Product 1.
Enter 55 in the field Operative Quantity.
Book the order
Close the order and verify that Ordered quantity changes to 0 Unit.

Run Purchase Order Report for Bebidas Alegres business partner and for today's date, in HTML.

Verify that close purchase order is shown as Qty IN AUM remains as 55 and that should not be the case.

Same applies in the case of a Sales order including a product having an alternative UOM. Same way if that sales order is not delivered but closed "Operative Quanity" does not change to 0

Same applies to:
Return to Vendor
Return from Customer
If a not delivered order is closed same way that Ordered/Returm Quantity field is changed to 0, Operative Quantity should also be changed to 0.
No tags attached.
blocks defect 0034805 closed collazoandy4 Operative Quantity needs to be updated to 0 same as Ordered/Return quanity if the corresponding order is closed (not delivered) 
Issue History
2017-04-04 17:25aferrazTypedefect => backport
2017-04-04 17:25aferrazTarget Version => 3.0PR17Q2
2017-04-04 19:12hgbotCheckin
2017-04-04 19:12hgbotNote Added: 0095829
2017-04-04 19:12hgbotStatusscheduled => resolved
2017-04-04 19:12hgbotResolutionopen => fixed
2017-04-04 19:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q2/rev/ec0cc6f6090bcb8754475919c63120e3210eb964 [^]
2017-04-04 19:14aferrazReview Assigned To => aferraz
2017-04-04 19:14aferrazNote Added: 0095831
2017-04-04 19:14aferrazStatusresolved => closed
2017-04-04 19:14aferrazFixed in Version => 3.0PR17Q2

Notes
(0095829)
hgbot   
2017-04-04 19:12   
Repository: erp/backports/3.0PR17Q2
Changeset: ec0cc6f6090bcb8754475919c63120e3210eb964
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Fri Mar 31 13:58:32 2017 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR17Q2/rev/ec0cc6f6090bcb8754475919c63120e3210eb964 [^]

Fixes issue 35692: Operative quantity should be updated when document is closed

When a Purchase Order/Return From Customer/Return to Vendor document is closed,
the Operative Quantity field is updated to the corresponding value, according to
the Product, Quantity and Aum of the line.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0095831)
aferraz   
2017-04-04 19:14   
Code review + Testing OK