*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-09-26 17:46:31 +00:00
parent 2b3178f858
commit 9c3649d27e
2 changed files with 15 additions and 14 deletions

View File

@ -38,18 +38,6 @@ if ($action == 'payed') {
$result = $db->query( $sql);
}
if ($action == 'delete') {
$sql = "DELETE FROM llx_facture WHERE rowid = $facid;";
if ( $db->query( $sql) ) {
$sql = "DELETE FROM llx_fa_pr WHERE fk_facture = $facid;";
if (! $db->query( $sql) ) {
print $db->error();
}
} else {
print $db->error();
}
$facid = 0 ;
}
@ -282,7 +270,7 @@ if ($action == 'create') {
print "<p><TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\"><tr>";
if ($obj->statut == 0) {
print "<td align=\"center\" bgcolor=\"#e0e0e0\" width=\"25%\">[<a href=\"$PHP_SELF?facid=$facid&action=delete\">Supprimer</a>]</td>";
print '<td align="center" bgcolor="#e0e0e0" width="25%">[<a href="index.php3?facid='.$facid.'&action=delete">'.translate("Delete").'</a>]</td>';
} else {
print "<td align=\"center\" width=\"25%\">-</td>";
}

View File

@ -60,6 +60,19 @@ if ($action == 'stcomm') {
}
}
}
if ($action == 'delete') {
$sql = "DELETE FROM llx_facture_fourn WHERE rowid = $facid;";
if (! $db->query( $sql) ) {
print $db->error();
}
$facid = 0 ;
}
if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
@ -101,7 +114,7 @@ if ($socid > 0) {
*
*
*/
print_barre_liste("Liste des factures", $page, $PHP_SELF);
print_barre_liste("Liste des factures fournisseurs", $page, $PHP_SELF);
$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";
$sql .= " FROM societe as s, llx_facture_fourn as fac ";