<commit_before><?php
use_helper('Float');

$total_rows = 30;

$nbLigne = count($facture->echeances) * 3;
?>
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{units}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{fp}
\usepackage[table]{xcolor}
\usepackage{tikz}
\usepackage{array}
\usepackage{multicol}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{lastpage}



\usetikzlibrary{fit}
\newcommand{\CutlnPapillon}{
  	\multicolumn{7}{c}{ \Rightscissors \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline }
\\   	  
}

\renewcommand{\familydefault}{\sfdefault}


\normalfont
\setlength{\oddsidemargin}{-2cm}
\setlength{\evensidemargin}{-2cm}
\setlength{\textwidth}{19cm}
\setlength{\headheight}{5cm}

\setlength{\topmargin}{-3.5cm}

\def\TVA{19.60} 
\def\InterloireAdresse{<?php echo $facture->emetteur->adresse; ?> \\
		       <?php echo $facture->emetteur->code_postal.' '.$facture->emetteur->ville; ?> - France} 
\def\InterloireFacturation{Service facturation : <?php echo $facture->emetteur->service_facturation; ?> Tél. : <?php echo $facture->emetteur->telephone; ?>} 
\def\InterloireSIRET{429164072020093}
\def\InterloireAPE{APE 9499 Z} 
\def\InterloireTVAIntracomm{FR73429164072}
\def\InterloireSIRET{Crédit agricole de la tourraine et du poitou}
\def\InterloireBIC{XXXXX}
\def\InterloireIBAN{XXXX XXXXX XXXX XXXXX XX}

\def\FactureNum{<?php echo $facture->identifiant; ?>}
\def\FactureDate{<?php echo $facture->date_emission; ?>}
\def\FactureRefClient{<?php echo $facture->client_reference; ?>}

\def\FactureClientNom{<?php echo ($facture->client->raison_sociale == '')? 'Raison Sociale' : $facture->client->raison_sociale; ?>}
\def\FactureClientAdresse{<?php echo ($facture->client->adresse == '')? 'Adresse' : $facture->client->adresse; ?>}
\def\FactureClientCP{<?php echo $facture->client->code_postal; ?>}
\def\FactureClientVille{<?php echo $facture->client->ville; ?>}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}

\fancyhf{}

\lhead{
 \textbf{InterLoire} \\
 \InterloireAdresse \\
 \InterloireFacturation \\
 \begin{tiny}
 RIB~:~\InterloireSIRET~(BIC:~\InterloireBIC~IBAN:~\InterloireIBAN) \\
 SIRET~\InterloireSIRET ~-~\InterloireAPE ~- TVA~Intracommunutaire~\InterloireTVAIntracomm 
 \end{tiny}
}
\rhead{\includegraphics[scale=0.6]{<?php echo realpath(dirname(__FILE__)."/../../../../../web/data")."/logo.jpg"; ?>}}



\begin{document}

\noindent{
\begin{minipage}[t]{0.5\textwidth}
	\begin{flushleft}
	
	\textbf{FACTURE} \\
	\vspace{0.3cm}
	\begin{tikzpicture}
		\node[inner sep=1pt] (tab0){
			\begin{tabular}{*{2}{c|}c}
  				\rowcolor{lightgray} \textbf{NUMERO} & \textbf{DATE} & \textbf{REF CLIENT} \\
  				\hline
  				\FactureNum & \FactureDate & \FactureRefClient
			\end{tabular}
		};
		\node[draw=gray, inner sep=0pt, rounded corners=3pt, line width=2pt, fit=(tab0.north west) (tab0.north east) (tab0.south east) (tab0.south west)] {};	
	\end{tikzpicture}
	\\
	\begin{small}
	Cotisation selon Accord interprofessionnel en vigueur
	\end{small}		
	\end{flushleft}
\end{minipage}
}
\hspace{2cm}
\begin{minipage}[t]{0.5\textwidth}
		\begin{flushleft}		
			\textbf{\FactureClientNom \\}				
				\FactureClientAdresse \\
				\FactureClientCP ~\FactureClientVille \\
			\end{flushleft}
		\hspace{6cm}
		page \thepage / \pageref{LastPage} 
\end{minipage}

