Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040437Retail ModulesSessionspublic2019-03-22 10:372019-04-15 11:53
samuel_nicuesa 
rqueralta 
highmajoralways
closedfixed 
5
pi 
RR19Q3 
adrianromero
No
0040437: Business date of terminal till and status is updated if business date of the terminal changes
Business date of terminal till and status is updated if business date of the terminal changes
[BO] VBS-1

- Open store setting business date (22-03-2019)

[POS]

- Login and create some tickets in VSB-1 store

- Don't do cash up


[BO]

- Go to terminal till and status and Business date will be (22-03-2019)

- Go to close store window and close VSB-1 terminal

- Go to open store window and open Vallblanca store using Business date (27-03-2019)

[POS]

- Login again in VBS-1 Terminal

- Cash up needs to be done

- Do cash up and logout will be done

- Go to terminal till and status and terminal VBS-1 will be opened on 22-03-2019 and business date has been changed to (27-03-2019)

- We think that business date needs to be (22-03-2019) instead of (27-03-2019)
No tags attached.
diff 40437.diff (1,077) 2019-04-02 21:33
https://issues.openbravo.com/file_download.php?file_id=12826&type=bug
Issue History
2019-03-22 10:37samuel_nicuesaNew Issue
2019-03-22 10:37samuel_nicuesaAssigned To => Retail
2019-03-22 10:37samuel_nicuesaResolution time => 1555020000
2019-03-22 10:37samuel_nicuesaTriggers an Emergency Pack => No
2019-03-22 15:59rqueraltaAssigned ToRetail => rqueralta
2019-03-22 15:59rqueraltaStatusnew => scheduled
2019-03-26 18:56hgbotCheckin
2019-03-26 18:56hgbotNote Added: 0110669
2019-03-26 18:56hgbotStatusscheduled => resolved
2019-03-26 18:56hgbotResolutionopen => fixed
2019-03-26 18:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/497591c4f1a65232a685db164f8d3f8a7a04eb98 [^]
2019-03-29 12:03marvintmReview Assigned To => marvintm
2019-03-29 12:47hgbotCheckin
2019-03-29 12:47hgbotNote Added: 0110924
2019-03-29 12:47marvintmStatusresolved => new
2019-03-29 12:47marvintmResolutionfixed => open
2019-04-02 21:33rqueraltaFile Added: 40437.diff
2019-04-05 14:41hgbotCheckin
2019-04-05 14:41hgbotNote Added: 0111004
2019-04-05 14:41hgbotStatusnew => resolved
2019-04-05 14:41hgbotResolutionopen => fixed
2019-04-05 14:41hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/497591c4f1a65232a685db164f8d3f8a7a04eb98 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/9af241c929c29e9b1cadbd32187de6e4cc361150 [^]
2019-04-09 13:09jorge-garciaNote Added: 0111043
2019-04-09 13:09jorge-garciaStatusresolved => new
2019-04-09 13:09jorge-garciaResolutionfixed => open
2019-04-10 23:42hgbotCheckin
2019-04-10 23:42hgbotNote Added: 0111069
2019-04-10 23:42hgbotStatusnew => resolved
2019-04-10 23:42hgbotResolutionopen => fixed
2019-04-10 23:42hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/9af241c929c29e9b1cadbd32187de6e4cc361150 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fa0eebed139f5801bcaee4c2cbcdcacc2b725a46 [^]
2019-04-10 23:43hgbotCheckin
2019-04-10 23:43hgbotNote Added: 0111070
2019-04-10 23:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fa0eebed139f5801bcaee4c2cbcdcacc2b725a46 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/4c1a25c37605570055c5e4c1e2c94fece3fd2fcd [^]
2019-04-12 16:49adrianromeroNote Added: 0111114
2019-04-12 16:49adrianromeroStatusresolved => new
2019-04-12 16:49adrianromeroResolutionfixed => open
2019-04-12 23:21hgbotCheckin
2019-04-12 23:21hgbotNote Added: 0111116
2019-04-13 00:17hgbotCheckin
2019-04-13 00:17hgbotNote Added: 0111117
2019-04-13 00:18rqueraltaStatusnew => scheduled
2019-04-13 00:18rqueraltaStatusscheduled => resolved
2019-04-13 00:18rqueraltaResolutionopen => fixed
2019-04-15 11:53adrianromeroReview Assigned Tomarvintm => adrianromero
2019-04-15 11:53adrianromeroNote Added: 0111124
2019-04-15 11:53adrianromeroStatusresolved => closed
2019-04-15 11:53adrianromeroFixed in Version => RR19Q3

