Skip to content

Commit

Permalink
agrego correos
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Mar 31, 2024
1 parent 5e13753 commit 21fae3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions satdigitalinvoice/facturacion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from zipfile import ZipFile

from PySimpleGUI import POPUP_BUTTONS_OK_CANCEL, PySimpleGUI as sg, POPUP_BUTTONS_NO_BUTTONS
from satcfdi import csf
from satcfdi import csf, render
from satcfdi.accounting import EmailManager
from satcfdi.accounting.models import EstadoComprobante
from satcfdi.accounting.process import complement_invoices
Expand All @@ -33,7 +33,7 @@
from .localdb import LocalDB
from .log_tools import header_line, print_yaml, to_yaml
from .mycfdi import MyCFDI, LiquidatedState
from .utils import random_string, to_date_period, load_certificate, to_int, cert_info, add_month, to_uuid, open_file, OS
from .utils import random_string, to_date_period, load_certificate, to_int, cert_info, add_month, to_uuid, open_file, OS, first_duplicate

logging.getLogger("weasyprint").setLevel(logging.ERROR)
logging.getLogger("fontTools").setLevel(logging.ERROR)
Expand Down Expand Up @@ -802,6 +802,8 @@ def nuevas_facturas(self, values, force=False):
facturas=FacturasManager(dp)["Facturas"],
dp=dp
)
if dup := first_duplicate(render.json_str(x) for x in cfdis):
raise Exception("Factura Duplicada: {}".format(dup))
facturas_table.update(
values=cfdis,
)
Expand Down

0 comments on commit 21fae3a

Please sign in to comment.