Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bpm-gestion-interna-produccion-bpmStp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cybira
bpm-gestion-interna-produccion-bpmStp
Commits
1e83e095
Commit
1e83e095
authored
Jun 24, 2016
by
Ramon Quintana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizacion de la vista vista_salario
parent
d928c849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
WEB-INF/classes/apps/bpm/devel/db/postgres/rrhh/script_datos_produccion/017_actualizacon_vista_salario.sql
...cript_datos_produccion/017_actualizacon_vista_salario.sql
+68
-0
No files found.
WEB-INF/classes/apps/bpm/devel/db/postgres/rrhh/script_datos_produccion/017_actualizacon_vista_salario.sql
0 → 100644
View file @
1e83e095
DROP
VIEW
crm
.
vista_salario
;
CREATE
VIEW
crm
.
vista_salario
(
id_categcontr
,
nro_legajo
,
id_contrato
,
id_objgasto
,
id_concepto
,
id_categ
,
categ
,
importe_salario
,
desde
,
hasta
,
id_tipocontrato
,
estado_reg
)
AS
SELECT
c
.
id_categcontr
,
c
.
nro_legajo
,
c
.
id_contrato
,
c
.
id_objgasto
,
c
.
id_concepto
,
c
.
id_categ
,
vc
.
categ
,
c
.
importe
AS
importe_salario
,
c
.
desde
,
c
.
hasta
,
con
.
id_tipocontrato
,
c
.
estado_reg
FROM
((
crm
.
rrhh_categcontr
c
LEFT
JOIN
crm
.
vista_categoria
vc
ON
(((
c
.
id_categ
)::
text
=
vc
.
id
)))
JOIN
crm
.
rrhh_contrato
con
ON
((
c
.
id_contrato
=
con
.
id_contrato
)))
WHERE
((
c
.
tipo
=
'S'
::
bpchar
)
AND
(
c
.
id_categ
IS
NOT
NULL
))
UNION
SELECT
cc
.
id
AS
id_categcontr
,
cc
.
nro_legajo
,
c
.
id_contrato
,
NULL
::
INTEGER
AS
id_objgasto
,
NULL
::
INTEGER
AS
id_concepto
,
NULL
::
CHARACTER
VARYING
AS
id_categ
,
cc
.
categoria
AS
categ
,
cc
.
asignacion
AS
importe_salario
,
c
.
fecha_desde
AS
desde
,
c
.
fecha_hasta
AS
hasta
,
c
.
id_tipocontrato
,
c
.
estado_reg
FROM
(
crm
.
rrhh_comisionado_categ
cc
JOIN
crm
.
rrhh_contrato
c
ON
((
c
.
nro_legajo
=
cc
.
nro_legajo
)));
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment