Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Ajuste para responsavel tecnico no RS
Browse files Browse the repository at this point in the history
  • Loading branch information
lealhugui committed Jun 4, 2019
1 parent 3d9ff03 commit 3684ad0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/factory/processor/nfeProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <schema.TInfRespTec> {
CNPJ: respTec.cnpj,
xContato: respTec.contato,
Expand All @@ -1039,6 +1052,7 @@ export class NFeProcessor {
idCSRT: respTec.idCSRT,
hashCSRT: this.gerarHashCSRT(chave, respTec.CSRT)
}
*/
}

private gerarHashCSRT(chave: string, CSRT: string) {
Expand Down

0 comments on commit 3684ad0

Please sign in to comment.