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

Recommended Posts


  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Content Per Day:  0.00
  • Reputation:   0
  • Achievement Points:  12
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  45

Posted

Bom dia, sou iniciante no RM e gostaria de uma ajuda. Estou fazer um relatório com os eventos pendente do banco de horas do colaborador.

Fiz uma query que retorna esses eventos, mas preciso adicionar um campo para identificar se o valor é débito ou crédito.

Na tabela AEVECALC, não consegui identificar um campo que aponta cred. ou deb. Alguém poderia me ajudar?

Query:

SELECT BH.DATA,
       BH.CHAPA,
       BH.CODEVENTOPONTO,
       EV.DESCRICAO,
       CONVERT(CHAR(5),CONVERT(TIME,CONVERT(TIME,DATEADD(MINUTE,BH.VALOR,0)),112),114) VALOR
  FROM ABANCOHORFUNDETALHE BH INNER JOIN AEVECALC EV ON BH.CODEVENTOPONTO = EV.CODEVENTO
 WHERE CHAPA = 003836

 

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images


  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  175
  • Content Per Day:  0.06
  • Reputation:   76
  • Achievement Points:  1,138
  • Solved Content:  0
  • Days Won:  31
  • Status:  Offline
  • Age:  27
  • Device:  Windows

Posted

Bom dia @rodrigozem

Aqui utilizamos a própria tabela ABANCOHORFUNDETALHE filtrando os códigos de eventos, temos específicos para crédito e/ou débito

image.png

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.