Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049330Retail ModulesRetail APIpublic2022-05-16 10:352022-05-25 09:14
wicherr 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR20Q3.4RR22Q3 
No
0049330: The ExportOrder API sent a wrong messge when the ticket is not found
Target version : Openbravo3.0 PR20Q3.5


When we use the API endpoint org.openbravo.retail.posterminal.ExportOrder

and when we have and error like :
Caused by: org.openbravo.base.exception.OBException: Can not be found any order with the provided document No: XXXXXXXX00001

The response provided by the API is :

 "response": {
        "requestStreamConnectionTime": 1652688255598,
        "requestDataLoadedTime": 1652688255607,
        "responseDataSentTime": 1652688255607,
        "status": -1,
        "error": {
            "message": "Error in PaidReceips: ",
            "title": "",
            "className": "org.openbravo.base.exception.OBException"
        },
        "totalRows": 0
    }
}
Call the API org.openbravo.retail.posterminal.ExportOrder with a non existing order
We should have a proper message telling the order is not found
NOR
related to defect 0049118 closed rqueralta M_PRODUCT.VALUE not included on “Export Order“ API 
Issue History
2022-05-16 10:35wicherrNew Issue
2022-05-16 10:35wicherrAssigned To => Triage Platform Conn
2022-05-16 10:35wicherrTriggers an Emergency Pack => No
2022-05-16 10:35wicherrTag Attached: NOR
2022-05-16 13:42caristuAssigned ToTriage Platform Conn => Retail
2022-05-20 10:51ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-05-23 13:02rafarodaRelationship addedrelated to 0049118
2022-05-23 13:11ranjith_qualiantech_comStatusnew => scheduled
2022-05-24 06:51hgbotNote Added: 0137649
2022-05-25 09:14hgbotResolutionopen => fixed
2022-05-25 09:14hgbotStatusscheduled => closed
2022-05-25 09:14hgbotFixed in Version => RR22Q3
2022-05-25 09:14hgbotNote Added: 0137706
2022-05-25 09:14hgbotNote Added: 0137707

Notes
(0137649)
hgbot   
2022-05-24 06:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/805 [^]
(0137706)
hgbot   
2022-05-25 09:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9bb19fdd6085c8462118492e505177dec33c1689
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 25-05-2022 07:14:23
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9bb19fdd6085c8462118492e505177dec33c1689 [^]

Fixed ISSUE-49330: Show Custom message when order not found in paid receipt

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0137707)
hgbot   
2022-05-25 09:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/805 [^]