Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3428-item_diary
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2021-12-14 10:01:25 +01:00
commit 97b7ebd717
2 changed files with 5 additions and 3 deletions

View File

@ -177,6 +177,8 @@ module.exports = Self => {
return {'a.provinceFk': value};
case 'stateFk':
return {'ts.stateFk': value};
case 'collectionFk':
return {'cll.id': value};
case 'mine':
case 'myTeam':
if (value)
@ -276,9 +278,8 @@ module.exports = Self => {
if (args.collectionFk) {
stmt.merge({
sql: `
JOIN collection cll ON cll.id = ?
JOIN ticketCollection tc ON tc.collectionFk = cll.id AND tc.ticketFk = t.id`,
params: [args.collectionFk]
JOIN collection cll
JOIN ticketCollection tc ON tc.collectionFk = cll.id AND tc.ticketFk = t.id`
});
}

View File

@ -8,6 +8,7 @@ export default class Ticket extends ModuleMain {
'to',
'search',
'clientFk',
'collectionFk',
'orderFk',
'refFk',
'scopeDays'