4846-claim.search-panel #1174
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1174
Loading…
Reference in New Issue
No description provided.
Delete Branch "4846-claim.search-panel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
En Feedback, esperando revisión.
4846-claim.search-panelto WIP: 4846-claim.search-panel@ -24,3 +24,3 @@
arg: 'search',
type: 'string',
description: `If it's and integer searchs by id, otherwise it searchs by client name`,
description: `If it's and number searchs by id, otherwise it searchs by client name`,
If it's a number
WIP: 4846-claim.search-panelto 4846-claim.search-panel4846-claim.search-panelto WIP: 4846-claim.search-panel@ -145,1 +160,4 @@
if (args.claimResponsibleFk) {
query = `SELECT cd.claimFk
FROM claimDevelopment cd
usar loopback
WIP: 4846-claim.search-panelto 4846-claim.search-panel@ -144,0 +170,4 @@
cl.created
FROM claim cl
LEFT JOIN client c ON c.id = cl.clientFk
LEFT JOIN worker w ON w.id = cl.workerFk
worker no es necesaria, directament en user.
@ -99,3 +133,3 @@
};
case 'clientName':
return {'cl.clientName': {like: `%${value}%`}};
return {'c.name': {like: `%${value}%`}};
revisar si falla, parece que deberia ser c.clientName
Sí que funciona
@ -105,3 +138,4 @@
case 'claimStateFk':
case 'priority':
return {[`cl.${param}`]: value};
case 'itemFk':
revisar si llamando a itemFk y claimResponsibleFk construye los dos
Construye los dos, con un and:
{ and: [ { 'cl.id': [Object] }, { 'cl.id': [Object] } ] }