Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049322Retail ModulesCash Managementpublic2022-05-13 14:352022-06-22 12:23
idiez 
rqueralta 
highmajoralways
closedfixed 
5
pi 
RR22Q3 
No
0049322: Very Important CASH Management Error
https://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)
1) 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 [^]
No tags attached.
diff 49322_22Q1_retail_config.diff (4,319) 2022-06-22 12:23
https://issues.openbravo.com/file_download.php?file_id=17208&type=bug
Issue History
2022-05-13 14:35idiezNew Issue
2022-05-13 14:35idiezAssigned To => Retail
2022-05-13 14:35idiezTriggers an Emergency Pack => No
2022-05-13 14:58idiezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24090#r24090
2022-05-30 20:34rqueraltaAssigned ToRetail => rqueralta
2022-05-31 16:15rqueraltaStatusnew => scheduled
2022-06-08 13:32hgbotNote Added: 0138165
2022-06-09 10:38hgbotResolutionopen => fixed
2022-06-09 10:38hgbotStatusscheduled => closed
2022-06-09 10:38hgbotFixed in Version => RR22Q3
2022-06-09 10:38hgbotNote Added: 0138195
2022-06-09 10:38hgbotNote Added: 0138196
2022-06-09 10:39marvintmNote Added: 0138197
2022-06-10 08:17hgbotNote Added: 0138233
2022-06-22 12:23ranjith_qualiantech_comFile Added: 49322_22Q1_retail_config.diff

Notes
(0138165)
hgbot   
2022-06-08 13:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/9 [^]
(0138195)
hgbot   
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   
2022-06-09 10:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/9 [^]
(0138197)
marvintm   
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   
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
---