#6321 - Negative tickets #1945
|
@ -87,10 +87,10 @@ module.exports = Self => {
|
|||
[itemFk, 2]);
|
||||
|
||||
// if (filter.where.alertLevel) {
|
||||
jgallego marked this conversation as resolved
Outdated
|
||||
// stmt.merge({
|
||||
// sql: `AND ts.alertLevel=?`, params: ['FREE']});
|
||||
stmt.merge({
|
||||
sql: `AND ${filter.where.alertLevel ? '' : 'NOT'} ts.alertLevel=?`, params: [0]});
|
||||
// }
|
||||
// stmt.merge(conn.makeWhere(filter));
|
||||
// stmt.merge(conn.makeWhere(filter.where));
|
||||
const sql = ParameterizedSQL.join([stmt], ';');
|
||||
const result = await conn.executeStmt(sql, myOptions);
|
||||
jgallego marked this conversation as resolved
Outdated
jsegarra
commented
Valores como estos lo dejamos así o lo movemos a variables/consultas? Valores como estos lo dejamos así o lo movemos a variables/consultas?
jgallego
commented
si es alertLevel hay que usar el codigo, no el numero, en este caso 'ON_PREPARATION' o 'DELIVERED' si es alertLevel hay que usar el codigo, no el numero, en este caso 'ON_PREPARATION' o 'DELIVERED'
jsegarra
commented
Okey, hago la modificación aqui y en el front para que se pueda enviar array desde el VnSelect Okey, hago la modificación aqui y en el front para que se pueda enviar array desde el VnSelect
jsegarra
commented
Resuelto Resuelto
jsegarra
commented
Y he creado un registro en TicketConfig con valor default a FREE (por si cambian de criterio a futuro) Y he creado un registro en TicketConfig con valor default a FREE (por si cambian de criterio a futuro)
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue
aqui falta el alias de la tabla, probablemente t.warehouse
, COUNT(*) hasObservation
Hemos invertido este booleano, ahora hay que mostrar el icono si aqui hay valor