diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index fe26906b84d..39e31478c9d 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3705,7 +3705,7 @@ else $param='&socid='.$socid; if ($month) $param.='&month='.$month; if ($year) $param.='&year=' .$year; - + print_barre_liste($langs->trans('BillsCustomers').' '.($socid?' '.$soc->nom:''),$page,'facture.php',$param,$sortfield,$sortorder,'',$num); $i = 0; @@ -3714,6 +3714,7 @@ else print '
| '; print $facturestatic->getNomUrl(1); print $objp->increment; print ' | '; - if ($objp->datelimite < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1 && ! $objp->am) - { - print ''; - print img_warning($langs->trans('Late')); - print ' | '; - } + print ''; $filename=sanitizeFileName($objp->facnumber); $filedir=$conf->facture->dir_output . '/' . sanitizeFileName($objp->facnumber); @@ -3787,6 +3785,7 @@ else print " | \n"; + // Date if ($objp->df > 0) { $y = dol_print_date($objp->df,'%Y'); @@ -3804,9 +3803,21 @@ else { print '!!! | '; } + + // Date limit + print ''.dol_print_date($objp->datelimite,'day'); + if ($objp->datelimite < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1 && ! $objp->am) + { + print img_warning($langs->trans('Late')); + } + print ' | '; + print ''.img_object($langs->trans('ShowCompany'),'company').' '.dol_trunc($objp->nom,48).' | '; + print ''.price($objp->total).' | '; + print ''.price($objp->total_ttc).' | '; + print ''.price($objp->am).' | '; // Affiche statut de la facture diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 49a3f477da8..7d17bd6b243 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -188,7 +188,7 @@ if ($resql) print ''; print ''; print ' | '; - print ''; + print ''; print ' | '; print "'.dol_trunc($obj->facnumber,10)." | "; print ''.dol_print_date($obj->datef,'day').' | '; - print ''.dol_print_date($obj->date_echeance,'day').' | '; + print ''.dol_print_date($obj->date_echeance,'day'); + if (($obj->paye == 0) && ($obj->fk_statut > 0) && $obj->date_echeance < ($now - $conf->facture->fournisseur->warning_delay)) print img_picto($langs->trans("Late"),"warning"); + print ' | '; print ''.dol_trunc($obj->libelle,36).' | '; print ''; $supplierstatic->id=$obj->socid; |