Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037718Openbravo ERP07. Sales managementpublic2017-01-03 14:212018-01-25 16:59
psanjuan 
nonofrancisco 
urgentmajoralways
closedfixed 
20Professional Appliance
 
3.0PR18Q13.0PR18Q1 
dmiguelez
Core
No
0037718: 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
2018-01-24 17:18dmiguelezTypedefect => backport
2018-01-24 17:18dmiguelezTarget Version => 3.0PR18Q1
2018-01-25 16:58hgbotCheckin
2018-01-25 16:58hgbotNote Added: 0101970
2018-01-25 16:58hgbotStatusscheduled => resolved
2018-01-25 16:58hgbotResolutionopen => fixed
2018-01-25 16:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q1/rev/d08870405ffbea26123686e731e71fef26e761ab [^]
2018-01-25 16:58hgbotCheckin
2018-01-25 16:58hgbotNote Added: 0101971
2018-01-25 16:59hgbotCheckin
2018-01-25 16:59hgbotNote Added: 0101972
2018-01-25 16:59dmiguelezReview Assigned To => dmiguelez
2018-01-25 16:59dmiguelezNote Added: 0101974
2018-01-25 16:59dmiguelezStatusresolved => closed
2018-01-25 16:59dmiguelezFixed in Version => 3.0PR18Q1

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

Fixes issue 37718: 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
---
(0101971)
hgbot   
2018-01-25 16:58   
Repository: erp/backports/3.0PR18Q1
Changeset: b5fa0f0509d9d87fdc52c2e06f0db9ab2246a298
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.0PR18Q1/rev/b5fa0f0509d9d87fdc52c2e06f0db9ab2246a298 [^]

Related to issue 37718: 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
---
(0101972)
hgbot   
2018-01-25 16:59   
Repository: erp/backports/3.0PR18Q1
Changeset: 815ea8807118c982c31e303f06bb19d3688f2197
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.0PR18Q1/rev/815ea8807118c982c31e303f06bb19d3688f2197 [^]

Related to Issue 37718. 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
---
(0101974)
dmiguelez   
2018-01-25 16:59   
Code Review + Testing Ok