From 6ae026fbdb700eb5541af7df7411c78070c8187f Mon Sep 17 00:00:00 2001
From: "elias.mendez" <elias.mendez@openpyme.mx>
Date: Tue, 31 Oct 2023 11:04:44 -0600
Subject: [PATCH] feat(l10n.mx.facturae): se agrega dominio para contar
 aquellos pagos que estan timbrados

se agrega dominio para contar aquellos pagos que estan timbrados
---
 l10n_mx_facturae/models/account_voucher.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/l10n_mx_facturae/models/account_voucher.py b/l10n_mx_facturae/models/account_voucher.py
index 6258e9bfbf..382937b3d9 100644
--- a/l10n_mx_facturae/models/account_voucher.py
+++ b/l10n_mx_facturae/models/account_voucher.py
@@ -126,6 +126,7 @@ class AccountVoucher(models.Model):
         payments = payments.filtered(
             lambda r: r.date >= invoice.date_invoice
             and r.journal_id.type in ("cash", "bank")
+            and r.payment_id.cfdi_state in ("signed", "done")
         )
         return len(payments) + 1
 
-- 
GitLab