Skip to content

Commit

Permalink
[FIX] CSOSN and CST diplay
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Felipe Miléo <[email protected]>
  • Loading branch information
mileo committed Jul 16, 2024
1 parent d0b1736 commit fd28343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/erpbrasil/edoc/pdf/danfe_formata.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ def cst_formatado(det):
else:
formatado += '41'

elif det.imposto.ICMS.regime_tributario == 1:
formatado += str(det.imposto.ICMS.tipoICMS.CSOSN).zfill(3)
else:
formatado += str(det.imposto.ICMS.tipoICMS.CST).zfill(2)
formatado += str(det.imposto.ICMS.tipoICMS.CSOSN)
formatado += str(det.imposto.ICMS.tipoICMS.CST)
formatado.zfill(2)

return formatado

Expand Down

0 comments on commit fd28343

Please sign in to comment.