@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $command = new CreateMonthBillCommand($type, $modeReglement, $conditionReglement, $documentModel, $publicNote, $privateNote,$year, $month); |
| 102 | 102 | $handler->handle($command); |
| 103 | 103 | dol_htmloutput_mesg('Génération : OK'); |
| 104 | - }catch(Exception $e){ |
|
| 104 | + } catch(Exception $e){ |
|
| 105 | 105 | dol_syslog($e->getMessage(), LOG_ERR); |
| 106 | 106 | dol_htmloutput_mesg('Erreur pendant la génération.', '', 'error'); |
| 107 | 107 | } |
@@ -223,9 +223,12 @@ discard block |
||
| 223 | 223 | <?php echo $langs->trans('La periode demandée n\'est pas cloturée.') ?> |
| 224 | 224 | </p> |
| 225 | 225 | <a class="butActionRefused" href="#">Générer</a> |
| 226 | - <?php else: ?> |
|
| 226 | + <?php else { |
|
| 227 | + : ?> |
|
| 227 | 228 | <button class="butAction" type="submit">Générer</button> |
| 228 | - <?php endif; ?> |
|
| 229 | + <?php endif; |
|
| 230 | +} |
|
| 231 | +?> |
|
| 229 | 232 | |
| 230 | 233 | </form> |
| 231 | 234 | |