Skip to content

Commit

Permalink
Merge pull request #209 from RJ-SMTR/feature-testes-funcionais
Browse files Browse the repository at this point in the history
Ajuste conflitos
  • Loading branch information
williamfl2007 committed Mar 7, 2024
2 parents 285088b + d0ab3a1 commit 1c3a95d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/cnab/service/cnab.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class CnabService {
}

public async getArquivoRetornoCNAB(){
await this.headerArquivoService.saveArquivoRetorno();
//await this.headerArquivoService.saveArquivoRetorno();
await this.headerArquivoService.compareRemessaToRetorno();
}

Expand Down
12 changes: 6 additions & 6 deletions src/cnab/service/header-arquivo.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ export class HeaderArquivoService {
const clienteFavorecido =
await this.clienteFavorecidoService.getOneByIdClienteFavorecido(detalheA.id_cliente_favorecido);
arquivoPublicacao.nome_cliente = clienteFavorecido.nome ;
arquivoPublicacao.cpf_cnpj_cliente = clienteFavorecido.cpf_cnpj;
arquivoPublicacao.cod_banco_cliente = clienteFavorecido.cod_banco ;
arquivoPublicacao.agencia_cliente = clienteFavorecido.agencia;
arquivoPublicacao.dv_agencia_cliente = clienteFavorecido.dv_agencia;
arquivoPublicacao.conta_corrente_cliente = clienteFavorecido.conta_corrente;
arquivoPublicacao.dv_conta_corrente_cliente = clienteFavorecido.dv_conta_corrente;
arquivoPublicacao.cpf_cnpj_cliente = String(clienteFavorecido.cpf_cnpj);
arquivoPublicacao.cod_banco_cliente = String(clienteFavorecido.cod_banco) ;
arquivoPublicacao.agencia_cliente = String(clienteFavorecido.agencia);
arquivoPublicacao.dv_agencia_cliente = String(clienteFavorecido.dv_agencia);
arquivoPublicacao.conta_corrente_cliente = String(clienteFavorecido.conta_corrente);
arquivoPublicacao.dv_conta_corrente_cliente = String(clienteFavorecido.dv_conta_corrente);
arquivoPublicacao.ocorrencias = detalheA.ocorrencias;
void this.arquivoPublicacaoRepository.save(arquivoPublicacao);
});
Expand Down
6 changes: 1 addition & 5 deletions src/cron-jobs/cron-jobs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,9 @@ export class CronJobsService implements OnModuleInit {
await this.cnabService.updateTransacaoFromJae();
}


async sendNewCNABs() {
await this.cnabService.sendNewCNABs();
}

async getRetornoCNAB(){
await this.cnabService.getArquivoRetornoCNAB();
}

async updateRemessa() {
const METHOD = 'updateRemessa()';
Expand Down

0 comments on commit 1c3a95d

Please sign in to comment.