Openbravo Issue Tracking System - Modules
View Issue Details
0050259ModulesDistribution Orderspublic2022-09-15 16:232022-10-14 14:16
azzeddine_meftoh 
AtulOpenbravo 
normalmajorhave not tried
closedfixed 
5
 
 
0050259: issue DO automatically when DO imported by API
when importing a DO through the API with :
"IsAutomaticallyIssueStock": true,
preference “Auto Generate DO Reception Tasks after Issue”

preference “In-Transit Bin for Automatic Issue DO” set

Json :
[
{
"organization": "SMCP",
"isIssue": true,
"IsAutomaticallyIssueStock": true,
"documentNo": "AZZ551000000002823700",
"orderDate": "2022-09-12T00:00:00Z",
"scheduledDeliveryDate": "2022-09-12T00:00:00Z",
"warehouseIssue": "0960",
"warehouseReceipt": "0042",
"lines": [
{
"product": "3607171624294",
"operativeQuantity": 1,
"qtyIssued": 1
}
]
}
]

if i don't have stock on the issue warehouse for the product i get a success in the EDL but my DOi is not created

if i have 5 products in stock and i send "qtyIssued": 10 i get a DOi with just 5 products issued altough the used storage bin allows overissue

if i have enough stock the DOi is issued at 100% and the generated tasks are OK
details to reproduce in description section
No tags attached.
Issue History
2022-09-15 16:23azzeddine_meftohNew Issue
2022-09-15 16:23azzeddine_meftohAssigned To => Triage Omni WMS
2022-09-21 19:40hgbotNote Added: 0141293
2022-09-21 19:42AtulOpenbravoStatusnew => scheduled
2022-09-21 19:42AtulOpenbravoAssigned ToTriage Omni WMS => AtulOpenbravo
2022-10-14 14:16hgbotResolutionopen => fixed
2022-10-14 14:16hgbotStatusscheduled => closed
2022-10-14 14:16hgbotNote Added: 0142086
2022-10-14 14:16hgbotNote Added: 0142087
2022-10-14 14:16hgbotNote Added: 0142088

Notes
(0141293)
hgbot   
2022-09-21 19:40   
Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/19 [^]
(0142086)
hgbot   
2022-10-14 14:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: ad3772f46867fc7ad6428c8dfe88a6e1990a6a61
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 14-10-2022 14:07:17
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/commit/ad3772f46867fc7ad6428c8dfe88a6e1990a6a61 [^]

Fixed BUG-0050259: Issue DO automatically when DO imported by API

**Create Movement Line though product does not have enough stock,
if partial stock exists create lines with available stock, if
pendingqty exists or there is no stock then create movement lines
for the required quantity for product without attribute set, for
product with attribute set only create partial movements as per
stock available else do not create movements irrespective of the
overissue flag.
**Add pendingqty to the movementline created for partial stock
in case product has no attribute and bin has overissue inventory
status

---
M src/org/openbravo/distributionorder/actionHandler/ProcessIssue.java
---
(0142087)
hgbot   
2022-10-14 14:16   
Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: 7e55c903fa362b7af518eb9def8a5aacca1d74cb
Author: Víctor Martínez Romanos <victor.martinez@openbravo.com>
Date: 14-10-2022 14:09:27
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/commit/7e55c903fa362b7af518eb9def8a5aacca1d74cb [^]

Related to ISSUE-50259: fixed code formatting

---
M src/org/openbravo/distributionorder/actionHandler/ProcessIssue.java
---
(0142088)
hgbot   
2022-10-14 14:16   
Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/19 [^]