Notes
(0110669)
hgbot   
2019-03-26 18:56   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 497591c4f1a65232a685db164f8d3f8a7a04eb98
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Mar 26 13:54:12 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/497591c4f1a65232a685db164f8d3f8a7a04eb98 [^]

Fixed issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

- Updated "Business Date" value to the date when the Till opens instead the
date when the store was opened

---
M src/org/openbravo/retail/sessions/OpenSessionPOS.java
---
(0110924)
hgbot   
2019-03-29 12:47   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 4e8db3f10a69f083a594cf1e7d83f9efc0372ead
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Mar 29 12:47:42 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/4e8db3f10a69f083a594cf1e7d83f9efc0372ead [^]

Related to issue 40437. Rolled back the change as it is not correct.

---
M src/org/openbravo/retail/sessions/OpenSessionPOS.java
---
(0111004)
hgbot   
2019-04-05 14:41   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 9af241c929c29e9b1cadbd32187de6e4cc361150
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Apr 02 15:31:03 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/9af241c929c29e9b1cadbd32187de6e4cc361150 [^]

Fixed issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

-Updated "Business Date" field with the cashup process date into Till Status Tab

---
M src/org/openbravo/retail/sessions/SessionModel.java
---
(0111043)
jorge-garcia   
2019-04-09 13:09   
The fix is not correct, the bsuinessDtae of the till should be the original businessDate of the till, and not the current update field from the cashup.

The idea is that if the till was opened at 08-04-2019 but I do the cashup at 09-04-2019, the till's business date once created should use 08-04-2019.
(0111069)
hgbot   
2019-04-10 23:42   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: fa0eebed139f5801bcaee4c2cbcdcacc2b725a46
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 10 17:38:48 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fa0eebed139f5801bcaee4c2cbcdcacc2b725a46 [^]

Fixed issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

-Updated "Business Date" field with the previous business date if cashup was
forced to do.

---
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
---
(0111070)
hgbot   
2019-04-10 23:43   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 4c1a25c37605570055c5e4c1e2c94fece3fd2fcd
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 10 17:37:29 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/4c1a25c37605570055c5e4c1e2c94fece3fd2fcd [^]

Fixed issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

-Updated "Business Date" field with the previous business date if cashup was
forced to do.

---
M src/org/openbravo/retail/sessions/CloseSessionHook.java
M src/org/openbravo/retail/sessions/SessionModel.java
M web/org.openbravo.retail.sessions/js/components/loginhook.js
---
(0111114)
adrianromero   
2019-04-12 16:49   
The fix adds sessions logic into the posterminal creating a circular dependency between the two modules.

All the fix logic must go in the sessions module and the code included in posterminal must be removed.

Mi proposal is that all the fix logic must go in the file loginghook.js. The idea is that in each point it is detected the need of a forced cahup. Line:

OB.MobileApp.model.set('POSS_ForceCashup', true);

It has to be set the current terminal bussiness date and not the changed business date from the server. Even the flow must be modified. Instead of first changing the business date when a change is detected and then checking if a forced cashup is needed. First check if a forced cashup is needed for the current business date. If needed then perform the forced cashup with the current posterminal business date and logout. and if not needed a forced cashup, the business date can be changed and a dialog informing the user is displayed
(0111116)
hgbot   
2019-04-12 23:21   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 091e15597e35ec722293c5f08b35512c504db4ce
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Apr 12 17:09:55 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/091e15597e35ec722293c5f08b35512c504db4ce [^]

Related to issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

- Removed this change because a circular dependency with session
modules was created.

---
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
---
(0111117)
hgbot   
2019-04-13 00:17   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 4db65e9acd59ebc151c234dcd24623051bf79bb1
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Apr 12 17:37:46 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/4db65e9acd59ebc151c234dcd24623051bf79bb1 [^]

Related to issue 40437: Business date of terminal till and status is updated if
business date of the terminal changes

-Modified update business date flow. Now we check if a forced cashup is
needed before change the business date value.

---
M src/org/openbravo/retail/sessions/CloseSessionHook.java
M web/org.openbravo.retail.sessions/js/components/cashup-title-extension.js
M web/org.openbravo.retail.sessions/js/components/loginhook.js
---
(0111124)
adrianromero   
2019-04-15 11:53   
Verified