Skip to content

Commit

Permalink
Contabilidad Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Mar 29, 2024
1 parent 6aa2526 commit 32d18be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
30 changes: 0 additions & 30 deletions satcfdi/create/__init__.py
Original file line number Diff line number Diff line change
@@ -1,31 +1 @@
from ..models import Signer, Certificate


# class Issuer:
# """
# Instancia generica de Emisor para usar en la creacion y sellado de comprobantes
# """
#
# def __init__(self, tax_system: str, signer: Signer | Certificate = None, legal_name: str = None, rfc: str = None, certificate_number: str = None):
# """
# Issuer to issue and stamp CFDIs
#
# :param signer: Llave y Certificado del Emisor
# :param legal_name: Legal Name (Razon Social)
# :param tax_system: Atributo requerido para incorporar la clave del régimen del contribuyente emisor al que aplicará el efecto fiscal de este comprobante.
# """
# self.signer = signer if isinstance(signer, Signer) else None
# self.certificate = signer
# self.rfc = rfc or signer.rfc
# self.legal_name = legal_name or signer.legal_name
# self.tax_system = tax_system
# self.certificate_number = certificate_number or (signer.certificate_number if signer else "")


class Signable256(dict):
def sign(self, signer: Signer):
self['NoCertificado'] = signer.certificate_number
self['Certificado'] = signer.certificate_base64()
self['Sello'] = signer.sign_sha256(
self.cadena_original().encode()
)
1 change: 0 additions & 1 deletion satcfdi/create/cfd/cfdi40.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from satcfdi.create.cfd.catalogos import Impuesto as CatImpuesto
from . import pago20
from .. import Signer
from ..compute import make_impuestos, rounder, make_impuesto, \
make_impuestos_dr_parcial
from ...cfdi import CFDI
Expand Down

0 comments on commit 32d18be

Please sign in to comment.