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