Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0052925 | Retail Modules | Retail API | public | 2023-07-05 12:17 | 2023-07-12 09:22 | |||||||
Reporter | kchoperena | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | approved | |||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0052925: Ship step of ExternalOrderLoader fails when there is a deleted line before an ordered line in the receipt | |||||||||||
Description | If there is an order with the same status as the attached screenshot, the ExternalOrderLoader's ship step is failing because the filterNoDeletedLines function of ExternalOrderLoaderTransformationJsonHook class is not correctly building the noDeletedLines array | |||||||||||
Steps To Reproduce | Create an order using WebPOS that is persisted in the database with a deleted line before an ordered line according to the lineNo order (see screenshot) Call to the ExternalOrderLoader with the step "SHIP" to deliver only one line. Example: { "messageId": "messageId", "posTerminal": "214101", "channel": "External", "data": [ { "id": "orderId", "step": "ship", "lines": [ { "id": "line1", "qty": 1 } ] } ] } RESULT: The filterNoDeletedLines will create an array with a null value and later the ExternalOrderLoader will fail processing it | |||||||||||
Proposed Solution | When building noDeletedLines avoid the index parameter putting elements in the JSONArray Attached a patch | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=18727&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=18728&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2023-07-05 12:17 | kchoperena | New Issue | ||||||||||
2023-07-05 12:17 | kchoperena | Assigned To | => Triage Platform Conn | |||||||||
2023-07-05 12:17 | kchoperena | File Added: Screenshot from 2023-07-05 12-05-17.png | ||||||||||
2023-07-05 12:17 | kchoperena | OBNetwork customer | => Gold | |||||||||
2023-07-05 12:17 | kchoperena | Triggers an Emergency Pack | => No | |||||||||
2023-07-05 12:20 | kchoperena | Proposed Solution updated | ||||||||||
2023-07-05 12:21 | kchoperena | File Added: issue5295.diff | ||||||||||
2023-07-05 12:44 | adrianromero | Assigned To | Triage Platform Conn => Retail | |||||||||
2023-07-07 09:27 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2023-07-07 09:27 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2023-07-10 09:38 | hgbot | Merge Request Status | => open | |||||||||
2023-07-10 09:38 | hgbot | Note Added: 0152229 | ||||||||||
2023-07-12 09:22 | hgbot | Merge Request Status | open => approved | |||||||||
2023-07-12 09:22 | hgbot | Note Added: 0152373 | ||||||||||
2023-07-12 09:22 | hgbot | Resolution | open => fixed | |||||||||
2023-07-12 09:22 | hgbot | Status | scheduled => closed | |||||||||
2023-07-12 09:22 | hgbot | Note Added: 0152374 | ||||||||||
2023-09-13 11:12 | ranjith_qualiantech_com | Relationship added | related to 0053444 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|