Code Duplication    Length = 3-3 lines in 2 locations

card.php 1 location

@@ 393-395 (lines=3) @@
390
        print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;action=delete">' . $langs->trans('Delete') . '</a></div>' . "\n";
391
    }
392
393
    if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
394
        print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id.'">' . $langs->trans("Facturer") . '</a></div>' . "\n";
395
    }
396
    ?>
397
398
    <?php if($user->rights->flightlog->vol->financial && !$object->isBilled() ): ?>

card_tab_financial.php 1 location

@@ 129-131 (lines=3) @@
126
// Buttons
127
print '<div class="tabsAction">' . "\n";
128
129
if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
130
    print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id.'">' . $langs->trans("Facturer") . '</a></div>' . "\n";
131
}
132
133
print '</div>' . "\n";
134