diff options
Diffstat (limited to 'src/sections/1_new_service.php')
| -rw-r--r-- | src/sections/1_new_service.php | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/sections/1_new_service.php b/src/sections/1_new_service.php index f9105b7..e7e3564 100644 --- a/src/sections/1_new_service.php +++ b/src/sections/1_new_service.php | |||
| @@ -130,7 +130,14 @@ function newService(): int // code de retour, si 0 retour menu principal, si 2 a | |||
| 130 | 130 | ||
| 131 | // -- partie 3: LaTeX -- | 131 | // -- partie 3: LaTeX -- |
| 132 | 132 | ||
| 133 | makeLatexAndPdfDocument($Client, $Presta, $PrestaDetails); | 133 | makeLatexAndPdfDocuments($Client, $Presta, $PrestaDetails); |
| 134 | |||
| 135 | // fabrique d'objets (sans connaître les noms des classes) | ||
| 136 | |||
| 137 | //~ $EnveloppeRecto = Latex::makeLatexSubClass('enveloppe_recto'); | ||
| 138 | //~ $EnveloppeVerso = Latex::makeLatexSubClass('enveloppe_verso'); | ||
| 139 | //~ $DocumentPresta = Latex::makeLatexSubClass($Presta->getTypePresta()); // $type = facture, devis, location | ||
| 140 | |||
| 134 | 141 | ||
| 135 | // -- partie 4: récapitulatif -- | 142 | // -- partie 4: récapitulatif -- |
| 136 | 143 | ||
| @@ -142,14 +149,17 @@ function newService(): int // code de retour, si 0 retour menu principal, si 2 a | |||
| 142 | //~ $imprimer_enveloppe = exec('zenity --question --width=250 --title="Base de données mise à jour" --text="Imprimer l\'adresse sur une enveloppe? (insérer une enveloppe DL sans fenêtre dans l\'imprimante"'); | 149 | //~ $imprimer_enveloppe = exec('zenity --question --width=250 --title="Base de données mise à jour" --text="Imprimer l\'adresse sur une enveloppe? (insérer une enveloppe DL sans fenêtre dans l\'imprimante"'); |
| 143 | 150 | ||
| 144 | 151 | ||
| 152 | // -- partie 5: on fait quoi maintenant -- | ||
| 153 | |||
| 145 | // possibilité de modification | 154 | // possibilité de modification |
| 146 | // zenityQuestion | 155 | // zenityQuestion |
| 147 | if(exec($QuestionModifierPrestation->get()) == '0') | 156 | //~ if(exec($QuestionModifierPrestation->get()) == '0') |
| 148 | { | 157 | //~ { |
| 149 | return 3; // section "Modifier un enregistrement" | 158 | //~ return 3; // section "Modifier un enregistrement" |
| 150 | } | 159 | //~ } |
| 151 | else | 160 | //~ else |
| 152 | { | 161 | //~ { |
| 153 | return 0; // menu principal | 162 | //~ return 0; // menu principal |
| 154 | } | 163 | //~ } |
| 164 | return 0; // menu principal | ||
| 155 | } | 165 | } |
