Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0044669Openbravo LocalizationsLocalization Francepublic2020-07-22 17:422020-08-07 09:54
egoitz 
aferraz 
urgentmajorrandom
closedfixed 
5
 
 
0044669: Error importing cashup
Under some circustance the following error is registered on the error while importing window for the cashup.


We had an error due to the French Certification while doing a Cashup.
org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBSecurityException: Organization 468A5C8B1DA642DC8CA634833649A96A of object (FIN_Financial_Account(53615D0D53FC4BEF8BC5275F22E6F0E1) (name: Clôture Gift Card, currency: 102)) is not present in OrganizationList [0, F94C06520A0945D8B3BEF1EF49AF82EF]
 at org.openbravo.certification.france.a.a(Unknown Source)
 at org.openbravo.certification.france.aggregation.AggregationCashupHook.exec(Unknown Source)
 at org.openbravo.certification.france.aggregation.AggregationCashupHook$Proxy$_$$_WeldClientProxy.exec(Unknown Source)
 at org.openbravo.retail.posterminal.CashCloseProcessor.executeHooks(CashCloseProcessor.java:189)
 at org.openbravo.retail.posterminal.CashCloseProcessor.processCashClose(CashCloseProcessor.java:164)


With an admin user the problem is solved by clicking on "Save again" button
Using a user without access to the organization of a financial account
create order using payment methods for that financial account and then do the cashup.

That can happen if the ticket has been done by other user and it is needed to update the information of the not accesible financial account.


The cashup is stucked on error while importing window.
We think that the issue is on the jar for the frech localization on the file AggregationDao.


org.openbravo.certification.france.dev/src/org/openbravo/certification/france/aggregation/AggregationDao.java

That code seems to be incorrect:

  public int runAggregation(List<String> terminals) {
    long t0 = System.currentTimeMillis();

    OBContext.setAdminMode(true);


The code should be:

  public int runAggregation(List<String> terminals) {
    long t0 = System.currentTimeMillis();

    OBContext.setAdminMode(false);

(replace true with false)
No tags attached.
Issue History
2020-07-22 17:42egoitzNew Issue
2020-08-04 08:33aferrazAssigned To => Triage Finance
2020-08-04 08:55aferrazAssigned ToTriage Finance => aferraz
2020-08-04 15:20hgbotNote Added: 0121809
2020-08-04 15:23aferrazIssue cloned0044748
2020-08-07 09:54hgbotResolutionopen => fixed
2020-08-07 09:54hgbotStatusnew => closed
2020-08-07 09:54hgbotNote Added: 0121899
2020-08-07 09:54hgbotNote Added: 0121900

Notes
(0121809)
hgbot   
2020-08-04 15:20   
Merge Request created: https://gitlab.com/openbravo/ci/modules/org.openbravo.certification.france.dev/-/merge_requests/2 [^]
(0121899)
hgbot   
2020-08-07 09:54   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.certification.france.dev [^]
Changeset: 42c963794666a8e2544998b0b2b516f39b848eba
Author: Álvaro Ferraz <alvaro.ferraz@openbravo.com>
Date: 2020-08-04T15:15:18+02:00
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.certification.france.dev/-/commit/42c963794666a8e2544998b0b2b516f39b848eba [^]

Fixes ISSUE-44669: Avoid client/org check when setting admin mode

---
M src/org/openbravo/certification/france/aggregation/AggregationCashupHookHelper.java
M src/org/openbravo/certification/france/aggregation/AggregationDao.java
M src/org/openbravo/certification/france/aggregation/AggregationHandler.java
M src/org/openbravo/certification/france/archiving/Archiver.java
M src/org/openbravo/certification/france/archiving/ArchivingProcess.java
M src/org/openbravo/certification/france/archiving/ArchivingVerificationHandler.java
M src/org/openbravo/certification/france/terminalmonitor/ProcessTerminalMonitor.java
M src/org/openbravo/certification/france/ticket/TicketInitializationBackground.java
M src/org/openbravo/certification/france/ticket/TicketInitializationHandler.java
M src/org/openbravo/certification/france/ticketreprint/ProcessTicketReprint.java
M src/org/openbravo/certification/france/ui/HVerificationHandler.java
M src/org/openbravo/certification/france/ui/MVerificationBackground.java
M src/org/openbravo/certification/france/ui/MVerificationHandler.java
M src/org/openbravo/certification/france/ui/UIIssueHandler.java
M src/org/openbravo/certification/france/ui/UIVerificationBackground.java
M src/org/openbravo/certification/france/ui/UIVerificationHandler.java
---
(0121900)
hgbot   
2020-08-07 09:54   
Merge request merged: https://gitlab.com/openbravo/ci/modules/org.openbravo.certification.france.dev/-/merge_requests/2 [^]