Completed
Push — feature/order_add_flight ( 65143a )
by Laurent
02:14
created
command/CreateOrderCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     /**
229 229
      * @return boolean
230 230
      */
231
-    public function hasTVA(){
231
+    public function hasTVA() {
232 232
         return !empty($this->tva);
233 233
     }
234 234
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * @return bool
261 261
      */
262
-    public function isCommentPublic(){
262
+    public function isCommentPublic() {
263 263
         return $this->publicComment;
264 264
     }
265 265
 
Please login to merge, or discard this patch.
command/CreateFlightCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@
 block discarded – undo
393 393
     /**
394 394
      * @return bool
395 395
      */
396
-    public function hasOrderId(){
396
+    public function hasOrderId() {
397 397
         return $this->orderId !== null;
398 398
     }
399 399
 }
400 400
\ No newline at end of file
Please login to merge, or discard this patch.
class/bbcvols.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         $sql .= ' justif_kilometers = ' . (isset($this->justif_kilometers) ? "'" . $this->db->escape($this->justif_kilometers) . "'," : "'',");
487 487
         $sql .= ' date_update = ' . "'" . date('Y-m-d H:i:s') . "',";
488 488
         $sql .= ' passenger_names = ' . "'" . trim($this->passengerNames) . "',";
489
-        $sql .= ' order_id = ' . "'" . (!isset($this->orderId) ? 'null' : $this->orderId ) . "'";
489
+        $sql .= ' order_id = ' . "'" . (!isset($this->orderId) ? 'null' : $this->orderId) . "'";
490 490
 
491 491
         $sql .= ' WHERE idBBC_vols=' . $this->idBBC_vols;
492 492
 
@@ -586,9 +586,9 @@  discard block
 block discarded – undo
586 586
         $label = '<u>' . $langs->trans("MyModule") . '</u>';
587 587
         $label .= '<div width="100%">';
588 588
         $label .= '<b>' . $langs->trans('Ref') . ':</b> ' . $this->idBBC_vols . '<br>';
589
-        $label .= '<b>' . $langs->trans('Date') . ':</b> ' . dol_print_date($this->date, '%d-%m-%Y').'<br/>';
590
-        $label .= '<b>' . $langs->trans('From') . ':</b> ' . $this->lieuD.'<br/>';
591
-        $label .= '<b>' . $langs->trans('To') . ':</b> ' . $this->lieuA.'<br/>';
589
+        $label .= '<b>' . $langs->trans('Date') . ':</b> ' . dol_print_date($this->date, '%d-%m-%Y') . '<br/>';
590
+        $label .= '<b>' . $langs->trans('From') . ':</b> ' . $this->lieuD . '<br/>';
591
+        $label .= '<b>' . $langs->trans('To') . ':</b> ' . $this->lieuA . '<br/>';
592 592
         $label .= '</div>';
593 593
 
594 594
         $link = '<a href="' . DOL_URL_ROOT . '/flightlog/card.php?id=' . $this->idBBC_vols . '"';
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     /**
962 962
      * @return bool
963 963
      */
964
-    public function isLinkedToOrder(){
964
+    public function isLinkedToOrder() {
965 965
         return isset($this->orderId) && $this->orderId > 0;
966 966
     }
967 967
 
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
      */
971 971
     private function fetchOrder()
972 972
     {
973
-        if(!$this->isLinkedToOrder()){
973
+        if (!$this->isLinkedToOrder()) {
974 974
             return $this;
975 975
         }
976 976
 
Please login to merge, or discard this patch.