Fix test
This commit is contained in:
parent
291b071d96
commit
f27dc99bf6
1 changed files with 2 additions and 1 deletions
|
|
@ -167,7 +167,8 @@ 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 ($object->status == $object::STATUS_DRAFT && $user->hasRight("propal", "creer")) {
|
||||
// @phan-suppress-next-line PhanUndeclaredConstantOfClass
|
||||
if (in_array($object->element, array('propal', 'commande', 'facture', 'supplier_proposal', 'order_supplier', 'invoice_supplier')) && $object->status == $object::STATUS_DRAFT) {
|
||||
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">';
|
||||
|
|
|
|||
Loading…
Reference in a new issue