Openbravo Issue Tracking System - Modules
View Issue Details
0053288ModulesDistribution Order for Advanced Warehouse Operationspublic2023-08-24 12:552023-08-24 13:01
AtulOpenbravo 
Triage Omni WMS 
normalmajoralways
newopen 
5
 
 
0053288: Product without stock cannot be added to DO OTF if Ongoing DO document has line for that product
It is not possible to add product without stock if ongoing DO document has a line for the same product that is without stock.
- Login to AWO FE
- Make sure Ale Beer product has no stock in US West Coast warehouse Food001 storage bin.
- Create a DO OTF with US East Coast as Receipt Warehouse, Food001 as Storage Bin.
- Add product Ale Beer with quantity 1
- Go back do not remove the document.
- Create a DO OTF with US East Coast as Receipt Warehouse, Food001 as Storage Bin.
- Try to Add product Ale Beer with quantity 1
- Realize that it is not possible to add the product.
obawo-distributionorder-model.js

if (doLinesWithProduct.length > 0) {
  lastOnlineQtyOnHand = doLinesWithProduct.find(
    savedLine => !OB.UTIL.isNullOrUndefined(savedLine.qtyOnHand)
  ).qtyOnHand;

  lastOnlineReservedQty = doLinesWithProduct.find(
    savedLine => !OB.UTIL.isNullOrUndefined(savedLine.reservedQty)
  ).reservedQty;
}

In above lines doLinesWithProduct returns a null line, hence reservedQty property is not accessible in this case. Null line should be handled property.
No tags attached.
related to defect 0052687 closed agusti_gallego Openbravo ERP [DO OTF] [Offline] [RM-7144] Last online value is not taken into account in other DO 
Issue History
2023-08-24 12:55AtulOpenbravoNew Issue
2023-08-24 12:55AtulOpenbravoAssigned To => Triage Omni WMS
2023-08-24 12:56AtulOpenbravoSummaryProduct without stock cannot be added to DO OTF if Ongoing document has line for that product => Product without stock cannot be added to DO OTF if Ongoing DO document has line for that product
2023-08-24 12:56AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=26701#r26701
2023-08-24 13:00AtulOpenbravoProposed Solution updated
2023-08-24 13:01AtulOpenbravoRelationship addedrelated to 0052687

There are no notes attached to this issue.