NEW create thirdparty customer from TAKEPOS

avoid to switch to backend dolibarr then return to takepos (not really ergonomic and userfriendly)
This commit is contained in:
ptibogxiv
2020-09-18 14:48:47 +02:00
committed by GitHub
parent 4e56115d2d
commit 1c65fa0c5d

View File

@@ -613,6 +613,12 @@ if ($user->rights->societe->creer && $contextpage != 'poslist')
}
$newcardbutton .= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/societe/card.php?action=create'.$typefilter);
} elseif ($user->rights->societe->creer && $contextpage == 'poslist')
{
$label = 'MenuNewCustomer';
$newcardbutton .= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/societe/card.php?action=create&type=c&contextpage=poslist&optioncss=print&backtopage='.$_SERVER["PHP_SELF"].'?contextpage=poslist&nomassaction=1&optioncss=print&place='.urlencode($place));
}
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'" name="formfilter" autocomplete="off">';