Openbravo Issue Tracking System - POS2
View Issue Details
0056938POS2POSpublic2024-10-30 14:442024-10-30 14:44
sofidossant 
Retail 
highmajoralways
newopen 
5
24Q3.2 
 
No
0056938: Error when there are more than 300 Sales Representative Users
When we have for example 350 representative users, we cannot search correctly for certain users, because it does not find them by the limit.
1 - Create 350 Sales Representative Users in backoffice.
2 - Search for a user but with names beginning with the last letters of the alphabet.

You can't find the user, but if you check it is loaded in the cache
Code harcode with 300
https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/release/24Q3/web/org.openbravo.mobile.core/app/model/persistence/indexeddb/Criteria.js?ref_type=heads&blame=1 [^]

commit https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/0d54d001c0ca49dfcde55c545030363974e9b694 [^]

(function CriteriaDefinition() {
  const DEFAULT_QUERY_LIMIT = 300;
  /**
   * Allows to create a criteria for searching objects using the IndexedDBController API.
   */
  OB.App.Class.Criteria = class Criteria {
    constructor() {
      this.theLimit = DEFAULT_QUERY_LIMIT;
      this.theOperator = 'and';
      this.order = { properties: [], directions: [] };
      this.properties = [];
      this.selectProperties = [];
    }

No tags attached.
Issue History
2024-10-30 14:44sofidossantNew Issue
2024-10-30 14:44sofidossantAssigned To => Retail
2024-10-30 14:44sofidossantTriggers an Emergency Pack => No

There are no notes attached to this issue.