Openbravo Issue Tracking System - Modules
View Issue Details
0054974ModulesAdvanced Warehouse Operationspublic2024-03-15 23:572024-08-05 12:49
axelmercado 
ludmila_ursu 
normalminorrandom
feedbackopen 
5
 
 
0054974: Task and Reception list duplicated caused by delta SAME flow in SMCP
The SMCP client has been presenting a problem of duplicated task and receptions lists for some time. When a task contains the confirmed quantity less than the expected/issued quantity, a duplicate task is created as if the "Delta Same" button was selected in AWO, when the client does not contain such functionality.

We believe this is due to the following part of the code where the deltaResponse = OBAWO_Constants.DELTA_SAME:

  private String getDeltaResponse(final OBAWOTask task) {
    String deltaResponse = null;
    if (task.getDeltaResponse() != null) {
      deltaResponse = task.getDeltaResponse();
    } else {
      if (StringUtils.equals(OBAWO_Constants.DELTA_DIFFERENT,
          task.getInventoryTransactionType().getDeltaResponse())) {
        deltaResponse = OBAWO_Constants.DELTA_DIFFERENT;
      } else {
        deltaResponse = OBAWO_Constants.DELTA_SAME;
      }
      task.setDeltaResponse(deltaResponse);
    }
    return deltaResponse;
  }
At AWO:
1- Select a DO that is available to receive.
2- Confirm some tasks completely and others partially or with quantity 0.
3- After having processed all the tasks of the DO, verify that the tasks received partially or with quantity 0, a new task has been created.
4- Check in BO the previous DO and verify that the tasks and the reception list are duplicated.
No tags attached.
png image.png (15,442) 2024-03-18 18:45
https://issues.openbravo.com/file_download.php?file_id=19561&type=bug
png
Issue History
2024-03-15 23:57axelmercadoNew Issue
2024-03-15 23:57axelmercadoAssigned To => Triage Omni WMS
2024-03-18 09:24mtaalAssigned ToTriage Omni WMS => ludmila_ursu
2024-03-18 11:28aferrazStatusnew => feedback
2024-03-18 12:00aferrazNote Added: 0162265
2024-03-18 18:45axelmercadoFile Added: image.png
2024-03-18 18:45axelmercadoNote Added: 0162308
2024-03-18 18:45axelmercadoStatusfeedback => new
2024-04-22 11:40mtaalStatusnew => feedback
2024-05-14 09:15ludmila_ursuNote Added: 0164535
2024-05-14 14:53ludmila_ursuNote Edited: 0164535bug_revision_view_page.php?bugnote_id=0164535#r27960
2024-06-24 20:42axelmercadoPriorityhigh => normal
2024-06-24 20:42axelmercadoSeveritymajor => minor

Notes
(0162265)
aferraz   
2024-03-18 12:00   
Moved to feedback because we don't have enough information to reproduce the problem.
(0162308)
axelmercado   
2024-03-18 18:45   
As can be seen in the attached image, duplicate tasks come with the delta response = SAME field. The SMCP client does not have the SAME button flow, the user cannot set it. The only part of the code where this value is set is the one mentioned in the description, which details the behavior of the tasks received partially or with a value of 0.
The random reproducibility has been given because it is not an easy problem to reproduce, sometimes it happens and sometimes it doesn't, but the flow of steps to follow is the basic one: You have a DO to receive, you proceed to receive them and some tasks are received partially, nothing else (this in the client environment).
(0164535)
ludmila_ursu   
2024-05-14 09:15   
(edited on: 2024-05-14 14:53)
Extra logs present in production since 24/04. Informed Romain about the added logs, they can continue with the analysis