Skip to content

Commit

Permalink
Merge pull request #2887 from prefeiturasp/hotfix/9.3.1
Browse files Browse the repository at this point in the history
Hotfix/9.3.1
  • Loading branch information
mdiori authored Apr 22, 2024
2 parents 518cf9e + 7d302f3 commit 901db34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sme_ptrf_apps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "9.3.0"
__version__ = "9.3.1"

__version_info__ = tuple(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ def cria_registros_despesas(self, lista_despesas, categoria_despesa):
if 'despesas_impostos' in despesa:
info_retencao_imposto = ''
for imposto in despesa['despesas_impostos']:
data_transacao_imposto = self.string_to_date(imposto["data_transacao"]).date()
data_transacao_imposto = ''
if imposto["data_transacao"]:
data_transacao_imposto = self.string_to_date(imposto["data_transacao"]).date()
valor_imposto = imposto["valor"]

info_retencao_imposto = info_retencao_imposto + f"{valor_imposto};{data_transacao_imposto}\r\n"
Expand Down

0 comments on commit 901db34

Please sign in to comment.