diff --git a/eo_gestion/eo_facture/facturx.py b/eo_gestion/eo_facture/facturx.py index 34da9c7..7ebc796 100644 --- a/eo_gestion/eo_facture/facturx.py +++ b/eo_gestion/eo_facture/facturx.py @@ -57,27 +57,6 @@ def to_pdfa(pdf_bytes: bytes, icc_profile: str = DEFAULT_ICC_PROFILE): return output_fd.read() -def add_facturx_from_facture(facture): - pdf_bytes = facture.pdf() - - facturx_context = { - 'numero_de_facture': facture.code(), - 'type_facture': '380', - 'date_emission': facture.emission, - 'chorus_service_code': facture.client.chorus_structure.service_code, - 'vendeur': 'Entr\'ouvert', - 'vendeur_siret': '44317013900036', - 'vendeur_tvai': 'FR09491081899', - 'client_siret': facture.client.chorus_structure.siret, - 'client_name': facture.client.chorus_structure.name, - 'numero_engagement': '', - 'montant_ht': str(facture.montant), - 'montant_ttc': str(facture.montant_ttc), - 'montant_tva': str(facture.tva), - } - return add_facturx_from_bytes(pdf_bytes, facturx_context) - - DEFAULT_FACTURX_TEMPLATE = 'factur-x.xml'