Skip to content
Snippets Groups Projects
Commit 554df266 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Place le lien "Recap historique" sous résumé compta

parent e5f0dc9e
Branches
Tags
No related merge requests found
...@@ -187,11 +187,6 @@ if ($socid > 0) ...@@ -187,11 +187,6 @@ if ($socid > 0)
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id;
$head[$h][1] = $langs->trans("Accountancy"); $head[$h][1] = $langs->trans("Accountancy");
$h++; $h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/recap-client.php?socid='.$societe->id;
$head[$h][1] = $langs->trans("Recap");
$h++;
} }
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id;
...@@ -215,6 +210,7 @@ if ($socid > 0) ...@@ -215,6 +210,7 @@ if ($socid > 0)
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">'; $head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
$head[$h][2] = 'image'; $head[$h][2] = 'image';
} }
dolibarr_fiche_head($head, $hselected, $societe->nom); dolibarr_fiche_head($head, $hselected, $societe->nom);
/* /*
...@@ -244,7 +240,7 @@ if ($socid > 0) ...@@ -244,7 +240,7 @@ if ($socid > 0)
print "</td></tr>"; print "</td></tr>";
print '<tr><td>'.$langs->trans("AccountancyCode").'</td><td>'.$societe->code_compta.'</td>'; print '<tr><td nowrap>'.$langs->trans("AccountancyCode").'</td><td>'.$societe->code_compta.'</td>';
print '<td>'.$langs->trans("CustomerCode").'/' . $langs->trans("SupplierCode") . '</td><td>'; print '<td>'.$langs->trans("CustomerCode").'/' . $langs->trans("SupplierCode") . '</td><td>';
print $societe->code_client; print $societe->code_client;
print "</td></tr>"; print "</td></tr>";
...@@ -358,6 +354,14 @@ if ($socid > 0) ...@@ -358,6 +354,14 @@ if ($socid > 0)
print "</table>"; print "</table>";
} }
// Lien recap
print '<br>';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td colspan="4"><table width="100%" class="noborder"><tr><td>'.$langs->trans("Summary").'</td><td align="right"><a href="'.DOL_URL_ROOT.'/compta/recap-client.php?socid='.$societe->id.'">'.$langs->trans("ShowLog").'</td></tr></table></td>';
print '</tr>';
print '</table>';
print "</td></tr>"; print "</td></tr>";
print "</table></div>\n"; print "</table></div>\n";
...@@ -382,6 +386,8 @@ if ($socid > 0) ...@@ -382,6 +386,8 @@ if ($socid > 0)
} }
} }
print "<a class=\"tabAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&amp;action=create\">".$langs->trans("AddContact")."</a>";
print '</div>'; print '</div>';
print "<br>\n"; print "<br>\n";
...@@ -416,7 +422,7 @@ if ($socid > 0) ...@@ -416,7 +422,7 @@ if ($socid > 0)
print '<tr class="liste_titre"><td>'.$langs->trans("Firstname").' '.$langs->trans("Lastname").'</td>'; print '<tr class="liste_titre"><td>'.$langs->trans("Firstname").' '.$langs->trans("Lastname").'</td>';
print '<td>'.$langs->trans("Poste").'</td><td>'.$langs->trans("Tel").'</td>'; print '<td>'.$langs->trans("Poste").'</td><td>'.$langs->trans("Tel").'</td>';
print '<td>'.$langs->trans("Fax").'</td><td>'.$langs->trans("EMail").'</td>'; print '<td>'.$langs->trans("Fax").'</td><td>'.$langs->trans("EMail").'</td>';
print "<td align=\"center\"><a href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&amp;action=create\">".$langs->trans("AddContact")."</a></td>"; print "<td align=\"center\">&nbsp;</td>";
print '<td>&nbsp;</td>'; print '<td>&nbsp;</td>';
print "</tr>"; print "</tr>";
......
...@@ -48,6 +48,7 @@ $user->getrights('facture'); ...@@ -48,6 +48,7 @@ $user->getrights('facture');
llxHeader(); llxHeader();
/* /*
* *
* Mode fiche * Mode fiche
...@@ -58,6 +59,9 @@ if ($socid > 0) ...@@ -58,6 +59,9 @@ if ($socid > 0)
$societe = new Societe($db); $societe = new Societe($db);
$societe->fetch($socid, $to); // si $to='next' ajouter " AND s.idp > $socid ORDER BY idp ASC LIMIT 1"; $societe->fetch($socid, $to); // si $to='next' ajouter " AND s.idp > $socid ORDER BY idp ASC LIMIT 1";
/*
* Affichage onglets
*/
/* /*
* Affichage onglets * Affichage onglets
*/ */
...@@ -86,17 +90,12 @@ if ($socid > 0) ...@@ -86,17 +90,12 @@ if ($socid > 0)
$h++; $h++;
} }
if ($conf->compta->enabled) if ($conf->compta->enabled) {
{
$langs->load("compta"); $langs->load("compta");
$hselected=$h;
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id;
$head[$h][1] = $langs->trans("Accountancy"); $head[$h][1] = $langs->trans("Accountancy");
$h++; $h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/recap-client.php?socid='.$societe->id;
$head[$h][1] = $langs->trans("Recap");
$hselected=$h;
$h++;
} }
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id;
...@@ -110,12 +109,17 @@ if ($socid > 0) ...@@ -110,12 +109,17 @@ if ($socid > 0)
$h++; $h++;
} }
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id;
$head[$h][1] = $langs->trans("Notifications");
$h++;
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
$head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark"; $head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark";
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">'; $head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
$head[$h][2] = 'image'; $head[$h][2] = 'image';
} }
dolibarr_fiche_head($head, $hselected, $societe->nom); dolibarr_fiche_head($head, $hselected, $societe->nom);
/* /*
...@@ -131,6 +135,8 @@ if ($socid > 0) ...@@ -131,6 +135,8 @@ if ($socid > 0)
print '<tr><td>'.$langs->trans('Zip').'</td><td>'.$societe->cp.'</td>'; print '<tr><td>'.$langs->trans('Zip').'</td><td>'.$societe->cp.'</td>';
print '<td>'.$langs->trans('Town').'</td><td>'.$societe->ville.'</td></tr>'; print '<td>'.$langs->trans('Town').'</td><td>'.$societe->ville.'</td></tr>';
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">'.$soc->pays.'</td>';
print '<tr><td>'.$langs->trans("Phone").'</td><td>'.$societe->tel.'&nbsp;</td><td>Fax</td><td>'.$societe->fax.'&nbsp;</td></tr>'; print '<tr><td>'.$langs->trans("Phone").'</td><td>'.$societe->tel.'&nbsp;</td><td>Fax</td><td>'.$societe->fax.'&nbsp;</td></tr>';
print '<tr><td nowrap>'.$langs->transcountry("ProfId1",$societe->pays_code).'</td><td><a href="http://www.societe.com/cgi-bin/recherche?rncs='.$societe->siren.'">'.$societe->siren.'</a>&nbsp;</td>'; print '<tr><td nowrap>'.$langs->transcountry("ProfId1",$societe->pays_code).'</td><td><a href="http://www.societe.com/cgi-bin/recherche?rncs='.$societe->siren.'">'.$societe->siren.'</a>&nbsp;</td>';
......
...@@ -230,3 +230,4 @@ Report=Report ...@@ -230,3 +230,4 @@ Report=Report
Keyword=Mot cl Keyword=Mot cl
Legend=Legend Legend=Legend
FillTownFromZip=Fill town from zip FillTownFromZip=Fill town from zip
ShowLog=Show log
\ No newline at end of file
...@@ -230,3 +230,4 @@ Report=Rapport ...@@ -230,3 +230,4 @@ Report=Rapport
Keyword=Mot cl Keyword=Mot cl
Legend=Lgende Legend=Lgende
FillTownFromZip=Renseigner ville FillTownFromZip=Renseigner ville
ShowLog=Afficher historique
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment