Openbravo Issue Tracking System - Modules
View Issue Details
0051408ModulesDistribution Orderspublic2023-01-18 21:142023-03-15 23:52
axelmercado 
AtulOpenbravo 
highmajoralways
closedfixed 
5
 
 
0051408: Distribution order module - Process Receipts backoffice error
When trying to generate movements between warehouses of products in stock, and before completing the Receipt Dist. Order related to the movement, if a new inventory is generated at 0 of the products to be moved, it generates an internal error without displaying the message on the screen and allows the movement with negative stock in the new inventory as many times as the user presses the complete button.

Problem summarized by the partner Practics and leaving some points to consider:
This I comment happens when you make the reception of a distribution, where one of its lines has run out of stock.
Therefore the example would be:
- to have configured in the warehouse, that negative sales are not allowed
- set stock to 1 for a couple of products
- make the IDO of these products
- when you are going to make the reception of those, then before processing the reception, make an inventory for example to 0 of one of those products. In this way you will force not to have stock of that one and you will see the problem when processing the document.
1- Create a Dist Order Issue, with a couple of products that you have in stock (You can try with the product in stock 1).
2- Complete the Issue and the stock will be moved to the warehouse configured as transit itself.
3- In the Dist order receipt related to the Issue, generate the Receipt Dist Order with those two products, but without completing it yet.
4- If someone in this step makes an inventory to 0 of any of these products, when you give to complete that Receipt Dist order it will give a Success message, but internally it is giving an error of Insufficient stock when processing those movements.
The error is not displayed on the screen, and moreover, it updates the quantities received from your Dist order Receipt, causing that if the user gives 5 times to Process, the amount received will be 5.
Attached patch.
No tags attached.
diff doProcessReceipt.diff (2,174) 2023-01-18 21:14
https://issues.openbravo.com/file_download.php?file_id=18043&type=bug
Issue History
2023-01-18 21:14axelmercadoNew Issue
2023-01-18 21:14axelmercadoAssigned To => Triage Omni WMS
2023-01-18 21:14axelmercadoFile Added: doProcessReceipt.diff
2023-01-18 21:20axelmercadoCategoryDistribution Order for Advanced Warehouse Operations => Distribution Orders
2023-01-31 14:43vmromanosAssigned ToTriage Omni WMS => AtulOpenbravo
2023-03-01 07:17AtulOpenbravoNote Added: 0147145
2023-03-01 07:17AtulOpenbravoStatusnew => feedback
2023-03-01 07:17AtulOpenbravoFile Added: InsufficientStock51408.png
2023-03-01 07:18AtulOpenbravoNote Edited: 0147145bug_revision_view_page.php?bugnote_id=0147145#r25607
2023-03-01 07:45AtulOpenbravoFile Deleted: InsufficientStock51408.png
2023-03-01 07:45AtulOpenbravoStatusfeedback => scheduled
2023-03-01 07:45AtulOpenbravoNote Deleted: 0147145
2023-03-02 11:57AtulOpenbravoNote Added: 0147229
2023-03-02 11:57AtulOpenbravoStatusscheduled => feedback
2023-03-02 20:40axelmercadoNote Added: 0147246
2023-03-02 20:40axelmercadoStatusfeedback => scheduled
2023-03-13 14:37axelmercadoNote Added: 0147490
2023-03-14 10:17hgbotNote Added: 0147513
2023-03-15 23:52hgbotResolutionopen => fixed
2023-03-15 23:52hgbotStatusscheduled => closed
2023-03-15 23:52hgbotNote Added: 0147576
2023-03-15 23:52hgbotNote Added: 0147577

Notes
(0147229)
AtulOpenbravo   
2023-03-02 11:57   
Not able to reproduce with the steps in backoffice as well as Front End. Need more information.
(0147246)
axelmercado   
2023-03-02 20:40   
I will update the issue with it, but I also leave it here.

https://watch.screencastify.com/v/rmHP4ZzjXnXeECLqfo4Y [^]
(0147490)
axelmercado   
2023-03-13 14:37   
Hi team, any news for this issue?
(0147513)
hgbot   
2023-03-14 10:17   
Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/43 [^]
(0147576)
hgbot   
2023-03-15 23:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: b0f1610f29919c184393eacb8d1ad178a8cf5d3a
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 14-03-2023 10:12:19
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/commit/b0f1610f29919c184393eacb8d1ad178a8cf5d3a [^]

Fixes BUG-0051408: Distribution order module - Process Receipts
backoffice error

**Showing error properly when processing DO Receipt.

---
M src/org/openbravo/distributionorder/actionHandler/ProcessReceipt.java
---
(0147577)
hgbot   
2023-03-15 23:52   
Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/43 [^]