Como verificar se o direcionamento de formas de pagamento está funcionando
-
A partir da versão
2.5.266do AutomatizeSis é possível verificar se o direcionamento criado para uma forma de pagamento está correto, executando o select abaixo.O texto do comprovante TEF é usado como parâmetro.
select * from dbo.fn_MapFormaPagamento(' REDE BANRICOMPRAS - BANRICOMPRAS PAGAMENTO PRE-DATADO ----------- via - cliente ------------ 041120000506500 00000001 DATA: 12/05/2018 HORA: 15:29:19 NSU BERGS:00785574 CARTAO: 4284 VALOR: 20,50 PAGAMENTO ONLINE COM CARTAO DE DEBITO DEBITO EM: 11/06 NOME: CXXXXXX XX DE XXO Banrisul Debito 00-0028-235CCE4FB975B494 ESTE DEMONSTRATIVO NAO TEM VLR. FISCAL (SiTef) ')Caso tudo ocorra corretamente ele retornará o ID da forma de pagamento correspondente ao direcionamento.
Ou pode-se fazer um select cruzando as informações da tabela
VendaFormas, desta maneira:select idvendaforma, vefValor, vefSITEFComprovante1Via, fdi.idForma from VendaFormas outer apply dbo.fn_MapFormaPagamento(vefSITEFComprovante1Via) fdi where vefSITEFCodRede is not null and vefSITEFDTHTrans >= '11/05/2018' and vefSITEFDTHTrans < '13/05/2018'A coluna
fdi.idFormaestará nula caso não consiga fazer o direcionamento. -
A partir da versão
2.5.266do AutomatizeSis é possível verificar se o direcionamento criado para uma forma de pagamento está correto, executando o select abaixo.O texto do comprovante TEF é usado como parâmetro.
select * from dbo.fn_MapFormaPagamento(' REDE BANRICOMPRAS - BANRICOMPRAS PAGAMENTO PRE-DATADO ----------- via - cliente ------------ 041120000506500 00000001 DATA: 12/05/2018 HORA: 15:29:19 NSU BERGS:00785574 CARTAO: 4284 VALOR: 20,50 PAGAMENTO ONLINE COM CARTAO DE DEBITO DEBITO EM: 11/06 NOME: CXXXXXX XX DE XXO Banrisul Debito 00-0028-235CCE4FB975B494 ESTE DEMONSTRATIVO NAO TEM VLR. FISCAL (SiTef) ')Caso tudo ocorra corretamente ele retornará o ID da forma de pagamento correspondente ao direcionamento.
Ou pode-se fazer um select cruzando as informações da tabela
VendaFormas, desta maneira:select idvendaforma, vefValor, vefSITEFComprovante1Via, fdi.idForma from VendaFormas outer apply dbo.fn_MapFormaPagamento(vefSITEFComprovante1Via) fdi where vefSITEFCodRede is not null and vefSITEFDTHTrans >= '11/05/2018' and vefSITEFDTHTrans < '13/05/2018'A coluna
fdi.idFormaestará nula caso não consiga fazer o direcionamento.O mapeamento pode ser feito a partir de agora por dois campos criados no cadastro de formas de pagamento: Código de Rede e Código da Bandeira.
Para habilitar o retorno da bandeira pelo SITEF, fazer a seguinte configuração:

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Cadastrar Login