Debug v20

This commit is contained in:
Laurent Destailleur 2024-06-29 13:27:36 +02:00
parent 2f4c84f4b5
commit 32afd1515f

View file

@ -167,7 +167,7 @@ if ($usemargins && isModEnabled('margin') && empty($user->socid)) {
if (getDolGlobalString('DISPLAY_MARGIN_RATES') && $user->hasRight('margins', 'liretous')) {
print '<th class="linecolmargin2 margininfos right width75">'.$langs->trans('MarginRate');
if ($user->hasRight("propal", "creer")) {
if ($object->status == $object::STATUS_DRAFT && $user->hasRight("propal", "creer")) {
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?mode=marginforalllines&id='.$object->id.'">'.img_edit($langs->trans("UpdateForAllLines"), 0, 'class="clickmarginforalllines opacitymedium paddingleft cursorpointer"').'</a>';
if (GETPOST('mode', 'aZ09') == 'marginforalllines') {
print '<div class="classmarginforalllines inline-block nowraponall">';