@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | try{ |
128 | 128 | $command = new CreateFlightBillCommand($flight->getId(), $modeReglement, $conditionReglement, $documentModel, $type, $publicNote, $privateNote,$bankAccount, $nbrPax); |
129 | 129 | $handler->handle($command); |
130 | - }catch (\Exception $e){ |
|
130 | + } catch (\Exception $e){ |
|
131 | 131 | dol_syslog($e->getMessage(),LOG_ERR); |
132 | 132 | dol_htmloutput_mesg("Facture non créée", '', 'error'); |
133 | 133 | } |
@@ -268,9 +268,12 @@ discard block |
||
268 | 268 | |
269 | 269 | <?php if (!$flightProduct || !$flight->hasReceiver()) : ?> |
270 | 270 | <a class="butActionRefused" href="#">Générer</a> |
271 | - <?php else: ?> |
|
271 | + <?php else { |
|
272 | + : ?> |
|
272 | 273 | <button class="butAction" type="submit">Générer</button> |
273 | - <?php endif; ?> |
|
274 | + <?php endif; |
|
275 | +} |
|
276 | +?> |
|
274 | 277 | |
275 | 278 | <a class="butAction" href="<?php echo DOL_URL_ROOT . '/flightlog/card.php?id=' . $flight->id; ?>">Retour au |
276 | 279 | vol</a> |