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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056532
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorsometimes2024-09-23 16:472024-10-01 13:07
ReportermalsasuaView Statuspublic 
Assigned ToSABARINATH P 
PriorityhighResolutionfixedFixed in Version25Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
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

0056532: 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? file icon json_ewi.txt.json [^] (37,269 bytes) 2024-09-23 16:47

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 005660224Q3.2 closedSABARINATH P EWI generated by cashup: business date is null 
depends on backport 005660324Q2.4 closedSABARINATH P EWI generated by cashup: business date is null 
depends on backport 005660824Q4 closedSABARINATH P EWI generated by cashup: business date is null 

-  Notes
(0169528)
hgbot (developer)
2024-09-24 13:13

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/142 [^]
(0169787)
hgbot (developer)
2024-10-01 07:03

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/142 [^]
(0169788)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2024-09-23 16:47 malsasua New Issue
2024-09-23 16:47 malsasua Assigned To => Retail
2024-09-23 16:47 malsasua File Added: json_ewi.txt.json
2024-09-23 16:47 malsasua Triggers an Emergency Pack => No
2024-09-24 06:55 guillermogil Status new => acknowledged
2024-09-24 08:27 SABARINATH P Assigned To Retail => SABARINATH P
2024-09-24 08:27 SABARINATH P Status acknowledged => scheduled
2024-09-24 13:13 hgbot Note Added: 0169528
2024-10-01 07:03 hgbot Note Added: 0169787
2024-10-01 07:03 hgbot Resolution open => fixed
2024-10-01 07:03 hgbot Status scheduled => closed
2024-10-01 07:03 hgbot Note Added: 0169788
2024-10-01 13:05 marvintm Status closed => new
2024-10-01 13:05 marvintm Resolution fixed => open
2024-10-01 13:05 marvintm Status new => scheduled
2024-10-01 13:05 marvintm Status scheduled => resolved
2024-10-01 13:05 marvintm Fixed in Version => 24Q4
2024-10-01 13:05 marvintm Resolution open => fixed
2024-10-01 13:05 marvintm Status resolved => closed
2024-10-01 13:07 marvintm Status closed => new
2024-10-01 13:07 marvintm Resolution fixed => open
2024-10-01 13:07 marvintm Fixed in Version 24Q4 =>
2024-10-01 13:07 marvintm Status new => acknowledged
2024-10-01 13:07 marvintm Status acknowledged => scheduled
2024-10-01 13:07 marvintm Status scheduled => resolved
2024-10-01 13:07 marvintm Fixed in Version => 25Q1
2024-10-01 13:07 marvintm Resolution open => fixed
2024-10-01 13:07 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker