mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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))
|
||||
{
|
||||
$adh = new Adherent($db);
|
||||
$result=$adh->fetch('', '', $object->id);
|
||||
if (!$result && $object->client == 1)
|
||||
{
|
||||
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>';
|
||||
}
|
||||
$adh = new Adherent($db);
|
||||
$result=$adh->fetch('', '', $object->id);
|
||||
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>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($user->rights->societe->supprimer)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user