Openbravo Issue Tracking System - Modules
View Issue Details
0057830ModulesDistribution Orderspublic2025-01-31 22:102025-02-28 06:38
axelmercado 
Sandrahuguet 
highminoralways
closedfixed 
5
 
 
0057830: Problem with duplicity of lines when generating issue from “Issue Distribution Order”.
When we generate a DOI issue from the “Issue Distribution Order” window manually, for some reason a line is duplicated generating additional erroneous movements.
Video with the steps in Livebuilds: https://drive.google.com/file/d/15VHOpF1JIXM7oHyQLUCp0Zx0E2NiBZBB/view?usp=sharing [^]
No tags attached.
pdf 57830-livebuilds-reproduction.pdf (213,976) 2025-02-17 20:15
https://issues.openbravo.com/file_download.php?file_id=20922&type=bug
Issue History
2025-01-31 22:10axelmercadoNew Issue
2025-01-31 22:10axelmercadoAssigned To => Triage Omni WMS
2025-02-03 14:22vmromanosNote Added: 0175063
2025-02-03 14:22vmromanosStatusnew => feedback
2025-02-03 15:10axelmercadoNote Added: 0175064
2025-02-03 15:10axelmercadoStatusfeedback => new
2025-02-17 20:15mtaalFile Added: 57830-livebuilds-reproduction.pdf
2025-02-17 20:15mtaalNote Added: 0175780
2025-02-17 21:20axelmercadoNote Deleted: 0175064
2025-02-18 10:55mtaalAssigned ToTriage Omni WMS => Sandrahuguet
2025-02-18 11:02mtaalNote Edited: 0175780bug_revision_view_page.php?bugnote_id=0175780#r29256
2025-02-20 13:07hgbotNote Added: 0175972
2025-02-20 14:09SandrahuguetStatusnew => scheduled
2025-02-28 05:19AtulOpenbravoNote Added: 0176251
2025-02-28 06:38hgbotResolutionopen => fixed
2025-02-28 06:38hgbotStatusscheduled => closed
2025-02-28 06:38hgbotNote Added: 0176253
2025-02-28 06:38hgbotNote Added: 0176254

Notes
(0175063)
vmromanos   
2025-02-03 14:22   
I think you are not using the functionality properly.

See documentation: https://wiki.openbravo.com/wiki/Projects/Distribution_Orders/User_Document#Issue_Distribution_Order [^]

Usually you just want to create the header, populate the DO and In Transit bin fields, and press the Generate Issue button, which will automatically create the lines with the available stock.

I don't understand what you are trying to do in the video and what you pretend the Generate Issue button to perform if you create manual lines with a new bin different from the In-Transit bin at the header.
(0175780)
mtaal   
2025-02-17 20:15   
(edited on: 2025-02-18 11:02)
After further email discussion the issue showed to be reproducable in livebuilds (see attached document).

FYI, in theory the process works like this:

1. It iterates over the DOi lines declared in the Issue DO header.

2. If there is a previous Issue DO line linked to the DOi line and the product is the same as in the DOi line, it doesn't try to calculate anything.

3. Otherwise, it creates as many Issue DO lines as necessary to deliver the correspondent DOi line.

4. If there is an overissue bin declared, it goes to negative if necessary using this bin only if the line hasn't been added manually by the user.

It showed it didn't work, see attached file for reproduction steps in livebuilds

(0175972)
hgbot   
2025-02-20 13:07   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/92 [^]
(0176251)
AtulOpenbravo   
2025-02-28 05:19   
Test Plan

- Login with AWO-QAAdmin role, Organization: España, Warehouse: España Región Norte
- Make sure for Organization: España in Information Tab, Advanced Warehouse Operation Flow is not set as Checked.
- Make Sure In Warehouse Definition for España Región Norte, Enable Distribution Order Approval is not set as Checked.

- Navigate to Distribution Order
- Create record for Organization: España, Warehouse Issue: España Región Norte, Warehouse Receipt: España Región Sur, Order Date = Scheduled Delivery Date = Todays Date
- Add Line 10 for product AWOPrefTest001 with Quantity 5.
- Add Line 20 for product ISChangeFromBinTest0001 with Quantity 10.
- Book the DO.

- Navigate to Issue Distribution Order.
- Create record for Organization: España, Select Distribution Order Issue as the one created in previous step, set In Transit Bin as RS-Dev
- Navigate to Lines and create line 10 for product AWOPrefTest001 with Quantity 1, new Storage Bin as RS-1-0-0.
- Link Distribution Order line no 10 to this record.
- Create line 20 for product ISChangeFromBinTest0001 with Quantity 5, new Storage Bin as RS-1-0-0.
- Link Distribution Order line no 20 to this record.
- Click on Generate Issue button in the header.
- Realize that there are only 2 lines as they were created previously.
- Realize that in DIstributuon Order Lines relevant Issue Quantity information is updated i.e for Line 10, Issue Quantity : 1 and for Line 20, Issue Quantity is 5.
- At header Distribution Order Issue Status is 40%.


- Navigate to Issue Distribution Order.
- Create record for Organization: España, Select Distribution Order Issue as the one created in previous step, set In Transit Bin as RS-Dev
- Click on Generate Issue button in the header.
- Realize that there are only 2 lines created with Movement Qty 4 for Product AWOPrefTest001 and Movement Quantity 5 for Product ISChangeFromBinTest0001
- Realize that in DIstributuon Order Lines relevant Issue Quantity information is updated i.e for Line 10, Issue Quantity : 5 and for Line 20, Issue Quantity is 10.
- At header Distribution Order Issue Status is 100%.
(0176253)
hgbot   
2025-02-28 06:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: 700a0849205570eafa721f56745772e4ed03fe39
Author: Sandra Huguet <s.huguet@orisha.com>
Date: 27-02-2025 22:08:48
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/commit/700a0849205570eafa721f56745772e4ed03fe39 [^]

Fixed ISSUE-57830: Fixed duplicity lines in generate issue process

---
M src/org/openbravo/distributionorder/actionHandler/ProcessIssue.java
---
(0176254)
hgbot   
2025-02-28 06:38   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/92 [^]