diff options
Diffstat (limited to 'src/latex_templates/facture.php')
-rw-r--r-- | src/latex_templates/facture.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/latex_templates/facture.php b/src/latex_templates/facture.php index 2ff4ac6..bbc20ce 100644 --- a/src/latex_templates/facture.php +++ b/src/latex_templates/facture.php | |||
@@ -1,6 +1,23 @@ | |||
1 | <?php | 1 | <?php |
2 | // latex_templates/facture.php | 2 | // latex_templates/facture.php |
3 | 3 | ||
4 | if($data['total_main_d_oeuvre'] != 0) | ||
5 | { | ||
6 | $data['total_main_d_oeuvre'] = ((string) $data['total_main_d_oeuvre']) . '€'; | ||
7 | } | ||
8 | if($data['total_pieces'] != 0) | ||
9 | { | ||
10 | $data['total_pieces'] = ((string) $data['total_pieces']) . '€'; | ||
11 | } | ||
12 | if($data['deplacement'] != 0) | ||
13 | { | ||
14 | $data['deplacement'] = ((string) $data['deplacement']) . '€'; | ||
15 | } | ||
16 | if($data['total_HT'] != 0) | ||
17 | { | ||
18 | $data['total_HT'] = ((string) $data['total_HT']) . '€'; | ||
19 | } | ||
20 | |||
4 | ob_start(); | 21 | ob_start(); |
5 | ?> | 22 | ?> |
6 | \documentclass{report} | 23 | \documentclass{report} |
@@ -47,7 +64,7 @@ ob_start(); | |||
47 | Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} & | 64 | Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} & |
48 | Date : \textcolor{vert}{<?= $date ?>}\\ | 65 | Date : \textcolor{vert}{<?= $date ?>}\\ |
49 | \end{tabularx}\\ | 66 | \end{tabularx}\\ |
50 | Adresse : \textcolor{vert}{<?= $data['adresse'] ?>}\\ | 67 | Adresse : \textcolor{vert}{<?php echo($data['adresse'] . ', ' . $data['code_postal'] . ' ' . $data['ville']); ?>}\\ |
51 | 68 | ||
52 | PRESTATION\\ | 69 | PRESTATION\\ |
53 | 70 | ||