Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3428-item_diary
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
97b7ebd717
|
@ -177,6 +177,8 @@ module.exports = Self => {
|
||||||
return {'a.provinceFk': value};
|
return {'a.provinceFk': value};
|
||||||
case 'stateFk':
|
case 'stateFk':
|
||||||
return {'ts.stateFk': value};
|
return {'ts.stateFk': value};
|
||||||
|
case 'collectionFk':
|
||||||
|
return {'cll.id': value};
|
||||||
case 'mine':
|
case 'mine':
|
||||||
case 'myTeam':
|
case 'myTeam':
|
||||||
if (value)
|
if (value)
|
||||||
|
@ -276,9 +278,8 @@ module.exports = Self => {
|
||||||
if (args.collectionFk) {
|
if (args.collectionFk) {
|
||||||
stmt.merge({
|
stmt.merge({
|
||||||
sql: `
|
sql: `
|
||||||
JOIN collection cll ON cll.id = ?
|
JOIN collection cll
|
||||||
JOIN ticketCollection tc ON tc.collectionFk = cll.id AND tc.ticketFk = t.id`,
|
JOIN ticketCollection tc ON tc.collectionFk = cll.id AND tc.ticketFk = t.id`
|
||||||
params: [args.collectionFk]
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ export default class Ticket extends ModuleMain {
|
||||||
'to',
|
'to',
|
||||||
'search',
|
'search',
|
||||||
'clientFk',
|
'clientFk',
|
||||||
|
'collectionFk',
|
||||||
'orderFk',
|
'orderFk',
|
||||||
'refFk',
|
'refFk',
|
||||||
'scopeDays'
|
'scopeDays'
|
||||||
|
|
Loading…
Reference in New Issue