Ajout bouton "créer" dans les onglets d'un projet
This commit is contained in:
parent
4985ec37d7
commit
96a0530391
@ -20,4 +20,6 @@ NewTask=New task
|
|||||||
Activity=Activity
|
Activity=Activity
|
||||||
MyActivity=My activity
|
MyActivity=My activity
|
||||||
DurationEffective=Effective duration
|
DurationEffective=Effective duration
|
||||||
ListProposalsAssociatedProject=Lists of the commercial proposals associated the project
|
ListProposalsAssociatedProject=Lists of the commercial proposals associated with the project
|
||||||
|
ListOrdersAssociatedProject=Lists of the orders associated with the project
|
||||||
|
ListInvoicesAssociatedProject=Lists of the invoices associated with the project
|
||||||
@ -20,4 +20,6 @@ NewTask=Nouvelle t
|
|||||||
Activity=Activité
|
Activity=Activité
|
||||||
MyActivity=Mon activité
|
MyActivity=Mon activité
|
||||||
DurationEffective=Durée effective
|
DurationEffective=Durée effective
|
||||||
ListProposalsAssociatedProject=Listes des propositions commerciales associées au projet
|
ListProposalsAssociatedProject=Listes des propositions commerciales associées au projet
|
||||||
|
ListOrdersAssociatedProject=Listes des commandes associées au projet
|
||||||
|
ListInvoicesAssociatedProject=Listes des factures associées au projet
|
||||||
@ -116,6 +116,19 @@ print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Barre d'action
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
|
if ($conf->commande->enabled && $user->rights->commande->creer)
|
||||||
|
{
|
||||||
|
$langs->load("orders");
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/commande/fiche.php?socidp='.$projet->societe->id.'&action=create">'.$langs->trans("AddOrder").'</a>';
|
||||||
|
}
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Commandes
|
* Commandes
|
||||||
*
|
*
|
||||||
@ -126,7 +139,7 @@ if (sizeof($commandes)>0 && is_array($commandes))
|
|||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print_titre('Listes des commandes associées au projet');
|
print_titre($langs->trans("ListProposalsAssociatedProject"));
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -117,6 +117,17 @@ print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Barre d'action
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
|
if ($conf->facture->enabled && $user->rights->facture->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?socidp='.$projet->societe->id.'&action=create">'.$langs->trans("AddBill").'</a>';
|
||||||
|
}
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Factures
|
* Factures
|
||||||
@ -127,7 +138,7 @@ if (sizeof($factures)>0 && is_array($factures))
|
|||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print_titre('Listes des factures associées au projet');
|
print_titre($langs->trans("ListInvoicesAssociatedProject"));
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -131,7 +131,6 @@ print '</table>';
|
|||||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/addpropal.php?socidp='.$projet->societe->id.'&action=create">'.$langs->trans("AddProp").'</a>';
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/addpropal.php?socidp='.$projet->societe->id.'&action=create">'.$langs->trans("AddProp").'</a>';
|
||||||
}
|
}
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
$propales = $projet->get_propal_list();
|
$propales = $projet->get_propal_list();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user