Openbravo Issue Tracking System - POS2
View Issue Details
0056532POS2POSpublic2024-09-23 16:472024-10-01 13:07
malsasua 
SABARINATH P 
highmajorsometimes
closedfixed 
5
 
25Q1 
No
0056532: EWI generated by cashup: business date is null
Sometimes, when a cashup is processed, an EWI is created with the error message:
org.openbravo.base.exception.OBException: Cashup cannot be processed since error occurred in CashClose: Unparseable date: "null"


The problem is caused because in the json (attached), the property businessDate is null.

The whole stack class is:
Caused by: java.text.ParseException: Unparseable date: "null"
    at java.base/java.text.DateFormat.parse(DateFormat.java:395)
    at org.openbravo.retail.sessions.CloseSessionHook.exec(CloseSessionHook.java:33)
    at org.openbravo.retail.posterminal.CashCloseProcessor.executeHooks(CashCloseProcessor.java:222)
    at org.openbravo.retail.posterminal.CashCloseProcessor.processCashClose(CashCloseProcessor.java:197)
    at org.openbravo.retail.posterminal.ProcessCashClose.doReconciliationAndInvoices(ProcessCashClose.java:518)
n/a
. in this line:
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/blob/release/24Q2/src/org/openbravo/retail/sessions/CloseSessionHook.java?ref_type=heads#L30 [^]

if businessDate is null then set the current businessDate in the org
No tags attached.
depends on backport 005660224Q3.2 closed SABARINATH P EWI generated by cashup: business date is null 
depends on backport 005660324Q2.4 closed SABARINATH P EWI generated by cashup: business date is null 
depends on backport 005660824Q4 closed SABARINATH P EWI generated by cashup: business date is null 
? json_ewi.txt.json (37,269) 2024-09-23 16:47
https://issues.openbravo.com/file_download.php?file_id=20178&type=bug
Issue History
2024-09-23 16:47malsasuaNew Issue
2024-09-23 16:47malsasuaAssigned To => Retail
2024-09-23 16:47malsasuaFile Added: json_ewi.txt.json
2024-09-23 16:47malsasuaTriggers an Emergency Pack => No
2024-09-24 06:55guillermogilStatusnew => acknowledged
2024-09-24 08:27SABARINATH PAssigned ToRetail => SABARINATH P
2024-09-24 08:27SABARINATH PStatusacknowledged => scheduled
2024-09-24 13:13hgbotNote Added: 0169528
2024-10-01 07:03hgbotNote Added: 0169787
2024-10-01 07:03hgbotResolutionopen => fixed
2024-10-01 07:03hgbotStatusscheduled => closed
2024-10-01 07:03hgbotNote Added: 0169788
2024-10-01 13:05marvintmStatusclosed => new
2024-10-01 13:05marvintmResolutionfixed => open
2024-10-01 13:05marvintmStatusnew => scheduled
2024-10-01 13:05marvintmStatusscheduled => resolved
2024-10-01 13:05marvintmFixed in Version => 24Q4
2024-10-01 13:05marvintmResolutionopen => fixed
2024-10-01 13:05marvintmStatusresolved => closed
2024-10-01 13:07marvintmStatusclosed => new
2024-10-01 13:07marvintmResolutionfixed => open
2024-10-01 13:07marvintmFixed in Version24Q4 =>
2024-10-01 13:07marvintmStatusnew => acknowledged
2024-10-01 13:07marvintmStatusacknowledged => scheduled
2024-10-01 13:07marvintmStatusscheduled => resolved
2024-10-01 13:07marvintmFixed in Version => 25Q1
2024-10-01 13:07marvintmResolutionopen => fixed
2024-10-01 13:07marvintmStatusresolved => closed

Notes
(0169528)
hgbot   
2024-09-24 13:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/142 [^]
(0169787)
hgbot   
2024-10-01 07:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/142 [^]
(0169788)
hgbot   
2024-10-01 07:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 7c5e28b9092ef718fd42593559ab5f8f91dda7c2
Author: Sabarinath <s.palanisamy@external.orisha.com>
Date: 01-10-2024 04:12:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/7c5e28b9092ef718fd42593559ab5f8f91dda7c2 [^]

Fixed ISSUE-56532: Update businessdate to cashupDate in case businessdate was null.

---
M src/org/openbravo/retail/sessions/CloseSessionHook.java
---