Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057079Retail ModulesRetail APIpublic2024-11-07 13:352024-11-16 09:17
kchoperena 
Bimla_vm 
normalmajoralways
closedfixed 
5
 
RR24Q3.3RR24Q3.3 
approved
guillermogil
OBPS
No
0057079: Export Order API: returnedQuantity is not filled correctly
Whenever a return is happening in Web POS, there is a Web POS Order Creation event that throws an integration to an external system with the JSON of the created order (return in this case)

In this JSON, the returnedQuantity is always 0
For example, in a return with 1 line with qty 2, the returnedQuantity should be 2
PRE-REQUIREMENTS:
Configure in the back-end, Event Subscription window, the Web POS Order Creation event.

STEPS:
1.- Log into the WebPOS
2.- Create an order with one line and qty 2. Complete it
3.- In the order selector, search the order you have created in the previous step and using the contextual menu, start the verified return process
4.- Return completely the order

RESULT:
In the JSON of the Order sent in the event you will notice that the returnedQuantity is 0
Looks like the query of the class ExportOrderLineJavaPropertyMappingHandler, method getReturnedQuantity,was wrongly implemented

See the attached screenshot
No tags attached.
blocks defect 0057037 closed Bimla_vm Export Order API: returnedQuantity is not filled correctly 
Issue History
2024-11-13 06:58guillermogilTypedefect => backport
2024-11-13 06:58guillermogilTarget Version => RR24Q3.3
2024-11-14 11:01hgbotNote Added: 0171970
2024-11-16 09:07hgbotResolutionopen => fixed
2024-11-16 09:07hgbotStatusscheduled => resolved
2024-11-16 09:07hgbotNote Added: 0172085
2024-11-16 09:07hgbotMerge Request Statusopen => approved
2024-11-16 09:07hgbotNote Added: 0172086
2024-11-16 09:17guillermogilReview Assigned To => guillermogil
2024-11-16 09:17guillermogilStatusresolved => closed
2024-11-16 09:17guillermogilFixed in Version => RR24Q3.3

Notes
(0171970)
hgbot   
2024-11-14 11:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/384 [^]
(0172085)
hgbot   
2024-11-16 09:07   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 4777ec4fb4a4c1dcf33593e1eb2eeecf70e3f019
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 16-11-2024 08:06:55
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/4777ec4fb4a4c1dcf33593e1eb2eeecf70e3f019 [^]

Fixed ISSUE-57079: Modified the deliveredQuantity in case of Returns

---
M src/org/openbravo/api/mappings/orderline/ExportOrderLineJavaPropertyMappingHandler.java
---
(0172086)
hgbot   
2024-11-16 09:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/384 [^]