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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049322
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Cash Managementmajoralways2022-05-13 14:352022-06-22 12:23
ReporteridiezView Statuspublic 
Assigned Torqueralta 
PriorityhighResolutionfixedFixed in VersionRR22Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049322: Very Important CASH Management Error

Descriptionhttps://livebuilds.openbravo.com/retail_modules_pgsql_pi/#%7Bst:0,bm:%5B%7BviewId:__OBMyOpenbravoImplementation__,params:%7BmyOB:true,canClose:false,tabTitle:__Workspace__%7D%7D%5D%7D [^]




log del ewis:
java.lang.NullPointerException
    at org.openbravo.retail.posterminal.ProcessCashMgmt.saveRecord(ProcessCashMgmt.java:224)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:204)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88)
    at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:54)
    at org.openbravo.retail.posterminal.importprocess.CashManagementImportEntryProcessor$CashManagementRunnable.processEntry(CashManagementImportEntryProcessor.java:73)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:421)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:338)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Steps To Reproduce1) Go to the "Organization" window and in the "Cash management event" tab we add a record of type "out"

2) Configure an account in the same previous tab in "Financial account"

3) Go to the pos

4) Go to the menu and select "Cash management" of "$0.20" and select "Withdrawal for cleaning", we give it "Done"

5) Go to the financial account that we have created or configured, we can see that a withdrawal of "$0.20" has been made but it can be seen that a deposit of "$0.20" was made in the other account

6) Return to the "Organization" window and recreate a record of type "out" and without "Financial account"

7) Return to the pos and we do a cash management "Cash management" and select "Cash Withdrawal" we withdraw "$0.10", we give it done

8) Return to the back office to the "Final account" window and we can see that no movement has been made

9) If we go to the "Error While imported pos" window, we can see that an ewi was generated


The link with steps:
https://drive.google.com/file/d/16K6FqRQPQqDRp2gc0rt8MRpQhoHCL9os/view [^]
TagsNo tags attached.
Attached Filesdiff file icon 49322_22Q1_retail_config.diff [^] (4,319 bytes) 2022-06-22 12:23 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0138165)
hgbot (developer)
2022-06-08 13:32

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/9 [^]
(0138195)
hgbot (developer)
2022-06-09 10:38

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config [^]
Changeset: 3a56407ae9efbb292d284048c725b485ddb3299d
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 07-06-2022 10:01:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/commit/3a56407ae9efbb292d284048c725b485ddb3299d [^]

Fixed BUG-49322: Added new event handler to avoid cash managements event without financial account defined and event type equals to IN or OUT

---
A src/org/openbravo/retail/config/event/CashManagementEventsEventHandler.java
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0138196)
hgbot (developer)
2022-06-09 10:38

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/9 [^]
(0138197)
marvintm (manager)
2022-06-09 10:39

To clarify what we did: the described configuration is wrong, financial accounts should be provided for IN or OUT events, so we are now enforcing this when configuring them.
(0138233)
hgbot (developer)
2022-06-10 08:17

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config [^]
Changeset: 453973cfa2c3dca7576970f9444f1f2ba7cd50d1
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 10-06-2022 10:16:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/commit/453973cfa2c3dca7576970f9444f1f2ba7cd50d1 [^]

Related to ISSUE-49322: Fixed typo in method name. Used nicer OBMessageUtils API.

---
M src/org/openbravo/retail/config/event/CashManagementEventsEventHandler.java
---

- Issue History
Date Modified Username Field Change
2022-05-13 14:35 idiez New Issue
2022-05-13 14:35 idiez Assigned To => Retail
2022-05-13 14:35 idiez Triggers an Emergency Pack => No
2022-05-13 14:58 idiez Steps to Reproduce Updated View Revisions
2022-05-30 20:34 rqueralta Assigned To Retail => rqueralta
2022-05-31 16:15 rqueralta Status new => scheduled
2022-06-08 13:32 hgbot Note Added: 0138165
2022-06-09 10:38 hgbot Resolution open => fixed
2022-06-09 10:38 hgbot Status scheduled => closed
2022-06-09 10:38 hgbot Fixed in Version => RR22Q3
2022-06-09 10:38 hgbot Note Added: 0138195
2022-06-09 10:38 hgbot Note Added: 0138196
2022-06-09 10:39 marvintm Note Added: 0138197
2022-06-10 08:17 hgbot Note Added: 0138233
2022-06-22 12:23 ranjith_qualiantech_com File Added: 49322_22Q1_retail_config.diff


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker