diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index b3780095c41..34d4dbc6f72 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -192,7 +192,7 @@ if ($resql) print ''; print ''; - if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && $objp->date_commande < (time() - $conf->commande->warning_delay)) print img_picto($langs->trans("Late"),"warning"); + if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && $objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) print img_picto($langs->trans("Late"),"warning"); print ''; print ''; diff --git a/htdocs/compta/commande/liste.php b/htdocs/compta/commande/liste.php index cbe0554c7ea..7ebc5b8eb1e 100644 --- a/htdocs/compta/commande/liste.php +++ b/htdocs/compta/commande/liste.php @@ -51,7 +51,7 @@ if ($user->societe_id > 0) $langs->load('companies'); - +$html = new Form($db); llxHeader(); @@ -129,12 +129,31 @@ if ($resql) $var=!$var; print ""; - print "rowid\">".img_object($langs->trans("ShowOrder"),"order")." ".$objp->ref."\n"; + + print ''; + + $generic_commande->id=$objp->rowid; + $generic_commande->ref=$objp->ref; + + print ''; + print ''; + + print ''; + + print '
'; + print $generic_commande->getNomUrl(1); + print ''; + if (($objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) && $objp->statutid == 1 ) print img_picto($langs->trans("Late"),"warning"); + print ''; + $filename=sanitize_string($objp->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($objp->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$objp->rowid; + $html->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print '
'; + + print ''; + print "socid."\">".img_object($langs->trans("ShowCompany"),"company")." ".$objp->nom.""; - if (($objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) && $objp->statutid == 1 ) - { - print img_warning(); - } print ""; print "";