|
@@ -25,15 +25,15 @@ discard block |
|
|
block discarded – undo |
|
25
|
25
|
* Actions |
|
26
|
26
|
*/ |
|
27
|
27
|
// Save |
|
28
|
|
-if($action === ACTION_SAVE){ |
|
29
|
|
- foreach($services as $flightTypeId => $serviceId){ |
|
|
28
|
+if ($action === ACTION_SAVE) { |
|
|
29
|
+ foreach ($services as $flightTypeId => $serviceId) { |
|
30
|
30
|
$res = $flightType->fetch($flightTypeId); |
|
31
|
|
- if($res > 0 ){ |
|
|
31
|
+ if ($res > 0) { |
|
32
|
32
|
$flightType->fkService = $serviceId; |
|
33
|
33
|
$flightType->update($user); |
|
34
|
34
|
} |
|
35
|
35
|
|
|
36
|
|
- dolibarr_set_const($db, 'BBC_POINTS_BONUS_'.$flightTypeId, GETPOST('points_bonus_'.$flightTypeId), 'chaine', 0, 'Points pour le vol T'.$flightTypeId, $conf->entity); |
|
|
36
|
+ dolibarr_set_const($db, 'BBC_POINTS_BONUS_' . $flightTypeId, GETPOST('points_bonus_' . $flightTypeId), 'chaine', 0, 'Points pour le vol T' . $flightTypeId, $conf->entity); |
|
37
|
37
|
} |
|
38
|
38
|
|
|
39
|
39
|
dolibarr_set_const($db, 'BBC_FLIGHT_TYPE_CUSTOMER', GETPOST('customer_product'), 'chaine', 0, '', $conf->entity); |
|
@@ -71,7 +71,7 @@ discard block |
|
|
block discarded – undo |
|
71
|
71
|
<tr class="<?= $flightTypeLine->id % 2 == 0 ? "pair" : "impair" ?>"> |
|
72
|
72
|
<td>(T<?= $flightTypeLine->numero ?>) - <?= $flightTypeLine->nom ?></td> |
|
73
|
73
|
<td> |
|
74
|
|
- <?php $form->select_produits($flightTypeLine->fkService, 'idprod['.$flightTypeLine->id.']', $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(),$buyer->id); ?> |
|
|
74
|
+ <?php $form->select_produits($flightTypeLine->fkService, 'idprod[' . $flightTypeLine->id . ']', $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(), $buyer->id); ?> |
|
75
|
75
|
</td> |
|
76
|
76
|
</tr> |
|
77
|
77
|
<?php endforeach; ?> |
|
@@ -83,7 +83,7 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
</td> |
|
84
|
84
|
<td> |
|
85
|
85
|
<?php $form->select_produits($conf->global->BBC_FLIGHT_TYPE_CUSTOMER, 'customer_product', |
|
86
|
|
- $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(),$buyer->id); ?> |
|
|
86
|
+ $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(), $buyer->id); ?> |
|
87
|
87
|
</td> |
|
88
|
88
|
</tr> |
|
89
|
89
|
|
|
@@ -106,7 +106,7 @@ discard block |
|
|
block discarded – undo |
|
106
|
106
|
<label for="points_bonus_<?php echo $flightTypeLine->numero; ?>"> |
|
107
|
107
|
(T<?php echo $flightTypeLine->numero ?>) - <?php echo $flightTypeLine->nom ?> |
|
108
|
108
|
</label> |
|
109
|
|
- <?php $prop = 'BBC_POINTS_BONUS_'.$flightTypeLine->numero; ?> |
|
|
109
|
+ <?php $prop = 'BBC_POINTS_BONUS_' . $flightTypeLine->numero; ?> |
|
110
|
110
|
<input type="number" id="points_bonus_<?php echo $flightTypeLine->numero; ?>" name="points_bonus_<?php echo $flightTypeLine->numero; ?>" value="<?php echo $conf->global->$prop?>" /> |
|
111
|
111
|
<br/> |
|
112
|
112
|
<?php endforeach; ?> |