Openbravo Issue Tracking System - POS2
View Issue Details
0050022POS2POSpublic2022-08-22 11:432022-09-15 09:00
jorgewederago 
radhakrishnan 
normalmajorhave not tried
closedfixed 
5
 
22Q4 
No
0050022: Minumum characters configured in the backend for filters is not being taken into account in Search Customer to Assign Form
In the backend, if we configure in the CRM Connector Filters minimum characters it is taken into account to show the form but not checked when pressing Search.

However in the customer window it is working as expected
*Backend
1.-Configure a CRM Connector for the organization you are going to use
2.-Go to Filters in the CRM Connnector and set a minimum of characters for one of the properties which is bigger than 3
*POS2
1.-Open the Search and Assing window
2.-Write three characters in the field that was configured to have more than that
3.-Check that the search is executed even though it is not fulfilling the configuration
Extra.- Check that any filter not configured to have a minimum does not allow the search with less than 3 fields
The code has a constant which has a minimum hardcoded. This should be changed to check each property minimum.

CustomerSelectorHandler.js contains the following:
const MINCHAR = 3;
function isFieldWithNoMinLength

The function must be modified to work as expected
No tags attached.
Issue History
2022-08-22 11:43jorgewederagoNew Issue
2022-08-22 11:43jorgewederagoAssigned To => Retail
2022-08-22 11:43jorgewederagoTriggers an Emergency Pack => No
2022-08-22 12:12marvintmStatusnew => scheduled
2022-08-22 12:12marvintmAssigned ToRetail => radhakrishnan
2022-08-23 13:45hgbotNote Added: 0140322
2022-08-26 10:23jorgewederagoNote Added: 0140419
2022-09-14 08:46hgbotResolutionopen => fixed
2022-09-14 08:46hgbotStatusscheduled => closed
2022-09-14 08:46hgbotNote Added: 0141083
2022-09-14 08:46hgbotFixed in Version => 22Q4
2022-09-14 08:46hgbotNote Added: 0141084
2022-09-15 08:53hgbotNote Added: 0141137
2022-09-15 09:00hgbotNote Added: 0141141
2022-09-15 09:00hgbotNote Added: 0141142

Notes
(0140322)
hgbot   
2022-08-23 13:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1153 [^]
(0140419)
jorgewederago   
2022-08-26 10:23   
While the solution is working as expected, it is required to remove the minimum of 3 characters since that hardcoded minimum is only being taken into account for that window while in the customer search it is following the definition of each field.
(0141083)
hgbot   
2022-09-14 08:46   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1153 [^]
(0141084)
hgbot   
2022-09-14 08:46   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1c92e11682e42962f3a53a5e02169b0f645fc2f0
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 14-09-2022 06:46:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1c92e11682e42962f3a53a5e02169b0f645fc2f0 [^]

Fixed ISSUE-50022: Added minimum character validation in customer search
* If CRM enabled, minimum characters value should be validated when searching customer

---
M web-jspack/org.openbravo.pos2/src/components/Customer/CustomerSelector/CustomerSelectorHandler.js
---
(0141137)
hgbot   
2022-09-15 08:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1205 [^]
(0141141)
hgbot   
2022-09-15 09:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1205 [^]
(0141142)
hgbot   
2022-09-15 09:00   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 534c14eb887dd76fd39eeba9f4fa51faa45f728e
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 15-09-2022 12:17:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/534c14eb887dd76fd39eeba9f4fa51faa45f728e [^]

Related ISSUE-50022: Added minCharacters in MockExternalBusinessPartnerConfig

---
M web-jspack/org.openbravo.pos2/src/components/Customer/__mock__/MockExternalBusinessPartnerConfig.js
M web-jspack/org.openbravo.pos2/src/components/Customer/__mock__/MockExternalBusinessPartnerListViewData.js
---