dmencu 0.6.2 → 0.6.4
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.
|
@@ -12,9 +12,10 @@ AS $BODY$
|
|
|
12
12
|
v_grupo0 text;
|
|
13
13
|
v_proxtarea text;
|
|
14
14
|
v_supervision_aleatoria integer;
|
|
15
|
+
v_supervision_dirigida integer;
|
|
15
16
|
begin
|
|
16
|
-
select rea, norea, tarea_actual, grupo0, supervision_aleatoria
|
|
17
|
-
into v_rea, v_norea, v_tarea_actual, v_grupo0, v_supervision_aleatoria
|
|
17
|
+
select rea, norea, tarea_actual, grupo0, supervision_aleatoria, supervision_dirigida
|
|
18
|
+
into v_rea, v_norea, v_tarea_actual, v_grupo0, v_supervision_aleatoria, v_supervision_dirigida
|
|
18
19
|
from tem t
|
|
19
20
|
left join no_rea nr on nr.no_rea= norea::text
|
|
20
21
|
where operativo = new.operativo and enc = new.enc;
|
|
@@ -24,7 +25,7 @@ begin
|
|
|
24
25
|
v_proxtarea='recu';
|
|
25
26
|
when v_grupo0 in ('no encuestable') then
|
|
26
27
|
v_proxtarea='supe';
|
|
27
|
-
when v_rea=1 and (v_supervision_aleatoria is not null or
|
|
28
|
+
when v_rea=1 and (v_supervision_aleatoria is not null or v_supervision_dirigida is not null) then
|
|
28
29
|
v_proxtarea='supe';
|
|
29
30
|
else
|
|
30
31
|
v_proxtarea='finc';
|
|
@@ -32,7 +33,7 @@ begin
|
|
|
32
33
|
elsif v_tarea_actual='recu' then
|
|
33
34
|
case when v_grupo0 in ('no encuestable') then
|
|
34
35
|
v_proxtarea='supe';
|
|
35
|
-
when v_rea=1 and (v_supervision_aleatoria is not null or
|
|
36
|
+
when v_rea=1 and (v_supervision_aleatoria is not null or v_supervision_dirigida is not null) then
|
|
36
37
|
v_proxtarea='supe';
|
|
37
38
|
else
|
|
38
39
|
v_proxtarea='finc';
|
package/package.json
CHANGED