rodrigozem Posted February 27, 2024 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: 46 Report Posted February 27, 2024 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
caiiomonteiro Posted February 28, 2024 Topic Count: 12 Topics Per Day: 0.00 Content Count: 192 Content Per Day: 0.06 Reputation: 101 Achievement Points: 1,258 Solved Content: 0 Days Won: 36 Status: Offline Age: 28 Device: Windows Report Posted February 28, 2024 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now