Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050883Openbravo ERP04. Warehouse managementpublic2022-11-14 12:482023-01-12 08:18
avicente 
radhakrishnan 
highmajoralways
closedfixed 
5
 
 
Core
No
0050883: [DO OTF] DO confirmed with stock neg > Display is KO
When a DO OTF confirmed with products with negative stock is reopen, the Available Stock Quantity and the Confirmed Quantity are not correctly informed. See image.
Login in AWO
Create DO OTF with stock neg item
Confirm the DO OTF
Go back on the DO OTF --> ERROR: the Available Stock Quantity and the Confirmed Quantity are not correctly informed
In the example:
-Available Stock Quantity=-19
-Confirmed Quantity=3

Same behaviour that when products with stock are selected.
FASH
has duplicate defect 0051012 closed radhakrishnan When creating a distribution order in the backoffice, Open in AWO a DO confirmed display confirmed quantity = 0 
png OP-3092.png (93,416) 2022-11-14 12:48
https://issues.openbravo.com/file_download.php?file_id=17819&type=bug
png
Issue History
2022-11-14 12:48avicenteNew Issue
2022-11-14 12:48avicenteAssigned To => Triage Omni WMS
2022-11-14 12:48avicenteFile Added: OP-3092.png
2022-11-14 12:48avicenteModules => Core
2022-11-14 12:48avicenteTriggers an Emergency Pack => No
2022-11-14 12:48avicenteIssue generated from0050858
2022-11-14 12:48avicenteTag Attached: FASH
2022-11-17 12:57vmromanosAssigned ToTriage Omni WMS => mtaal
2022-12-15 11:23vmromanosAssigned Tomtaal => Retail
2022-12-20 12:16vmromanosRelationship addedrelated to 0051012
2022-12-22 14:01radhakrishnanAssigned ToRetail => radhakrishnan
2022-12-22 14:01radhakrishnanStatusnew => scheduled
2022-12-27 11:56migueldejuanaNote Added: 0145020
2022-12-27 12:46migueldejuanaNote Edited: 0145020bug_revision_view_page.php?bugnote_id=0145020#r25312
2022-12-29 10:35hgbotNote Added: 0145076
2023-01-12 08:18hgbotResolutionopen => fixed
2023-01-12 08:18hgbotStatusscheduled => closed
2023-01-12 08:18hgbotNote Added: 0145309
2023-01-12 08:18hgbotNote Added: 0145310
2023-01-24 09:10marvintmRelationship replacedhas duplicate 0051012

Notes
(0145020)
migueldejuana   
2022-12-27 11:56   
(edited on: 2022-12-27 12:46)
When loading a Confirmed or Closed (not Ongoing) Distribution Order Issue in AWO, we should not show "Available Stock Quantity". The stock is not saved when confirming the DOi and showing the current Stock when loading a DOi could be confusing. I wouldn't show any Quantity in that column when loading Confirmed or Closed Distribution Orders.

When loading a Confirmed or Closed (not Ongoing) Distribution Order Issue in AWO, we show "Confirmed Quantity" but when the line was created with negative stock, we show Confirmed Quantity = 0. This happens because we take that info from the Reservation and in lines with negative stock, there is no reservation. In order to fix this, I would get Issued Quantity field from Distribution Order Line and I would change header name to "Issued Quantity" when loading a Confirmed or Closed DOi, because that info is always there, even if it is not a a line with negative stock.

(0145076)
hgbot   
2022-12-29 10:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/29 [^]
(0145309)
hgbot   
2023-01-12 08:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders [^]
Changeset: d8231b03269bf93e93c240e7b2562edde53a561f
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 12-01-2023 07:17:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/commit/d8231b03269bf93e93c240e7b2562edde53a561f [^]

Fixed ISSUE-50883: Confirmed DO should not show the count of stock availability
* If DO is in ongoing state then it should show the count of stock availability otherwise
  it should not show it
* If DO is not as a ongoing then the confirmed quantity replaced as a issued quantity
* If it is not OG then the Quantity On Hand and Reserved Quantity and Quantity Counter should not shown
  in Product Detail Card

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/datasources/DistributionOrderInfoProvider.java
M web/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/source/obawo-distributionorder-model.js
M web/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/source/obawo-distributionorder-view.js
---
(0145310)
hgbot   
2023-01-12 08:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/29 [^]