refs #6220 remove concat

This commit is contained in:
Carlos Satorres 2023-12-13 15:05:41 +01:00
parent 78aa25d74f
commit 40499e44cf
2 changed files with 7 additions and 5 deletions

View File

@ -145,16 +145,18 @@ module.exports = Self => {
c.name,
c.fi,
c.socialName,
CONCAT(c.phone, ',',GROUP_CONCAT(DISTINCT a.phone)) phone,
c.phone,
a.phone,
c.mobile,
CONCAT(c.city, ',',GROUP_CONCAT(DISTINCT a.city)) city,
c.city,
a.city,
c.postcode,
a.postalCode,
c.email,
c.isActive,
c.isFreezed,
p.id AS provinceFk2,
a.provinceFk,
p.id AS provinceClientFk,
a.provinceFk AS provinceAddressFk,
p.name AS province,
u.id AS salesPersonFk,
u.name AS salesPerson

View File

@ -146,7 +146,7 @@ describe('client filter()', () => {
const randomResultClient = result[randomIndex];
expect(result.length).toBeGreaterThanOrEqual(20);
expect(randomResultClient.city.toLowerCase()).toEqual('gotham,gotham');
expect(randomResultClient.city.toLowerCase()).toEqual('gotham');
await tx.rollback();
} catch (e) {