Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035693Openbravo ERP03. Procurement managementpublic2016-12-22 09:412017-04-04 19:14
psanjuan 
collazoandy4 
urgentmajoralways
closedfixed 
20Community Appliance
 
3.0PR17Q1.13.0PR17Q1.1 
aferraz
Core
No
0035693: 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.0PR17Q1.1
2017-04-04 19:14hgbotCheckin
2017-04-04 19:14hgbotNote Added: 0095832
2017-04-04 19:14hgbotStatusscheduled => resolved
2017-04-04 19:14hgbotResolutionopen => fixed
2017-04-04 19:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1.1/rev/e414a438a5bfac3594f8d00782bc6f85cabb69a9 [^]
2017-04-04 19:14aferrazReview Assigned To => aferraz
2017-04-04 19:14aferrazNote Added: 0095833
2017-04-04 19:14aferrazStatusresolved => closed
2017-04-04 19:14aferrazFixed in Version => 3.0PR17Q1.1

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

Fixes issue 35693: 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
---
(0095833)
aferraz   
2017-04-04 19:14   
Code review + Testing OK