Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037070Openbravo ERP07. Sales managementpublic2017-01-03 14:212018-01-25 16:53
psanjuan 
nonofrancisco 
urgentmajoralways
closedfixed 
20Professional Appliance
 
3.0PR17Q3.33.0PR17Q3.3 
dmiguelez
Core
No
0037070: Movement Qty column info not updated once a product with stock is selected in Goods Shipment if Alt UOM Preference is enable.
Movement Qty column info not updated once a product with stock is selected in Goods Shipment if Alt UOM Preference is enable.
In pi:

Go to Goods Shipment window and create a new one for F&B España, Alimentos y Supermercados business partner.
Go to lines and create a new one.
Click on product field, down arrow and select "Cerveza Ale 0.5L".
Verify that Movement Qty field is "automatically" updated with 24415.
See image 34840-1

Remove that line and close Goods Shipment form and leave session.
Log in.
Select System Admin role.

Go to Preference window and create a new record with below setup:

Client = System.
Organization = *
Property = Enable UOM Management.
Value = Y
Visible at = all empty.
Save it.
Log out and Log in.

Go to Goods Shipment window and create a new one for F&B España, Alimentos y Supermercados business partner.
Go to lines and create a new one.
Click on product field, down arrow and select "Cerveza Ale 0.5L".
Verify that Operative Qty field is empty.

See image 34840-2

Operative Quantity field should be automatically populated at least for those product do not having an alternative UOM but the same one they are stored in.

To be discussed whether this behaviour can be extended to products having an alternative UOM configured.
No tags attached.
blocks defect 0034840 closed nonofrancisco Movement Qty column info not updated once a product with stock is selected in Goods Shipment if Alt UOM Preference is enable. 
Issue History
2017-10-13 15:13nonofranciscoTypedefect => backport
2017-10-13 15:13nonofranciscoTarget Version => 3.0PR17Q3.1
2017-11-02 16:21dmiguelezTarget Version3.0PR17Q3.1 => 3.0PR17Q3.2
2017-12-26 13:53vmromanosTarget Version3.0PR17Q3.2 => 3.0PR17Q3.3
2018-01-25 16:52hgbotCheckin
2018-01-25 16:52hgbotNote Added: 0101959
2018-01-25 16:52hgbotStatusscheduled => resolved
2018-01-25 16:52hgbotResolutionopen => fixed
2018-01-25 16:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/5020d82d2aa24b44cb9c68dc3271811977b4099d [^]
2018-01-25 16:52hgbotCheckin
2018-01-25 16:52hgbotNote Added: 0101960
2018-01-25 16:52hgbotCheckin
2018-01-25 16:52hgbotNote Added: 0101961
2018-01-25 16:53dmiguelezReview Assigned To => dmiguelez
2018-01-25 16:53dmiguelezNote Added: 0101963
2018-01-25 16:53dmiguelezStatusresolved => closed
2018-01-25 16:53dmiguelezFixed in Version => 3.0PR17Q3.3

Notes
(0101959)
hgbot   
2018-01-25 16:52   
Repository: erp/backports/3.0PR17Q3.3
Changeset: 5020d82d2aa24b44cb9c68dc3271811977b4099d
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Mon Jan 22 12:12:44 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/5020d82d2aa24b44cb9c68dc3271811977b4099d [^]

Fixes issue 37070: Movement Qty column info not updated once a product with stock
is selected in Goods Shipment if Alt UOM Preference is enable.

Operative Quantity field isautomatically populated if the selected product
do not have a default Alternative UOM configured and the product has
quantity on hand.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
---
(0101960)
hgbot   
2018-01-25 16:52   
Repository: erp/backports/3.0PR17Q3.3
Changeset: ea4b983ef074926b7ad108585a770d273c09631a
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Jan 22 12:30:04 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/ea4b983ef074926b7ad108585a770d273c09631a [^]

Related to issue 37070: Code Review changes

* Added final modifier to product object again
* Removed unused methods
* When setting the AUM, set also the Quantity expresed in AUM
  and for that, convert the original quantity to the AUM equivalent.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
---
(0101961)
hgbot   
2018-01-25 16:52   
Repository: erp/backports/3.0PR17Q3.3
Changeset: 3101f4e449bc06b205d968ba8f72010a918d74ca
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Wed Jan 24 16:21:27 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.3/rev/3101f4e449bc06b205d968ba8f72010a918d74ca [^]

Related to Issue 37070. Change done to reload the qty in stock for a product
instead of 0 after the line has been saved

---
M src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
---
(0101963)
dmiguelez   
2018-01-25 16:53   
Code Review + Testing Ok