#6321 - Negative tickets #1945

Merged
jsegarra merged 146 commits from 6321_negative_tickets into dev 2025-02-11 08:45:33 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 65a6174e2b - Show all commits

View File

@ -38,7 +38,7 @@ module.exports = Self => {
// const conn = Self.dataSource.connector;

si el objetivo es contar tickets te sobraria la tabla sale,
si el objetivo es contar sales te sobraria la tabla ticket

si el objetivo es contar tickets te sobraria la tabla sale, si el objetivo es contar sales te sobraria la tabla ticket

resuelto

resuelto
// 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

cambia esto por el /Sales/count asi usamos el nativo

cambia esto por el /Sales/count asi usamos el nativo

Okey, lo tomo de ticket/isEmpty

Okey, lo tomo de ticket/isEmpty