#6321 - Negative tickets #1945
|
@ -38,7 +38,7 @@ module.exports = Self => {
|
|||
// const conn = Self.dataSource.connector;
|
||||
|
||||
// const stmts = [];
|
||||
try {
|
||||
const ticketsIds = tickets.map(({id}, index) => id);
|
||||
const ticketsIds = tickets.map(({ticketFk}, index) => ticketFk);
|
||||
const ticketsCount = await Self.rawSql(`
|
||||
Select t.id tid, s.id sid, count(s.id) count from
|
||||
vn.ticket t
|
||||
jsegarra marked this conversation as resolved
Outdated
jgallego
commented
cambia esto por el /Sales/count asi usamos el nativo cambia esto por el /Sales/count asi usamos el nativo
jsegarra
commented
Okey, lo tomo de ticket/isEmpty Okey, lo tomo de ticket/isEmpty
|
||||
|
|
Loading…
Reference in New Issue
si el objetivo es contar tickets te sobraria la tabla sale,
si el objetivo es contar sales te sobraria la tabla ticket
resuelto