Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050022
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2022-08-22 11:432022-09-15 09:00
ReporterjorgewederagoView Statuspublic 
Assigned Toradhakrishnan 
PrioritynormalResolutionfixedFixed in Version22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050022: Minumum characters configured in the backend for filters is not being taken into account in Search Customer to Assign Form

DescriptionIn 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
Steps To Reproduce*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
Proposed SolutionThe 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0140322)
hgbot (developer)
2022-08-23 13:45

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1153 [^]
(0140419)
jorgewederago (developer)
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 (developer)
2022-09-14 08:46

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1153 [^]
(0141084)
hgbot (developer)
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 (developer)
2022-09-15 08:53

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1205 [^]
(0141141)
hgbot (developer)
2022-09-15 09:00

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1205 [^]
(0141142)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2022-08-22 11:43 jorgewederago New Issue
2022-08-22 11:43 jorgewederago Assigned To => Retail
2022-08-22 11:43 jorgewederago Triggers an Emergency Pack => No
2022-08-22 12:12 marvintm Status new => scheduled
2022-08-22 12:12 marvintm Assigned To Retail => radhakrishnan
2022-08-23 13:45 hgbot Note Added: 0140322
2022-08-26 10:23 jorgewederago Note Added: 0140419
2022-09-14 08:46 hgbot Resolution open => fixed
2022-09-14 08:46 hgbot Status scheduled => closed
2022-09-14 08:46 hgbot Note Added: 0141083
2022-09-14 08:46 hgbot Fixed in Version => 22Q4
2022-09-14 08:46 hgbot Note Added: 0141084
2022-09-15 08:53 hgbot Note Added: 0141137
2022-09-15 09:00 hgbot Note Added: 0141141
2022-09-15 09:00 hgbot Note Added: 0141142


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker