Openbravo Issue Tracking System - Modules
View Issue Details
0037440ModulesWarehouse Packingpublic2017-12-07 17:292017-12-18 11:52
JONHM 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
dmiguelez
0037440: Product quantities are updating to 0 below a box field set as blank
Product quantities are updating to 0 below a box field set as blank when having more than one box displayed
1) Open 'Goods Shipment' window and create a new shipment:
 - Org: F&B US Weast Coast
 - BP: Healthy Food Supermarkets, Co.

Then, create lines for different products

2) Complete the Goods Shipment

3) Open 'Pack' process (button 'Pack') and introduce the quantities for the products. Then press button 'pack' to complete the process.

4) Open again the process (button 'Pack') and add a new box. Then, delete one of the quantities with no value. Press button 'pack' again to complete the process.

When opening again the Pack window, the quantities below the previously modified one are set as '0'.
No tags attached.
? packingWrongQuantities.mp4 (2,155,223) 2017-12-07 17:29
https://issues.openbravo.com/file_download.php?file_id=11356&type=bug
Issue History
2017-12-07 17:29JONHMNew Issue
2017-12-07 17:29JONHMAssigned To => Triage Finance
2017-12-07 17:29JONHMFile Added: packingWrongQuantities.mp4
2017-12-07 17:29JONHMResolution time => 1514415600
2017-12-07 20:50eugeniIssue Monitored: eugeni
2017-12-11 13:01vmromanosAssigned ToTriage Finance => AtulOpenbravo
2017-12-13 02:55AtulOpenbravoStatusnew => scheduled
2017-12-18 08:36AtulOpenbravoNote Added: 0101089
2017-12-18 11:50hgbotCheckin
2017-12-18 11:50hgbotNote Added: 0101093
2017-12-18 11:50hgbotStatusscheduled => resolved
2017-12-18 11:50hgbotResolutionopen => fixed
2017-12-18 11:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.packing/rev/ad1915dbdab779d02fd109c13a9c6ada9249683b [^]
2017-12-18 11:50hgbotCheckin
2017-12-18 11:50hgbotNote Added: 0101094
2017-12-18 11:50hgbotCheckin
2017-12-18 11:50hgbotNote Added: 0101095
2017-12-18 11:52dmiguelezReview Assigned To => dmiguelez
2017-12-18 11:52dmiguelezNote Added: 0101096
2017-12-18 11:52dmiguelezStatusresolved => closed

Notes
(0101089)
AtulOpenbravo   
2017-12-18 08:36   
- Login as group admin role:
- Create one sales order for the "Hoteles Buenas Noches, S.A." business partner
- Add following product (with stock) to it.
  Vino Blanco 0,75L Quantity 1
  Vino Tinto 0,75L Quantity 2
  Vino Rosado 0,75L Quantity 1
- Book it.
- Create goods shipments for the above sales order.
- Go to Packing window and create a new header for the same business partner
- Click on Pick Shipment and select above of the shipments
- Click on Pack, set the quantity as 1 for product Vino Rosado 0,75L in the Box1, 1 & 2 quantities for Vino Blanco 0,75L & Vino Tinto 0,75L respectively
- Check that all lines turns to green and click on pack button in pop up window.
- Again click on Pack Button in Packing Window.
- Realize that In Box 1, Qty = 1 for product Vino Rosado 0,75L
  Qty = 1 for Vino Blanco 0,75L
  Qty = 2 for Vino Tinto 0,75L
- Add Box 2, Set blank value in Qty for product Vino Rosado 0.75L in Box 2
- Click on Pack button in pop up.
- Again click on Pack button in Packing Window
- Realize that Box2 does not appear as the quantity was set as blank in Box2 and in Box1, Quantities are preserved as it is
  Qty = 1 for Vino Rosado 0,75L
  Qty = 1 for Vino Blanco 0,75L
  Qty = 2 for Vino Tinto 0,75L
(0101093)
hgbot   
2017-12-18 11:50   
Repository: erp/pmods/org.openbravo.warehouse.packing
Changeset: ad1915dbdab779d02fd109c13a9c6ada9249683b
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Dec 18 13:59:37 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.packing/rev/ad1915dbdab779d02fd109c13a9c6ada9249683b [^]

Fixes Issue 37440:Product quantities are updating to 0 below a box field set as blank

In mentioned scenario in issue when a blank value in entered quantity
under Box consider it as 0

---
M web/org.openbravo.warehouse.packing/js/OBWPACK_PackingComponent.js
---
(0101094)
hgbot   
2017-12-18 11:50   
Repository: erp/pmods/org.openbravo.warehouse.packing
Changeset: b900cb9d3951365561e588a05bdb6684d032a7a2
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Dec 18 11:30:13 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.packing/rev/b900cb9d3951365561e588a05bdb6684d032a7a2 [^]

Related to issue 37440. Code Review changes. Changed name of variable to be more descriptive

---
M web/org.openbravo.warehouse.packing/js/OBWPACK_PackingComponent.js
---
(0101095)
hgbot   
2017-12-18 11:50   
Repository: erp/pmods/org.openbravo.warehouse.packing
Changeset: f63a4fcf8d258f2f11441f2aa7feb9187895ac88
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Dec 18 11:30:29 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.packing/rev/f63a4fcf8d258f2f11441f2aa7feb9187895ac88 [^]

Related to Issue 37440. Updated module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0101096)
dmiguelez   
2017-12-18 11:52   
Code Review + Testing Ok