Commit 734b3cda authored by Wendy Fuertes's avatar Wendy Fuertes

Merge branch 'revisiones' of into revisiones

parents 467099a0 f91ab255
......@@ -190,7 +190,7 @@ module.exports = (app) => {
await app.db.sequelize.query(`UPDATE catalogo c
SET descripcion = i.descripcion,
codigo_actividad = i.codigo_actividad
codigo_actividad = CASE WHEN i.codigo_actividad IS NULL THEN c.codigo_actividad ELSE i.codigo_actividad END
FROM jsonb_to_recordset(:json) AS i(fid_punto_venta Int, agrupador Text, codigo Text, descripcion Text, codigo_actividad Text)
WHERE c.fid_punto_venta = i.fid_punto_venta
AND c.agrupador = i.agrupador
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment