Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047362Retail ModulesOffline Modepublic2021-07-01 00:112021-07-12 16:21
lbressan 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR21Q3RR21Q3 
No
0047362: 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 => RR21Q3
2021-07-11 16:04hgbotNote Added: 0130360
2021-07-12 16:21hgbotResolutionopen => fixed
2021-07-12 16:21hgbotStatusscheduled => closed
2021-07-12 16:21hgbotFixed in Version => RR21Q3
2021-07-12 16:21hgbotNote Added: 0130374
2021-07-12 16:21hgbotNote Added: 0130375

Notes
(0130360)
hgbot   
2021-07-11 16:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/254 [^]
(0130374)
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: 458d1d992d1db4b02cb6b03fa03cdca4ae26f7a6
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-07-11T19:30:43+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/458d1d992d1db4b02cb6b03fa03cdca4ae26f7a6 [^]

Fixed ISSUE-47362: Added MaxValue to get Synchronizable Messages

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