Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047363Retail ModulesOffline Modepublic2021-07-01 00:112021-07-12 16:21
lbressan 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR21Q2.1RR21Q2.1 
No
0047363: The POS stops Printing after processing more than 300 tickets in offline mode
The problem was detected in version 20Q4, but it is also reproducible in version 21Q2

When working in a Terminal in offline mode, when the amount of 300 tickets is passed, the pos stops printing the tickets.

The problem is in the MessageModelControllerDefinition in particular in the findAll function it is taking a default limit of 300. As in our case we already have more than 300, the array of messages always returns the first 300 and the following no longer check them.
This limit is defined in the constant DEFAULT_QUERY_LIMIT

I attach the images of the code

1- You are offline
2 - You make more than 300 tickets (you can also change the constant temporarily to 10 to reproduce it)
3- Stop printing
No tags attached.
blocks defect 0047310 closed ranjith_qualiantech_com The POS stops Printing after processing more than 300 tickets in offline mode 
Issue History
2021-07-08 07:27marvintmTypedefect => backport
2021-07-08 07:27marvintmTarget Version => RR21Q2.1
2021-07-11 16:04hgbotNote Added: 0130358
2021-07-12 16:21hgbotResolutionopen => fixed
2021-07-12 16:21hgbotStatusscheduled => closed
2021-07-12 16:21hgbotFixed in Version => RR21Q2.1
2021-07-12 16:21hgbotNote Added: 0130376
2021-07-12 16:21hgbotNote Added: 0130377

Notes
(0130358)
hgbot   
2021-07-11 16:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/253 [^]
(0130376)
hgbot   
2021-07-12 16:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 108fb7f9e7f30a23dd6402a7e2318d645bfbe367
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-07-11T19:30:38+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/108fb7f9e7f30a23dd6402a7e2318d645bfbe367 [^]

Fixed ISSUE-47363: Added MaxValue to get Synchronizable Messages

---
M web/org.openbravo.mobile.core/app/model/synchronization-buffer/SynchronizationBuffer.js
---
(0130377)
hgbot   
2021-07-12 16:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/253 [^]