Jump to content
Seja Membro VIP - Remova Banners de Propagandas, Tenha Liberado Qualquer Download, Além de Acessos em Áreas Exclusivas!! ×

Relatorio cubo eventos horas extras - faltas - atrasos folha ponto


Go to solution Solved by Eder Augusto,

Recommended Posts


  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Content Per Day:  0.00
  • Reputation:   0
  • Achievement Points:  10
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  44
  • Device:  Windows

Posted (edited)

Bom dia turma, algum tem um relatorio (sentença sql) que traga os eventos DO ESPELHO DE PONTO.

Mais ou menos igual ao do print anexado ( este meu cubo ai busca do envelope de pgto ). Mas quero um que venha direto do ponto.

printCUBO.png

Edited by Rosemberg Lacerda
  • Solution

  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  14
  • Content Per Day:  0.05
  • Reputation:   14
  • Achievement Points:  116
  • Solved Content:  0
  • Days Won:  4
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted (edited)

 

Boa noite,

Veja se as sentenças SQL abaixo te serve. #1 é feito em Consulta Movimento Integração, antes da integração para o movimento da folha de pagamento e a #2 é feita no Movimento do espelho ponto do funcionário.

1.

SELECT 
MV.CODCOLIGADA,
MV.CHAPA,
MV.ANOCOMP,
MV.MESCOMP,
MV.CODEVENTO AS CODEVENTO,
EV.DESCRICAO AS EVENTO,
RIGHT('0' + CAST((MV.HORA / 60) AS VARCHAR), 3) + ':' + 
RIGHT('0' + CAST((MV.HORA % 60) AS VARCHAR), 2) AS HORAS,
MV.REF,
MV.VALOR

FROM PFMOVTEMP MV 
LEFT JOIN PEVENTO EV 
ON EV.CODCOLIGADA = MV.CODCOLIGADA
AND MV.CODEVENTO = EV.CODIGO;

2.

SELECT 
MV.CODCOLIGADA,
MV.CHAPA,
FORMAT(MV.INICIOPER, 'dd/MM/yyyy') AS INICIOPER,
FORMAT(MV.FIMPER, 'dd/MM/yyyy') AS FIMPER,
RIGHT('0' + CAST((MV.NUMHORAS / 60) AS VARCHAR), 3) + ':' + 
RIGHT('0' + CAST((MV.NUMHORAS % 60) AS VARCHAR), 2) AS HORAS,
MV.VALOR,
MV.CODEVE AS CODEVENTO,
EV.DESCRICAO AS EVENTO

FROM AMOVFUN MV
LEFT JOIN PEVENTO EV 
ON EV.CODCOLIGADA = MV.CODCOLIGADA
AND MV.CODEVE = EV.CODIGO;

 

Edited by Eder Augusto
  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.