Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053444Retail ModulesRetail APIpublic2023-09-12 16:392023-09-27 11:27
Leosbanis 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
RR20Q1.3 
 
approved
Gold
No
0053444: External Order Loader (Ship Step) finish with error
When using the External Order Loader, we try to ship an order that has a line with an ordered quantity greater than zero and this has been deleted from the WebPOS (em_obpos_isdeleted=Y) the process ends with an error.

org.openbravo.base.exception.OBException: Error in OrderLoader: Error when creating the shipment:

Caused by: java.lang.IndexOutOfBoundsException: Index 16 out of bounds for length 16
        at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
        at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
        at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]

See attached document for more details.
1- From WebPOS, create an order with several lines
2- Delete one of them.
3- Prepare the orden for delivery.
4- Using an external system send a Ship step request.
No tags attached.
related to defect 0052925 closed ranjith_qualiantech_com Ship step of ExternalOrderLoader fails when there is a deleted line before an ordered line in the receipt 
pdf When using the External Order Loader.pdf (620,166) 2023-09-12 16:39
https://issues.openbravo.com/file_download.php?file_id=18952&type=bug
Issue History
2023-09-12 16:39LeosbanisNew Issue
2023-09-12 16:39LeosbanisAssigned To => Triage Platform Conn
2023-09-12 16:39LeosbanisFile Added: When using the External Order Loader.pdf
2023-09-12 16:39LeosbanisOBNetwork customer => No
2023-09-12 16:39LeosbanisTriggers an Emergency Pack => No
2023-09-12 16:52adrianromeroAssigned ToTriage Platform Conn => Retail
2023-09-12 17:02kchoperenaOBNetwork customerNo => Gold
2023-09-13 06:53ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-09-13 11:12ranjith_qualiantech_comRelationship addedrelated to 0052925
2023-09-13 11:25ranjith_qualiantech_comStatusnew => scheduled
2023-09-18 06:01hgbotMerge Request Status => open
2023-09-18 06:01hgbotNote Added: 0154911
2023-09-18 06:01hgbotNote Added: 0154912
2023-09-27 11:27hgbotMerge Request Statusopen => approved
2023-09-27 11:27hgbotNote Added: 0155290
2023-09-27 11:27hgbotResolutionopen => fixed
2023-09-27 11:27hgbotStatusscheduled => closed
2023-09-27 11:27hgbotNote Added: 0155291
2023-09-27 11:27hgbotNote Added: 0155292
2023-09-27 11:27hgbotNote Added: 0155293

Notes
(0154911)
hgbot   
2023-09-18 06:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1344 [^]
(0154912)
hgbot   
2023-09-18 06:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/76 [^]
(0155290)
hgbot   
2023-09-27 11:27   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/76 [^]
(0155291)
hgbot   
2023-09-27 11:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api [^]
Changeset: f1a3246c17ab9afe9226d9b8cf6d85182245c183
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 13-09-2023 14:57:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/commit/f1a3246c17ab9afe9226d9b8cf6d85182245c183 [^]

Fixed ISSUE-53444: Deleted lines should be removed from line json in EOL Transformation hook

---
M src/org/openbravo/retail/api/events/order/ExternalOrderLoaderTransformationJsonHook.java
---
(0155292)
hgbot   
2023-09-27 11:27   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f4ee71f896c2f210239ebda99a37964d112e9b53
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 27-09-2023 09:27:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f4ee71f896c2f210239ebda99a37964d112e9b53 [^]

Related to ISSUE-53444: OrderLine should be fetched from lineReference based on line json
* When creating shipment, OrderLine should be fetched from lineReference
  based on line json

---
M src/org/openbravo/retail/posterminal/utility/ShipmentUtils.java
---
(0155293)
hgbot   
2023-09-27 11:27   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1344 [^]