From 3684ad067b615ef3270c379628335f42a7f91321 Mon Sep 17 00:00:00 2001 From: Guilherme Leal Date: Tue, 4 Jun 2019 17:52:46 -0300 Subject: [PATCH] Ajuste para responsavel tecnico no RS --- src/factory/processor/nfeProcessor.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/factory/processor/nfeProcessor.ts b/src/factory/processor/nfeProcessor.ts index 49197c0..ebaa4af 100644 --- a/src/factory/processor/nfeProcessor.ts +++ b/src/factory/processor/nfeProcessor.ts @@ -1031,6 +1031,19 @@ export class NFeProcessor { } private getResponsavelTecnico(respTec: ResponsavelTecnico, chave: string) { + const result: any = { + CNPJ: respTec.cnpj, + xContato: respTec.contato, + email: respTec.email, + fone: respTec.fone, + } + if (respTec.CSRT != null && respTec.CSRT != "") { + result.idCSRT = respTec.idCSRT; + result.hashCSRT = this.gerarHashCSRT(chave, respTec.CSRT); + } + return result; + + /* return { CNPJ: respTec.cnpj, xContato: respTec.contato, @@ -1039,6 +1052,7 @@ export class NFeProcessor { idCSRT: respTec.idCSRT, hashCSRT: this.gerarHashCSRT(chave, respTec.CSRT) } + */ } private gerarHashCSRT(chave: string, CSRT: string) {