{
  "template_name": "facture_standard",
  "version": "1.0",
  "pdf_format": "A4",
  "orientation": "portrait",
  "margins": {
    "top": 20,
    "bottom": 20,
    "left": 15,
    "right": 15
  },
  "metadata": {
    "title": "Facture {{reference_facture}}",
    "author": "MVR Raison",
    "subject": "Facture n\u00b0{{reference_facture}}",
    "keywords": "facture, Factur-X, EN 16931, client"
  },
  "entreprise": {
    "nom": "MVR Raison",
    "siret": "",
    "tva_intracommunautaire": "",
    "adresse": "Adresse de l'entreprise",
    "code_postal": "",
    "ville": "",
    "pays": "France",
    "email": "contact@mvr-raison.fr",
    "telephone": "",
    "iban": "",
    "bic": "",
    "statut_entreprise": "Micro-entreprise",
    "capital_social": null,
    "contexte_vente_defaut": "France",
    "mention_legale": "",
    "conditions_paiement": "A reception",
    "penalites_retard": "En cas de retard de paiement, seront exigibles, conformement au code de commerce, une indemnite calculee sur la base de trois fois le taux de l'interet legal en vigueur ainsi qu'une indemnite forfaitaire pour frais de recouvrement de 40 euros. Pas d'escompte en cas de paiement anticipe."
  },
  "elements": {
    "header": {
      "show": true,
      "titre": "FACTURE",
      "couleur_fond": "#1a1a4e",
      "couleur_texte": "#FFFFFF"
    },
    "facture_info": {
      "reference_facture": { "show": true, "label": "Reference :" },
      "date_emission": { "show": true, "label": "Date d'emission :", "format": "d/m/Y" },
      "titre": { "show": true, "font_size": 16, "bold": true }
    },
    "client": {
      "show": true,
      "label": "Client :",
      "fields": ["Nom_de_la_societe", "Nom", "Prenom", "Adresse_de_facturation", "Code_postal_facturation", "Ville_facturation", "Telephone1", "Email", "TVA_intracomm", "Numero_Siret"]
    },
    "items_tableau": {
      "show": true,
      "columns": ["libelle", "QTE", "U", "PU_HT", "total_HT"],
      "column_widths": [90, 20, 15, 30, 30],
      "header_bg_color": "#4CAF50",
      "header_text_color": "#FFFFFF",
      "even_row_bg": "#f2f2f2"
    },
    "totaux": {
      "show": true,
      "fields": ["total_ht", "taux_tva", "total_tva", "total_ttc"]
    },
    "conditions_paiement": {
      "show": true
    },
    "mentions_legales": {
      "show": true
    },
    "footer": {
      "show": true,
      "text": "Document genere electroniquement"
    }
  }
}