fix: refs #7356 ticket weekly filter #2939
|
@ -67,7 +67,7 @@ module.exports = Self => {
|
||||||
FROM ticketWeekly tw
|
FROM ticketWeekly tw
|
||||||
JOIN ticket t ON t.id = tw.ticketFk
|
JOIN ticket t ON t.id = tw.ticketFk
|
||||||
JOIN client c ON c.id = t.clientFk
|
JOIN client c ON c.id = t.clientFk
|
||||||
JOIN account.user u ON u.id = c.salesPersonFk
|
LEFT JOIN account.user u ON u.id = c.salesPersonFk
|
||||||
JOIN warehouse wh ON wh.id = t.warehouseFk
|
JOIN warehouse wh ON wh.id = t.warehouseFk
|
||||||
LEFT JOIN agencyMode am ON am.id = tw.agencyModeFk`
|
LEFT JOIN agencyMode am ON am.id = tw.agencyModeFk`
|
||||||
);
|
);
|
||||||
|
|
|
@ -76,7 +76,8 @@ module.exports = Self => {
|
||||||
{
|
{
|
||||||
arg: 'myTeam',
|
arg: 'myTeam',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: `Whether to show only tickets for the current logged user team (For now it shows only the current user tickets)`
|
description: `Whether to show only tickets for the current logged user team
|
||||||
|
(For now it shows only the current user tickets)`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
arg: 'problems',
|
arg: 'problems',
|
||||||
|
@ -258,7 +259,8 @@ module.exports = Self => {
|
||||||
MINUTE(z.hour) zoneMinute,
|
MINUTE(z.hour) zoneMinute,
|
||||||
z.name zoneName,
|
z.name zoneName,
|
||||||
z.id zoneFk,
|
z.id zoneFk,
|
||||||
CAST(z.hour AS CHAR) hour
|
CAST(z.hour AS CHAR) hour,
|
||||||
|
a.nickname addressNickname
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
LEFT JOIN invoiceOut io ON t.refFk = io.ref
|
LEFT JOIN invoiceOut io ON t.refFk = io.ref
|
||||||
LEFT JOIN zone z ON z.id = t.zoneFk
|
LEFT JOIN zone z ON z.id = t.zoneFk
|
||||||
|
|
Loading…
Reference in New Issue