From 53a671300c0919e80c7cf19334a30606d123ba45 Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Thu, 16 Dec 2021 10:34:20 +0100 Subject: [PATCH] eo_facture: remove unused add_facturx_from_facture method (#36633) --- eo_gestion/eo_facture/facturx.py | 21 --------------------- 1 file changed, 21 deletions(-) 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'