Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055776Retail ModulesWeb POSpublic2024-06-14 14:262024-06-19 11:39
Romain_Gesquiere 
sreehari 
highmajoralways
scheduledopen 
30Openbravo Appliance 14.04
main 
 
No
0055776: Element not loaded on full refresh when batch size < expected elem due to wrong sort by
Example attached

-Batch size set as 400
-Expected number of promotion loaded => 25.000
-Promotion actually loaded => 1000


When loading the sort by is wrong so when you're doing the pagination query it is not getting you the next page but a random one starting by a "wrong" lastId.

We get this issue if batch size < expected element to be loaded

The issue seems also to be on DiscountFilterBusinessPartnerGroup and there might be more impacted

Set Batch size set as less than expected loaded element
Perform a full refresh and check amount of element loaded
Example in the image attached
No tags attached.
png image.png (206,617) 2024-06-14 14:26
https://issues.openbravo.com/file_download.php?file_id=19917&type=bug
png
Issue History
2024-06-14 14:26Romain_GesquiereNew Issue
2024-06-14 14:26Romain_GesquiereAssigned To => Retail
2024-06-14 14:26Romain_GesquiereFile Added: image.png
2024-06-14 14:26Romain_GesquiereTriggers an Emergency Pack => No
2024-06-14 14:30william_vermerschIssue Monitored: william_vermersch
2024-06-17 08:07marvintmStatusnew => acknowledged
2024-06-17 08:08sreehariAssigned ToRetail => sreehari
2024-06-17 08:08sreehariStatusacknowledged => scheduled
2024-06-18 11:54sreehariNote Added: 0166054
2024-06-19 11:39hgbotNote Added: 0166089

Notes
(0166054)
sreehari   
2024-06-18 11:54   
Steps to Reproduce:
*******************
1. create a preference 'Masterdata models batch size' and set batch size i.e. value=100

2. In discounts and promotion window
    create few required records as per batch size businesspartners and businesspartnercategory for price adjustment discount/promotion type.
    i.e., batch size 2 means create 4 or 5 records in bp tabs

3. Refresh POS and check network tab in dev tools for DiscountFilterBusinessPartner and DiscountFilterBusinessPartnerGroup file
(0166089)
hgbot   
2024-06-19 11:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1602 [^]