summaryrefslogtreecommitdiff
path: root/src/latex_templates
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2023-02-25 17:30:20 +0100
committerpolo <ordipolo@gmx.fr>2023-02-25 17:30:20 +0100
commitb9c74de6d12ef40ab4baf67303ab22a10fcd5b32 (patch)
treedea294f55810471ca2165811515dcd3c8d0e006e /src/latex_templates
parent9d8133643773912d54fb0c7d86ef04e6acffa8c9 (diff)
downloadAppliGestionPHP-b9c74de6d12ef40ab4baf67303ab22a10fcd5b32.zip
document locations, correction de pas mal de problèmes
Diffstat (limited to 'src/latex_templates')
-rw-r--r--src/latex_templates/devis.php21
-rw-r--r--src/latex_templates/enveloppe_verso.php7
-rw-r--r--src/latex_templates/facture.php19
-rw-r--r--src/latex_templates/location.php38
-rw-r--r--src/latex_templates/originaux_pas_toucher/devis.tex2
-rw-r--r--src/latex_templates/originaux_pas_toucher/location.tex44
6 files changed, 101 insertions, 30 deletions
diff --git a/src/latex_templates/devis.php b/src/latex_templates/devis.php
index bd9c89d..7f1c8f7 100644
--- a/src/latex_templates/devis.php
+++ b/src/latex_templates/devis.php
@@ -1,6 +1,23 @@
1<?php 1<?php
2// latex_templates/devis.php 2// latex_templates/devis.php
3 3
4if($data['total_main_d_oeuvre'] != 0)
5{
6 $data['total_main_d_oeuvre'] = ((string) $data['total_main_d_oeuvre']) . '€';
7}
8if($data['total_pieces'] != 0)
9{
10 $data['total_pieces'] = ((string) $data['total_pieces']) . '€';
11}
12if($data['deplacement'] != 0)
13{
14 $data['deplacement'] = ((string) $data['deplacement']) . '€';
15}
16if($data['total_HT'] != 0)
17{
18 $data['total_HT'] = ((string) $data['total_HT']) . '€';
19}
20
4ob_start(); 21ob_start();
5?> 22?>
6\documentclass{report} 23\documentclass{report}
@@ -47,11 +64,11 @@ ob_start();
47 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}} 64 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
48 Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} & 65 Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} &
49 Date du devis : \textcolor{vert}{<?= $date ?>}\\ 66 Date du devis : \textcolor{vert}{<?= $date ?>}\\
50 Adresse : \textcolor{vert}{<?= $data['adresse'] ?>} & 67 Adresse : \textcolor{vert}{<?php echo($data['adresse'] . ', ' . $data['code_postal'] . ' ' . $data['ville']); ?>} &
51 Delai de livraison : \textcolor{vert}{<?= $data['delai_livraison'] ?>}\\ 68 Delai de livraison : \textcolor{vert}{<?= $data['delai_livraison'] ?>}\\
52 & 69 &
53 Durée de validité : \textcolor{vert}{<?= $data['validite_devis'] ?>}\\ 70 Durée de validité : \textcolor{vert}{<?= $data['validite_devis'] ?>}\\
54 \end{tabularx}\\\\ 71 \end{tabularx}\\
55 72
56 PRESTATION\\ 73 PRESTATION\\
57 74
diff --git a/src/latex_templates/enveloppe_verso.php b/src/latex_templates/enveloppe_verso.php
index 866fd04..81f6271 100644
--- a/src/latex_templates/enveloppe_verso.php
+++ b/src/latex_templates/enveloppe_verso.php
@@ -1,11 +1,6 @@
1<?php 1<?php
2// src/latex_templates/enveloppe_verso.php 2// src/latex_templates/enveloppe_verso.php
3 3
4$adresse[0] = 'Paul Jusot';
5$adresse[1] = "2A rue de l'île de Man";
6$adresse[2] = '29000';
7$adresse[3] = 'Quimper';
8
9ob_start(); 4ob_start();
10?> 5?>
11\documentclass[]{report} 6\documentclass[]{report}
@@ -19,7 +14,7 @@ ob_start();
19 14
20\begin{document} 15\begin{document}
21 \setlength{\parindent}{0cm} 16 \setlength{\parindent}{0cm}
22 \Large{<?= $data[0] ?>\\<?= $data[1] ?>\\<?= $data[2] ?> <?= $data[3] ?>} 17 \Large{<?= Config::$business_guy ?>\\<?= Config::$business_address ?>\\<?= Config::$business_postcode ?> <?= Config::$business_city ?>}
23\end{document} 18\end{document}
24<?php 19<?php
25$latex = ob_get_clean(); 20$latex = ob_get_clean();
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
4if($data['total_main_d_oeuvre'] != 0)
5{
6 $data['total_main_d_oeuvre'] = ((string) $data['total_main_d_oeuvre']) . '€';
7}
8if($data['total_pieces'] != 0)
9{
10 $data['total_pieces'] = ((string) $data['total_pieces']) . '€';
11}
12if($data['deplacement'] != 0)
13{
14 $data['deplacement'] = ((string) $data['deplacement']) . '€';
15}
16if($data['total_HT'] != 0)
17{
18 $data['total_HT'] = ((string) $data['total_HT']) . '€';
19}
20
4ob_start(); 21ob_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
diff --git a/src/latex_templates/location.php b/src/latex_templates/location.php
index dce7f04..2f7eb52 100644
--- a/src/latex_templates/location.php
+++ b/src/latex_templates/location.php
@@ -1,6 +1,15 @@
1<?php 1<?php
2// latex_templates/location.php 2// latex_templates/location.php
3 3
4if($data['valeur'] != 0)
5{
6 $data['valeur'] = ((string) $data['valeur']) . '€';
7}
8if($data['loyer_mensuel'] != 0)
9{
10 $data['loyer_mensuel'] = ((string) $data['loyer_mensuel']) . '€';
11}
12
4ob_start(); 13ob_start();
5?> 14?>
6\documentclass{report} 15\documentclass{report}
@@ -44,40 +53,39 @@ ob_start();
44 53
45 PROPRIÉTAIRE\\ 54 PROPRIÉTAIRE\\
46 55
47 Mme, M : \textcolor{vert}{Paul Jusot}\\ 56 Mme, M : \textcolor{vert}{<?= Config::$business_guy ?>}\\
48 Adresse : \textcolor{vert}{2A, rue de l'île de Man, 29000 Quimper}\\ 57 Adresse : \textcolor{vert}{<?php echo(Config::$business_address . ', ' . Config::$business_postcode . ' ' . Config::$business_city) ?>}\\
49 58
50 LOCATAIRE\\ 59 LOCATAIRE\\
51 60
52 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}} 61 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
53 Mme, M : \textcolor{vert}{} & tel : \textcolor{vert}{}\\ 62 Mme, M : \textcolor{vert}{<?= $data['prenom_nom'] ?>} & tel : \textcolor{vert}{<?= $data['telephone'] ?>}\\
54 Adresse : \textcolor{vert}{} & courriel : \textcolor{vert}{} 63 Adresse : \textcolor{vert}{<?php echo($data['adresse'] . ', ' . $data['code_postal'] . ' ' . $data['ville']); ?>} & courriel : \textcolor{vert}{<?= $data['courriel'] ?>}
55 \end{tabularx}\\\\ 64 \end{tabularx}\\\\
56 65
57 BIEN LOUÉ\\ 66 BIEN LOUÉ\\
58 67
59 Désignation : \textcolor{vert}{}\\ 68 Désignation : \textcolor{vert}{<?= $data['designation'] ?>}\\
60 Modèle, description : \textcolor{vert}{}\\ 69 Modèle, description : \textcolor{vert}{<?= $data['modele_description'] ?>}\\
61 70 Valeur : \textcolor{vert}{<?= $data['valeur'] ?>}\\\\
62 État des lieux initial : \textcolor{vert}{}\\\\ 71 État des lieux initial : \textcolor{vert}{<?= $data['etat_des_lieux_debut'] ?>}\\\\\\
63 72 État des lieux final : \textcolor{vert}{<?= $data['etat_des_lieux_fin'] ?>}\\\\
64 État des lieux final : \textcolor{vert}{}\\\\
65 73
66 CLAUSES\\ 74 CLAUSES\\
67 75
68 Durée du prêt : \textcolor{vert}{}\\ 76 Durée du prêt : \textcolor{vert}{<?= $data['duree_location'] ?>}\\
69 Loyer mensuel : \textcolor{vert}{}\\ 77 Loyer mensuel : \textcolor{vert}{<?= $data['loyer_mensuel'] ?>}\\
70 78
71 79
72 \textbf{Le bénéficiaire de cette location s’engage à prendre soin du bien désigné et à en faire un usage strictement personnel.}\\ 80 \textbf{Le bénéficiaire de cette location s’engage à prendre soin du bien désigné et à en faire un usage strictement personnel.}\\
73 81
74 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}} 82 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
75 Fait en deux exemplaires à : \textcolor{vert}{} & le : \textcolor{vert}{} \\ 83 Fait en deux exemplaires à : \textcolor{vert}{<?= Config::$business_city ?>} & le : \textcolor{vert}{<?= $date ?>} \\
76 \end{tabularx}\\ 84 \end{tabularx}\\
77 85
78 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}} 86 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
79 Le bénéficiaire du prêt : \textcolor{vert}{} & 87 Le bénéficiaire du prêt : \textcolor{vert}{<?= $data['prenom_nom'] ?>} &
80 Le loueur : \textcolor{vert}{}\\ 88 Le loueur : \textcolor{vert}{<?= Config::$business_guy ?>}\\
81 \end{tabularx}\\ 89 \end{tabularx}\\
82 \normalsize(précéder la signature de la mention « lu et approuvé ») 90 \normalsize(précéder la signature de la mention « lu et approuvé »)
83 91
diff --git a/src/latex_templates/originaux_pas_toucher/devis.tex b/src/latex_templates/originaux_pas_toucher/devis.tex
index 634ade1..bc44694 100644
--- a/src/latex_templates/originaux_pas_toucher/devis.tex
+++ b/src/latex_templates/originaux_pas_toucher/devis.tex
@@ -46,7 +46,7 @@
46 Delai de livraison : \textcolor{vert}{}\\ 46 Delai de livraison : \textcolor{vert}{}\\
47 & 47 &
48 Durée de validité : \textcolor{vert}{}\\ 48 Durée de validité : \textcolor{vert}{}\\
49 \end{tabularx}\\\\ 49 \end{tabularx}\\
50 50
51 PRESTATION\\ 51 PRESTATION\\
52 52
diff --git a/src/latex_templates/originaux_pas_toucher/location.tex b/src/latex_templates/originaux_pas_toucher/location.tex
index 0d525fe..5be9e47 100644
--- a/src/latex_templates/originaux_pas_toucher/location.tex
+++ b/src/latex_templates/originaux_pas_toucher/location.tex
@@ -33,12 +33,46 @@
33 Plus d'infos sur le site web: https\string://ordipolo.fr\\ 33 Plus d'infos sur le site web: https\string://ordipolo.fr\\
34 % \string supprime l'espace devant les : 34 % \string supprime l'espace devant les :
35 35
36 CLIENT\\ 36 \begin{center}
37 \large\textbf{CONTRAT DE LOCATION}
38 \end{center}
37 39
38 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}} 40 PROPRIÉTAIRE\\
39 Mme, M : \textcolor{vert}{} & 41
40 Date : \textcolor{vert}{}\\ 42 Mme, M : \textcolor{vert}{}\\
41 \end{tabularx}\\
42 Adresse : \textcolor{vert}{}\\ 43 Adresse : \textcolor{vert}{}\\
43 44
45 LOCATAIRE\\
46
47 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
48 Mme, M : \textcolor{vert}{} & tel : \textcolor{vert}{}\\
49 Adresse : \textcolor{vert}{} & courriel : \textcolor{vert}{}
50 \end{tabularx}\\\\
51
52 BIEN LOUÉ\\
53
54 Désignation : \textcolor{vert}{}\\
55 Modèle, description : \textcolor{vert}{}\\
56 Valeur : \textcolor{vert}{}\\\\
57 État des lieux initial : \textcolor{vert}{}\\\\\\
58 État des lieux final : \textcolor{vert}{}\\\\
59
60 CLAUSES\\
61
62 Durée du prêt : \textcolor{vert}{}\\
63 Loyer mensuel : \textcolor{vert}{}\\
64
65
66 \textbf{Le bénéficiaire de cette location s’engage à prendre soin du bien désigné et à en faire un usage strictement personnel.}\\
67
68 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
69 Fait en deux exemplaires à : \textcolor{vert}{} & le : \textcolor{vert}{} \\
70 \end{tabularx}\\
71
72 \begin{tabularx}{\linewidth}{@{}X@{}@{}X@{}}
73 Le bénéficiaire du prêt : \textcolor{vert}{} &
74 Le loueur : \textcolor{vert}{}\\
75 \end{tabularx}\\
76 \normalsize(précéder la signature de la mention « lu et approuvé »)
77
44\end{document} \ No newline at end of file 78\end{document} \ No newline at end of file