Update card.php
NEW Add option MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS
This commit is contained in:
parent
da5890e584
commit
eba3d96293
@ -2668,12 +2668,12 @@ else
|
|||||||
|
|
||||||
if (! empty($conf->adherent->enabled))
|
if (! empty($conf->adherent->enabled))
|
||||||
{
|
{
|
||||||
$adh = new Adherent($db);
|
$adh = new Adherent($db);
|
||||||
$result=$adh->fetch('', '', $object->id);
|
$result=$adh->fetch('', '', $object->id);
|
||||||
if (!$result && $object->client == 1)
|
if ($result == 0 && ($object->client == 1 || $object->client == 3) && ! empty($conf->global->MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS))
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/adherents/card.php?&action=create&socid='.$object->id.'" title="'.dol_escape_htmltag($langs->trans("NewMember")).'">'.$langs->trans("NewMember").'</a>';
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/adherents/card.php?&action=create&socid='.$object->id.'" title="'.dol_escape_htmltag($langs->trans("NewMember")).'">'.$langs->trans("NewMember").'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->societe->supprimer)
|
if ($user->rights->societe->supprimer)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user