Skip to content

Commit

Permalink
31/01/2025
Browse files Browse the repository at this point in the history
-- ACBrCTe.XmlWriter --
[*] Correção para alguns campos do ICMS que são opcionais e estavam como obrigatórios.
   Por: devFortes/Italo Giurizzato Junior


git-svn-id: https://svn.code.sf.net/p/acbr/code/trunk2@37158 6e92efe7-b92a-0410-a9ec-f9e4e41bb3a6
  • Loading branch information
italojjr committed Jan 31, 2025
1 parent f02a842 commit 82fc1dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Fontes/ACBrDFe/ACBrCTe/ACBrCTe-change-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ S
[-] : Corre��o de Bug (assim esperamos)

31/01/2025
-- ACBrCTe.XmlWriter --
[*] Corre��o para alguns campos do ICMS que s�o opcionais e estavam como obrigat�rios.
Por: devFortes/Italo Giurizzato Junior
-- ACBrCTeConhecimentos, pcteConversaoCTe --
[*] #Tk-6521 - Altera o tipo dos enumerados TpcteTipoDataPeriodo e TpcteTipoHorarioIntervalo de n�o preenchido e N para -1
Por: Diego Folieni
Expand Down
6 changes: 3 additions & 3 deletions Fontes/ACBrDFe/ACBrCTe/Base/ACBrCTe.XmlWriter.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ function TCTeXmlWriter.Gerar_CST60: TACBrXmlNode;
Result.AppendChild(AddNode(tcDe2, '#233', 'pICMSSTRet', 1, 5, 1,
CTe.Imp.ICMS.ICMS60.pICMSSTRet, DSC_PICMS));

Result.AppendChild(AddNode(tcDe2, '#234', 'vCred', 1, 15, 1,
Result.AppendChild(AddNode(tcDe2, '#234', 'vCred', 1, 15, 0,
CTe.Imp.ICMS.ICMS60.vCred, DSC_VCRED));

if CTe.Imp.ICMS.ICMS60.vICMSDeson > 0 then
Expand All @@ -1511,7 +1511,7 @@ function TCTeXmlWriter.Gerar_CST90: TACBrXmlNode;
Result.AppendChild(AddNode(tcStr, '#236', 'CST', 2, 2, 1,
CSTICMSTOStr(CTe.Imp.ICMS.ICMS90.CST), DSC_CST));

Result.AppendChild(AddNode(tcDe2, '#237', 'pRedBC', 1, 5, 1,
Result.AppendChild(AddNode(tcDe2, '#237', 'pRedBC', 1, 5, 0,
CTe.Imp.ICMS.ICMS90.pRedBC, DSC_PREDBC));

Result.AppendChild(AddNode(tcDe2, '#238', 'vBC', 1, 15, 1,
Expand All @@ -1523,7 +1523,7 @@ function TCTeXmlWriter.Gerar_CST90: TACBrXmlNode;
Result.AppendChild(AddNode(tcDe2, '#240', 'vICMS', 1, 15, 1,
CTe.Imp.ICMS.ICMS90.vICMS, DSC_VICMS));

Result.AppendChild(AddNode(tcDe2, '#241', 'vCred', 1, 15, 1,
Result.AppendChild(AddNode(tcDe2, '#241', 'vCred', 1, 15, 0,
CTe.Imp.ICMS.ICMS90.vCred, DSC_VCRED));

if CTe.Imp.ICMS.ICMS90.vICMSDeson > 0 then
Expand Down

0 comments on commit 82fc1dd

Please sign in to comment.