Completed
Push — master ( c2d14e...abe7b9 )
by Laurent
02:09
created
generateBilling.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 $adherent = new Adherent($db);
110 110
                 $adherent->fetch($expenseNoteUser->fk_member);
111 111
 
112
-                $addBonus = (int)$additionalBonus[$currentMissionUserId];
112
+                $addBonus = (int) $additionalBonus[$currentMissionUserId];
113 113
                 if ($addBonus < 0) {
114 114
                     dol_htmloutput_mesg("Facture ignorée " . $adherent->getFullName($langs), '', 'warning');
115 115
                     continue;
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
                 $object->insert_discount($discountid);
336 336
 
337 337
                 //Additional bonus
338
-                if ((int)$addBonus > 0) {
338
+                if ((int) $addBonus > 0) {
339 339
 
340 340
                     $pu_ht = price2num($addBonus, 'MU');
341 341
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -589,9 +589,12 @@
 block discarded – undo
589 589
 
590 590
         <?php if ($year >= $currentYear) : ?>
591 591
             <a class="butActionRefused" href="#">Générer</a>
592
-        <?php else: ?>
592
+        <?php else {
593
+    : ?>
593 594
             <button class="butAction" type="submit">Générer</button>
594
-        <?php endif; ?>
595
+        <?php endif;
596
+}
597
+?>
595 598
 
596 599
     </form>
597 600
 
Please login to merge, or discard this patch.