diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 242b1d0b7bb..d84626fe5f6 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -247,7 +247,7 @@ if ($socidp > 0) print ''; + if (($_GET['action'] != 'editconditions') && (!$user->societe_id > 0)) print ''; print '
'; print $langs->trans('PaymentConditions'); print ''; - if (($_GET['action'] != 'editconditions') && ($user->societe_id > 0)) print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; print ''; if ($_GET['action'] == 'editconditions') @@ -266,7 +266,7 @@ if ($socidp > 0) print ''; + if (($_GET['action'] != 'editmode') && (!$user->societe_id > 0)) print ''; print '
'; print $langs->trans('PaymentMode'); print ''; - if (($_GET['action'] != 'editmode') && ($user->societe_id > 0)) print 'id.'">'.img_edit($langs->trans('SetMode'),1).'id.'">'.img_edit($langs->trans('SetMode'),1).'
'; print ''; if ($_GET['action'] == 'editmode') @@ -285,7 +285,7 @@ if ($socidp > 0) print '
'; print $langs->trans("CustomerRelativeDiscountShort"); print ''; - if ($user->societe_id > 0) + if (!$user->societe_id > 0) { print ''.img_edit($langs->trans("Modify")).''; } @@ -299,7 +299,7 @@ if ($socidp > 0) print '
'; print $langs->trans("CustomerAbsoluteDiscountShort"); print ''; - if ($user->societe_id > 0) + if (!$user->societe_id > 0) { print ''.img_edit($langs->trans("Modify")).''; } @@ -320,7 +320,7 @@ if ($socidp > 0) print '
'; print $langs->trans("PriceLevel"); print ''; - if ($user->societe_id > 0) + if (!$user->societe_id > 0) { print ''.img_edit($langs->trans("Modify")).''; } @@ -336,7 +336,7 @@ if ($socidp > 0) print '
'; print $langs->trans("DeliveriesAddress"); print ''; - if ($user->societe_id > 0) + if (!$user->societe_id > 0) { print ''.img_edit($langs->trans("Modify")).''; }