Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056603
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] POSmajorsometimes2024-09-23 16:472024-10-17 09:21
ReportermalsasuaView Statuspublic 
Assigned ToSABARINATH P 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version24Q2.4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056603: EWI generated by cashup: business date is null

DescriptionSometimes, 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 Reproducen/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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0056532 closedSABARINATH P EWI generated by cashup: business date is null 

-  Notes
(0170519)
hgbot (developer)
2024-10-17 09:11

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/151 [^]
(0170522)
hgbot (developer)
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: 2820177632dbf0ba24b99a89fad281b74ac995f8
Author: Sabarinath <s.palanisamy@external.orisha.com>
Date: 17-10-2024 12:39:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/2820177632dbf0ba24b99a89fad281b74ac995f8 [^]

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

---
M src/org/openbravo/retail/sessions/CloseSessionHook.java
---
(0170523)
hgbot (developer)
2024-10-17 09:21

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/151 [^]

- Issue History
Date Modified Username Field Change
2024-10-01 13:05 marvintm Type defect => backport
2024-10-01 13:05 marvintm Target Version => 24Q2.4
2024-10-17 09:11 hgbot Note Added: 0170519
2024-10-17 09:21 hgbot Resolution open => fixed
2024-10-17 09:21 hgbot Status scheduled => closed
2024-10-17 09:21 hgbot Note Added: 0170522
2024-10-17 09:21 hgbot Note Added: 0170523


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker