dmencu 0.3.36 → 0.3.38
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.
- package/dist/client/unlogged/bypass-formulario.d.ts +1 -0
- package/dist/client/unlogged/bypass-formulario.js +18 -13
- package/dist/server/server/table-tareas_tem.js +3 -2
- package/dist/server/server/table-tareas_tem_recepcion.js +2 -1
- package/dist/unlogged/unlogged/bypass-formulario.d.ts +1 -0
- package/dist/unlogged/unlogged/bypass-formulario.js +18 -13
- package/install/validar_tareas_tem_trg.sql +18 -4
- package/package.json +1 -1
|
@@ -22,12 +22,26 @@ begin
|
|
|
22
22
|
from estados
|
|
23
23
|
where operativo = new.operativo and estado = new.estado;
|
|
24
24
|
if v_habilitada then
|
|
25
|
-
if old.asignado is distinct from new.asignado
|
|
26
|
-
|
|
25
|
+
if old.asignado is distinct from new.asignado then
|
|
26
|
+
if not v_permite_asignar then
|
|
27
|
+
raise exception 'Error: no es posible asignar en la encuesta % del operativo % ya que su estado no lo permite', new.enc, new.operativo;
|
|
28
|
+
end if;
|
|
29
|
+
if new.recepcionista_tarea is null then
|
|
30
|
+
raise exception 'Error: no es posible asignar en la encuesta % del operativo % ya que no se indicó un/a recepcionista', new.enc, new.operativo;
|
|
31
|
+
end if;
|
|
32
|
+
end if;
|
|
33
|
+
if old.recepcionista_tarea is distinct from new.recepcionista_tarea then
|
|
34
|
+
if not v_permite_asignar then
|
|
35
|
+
raise exception 'Error: no es posible modificar recepcionista en la encuesta % del operativo % ya que su estado no lo permite', new.enc, new.operativo;
|
|
36
|
+
end if;
|
|
37
|
+
if new.recepcionista_tarea is null and new.asignado is not null then
|
|
38
|
+
raise exception 'Error: no es posible quitar el recepcionista de la encuesta % del operativo % ya que se la misma se encuentra asignada', new.enc, new.operativo;
|
|
39
|
+
end if;
|
|
27
40
|
end if;
|
|
28
41
|
if not (new.tarea = coalesce(v_tarea_actual,'nulo') or
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
((old.asignado is distinct from new.asignado) or (old.recepcionista_tarea is distinct from new.recepcionista_tarea))
|
|
43
|
+
and new.tarea = coalesce(v_tarea_proxima,'nulo')) then
|
|
44
|
+
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;
|
|
31
45
|
end if;
|
|
32
46
|
if old.asignado is distinct from new.asignado then
|
|
33
47
|
if new.asignado is null then
|
package/package.json
CHANGED