Skip to content

Commit

Permalink
Update card.php
Browse files Browse the repository at this point in the history
NEW Add option MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS
  • Loading branch information
eldy committed Oct 7, 2019
1 parent da5890e commit eba3d96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/societe/card.php
Expand Up @@ -2668,12 +2668,12 @@ function init_supplier_categ() {

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)
Expand Down

0 comments on commit eba3d96

Please sign in to comment.