Add due date in invoice list
This commit is contained in:
parent
6b155c359a
commit
996add6dde
@ -3705,7 +3705,7 @@ else
|
|||||||
$param='&socid='.$socid;
|
$param='&socid='.$socid;
|
||||||
if ($month) $param.='&month='.$month;
|
if ($month) $param.='&month='.$month;
|
||||||
if ($year) $param.='&year=' .$year;
|
if ($year) $param.='&year=' .$year;
|
||||||
|
|
||||||
print_barre_liste($langs->trans('BillsCustomers').' '.($socid?' '.$soc->nom:''),$page,'facture.php',$param,$sortfield,$sortorder,'',$num);
|
print_barre_liste($langs->trans('BillsCustomers').' '.($socid?' '.$soc->nom:''),$page,'facture.php',$param,$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -3714,6 +3714,7 @@ else
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'f.facnumber','',$param,'',$sortfield,$sortorder);
|
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('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('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('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);
|
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");
|
//if ($syear == '') $syear = date("Y");
|
||||||
$html->select_year($syear,'year',1, '', $max_year);
|
$html->select_year($syear,'year',1, '', $max_year);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
print '<td class="liste_titre" align="left"> </td>';
|
||||||
print '<td class="liste_titre" align="left">';
|
print '<td class="liste_titre" align="left">';
|
||||||
print '<input class="flat" type="text" name="search_societe" value="'.$_GET['search_societe'].'">';
|
print '<input class="flat" type="text" name="search_societe" value="'.$_GET['search_societe'].'">';
|
||||||
print '</td><td class="liste_titre" align="right">';
|
print '</td><td class="liste_titre" align="right">';
|
||||||
@ -3767,16 +3769,12 @@ else
|
|||||||
$facturestatic->type=$objp->type;
|
$facturestatic->type=$objp->type;
|
||||||
|
|
||||||
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
|
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
|
||||||
|
|
||||||
print '<td width="90" class="nobordernopadding" nowrap="nowrap">';
|
print '<td width="90" class="nobordernopadding" nowrap="nowrap">';
|
||||||
print $facturestatic->getNomUrl(1);
|
print $facturestatic->getNomUrl(1);
|
||||||
print $objp->increment;
|
print $objp->increment;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if ($objp->datelimite < ($now - $conf->facture->client->warning_delay) && ! $objp->paye && $objp->fk_statut == 1 && ! $objp->am)
|
|
||||||
{
|
|
||||||
print '<td width="20" class="nobordernopadding" nowrap="nowrap">';
|
|
||||||
print img_warning($langs->trans('Late'));
|
|
||||||
print '</td>';
|
|
||||||
}
|
|
||||||
print '<td width="16" align="right" class="nobordernopadding">';
|
print '<td width="16" align="right" class="nobordernopadding">';
|
||||||
$filename=sanitizeFileName($objp->facnumber);
|
$filename=sanitizeFileName($objp->facnumber);
|
||||||
$filedir=$conf->facture->dir_output . '/' . sanitizeFileName($objp->facnumber);
|
$filedir=$conf->facture->dir_output . '/' . sanitizeFileName($objp->facnumber);
|
||||||
@ -3787,6 +3785,7 @@ else
|
|||||||
|
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
|
// Date
|
||||||
if ($objp->df > 0)
|
if ($objp->df > 0)
|
||||||
{
|
{
|
||||||
$y = dol_print_date($objp->df,'%Y');
|
$y = dol_print_date($objp->df,'%Y');
|
||||||
@ -3804,9 +3803,21 @@ else
|
|||||||
{
|
{
|
||||||
print '<td align="center"><b>!!!</b></td>';
|
print '<td align="center"><b>!!!</b></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Date limit
|
||||||
|
print '<td align="center" nowrap="1">'.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 '</td>';
|
||||||
|
|
||||||
print '<td><a href="fiche.php?socid='.$objp->socid.'">'.img_object($langs->trans('ShowCompany'),'company').' '.dol_trunc($objp->nom,48).'</a></td>';
|
print '<td><a href="fiche.php?socid='.$objp->socid.'">'.img_object($langs->trans('ShowCompany'),'company').' '.dol_trunc($objp->nom,48).'</a></td>';
|
||||||
|
|
||||||
print '<td align="right">'.price($objp->total).'</td>';
|
print '<td align="right">'.price($objp->total).'</td>';
|
||||||
|
|
||||||
print '<td align="right">'.price($objp->total_ttc).'</td>';
|
print '<td align="right">'.price($objp->total_ttc).'</td>';
|
||||||
|
|
||||||
print '<td align="right">'.price($objp->am).'</td>';
|
print '<td align="right">'.price($objp->am).'</td>';
|
||||||
|
|
||||||
// Affiche statut de la facture
|
// Affiche statut de la facture
|
||||||
|
|||||||
@ -188,7 +188,7 @@ if ($resql)
|
|||||||
print '</td><td class="liste_titre" align="right">';
|
print '</td><td class="liste_titre" align="right">';
|
||||||
print '<input class="flat" type="text" size="8" name="search_montant_ttc" value="'.$_GET["search_montant_ttc"].'">';
|
print '<input class="flat" type="text" size="8" name="search_montant_ttc" value="'.$_GET["search_montant_ttc"].'">';
|
||||||
print '</td><td class="liste_titre" colspan="2" align="center">';
|
print '</td><td class="liste_titre" colspan="2" align="center">';
|
||||||
print '<input type="image" class="liste_titre" name="button_search" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">';
|
print '<input type="image" class="liste_titre" align="right" name="button_search" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -208,11 +208,12 @@ if ($resql)
|
|||||||
$facturestatic->id=$obj->facid;
|
$facturestatic->id=$obj->facid;
|
||||||
$facturestatic->ref=$obj->ref;
|
$facturestatic->ref=$obj->ref;
|
||||||
print $facturestatic->getNomUrl(1);
|
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 "</td>\n";
|
print "</td>\n";
|
||||||
print '<td nowrap>'.dol_trunc($obj->facnumber,10)."</td>";
|
print '<td nowrap>'.dol_trunc($obj->facnumber,10)."</td>";
|
||||||
print '<td align="center" nowrap="1">'.dol_print_date($obj->datef,'day').'</td>';
|
print '<td align="center" nowrap="1">'.dol_print_date($obj->datef,'day').'</td>';
|
||||||
print '<td align="center" nowrap="1">'.dol_print_date($obj->date_echeance,'day').'</td>';
|
print '<td align="center" nowrap="1">'.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 '</td>';
|
||||||
print '<td>'.dol_trunc($obj->libelle,36).'</td>';
|
print '<td>'.dol_trunc($obj->libelle,36).'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$supplierstatic->id=$obj->socid;
|
$supplierstatic->id=$obj->socid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user