Resolution décalage de colonne
This commit is contained in:
parent
bf10680153
commit
178eb447c0
@ -116,15 +116,15 @@ else
|
|||||||
|
|
||||||
if ($sortorder == "")
|
if ($sortorder == "")
|
||||||
{
|
{
|
||||||
$sortorder="ASC";
|
$sortorder="DESC";
|
||||||
}
|
}
|
||||||
if ($sortfield == "")
|
if ($sortfield == "")
|
||||||
{
|
{
|
||||||
$sortfield="fac.paye";
|
$sortfield="fac.paye ASC, fac.datef";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.amount, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber";
|
$sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.total_ht, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber";
|
||||||
$sql .= " FROM societe as s, llx_facture_fourn as fac ";
|
$sql .= " FROM societe as s, llx_facture_fourn as fac ";
|
||||||
$sql .= " WHERE fac.fk_soc = s.idp";
|
$sql .= " WHERE fac.fk_soc = s.idp";
|
||||||
|
|
||||||
@ -144,8 +144,8 @@ else
|
|||||||
}
|
}
|
||||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print "<TD>Numéro</TD><td>";
|
print '<TD>Numéro</TD>';
|
||||||
print "<TD>Libelle</TD><td>";
|
print '<TD>Libellé</TD><td>';
|
||||||
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
|
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
|
||||||
print '</td><TD align="right">Montant</TD>';
|
print '</td><TD align="right">Montant</TD>';
|
||||||
print '<td align="center">Payé</td>';
|
print '<td align="center">Payé</td>';
|
||||||
@ -160,7 +160,7 @@ else
|
|||||||
print "<TD><a href=\"fiche.php3?facid=$obj->facid\">$obj->facnumber</A></td>\n";
|
print "<TD><a href=\"fiche.php3?facid=$obj->facid\">$obj->facnumber</A></td>\n";
|
||||||
print "<TD><a href=\"fiche.php3?facid=$obj->facid\">$obj->libelle</A></td>\n";
|
print "<TD><a href=\"fiche.php3?facid=$obj->facid\">$obj->libelle</A></td>\n";
|
||||||
print "<TD><a href=\"../fiche.php3?socid=$obj->socid\">$obj->nom</A></td>\n";
|
print "<TD><a href=\"../fiche.php3?socid=$obj->socid\">$obj->nom</A></td>\n";
|
||||||
print '<TD align="right">'.price($obj->amount).'</TD>';
|
print '<TD align="right">'.price($obj->total_ht).'</TD>';
|
||||||
|
|
||||||
print '<TD align="center">'.$yn[$obj->paye].'</TD>';
|
print '<TD align="center">'.$yn[$obj->paye].'</TD>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user