diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 6d013b89395..be3a0c552cf 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -92,6 +92,8 @@ if (isset($_GET["action"]) && $_GET["action"] == 'del_bookmark') $facturestatic=new Facture($db); $facturesupplierstatic=new FactureFournisseur($db); +$html = new Form($db); + llxHeader("",$langs->trans("AccountancyTreasuryArea")); print_fiche_titre($langs->trans("AccountancyTreasuryArea")); @@ -546,8 +548,24 @@ if ($conf->facture->enabled && $conf->commande->enabled && $user->rights->comman { $obj = $db->fetch_object($resql); print "
| '; + print $commandestatic->getNomUrl(1); + print ' | '; + + print ''; + $filename=sanitize_string($obj->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($obj->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid; + $html->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print ' |