Test: removal of the tab "accountancy card"
This commit is contained in:
parent
156a1e6b29
commit
0d7693ca50
@ -261,6 +261,12 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($_GET["action"] == 'classifybilled')
|
||||||
|
{
|
||||||
|
$commande->fetch($comid);
|
||||||
|
$commande->classer_facturee();
|
||||||
|
}
|
||||||
|
|
||||||
// Positionne ref commande client
|
// Positionne ref commande client
|
||||||
if ($_POST['action'] == 'set_ref_client' && $user->rights->commande->creer)
|
if ($_POST['action'] == 'set_ref_client' && $user->rights->commande->creer)
|
||||||
{
|
{
|
||||||
@ -1761,6 +1767,19 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($conf->facture->enabled && $commande->statut > 0 && ! $commande->facturee)
|
||||||
|
{
|
||||||
|
if ($user->rights->facture->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&origin='.$commande->element.'&originid='.$commande->id.'&socid='.$commande->socid.'">'.$langs->trans("CreateBill").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user->rights->commande->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'&action=classifybilled">'.$langs->trans("ClassifyBilled").'</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Close
|
// Close
|
||||||
if ($commande->statut == 1 || $commande->statut == 2)
|
if ($commande->statut == 1 || $commande->statut == 2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -54,7 +54,7 @@ function commande_prepare_head($commande)
|
|||||||
$head[$h][2] = 'shipping';
|
$head[$h][2] = 'shipping';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
// Commande a facturer
|
// Commande a facturer
|
||||||
if ($conf->facture->enabled)
|
if ($conf->facture->enabled)
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ function commande_prepare_head($commande)
|
|||||||
$head[$h][2] = 'accountancy';
|
$head[$h][2] = 'accountancy';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if ($conf->use_preview_tabs)
|
if ($conf->use_preview_tabs)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/commande/apercu.php?id='.$commande->id;
|
$head[$h][0] = DOL_URL_ROOT.'/commande/apercu.php?id='.$commande->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user