Openbravo Issue Tracking System - Modules
View Issue Details
0057830ModulesDistribution Orderspublic2025-01-31 22:102025-02-20 14:09
axelmercado 
Sandrahuguet 
highminoralways
scheduledopen 
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

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 [^]