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_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'f.facnumber','',$param,'',$sortfield,$sortorder); print_liste_field_titre($langs->trans('Date'),$_SERVER['PHP_SELF'],'f.datef','',$param,'align="center"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans("DateEcheance"),$_SERVER['PHP_SELF'],"f.date_lim_reglement","&socid=$socid","",'align="center"',$sortfield,$sortorder); print_liste_field_titre($langs->trans('Company'),$_SERVER['PHP_SELF'],'s.nom','',$param,'',$sortfield,$sortorder); print_liste_field_titre($langs->trans('AmountHT'),$_SERVER['PHP_SELF'],'f.total','',$param,'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans('AmountTTC'),$_SERVER['PHP_SELF'],'f.total_ttc','',$param,'align="right"',$sortfield,$sortorder); @@ -3735,6 +3736,7 @@ else //if ($syear == '') $syear = date("Y"); $html->select_year($syear,'year',1, '', $max_year); print ''; + print ' '; print ''; print ''; print ''; @@ -3767,16 +3769,12 @@ else $facturestatic->type=$objp->type; print ''; + print ''; - if ($objp->datelimite < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1 && ! $objp->am) - { - print ''; - } + print '\n"; + // Date if ($objp->df > 0) { $y = dol_print_date($objp->df,'%Y'); @@ -3804,9 +3803,21 @@ else { print ''; } + + // Date limit + print ''; + print ''; + print ''; + print ''; + print ''; // 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 "\n"; @@ -208,11 +208,12 @@ if ($resql) $facturestatic->id=$obj->facid; $facturestatic->ref=$obj->ref; print $facturestatic->getNomUrl(1); - 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 "\n"; print '"; print ''; - print ''; + print ''; print ''; print '
'; print $facturestatic->getNomUrl(1); print $objp->increment; print ''; - print img_warning($langs->trans('Late')); - print ''; $filename=sanitizeFileName($objp->facnumber); $filedir=$conf->facture->dir_output . '/' . sanitizeFileName($objp->facnumber); @@ -3787,6 +3785,7 @@ else 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 ''.img_object($langs->trans('ShowCompany'),'company').' '.dol_trunc($objp->nom,48).''.price($objp->total).''.price($objp->total_ttc).''.price($objp->am).''; print ''; print ''; - print ''; + print ''; print '
'.dol_trunc($obj->facnumber,10)."'.dol_print_date($obj->datef,'day').''.dol_print_date($obj->date_echeance,'day').''.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 ''.dol_trunc($obj->libelle,36).''; $supplierstatic->id=$obj->socid;