dmencu 0.8.44 → 0.8.46
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
--set search_path=base;
|
|
2
|
+
--set role ut_owner;
|
|
3
|
+
|
|
4
|
+
-- Primer seteo con data de asignacion desde areas
|
|
5
|
+
-- TODO reveer si agregamos campos asociados a las tareas supe y recu a areas
|
|
6
|
+
|
|
7
|
+
--delete from tareas_areas;
|
|
8
|
+
/*
|
|
9
|
+
insert into tareas_areas(operativo, tarea, area, asignado, asignante, obs_asignante)
|
|
10
|
+
select *
|
|
11
|
+
from (
|
|
12
|
+
select a.operativo, t.tarea, area, case when tarea='encu' then encuestador else null end asignado, recepcionista, obs_recepcionista
|
|
13
|
+
from areas a ,(select t.operativo, t.tarea
|
|
14
|
+
from tareas t join parametros p on unico_registro and t.operativo=p.operativo
|
|
15
|
+
)t
|
|
16
|
+
where a.operativo= t.operativo and a.operativo='UT_2022'
|
|
17
|
+
) n
|
|
18
|
+
--where not exists (select 1 from tareas_areas t where t.operativo= n.operativo and t.tarea=n.tarea and t.area=n.area)
|
|
19
|
+
order by 1,2,3;
|
|
20
|
+
*/
|
|
21
|
+
--delete from tareas_tem;
|
|
22
|
+
insert into tareas_tem (operativo, enc, tarea)
|
|
23
|
+
select ta.operativo, ta.enc, ta.tarea
|
|
24
|
+
from (select ta.*, t.enc,t.area from tareas ta, tem t where ta.operativo=t.operativo) ta
|
|
25
|
+
where ta.operativo= (select operativo from parametros where unico_registro)
|
|
26
|
+
and not (ta.operativo, ta.enc, ta.tarea) in (select operativo, enc, tarea from tareas_tem)
|
|
27
|
+
--and ta.main_form is not null
|
|
28
|
+
order by 1,3,2;
|
|
29
|
+
|
|
30
|
+
update tem set habilitada = true;
|
package/package.json
CHANGED