Openbravo Issue Tracking System - POS2 | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0056608 | POS2 | POS | public | 2024-09-23 16:47 | 2024-11-05 12:10 | |||||||
| Reporter | malsasua | |||||||||||
| Assigned To | SABARINATH P | |||||||||||
| Priority | high | Severity | major | Reproducibility | sometimes | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | 24Q4 | Fixed in Version | ||||||||||
| Merge Request Status | approved | |||||||||||
| Review Assigned To | marvintm | |||||||||||
| OBNetwork customer | Gold | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0056608: EWI generated by cashup: business date is null | |||||||||||
| Description | 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) | |||||||||||
| Steps To Reproduce | n/a | |||||||||||
| Proposed Solution | . 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 | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2024-10-01 13:07 | marvintm | Type | defect => backport | |||||||||
| 2024-10-01 13:07 | marvintm | Target Version | => 24Q4 | |||||||||
| 2024-10-23 08:29 | migueldejuana | Review Assigned To | => marvintm | |||||||||
| 2024-11-05 11:56 | hgbot | Note Added: 0171404 | ||||||||||
| 2024-11-05 12:10 | hgbot | Resolution | open => fixed | |||||||||
| 2024-11-05 12:10 | hgbot | Status | scheduled => closed | |||||||||
| 2024-11-05 12:10 | hgbot | Note Added: 0171408 | ||||||||||
| 2024-11-05 12:10 | hgbot | Note Added: 0171409 | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||