eo_facture: remove unused add_facturx_from_facture method (#36633)

This commit is contained in:
Nicolas Roche 2021-12-16 10:34:20 +01:00
parent 94080bff70
commit 53a671300c
1 changed files with 0 additions and 21 deletions

View File

@ -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'