From 18e5ad90761825f1207e7bad17afaef789b0f3e8 Mon Sep 17 00:00:00 2001
From: "noe.izquierdo" <noe.izquierdo@openpyme.mx>
Date: Mon, 4 Sep 2023 11:34:23 -0600
Subject: [PATCH] =?UTF-8?q?fix(account.invoice):=20se=20corrige=20xml=20de?=
 =?UTF-8?q?l=20CFDI=204.0=20para=20la=20emisi=C3=B3n=20de=20facturas?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Se corrige la línea que manda a traer el valor Cantidad del nodo conceptos.
El cambio consta en mostrar el campo Cantidad con los 6 decimales pero con valor y sin afectar el valor real.
---
 l10n_mx_facturae/templates/account_invoice.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l10n_mx_facturae/templates/account_invoice.txt b/l10n_mx_facturae/templates/account_invoice.txt
index 900442c2af..fd18aa7d4d 100644
--- a/l10n_mx_facturae/templates/account_invoice.txt
+++ b/l10n_mx_facturae/templates/account_invoice.txt
@@ -110,7 +110,7 @@
                     {% if line.cfdi_numero_identificacion %}NoIdentificacion="${ html_escape(line.cfdi_numero_identificacion) }"{% end %}
                 {% end %}
             {% end %}
-            Cantidad="${ '{0:.6f}'.format(line.quantity) }"
+            Cantidad="${ '{0:g}'.format(line.quantity) }"
             {% choose line.uos_id.name %}
                 {% when False %}${ validationerror(_('Please select a unit of measure for line: {l}').format(l=line.name)) }{% end %}
                 {% otherwise %}
-- 
GitLab