Code Duplication    Length = 3-3 lines in 2 locations

card_tab_financial.php 1 location

@@ 114-116 (lines=3) @@
111
// Buttons
112
print '<div class="tabsAction">' . "\n";
113
114
if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
115
    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";
116
}
117
118
print '</div>' . "\n";
119

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() ): ?>