\centering
	\begin{tikzpicture}
		\node[inner sep=1pt] (tab1){
			\begin{tabular}{p{85mm} |p{11mm}|p{19mm}|p{16mm}|p{22mm}|p{5mm}}

  			\rowcolor{lightgray}
                        \centering \small{\textbf{ \\ LIBELLE}} &
   			\centering \small{\textbf{Mois}} &
   			\centering \small{\textbf{Volume en hl}} &
                        \centering \small{\textbf{Cotisation hl}} &
   			\centering \small{\textbf{Montant H.T Euros}} &
   			\multicolumn{1}{c}{\small{\textbf{Code Echéance}}} \\<commit_msg>Entete de colonne erronées<commit_after><?php
use_helper('Float');

$total_rows = 30;

$nbLigne = count($facture->echeances) * 3;
?>
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{units}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{fp}
\usepackage[table]{xcolor}
\usepackage{tikz}
\usepackage{array}
\usepackage{multicol}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{lastpage}



\usetikzlibrary{fit}
\newcommand{\CutlnPapillon}{
  	\multicolumn{7}{c}{ \Rightscissors \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline  \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline \Cutline }
\\   	  
}

\renewcommand{\familydefault}{\sfdefault}


\normalfont
\setlength{\oddsidemargin}{-2cm}
\setlength{\evensidemargin}{-2cm}
\setlength{\textwidth}{19cm}
\setlength{\headheight}{5cm}

\setlength{\topmargin}{-3.5cm}

\def\TVA{19.60} 
\def\InterloireAdresse{<?php echo $facture->emetteur->adresse; ?> \\
		       <?php echo $facture->emetteur->code_postal.' '.$facture->emetteur->ville; ?> - France} 
\def\InterloireFacturation{Service facturation : <?php echo $facture->emetteur->service_facturation; ?> Tél. : <?php echo $facture->emetteur->telephone; ?>} 
\def\InterloireSIRET{429164072020093}
\def\InterloireAPE{APE 9499 Z} 
\def\InterloireTVAIntracomm{FR73429164072}
\def\InterloireSIRET{Crédit agricole de la tourraine et du poitou}
\def\InterloireBIC{XXXXX}
\def\InterloireIBAN{XXXX XXXXX XXXX XXXXX XX}

\def\FactureNum{<?php echo $facture->identifiant; ?>}
\def\FactureDate{<?php echo $facture->date_emission; ?>}
\def\FactureRefClient{<?php echo $facture->client_reference; ?>}

\def\FactureClientNom{<?php echo ($facture->client->raison_sociale == '')? 'Raison Sociale' : $facture->client->raison_sociale; ?>}
\def\FactureClientAdresse{<?php echo ($facture->client->adresse == '')? 'Adresse' : $facture->client->adresse; ?>}
\def\FactureClientCP{<?php echo $facture->client->code_postal; ?>}
\def\FactureClientVille{<?php echo $facture->client->ville; ?>}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}

\fancyhf{}

\lhead{
 \textbf{InterLoire} \\
 \InterloireAdresse \\
 \InterloireFacturation \\
 \begin{tiny}
 RIB~:~\InterloireSIRET~(BIC:~\InterloireBIC~IBAN:~\InterloireIBAN) \\
 SIRET~\InterloireSIRET ~-~\InterloireAPE ~- TVA~Intracommunutaire~\InterloireTVAIntracomm 
 \end{tiny}
}
\rhead{\includegraphics[scale=0.6]{<?php echo realpath(dirname(__FILE__)."/../../../../../web/data")."/logo.jpg"; ?>}}



\begin{document}

\noindent{
\begin{minipage}[t]{0.5\textwidth}
	\begin{flushleft}
	
	\textbf{FACTURE} \\
	\vspace{0.3cm}
	\begin{tikzpicture}
		\node[inner sep=1pt] (tab0){
			\begin{tabular}{*{2}{c|}c}
  				\rowcolor{lightgray} \textbf{NUMERO} & \textbf{DATE} & \textbf{REF CLIENT} \\
  				\hline
  				\FactureNum & \FactureDate & \FactureRefClient
			\end{tabular}
		};
		\node[draw=gray, inner sep=0pt, rounded corners=3pt, line width=2pt, fit=(tab0.north west) (tab0.north east) (tab0.south east) (tab0.south west)] {};	
	\end{tikzpicture}
	\\
	\begin{small}
	Cotisation selon Accord interprofessionnel en vigueur
	\end{small}		
	\end{flushleft}
\end{minipage}
}
\hspace{2cm}
\begin{minipage}[t]{0.5\textwidth}
		\begin{flushleft}		
			\textbf{\FactureClientNom \\}				
				\FactureClientAdresse \\
				\FactureClientCP ~\FactureClientVille \\
			\end{flushleft}
		\hspace{6cm}
		page \thepage / \pageref{LastPage} 
\end{minipage}

\centering
	\begin{tikzpicture}
		\node[inner sep=1pt] (tab1){
			\begin{tabular}{p{85mm} |p{11mm}|p{19mm}|p{16mm}|p{22mm}|p{5mm}}

  			\rowcolor{lightgray}
                        \centering \small{\textbf{ \\ LIBELLE}} &
   			\centering \small{\textbf{Mois}} &
   			\centering \small{\textbf{Volume en hl}} &
                        \centering \small{\textbf{Cotisation}} &
   			\centering \small{\textbf{Montant H.T Euros}} &
   			\multicolumn{1}{c}{\small{\textbf{Code Echéance}}} \\
{'fraction_non_alphanumeric': 0.1746491423479617, 'fraction_numerical': 0.01871240810871018, 'mean_word_length': 4.278659611992945, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3858705', 'n_tokens_mistral': 3606, 'n_tokens_neox': 3399, 'n_words': 542}