Openbravo Issue Tracking System - Modules
View Issue Details
0041056ModulesAdvanced Warehouse Operationspublic2019-06-07 15:082019-06-10 16:20
airaceburu 
Triage Omni WMS 
normalmajorrandom
acknowledgedopen 
5
 
 
0041056: m_inout can have a return document type coming from a sales order
When creating the shipment from a sales order after picking, confirm, issue (automatic delivery), the document type is set in this piece of code:

createMInOutHeaderFromReceptionOrIssueList -> ShipmentInOutGenerator.java

In this point the document type is retrieved based on the document category that in sales is MMS. The thing is that there are MMS document types that are returns.

As getDocumentType returns a single documentType "randomly" it can return the wrong one
Place a breakpoint in createMInOutHeaderFromReceptionOrIssueList -> ShipmentInOutGenerator.java

Issue (automatic delivery) a sales order

Check getDocumentType query
Add isReturn = :isReturn as a condition for the query and change the API or create another function to retrieve the docType
No tags attached.
duplicate of defect 0041639 closed Triage Omni OMS Openbravo ERP getDocumentType query is not taking into account docTypes set a isReturn 
Issue History
2019-06-07 15:08airaceburuNew Issue
2019-06-07 15:08airaceburuAssigned To => dmiguelez
2019-06-07 15:09airaceburuResolution time => 1561068000
2019-06-10 09:46lmonrealIssue Monitored: martinsdan
2019-06-10 09:46lmonrealIssue Monitored: lmonreal
2019-06-10 11:52ngarciaIssue Monitored: ngarcia
2019-06-10 16:11dmiguelezNote Added: 0112545
2019-06-10 16:12dmiguelezTypedefect => design defect
2019-06-10 16:20SandrahuguetResolution time1561068000 =>
2019-06-10 16:20SandrahuguetStatusnew => acknowledged
2019-06-10 16:20SandrahuguetAssigned Todmiguelez => Triage Finance
2019-08-13 10:30SandrahuguetRelationship addedduplicate of 0041639
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0112545)
dmiguelez   
2019-06-10 16:11   
The problem in this case is that there was no Document Type defined for this category as Default.

There should be always one, and only one, Document Type per category defined as default.

If not, the result can be unpredictable.