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