Merge pull request 'fixes bug#AL-4854' (#17) from AL-4854 into master
Reviewed-on: utilidades/GeneradorBoletosCNAB#17 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master
commit
92269a1342
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>GeneradorBoletosCNAB</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.8.1</version>
|
||||
<name>GeneradorBoletosCNAB</name>
|
||||
|
||||
<distributionManagement>
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue