From 1c65fa0c5dddffecd9dfbac5ec1bbde727aa7cec Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 18 Sep 2020 14:48:47 +0200 Subject: [PATCH] NEW create thirdparty customer from TAKEPOS avoid to switch to backend dolibarr then return to takepos (not really ergonomic and userfriendly) --- htdocs/societe/list.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 4cb6941dc74..cf4ebf6b2df 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -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 '
';