dmencu 0.3.30 → 0.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
--set search_path=base;
|
|
3
3
|
|
|
4
4
|
DROP FUNCTION if exists validar_tareas_tem_trg();
|
|
5
|
+
set search_path = base;
|
|
6
|
+
|
|
5
7
|
CREATE OR REPLACE FUNCTION validar_tareas_tem_trg()
|
|
6
8
|
RETURNS trigger
|
|
7
9
|
LANGUAGE 'plpgsql'
|
|
@@ -23,8 +25,8 @@ begin
|
|
|
23
25
|
if old.asignado is distinct from new.asignado and not v_permite_asignar then
|
|
24
26
|
raise exception 'Error: no es posible asignar en la encuesta % del operativo % ya que su estado no lo permite', new.enc, new.operativo;
|
|
25
27
|
end if;
|
|
26
|
-
if not (new.tarea = v_tarea_actual or
|
|
27
|
-
old.asignado is distinct from new.asignado and new.tarea = v_tarea_proxima) then
|
|
28
|
+
if not (new.tarea = coalesce(v_tarea_actual,'nulo') or
|
|
29
|
+
old.asignado is distinct from new.asignado and new.tarea = coalesce(v_tarea_proxima,'nulo')) then
|
|
28
30
|
raise exception 'Error: no es posible modificar la encuesta % del operativo % ya que la tarea actual definida en TEM no coincide con la tarea %', new.enc, new.operativo, new.tarea;
|
|
29
31
|
end if;
|
|
30
32
|
if old.asignado is distinct from new.asignado then
|
package/package.json
CHANGED