Test: removal of the tab "accountancy card"
This commit is contained in:
parent
0d7693ca50
commit
8a8a7d3c42
@ -360,6 +360,13 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Classify billed
|
||||||
|
if ($_GET["action"] == 'classifybilled')
|
||||||
|
{
|
||||||
|
$propal->fetch($_GET["id"]);
|
||||||
|
$propal->cloture($user, 4, '');
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Cloture de la propale
|
* Cloture de la propale
|
||||||
*/
|
*/
|
||||||
@ -1470,6 +1477,21 @@ if ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create an invoice and classify billed
|
||||||
|
if ($conf->facture->enabled && $propal->statut == 2 && $user->societe_id == 0)
|
||||||
|
{
|
||||||
|
if ($user->rights->facture->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&origin='.$propal->element.'&originid='.$propal->id.'&socid='.$propal->socid.'">'.$langs->trans("BuildBill").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$arraypropal=$propal->getInvoiceArrayList();
|
||||||
|
if (is_array($arraypropal) && sizeof($arraypropal) > 0)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$propal->id.'&action=classifybilled&socid='.$propal->socid.'">'.$langs->trans("ClassifyBilled").'</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Close
|
// Close
|
||||||
if ($propal->statut == 1 && $user->rights->propale->cloturer)
|
if ($propal->statut == 1 && $user->rights->propale->cloturer)
|
||||||
{
|
{
|
||||||
@ -1484,7 +1506,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete
|
// Delete
|
||||||
if ($user->rights->propale->supprimer)
|
if ($propal->statut < 4 && $user->rights->propale->supprimer)
|
||||||
{
|
{
|
||||||
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$propal->id.'&action=delete"';
|
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$propal->id.'&action=delete"';
|
||||||
print '>'.$langs->trans('Delete').'</a>';
|
print '>'.$langs->trans('Delete').'</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user