eo_facture: remove unused add_facturx_from_facture method (#36633)
This commit is contained in:
parent
94080bff70
commit
53a671300c
|
@ -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'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue