This commit is contained in:
@@ -16,16 +16,19 @@
|
|||||||
locale is determined by db default which is determined by server default
|
locale is determined by db default which is determined by server default
|
||||||
help docs (ours) link that should be added and page dedicated to locale issues:
|
help docs (ours) link that should be added and page dedicated to locale issues:
|
||||||
|
|
||||||
todo: make sure at server correct use of tolower to match db where it matters for filter / search etc
|
DONE: make sure at server correct use of tolower to match db where it matters for filter / search etc
|
||||||
this means tolowerinvariant for internal system stuff and ToLower(System.Globalization.CultureInfo.CurrentCulture) and NOT tolower() with no locale
|
this means tolowerinvariant for internal system stuff and ToLower(System.Globalization.CultureInfo.CurrentCulture) and NOT tolower() with no locale
|
||||||
|
|
||||||
|
todo: make all "filter" queries use global case setting
|
||||||
|
this means picklist queries and datalist ("filtering") use global settings but search form ("Searching") does not
|
||||||
|
todo: keep the one setting for global that affects filtering only
|
||||||
|
make it apply to all filter ops (picklists and datalistfilters)
|
||||||
|
DONE: global filter case sensitive setting translated to say "filter" not "search"
|
||||||
|
todo: add locale settings of db server to log / support info ("show lc_collate" - Shows the collation order locale and "show lc_ctype" Shows the character classification and case conversion locale)
|
||||||
todo: help docs specific page about db collation ("sorting") and case sensitivity etc
|
todo: help docs specific page about db collation ("sorting") and case sensitivity etc
|
||||||
How AyaNova does case insensitive matching
|
How AyaNova does case insensitive matching
|
||||||
How AyaNova does collation (db server specific)
|
How AyaNova does collation (db server specific)
|
||||||
link to postgres locale stuff here:https://www.postgresql.org/docs/current/locale.html
|
link to postgres locale stuff here:https://www.postgresql.org/docs/current/locale.html
|
||||||
todo: make all "filter" queries use global case setting
|
|
||||||
this means picklist queries and datalist ("filtering") use global settings but search form ("Searching") does not
|
|
||||||
todo: keep the one setting for global that affects filtering only BUT, make sure it's translated to say "filter" not "search"
|
|
||||||
todo: add locale settings of db server to log / support info ("show lc_collate" - Shows the collation order locale and "show lc_ctype" Shows the character classification and case conversion locale)
|
|
||||||
|
|
||||||
|
|
||||||
Schedule form
|
Schedule form
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
this.isTagFilter = true;
|
this.isTagFilter = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.$store.state.globalSettings.searchCaseSensitiveOnly == true) {
|
if (this.$store.state.globalSettings.filterCaseSensitive == true) {
|
||||||
return item.name.indexOf(queryText) > -1;
|
return item.name.indexOf(queryText) > -1;
|
||||||
} else {
|
} else {
|
||||||
//need to do a case insensitive filter and hopefully it mirrors postgres at the backend
|
//need to do a case insensitive filter and hopefully it mirrors postgres at the backend
|
||||||
|
|||||||
@@ -54,12 +54,12 @@
|
|||||||
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="obj.searchCaseSensitiveOnly"
|
v-model="obj.filterCaseSensitive"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
:label="$ay.t('GlobalSearchCaseSensitiveOnly')"
|
:label="$ay.t('GlobalFilterCaseSensitive')"
|
||||||
ref="searchCaseSensitiveOnly"
|
ref="filterCaseSensitive"
|
||||||
data-cy="searchCaseSensitiveOnly"
|
data-cy="filterCaseSensitive"
|
||||||
@change="fieldValueChanged('searchCaseSensitiveOnly')"
|
@change="fieldValueChanged('filterCaseSensitive')"
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -754,7 +754,7 @@ export default {
|
|||||||
{
|
{
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
searchCaseSensitiveOnly: false,
|
filterCaseSensitive: false,
|
||||||
useInventory: true,
|
useInventory: true,
|
||||||
taxPartPurchaseId: null,
|
taxPartPurchaseId: null,
|
||||||
taxPartSaleId: null,
|
taxPartSaleId: null,
|
||||||
@@ -1026,7 +1026,7 @@ async function fetchTranslatedText(vm) {
|
|||||||
"PickListTemplates",
|
"PickListTemplates",
|
||||||
"GlobalLogo",
|
"GlobalLogo",
|
||||||
"GlobalUseInventory",
|
"GlobalUseInventory",
|
||||||
"GlobalSearchCaseSensitiveOnly",
|
"GlobalFilterCaseSensitive",
|
||||||
"GlobalTaxPartPurchaseID",
|
"GlobalTaxPartPurchaseID",
|
||||||
"GlobalTaxPartSaleID",
|
"GlobalTaxPartSaleID",
|
||||||
"GlobalTaxRateSaleID",
|
"GlobalTaxRateSaleID",
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ describe("SMOKE", () => {
|
|||||||
//################# ADMIN
|
//################# ADMIN
|
||||||
cy.visit("/adm-global-settings");
|
cy.visit("/adm-global-settings");
|
||||||
cy.url({ timeout: 10000 }).should("include", "/adm-global-settings");
|
cy.url({ timeout: 10000 }).should("include", "/adm-global-settings");
|
||||||
cy.get("[data-cy=searchCaseSensitiveOnly]");
|
cy.get("[data-cy=filterCaseSensitive]");
|
||||||
|
|
||||||
cy.visit("/adm-global-select-templates");
|
cy.visit("/adm-global-select-templates");
|
||||||
cy.url({ timeout: 10000 }).should(
|
cy.url({ timeout: 10000 }).should(
|
||||||
|
|||||||
Reference in New Issue
Block a user