Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035616
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Warehouse Pickingmajoralways2017-03-24 14:272017-05-30 12:17
ReporterngarciaView Statuspublic 
Assigned Tocollazoandy4 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisione6241c8cf7e7
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Toaferraz
Regression introduced in release
Summary

0035616: Wrong stock reservation when deleting partially shipped orders' picking lists lines

DescriptionWrong stock reservation when deleting partially shipped orders' picking lists lines
Steps To ReproduceAs group admin role:
   Apply the module's dataset in F&B US Inc.
   Set the Enable Stock Reservations preference to Y
   Log out and log in

   The following case is still failing:

As group admin role:
   Apply the module's dataset in F&B US Inc.
   Set the Enable Stock Reservations preference to Y
   Log out and log in

   Create a new product in F&B US Inc.
   Receive the following units of it:
      - 40 units in WC-0-0-0
      - 40 units in WC-1-0-0
      - 40 units in WC-2-0-0
   Create a sales order of 100 units of the product
   Generate Picking List from it
   Delete the lines in bins WC-1-0-0 and WC-2-0-0
   Edit the line in bin WC-0-0-0 and reduce the quantity to 5
   Process it
   Generate a new Picking List from the order
   Delete the line from the WC-0-0-0 bin
   Check the stock reservation line has:
      Quantity: 10
      Released: 5
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0035542 closedaferraz Wrong stock reservation when deleting lines or canceling partially shipped orders' picking lists 

-  Notes
(0095681)
collazoandy4 (reporter)
2017-03-29 21:50

As group admin role:
   Apply the module's dataset in F&B US Inc.
   Set the Enable Stock Reservations preference to Y
   Log out and log in

   Create a new product in F&B US Inc.
     Product: Issue 35616
     Create a new record in Price tab:
       Price List Version: General Sales
       Unit Price: 6
       List Price: 8
   Create a new Goods Receipt:
     Business Partner: Be Soft Drinker, Inc.
     Create a new record in Lines tab:
       Product: Issue 35616
       Movement Quantity: 40
       Storage bin: WC-0-0-0
     Create a new record in Lines tab:
       Product: Issue 35616
       Movement Quantity: 40
       Storage bin: WC-1-0-0
     Create a new record in Lines tab:
       Product: Issue 35616
       Movement Quantity: 40
       Storage bin: WC-2-0-0
     Complete the receipt
   Create a new Sales Order
     Business Partner: Healthy Food Supermarkets, Co.
     Create a new record in Lines tab:
       Product: Issue 35616
       Ordered qty: 100
     Book the order
     Generate a Picking List
   Go to Warehouse Picking List select the created picking:
     Delete the lines in bins WC-1-0-0 and WC-2-0-0
     Edit the line in bin WC-0-0-0 and set the quantity to 5
     Process the picking list
   Generate a new Picking List from the order
   Delete the line from the WC-0-0-0 bin
   Check the stock reservation line has:
      Quantity: 5
      Released: 5


Test Plan II
  Create a new Sales Order
     Business Partner: Healthy Food Supermarkets, Co.
     Create a new record in Lines tab:
       Product: Lemonade
       Ordered qty: 20
     Book the order
     Generate a Picking List
   Go to Warehouse Picking List select the created picking:
     Edit the line in bin WC-0-0-0 and set the quantity to 5
     Process the picking list
   Check the stock reservation Quantity/Released = 5
   Generate a new Picking List from the order
   Check the stock reservation Quantity = 20 Released = 5
   Delete the line
   Check the stock reservation line has updated to Quantity/Released = 5
(0095863)
hgbot (developer)
2017-04-06 13:22

Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: e6241c8cf7e7155ff63051c48df403aa878b9cf5
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Tue Apr 04 13:05:11 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/e6241c8cf7e7155ff63051c48df403aa878b9cf5 [^]

Fixes issue 35616: Deleting PL lines with reservation stock releasedqty > 0

When deleting Picking List lines and the releasedqty of the reservation stock
is greater than 0 the stock reservation quantity is not properly updated.

Now the subtraction between the shipment inout line movementqty and the stock releasedqty
it's skipped if the stock reservation quantity is greater than the movementqty because
this movementqty have no effect in the stock reservation releasedqty updating
properly the stock reservation qty by the M_RESERVE_STOCK_MANUAL process

---
M src/org/openbravo/warehouse/pickinglist/actionhandler/DeletePickingLineHandler.java
---
(0095864)
hgbot (developer)
2017-04-06 13:22

Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: fcb18471812de28c0d29405be38b820bb9943bec
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Apr 06 13:11:31 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/fcb18471812de28c0d29405be38b820bb9943bec [^]

Related to issue 35616: Code review improvements

---
M src/org/openbravo/warehouse/pickinglist/actionhandler/DeletePickingLineHandler.java
---
(0095865)
hgbot (developer)
2017-04-06 13:22

Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: 0eb111625ff907ebd1c4541c1fc442534f8a1f9f
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Apr 06 13:21:10 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/0eb111625ff907ebd1c4541c1fc442534f8a1f9f [^]

Related to issue 35616: Update module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0095866)
aferraz (manager)
2017-04-06 13:24

Code review + Testing OK

- Issue History
Date Modified Username Field Change
2017-03-24 14:27 ngarcia New Issue
2017-03-24 14:27 ngarcia Assigned To => aferraz
2017-03-24 14:27 ngarcia Resolution time => 1491429600
2017-03-24 14:27 ngarcia Issue generated from 0035542
2017-03-24 14:28 ngarcia Assigned To aferraz => Triage Finance
2017-03-24 14:28 ngarcia Relationship added depends on 0035542
2017-03-24 14:28 ngarcia Issue Monitored: networkb
2017-03-24 16:01 markmm82 Assigned To Triage Finance => collazoandy4
2017-03-24 16:30 jfrances Issue Monitored: jfrances
2017-03-29 16:03 collazoandy4 Status new => scheduled
2017-03-29 21:50 collazoandy4 Note Added: 0095681
2017-04-06 13:22 hgbot Checkin
2017-04-06 13:22 hgbot Note Added: 0095863
2017-04-06 13:22 hgbot Status scheduled => resolved
2017-04-06 13:22 hgbot Resolution open => fixed
2017-04-06 13:22 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/e6241c8cf7e7155ff63051c48df403aa878b9cf5 [^]
2017-04-06 13:22 hgbot Checkin
2017-04-06 13:22 hgbot Note Added: 0095864
2017-04-06 13:22 hgbot Checkin
2017-04-06 13:22 hgbot Note Added: 0095865
2017-04-06 13:24 aferraz Review Assigned To => aferraz
2017-04-06 13:24 aferraz Note Added: 0095866
2017-04-06 13:24 aferraz Status resolved => closed
2017-05-30 12:17 eugeni Issue Monitored: eugeni


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker