Openbravo Issue Tracking System - POS2
View Issue Details
0056064POS2POSpublic2024-07-18 16:102024-07-31 09:00
azzeddine_meftoh 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
 
adrianromero
No
0056064: The BATCH_CLOSE json is not sending the informations about the payments collected, if they are not counted
if the payment are not counted during the cashup we are getting a batch_close websocket message without the payment data block :

{
    "terminal": {
        "ID": "0005",
        "operator": "ameftoh",
        "locale": "en_US",
        "organization": "20"
    },
    "action": "BATCH_CLOSE",
    "serviceId": "0228821976",
    "data": {
        "cacheSessionId": null,
        "timezoneOffset": -120,
        "cashupDate": "2024-07-18T13:49:02.628Z",
        "lastcashupeportdate": "2024-07-18T13:49:02.628Z",
        "grossReturns": 0,
        "grossSales": 808.41,
        "initialTicketDate": "2024-07-18T13:48:53.140Z",
        "netReturns": 0,
        "netSales": 668.11,
        "totalRetailTransactions": 808.41,
        "totalStartings": 0,
        "paymentsData": []
    }
}
have a payment provider using the payment API.
do a cashup without any payment as 'count in cashup'
the message sent in the payment API has no payemnt data

if we put that payment as count in csahup we have the information
No tags attached.
Issue History
2024-07-18 16:10azzeddine_meftohNew Issue
2024-07-18 16:10azzeddine_meftohAssigned To => Retail
2024-07-18 16:10azzeddine_meftohTriggers an Emergency Pack => No
2024-07-18 16:18martinsdanAssigned ToRetail => Triage Platform Conn
2024-07-18 16:24martinsdanIssue Monitored: martinsdan
2024-07-31 08:56adrianromeroStatusnew => scheduled
2024-07-31 08:56adrianromeroAssigned ToTriage Platform Conn => adrianromero
2024-07-31 08:59adrianromeroNote Added: 0167516
2024-07-31 08:59adrianromeroStatusscheduled => resolved
2024-07-31 08:59adrianromeroResolutionopen => fixed
2024-07-31 09:00adrianromeroReview Assigned To => adrianromero
2024-07-31 09:00adrianromeroStatusresolved => closed

Notes
(0167516)
adrianromero   
2024-07-31 08:59   
This issue is already solved in
https://gitlab.com/openbravo/product/pmods/org.openbravo.events.payment/-/commit/2e1925c23e56b12c5d91e61ef3295ab323775b33 [^]

paymentsData will continue sending only payments information that is counted as it is the implemented behaviour.
 
the new providerGroupData includes now the payment information independently whethere is counted or not. BUT only for the payments that belong ot the payment group of the event