Skip to content

Commit

Permalink
[FIX][l10n_it_vat_statement_communication] fix encoding file and remo…
Browse files Browse the repository at this point in the history
…ve zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE

[FIX][l10n_it_vat_statement_communication] fix encoding file and remove zero value from xml in according the specification of ADE
  • Loading branch information
matteoopenf committed May 21, 2024
1 parent b602391 commit 28027cb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ def get_export_xml(self):
x1_Fornitura.append(x1_2_Comunicazione)

xml_string = etree.tostring(
x1_Fornitura, encoding="utf8", method="xml", pretty_print=True
x1_Fornitura,
encoding="utf8",
method="xml",
pretty_print=True,
xml_declaration=True,
)
return xml_string

Expand Down Expand Up @@ -411,6 +415,7 @@ def _export_xml_get_dati_modulo(self, quadro):
DebitoPrecedente.text = "{:.2f}".format(
quadro.debito_periodo_precedente
).replace(".", ",")

# 1.2.2.1.12 CreditoPeriodoPrecedente
CreditoPeriodoPrecedente = etree.SubElement(
xModulo, etree.QName(NS_IV, "CreditoPeriodoPrecedente")
Expand Down Expand Up @@ -446,6 +451,7 @@ def _export_xml_get_dati_modulo(self, quadro):
if quadro.metodo_calcolo_acconto:
Metodo = etree.SubElement(xModulo, etree.QName(NS_IV, "Metodo"))
Metodo.text = quadro.metodo_calcolo_acconto

Acconto = etree.SubElement(xModulo, etree.QName(NS_IV, "Acconto"))
Acconto.text = "{:.2f}".format(quadro.accounto_dovuto).replace(".", ",")
# 1.2.2.1.18 ImportoDaVersare
Expand Down

0 comments on commit 28027cb

Please sign in to comment.