Openbravo Issue Tracking System - POS2
View Issue Details
0056602POS2POSpublic2024-09-23 16:472024-10-17 09:21
malsasua 
SABARINATH P 
highmajorsometimes
closedfixed 
5
 
24Q3.2 
approved
Gold
No
0056602: 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.
blocks defect 0056532 closed SABARINATH P EWI generated by cashup: business date is null 
Issue History
2024-10-01 13:05marvintmTypedefect => backport
2024-10-01 13:05marvintmTarget Version => 24Q3.2
2024-10-17 09:08hgbotNote Added: 0170518
2024-10-17 09:21hgbotResolutionopen => fixed
2024-10-17 09:21hgbotStatusscheduled => closed
2024-10-17 09:21hgbotNote Added: 0170520
2024-10-17 09:21hgbotNote Added: 0170521

Notes
(0170518)
hgbot   
2024-10-17 09:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/150 [^]
(0170520)
hgbot   
2024-10-17 09:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 6235755e3513045eef65c0390f25d6ba53e6ec6a
Author: Sabarinath <s.palanisamy@external.orisha.com>
Date: 17-10-2024 12:37:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/6235755e3513045eef65c0390f25d6ba53e6ec6a [^]

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

---
M src/org/openbravo/retail/sessions/CloseSessionHook.java
---
(0170521)
hgbot   
2024-10-17 09:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/150 [^]