Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039127Retail ModulesWeb POSpublic2018-08-13 14:282018-09-11 18:45
jorge-garcia 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR18Q4 
marvintm
No
0039127: Extend terminal status information to check more information
Extend terminal status information to check more information. Possible ideas are:
  * Last login date and login user
  * Last performance check score
  * Last synchronized order
  * Last cashup execution
  * Last loaded ticket
-
-
No tags attached.
related to feature request 0039542 closed jorge-garcia Include more information about terminal status 
Issue History
2018-08-13 14:28jorge-garciaNew Issue
2018-08-13 14:28jorge-garciaAssigned To => jorge-garcia
2018-08-13 14:28jorge-garciaTriggers an Emergency Pack => No
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106553
2018-08-31 09:23hgbotStatusnew => resolved
2018-08-31 09:23hgbotResolutionopen => fixed
2018-08-31 09:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/23d4471d7a1a9916633fb9713e0aef086d369d15 [^]
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106554
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106555
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106556
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106557
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106558
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106559
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106560
2018-08-31 09:23hgbotCheckin
2018-08-31 09:23hgbotNote Added: 0106561
2018-09-11 18:45marvintmReview Assigned To => marvintm
2018-09-11 18:45marvintmStatusresolved => closed
2018-09-11 18:45marvintmFixed in Version => RR18Q4
2018-10-26 10:49jorge-garciaRelationship addedrelated to 0039542

Notes
(0106553)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 23d4471d7a1a9916633fb9713e0aef086d369d15
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 20 11:28:28 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/23d4471d7a1a9916633fb9713e0aef086d369d15 [^]

Fixed issue 39127: Extend terminal status information to check more information

This commit includes:
  * Definition of six new fields in POS Terminal window
    * Last login date
    * Last login user
    * Last performance check score
    * Last synchronized order
    * Last cashup execution
    * Last loaded ticket
  * Extend LastTerminalStatusTimestamps to set new Pos Terminal fields.
  * Extend LastTerminalStatusTimestamps request in front-end to include new.
    fields.
  * Change OrderLoader, ProcessCashClose and PaidReceips to update new Pos
    Terminal fields.

---
M src-db/database/model/tables/OBPOS_APPLICATIONS.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/ProcessCashClose.java
M src/org/openbravo/retail/posterminal/process/LastTerminalStatusTimestamps.java
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
---
(0106554)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 21853279ded77a4e4599bf384868ceb96e86c354
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Aug 23 13:07:32 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/21853279ded77a4e4599bf384868ceb96e86c354 [^]

Related to issue 39127: Extend terminal status information to check more
information

This commit includes:
  * Added new database table called “OBPOS_APP_TERMSTAT_HIST”
  * Added a new subtab in POS Terminal window called “Terminal Status History”.
    This tab has the following fields:
      * CashUp
      * Number Of Errors While Importing POS Data
      * Number Of Transitions To Online
      * Number Of Logclient Errors
  * Added two new fields in POS Terminal header:
      * Last Transition To Offline
      * Last Transition To Online
  * Include logic to update terminal status history in updateCashup
  * Added new localStorage items:
      * transitionsToOnline
      * lastTransitionToOffline
      * lastTransitionToOnline
  * Change LastTerminalStatusTimestamps logic to save last transition to online
    and last transition to offline.
  * Add in returnToOnline function a new call to update POS Terminal last
    updated timestamps.
  * Added a window for obpos_app_cashup window.

---
M src-db/database/model/tables/OBPOS_APPLICATIONS.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src/org/openbravo/retail/posterminal/UpdateCashup.java
M src/org/openbravo/retail/posterminal/process/LastTerminalStatusTimestamps.java
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
A src-db/database/model/tables/OBPOS_APP_TERMSTAT_HIST.xml
---
(0106555)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e1dafe408f9f0a9ffd69ecf63d7e4efe57d7096b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Aug 24 13:38:59 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e1dafe408f9f0a9ffd69ecf63d7e4efe57d7096b [^]

Related to issue 39127. Commit the transaction always at the end of the UpdateCashup flow, and not just when a new cashup record is created.

---
M src/org/openbravo/retail/posterminal/UpdateCashup.java
---
(0106556)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 66e72940fe6764dd95347f028547c1ed8008cc63
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 27 14:19:57 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/66e72940fe6764dd95347f028547c1ed8008cc63 [^]

Related to issue 39127: Extend terminal status information to check more
information

This commit includes:
  * Create dataset to set log clean up for terminal status history table.
  * Count the number of errors while importing pos data directly from
    POSDataSynchronizationErrorHandler instead of using a query to get it.
  * Remove queries to get the number of log client errors and errors while
    importing pos data from UpdateCashup.
  * LastTerminalStatusTimestamps now uses fillBobFromJSON API to set terminal
    status values
  * Send log client error count inside cashup information.

---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src/org/openbravo/retail/posterminal/POSDataSynchronizationErrorHandler.java
M src/org/openbravo/retail/posterminal/UpdateCashup.java
M src/org/openbravo/retail/posterminal/process/LastTerminalStatusTimestamps.java
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
A referencedata/standard/Log_Clean_Up_PosTerminal_config.xml
A src-db/database/sourcedata/AD_DATASET.xml
---
(0106557)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dd5705cb8ce53a22ed04e31051d5eaf7671b7b72
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Aug 28 09:55:54 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dd5705cb8ce53a22ed04e31051d5eaf7671b7b72 [^]

Related to issue 39127: Extend terminal status information to check more
information

This commit includes:
  * Flush POS Terminal information in PaidReceipts.java to solve security access
    problems.
  * Add new column identifier to cashup table to add pos terminal name.
  * Define new identifier for terminal status history table to use cashup.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0106558)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 09c6432d8f5c3dc6dedaba4c3c8cf0699a24833f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Aug 30 09:49:43 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/09c6432d8f5c3dc6dedaba4c3c8cf0699a24833f [^]

Related to issue 39127: Extend terminal status information to check more
information

Verify in update cashup if values for transitionsToOnline and
logclientErrors are null to avoid database insertion problems.

---
M src/org/openbravo/retail/posterminal/UpdateCashup.java
---
(0106559)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a85cc00f65a3e217055cbdc774a8bb8bebe4015d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 20 11:37:56 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a85cc00f65a3e217055cbdc774a8bb8bebe4015d [^]

Related to issue 39127: Extend terminal status information to check more
information

Include last login datetime in localStorage to send the info to the backend.

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0106560)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c679575e2f7701ec739b14686e88331ed119673a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Aug 23 13:14:29 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c679575e2f7701ec739b14686e88331ed119673a [^]

Related to issue 39127: Extend terminal status information to check more
information

This commit includes:
  * Set new localStorage items:
      * transitionsToOnline
      * lastTransitionToOffline
      * lastTransitionToOnline

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0106561)
hgbot   
2018-08-31 09:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ea0da40eab76f6fc496f9f8b92a2d98c6521e064
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 27 14:01:00 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ea0da40eab76f6fc496f9f8b92a2d98c6521e064 [^]

Related to issue 39127: Extend terminal status information to check more
information

This commit includes:
  * Change fillBobFromJSON API to manage correctly unix timestamps.
  * Fix transitions to online count in frontend.
  * Create an API to increase/reset log client errors count in frontend.

---
M src/org/openbravo/mobile/core/process/JSONPropertyToEntity.java
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---