Contact tab after main tab
This commit is contained in:
parent
e0af4f8489
commit
bf1bada435
@ -34,7 +34,7 @@
|
|||||||
function facturefourn_prepare_head($object)
|
function facturefourn_prepare_head($object)
|
||||||
{
|
{
|
||||||
global $db, $langs, $conf;
|
global $db, $langs, $conf;
|
||||||
|
|
||||||
$h = 0;
|
$h = 0;
|
||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ function facturefourn_prepare_head($object)
|
|||||||
function ordersupplier_prepare_head($object)
|
function ordersupplier_prepare_head($object)
|
||||||
{
|
{
|
||||||
global $db, $langs, $conf, $user;
|
global $db, $langs, $conf, $user;
|
||||||
|
|
||||||
$h = 0;
|
$h = 0;
|
||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
@ -111,15 +111,6 @@ function ordersupplier_prepare_head($object)
|
|||||||
$head[$h][2] = 'card';
|
$head[$h][2] = 'card';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if (! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER))
|
|
||||||
{
|
|
||||||
$langs->load("stocks");
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/dispatch.php?id='.$object->id;
|
|
||||||
$head[$h][1] = $langs->trans("OrderDispatch");
|
|
||||||
$head[$h][2] = 'dispatch';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
|
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
|
||||||
{
|
{
|
||||||
$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
|
$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
|
||||||
@ -130,7 +121,16 @@ function ordersupplier_prepare_head($object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show more tabs from modules
|
if (! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER))
|
||||||
|
{
|
||||||
|
$langs->load("stocks");
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/dispatch.php?id='.$object->id;
|
||||||
|
$head[$h][1] = $langs->trans("OrderDispatch");
|
||||||
|
$head[$h][2] = 'dispatch';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show more tabs from modules
|
||||||
// Entries must be declared in modules descriptor with line
|
// Entries must be declared in modules descriptor with line
|
||||||
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
|
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
|
||||||
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
||||||
@ -193,7 +193,7 @@ function supplierorder_admin_prepare_head()
|
|||||||
$head[$h][1] = $langs->trans("SuppliersInvoice");
|
$head[$h][1] = $langs->trans("SuppliersInvoice");
|
||||||
$head[$h][2] = 'invoice';
|
$head[$h][2] = 'invoice';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/supplier_payment.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/supplier_payment.php";
|
||||||
$head[$h][1] = $langs->trans("SuppliersPayment");
|
$head[$h][1] = $langs->trans("SuppliersPayment");
|
||||||
$head[$h][2] = 'supplierpayment';
|
$head[$h][2] = 'supplierpayment';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user