From ab4dbad13cdcc9954dddc51dadb851eacfac4cb8 Mon Sep 17 00:00:00 2001 From: "gleison.cruz" Date: Fri, 30 Aug 2024 10:16:30 -0300 Subject: [PATCH] =?UTF-8?q?fixes=20bug#AL-4854=20Corre=C3=A7=C3=A3o=20do?= =?UTF-8?q?=20Digito=20verficador=20itau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/com/rjconsultores/ventaboletos/utils/NossoNumeroUtils.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a2c251d04..1bbece475 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ br.com.rjconsultores GeneradorBoletosCNAB - 1.8.0 + 1.8.1 GeneradorBoletosCNAB diff --git a/src/com/rjconsultores/ventaboletos/utils/NossoNumeroUtils.java b/src/com/rjconsultores/ventaboletos/utils/NossoNumeroUtils.java index a78a47efb..4c1ac3cb5 100644 --- a/src/com/rjconsultores/ventaboletos/utils/NossoNumeroUtils.java +++ b/src/com/rjconsultores/ventaboletos/utils/NossoNumeroUtils.java @@ -213,7 +213,7 @@ public class NossoNumeroUtils { public static String dacItau(Integer codAgencia, Integer numConta, Integer numCarteira, BigInteger nossoNumero){ - int multiplicadores[] = {2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1}; + int multiplicadores[] = {1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2}; int multiplicandos[] = new int[20]; String agencia = StringUtils.right("0000" + codAgencia, 4); @@ -391,6 +391,7 @@ public class NossoNumeroUtils { public static void main(String[] args) { System.out.println( calcularNossoNumeroSafra( new BigInteger("422979999") )); + System.out.println(dacItau(5435, 34787, 109, new BigInteger("81059"))); //codAgencia, numConta, numCarteira, nossoNumero } } \ No newline at end of file