test-entity-library-asm 2.7.6 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CustomRepository.js
CHANGED
|
@@ -184,7 +184,7 @@ var CustomRepository = /** @class */ (function (_super) {
|
|
|
184
184
|
// DOC: Filtro global
|
|
185
185
|
if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
|
|
186
186
|
globalValue = "%".concat(lazyEvent.filters['global'].value.toLowerCase(), "%");
|
|
187
|
-
queryBuilder.andWhere('LOWER(
|
|
187
|
+
queryBuilder.andWhere('LOWER(discount_code_user.local_name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue', {
|
|
188
188
|
globalValue: globalValue ||
|
|
189
189
|
(0, utils_1.getStatusBasic)(lazyEvent.filters['global'].value.toLowerCase()) ||
|
|
190
190
|
(0, utils_1.getSeverityNameDiscountType)(lazyEvent.filters['global'].value.toLowerCase()),
|
package/package.json
CHANGED
package/src/CustomRepository.ts
CHANGED
|
@@ -171,7 +171,7 @@ export class CustomRepository<T extends ObjectLiteral> extends Repository<T> {
|
|
|
171
171
|
if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
|
|
172
172
|
const globalValue = `%${lazyEvent.filters['global'].value.toLowerCase()}%`
|
|
173
173
|
queryBuilder.andWhere(
|
|
174
|
-
'LOWER(
|
|
174
|
+
'LOWER(discount_code_user.local_name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue',
|
|
175
175
|
{
|
|
176
176
|
globalValue:
|
|
177
177
|
globalValue ||
|