gestion de la tva

This commit is contained in:
Rodolphe Quiedeville 2003-06-27 12:27:57 +00:00
parent ca9e407177
commit 33efd4a641
2 changed files with 18 additions and 13 deletions

View File

@ -78,7 +78,6 @@ if ($action == 'add')
if ($id)
{
propale_pdf_create($db, $id);
$propalid = $id;
}
else
@ -213,7 +212,7 @@ if ($propalid) {
print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\">";
print '<tr><td>Société</td><td colspan="2"><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td>';
print '<td>Statut :</td><td colspan=2 align=center><b>'.$obj->lst.'</b></td></tr>';
print '<td>Statut</td><td colspan=2 align=center><b>'.$obj->lst.'</b></td></tr>';
print '<tr><td>Date</td><td colspan="2">'.strftime("%A %d %B %Y",$obj->dp).'</td>';

View File

@ -48,21 +48,27 @@ if ($action == 'setstatut')
}
if ( $action == 'delete' )
{
{
$sql = "DELETE FROM llx_propal WHERE rowid = $propalid;";
if ( $db->query($sql) ) {
if ( $db->query($sql) )
{
$sql = "DELETE FROM llx_propaldet WHERE fk_propal = $propalid ;";
if ( $db->query($sql) ) {
print "<b><font color=\"red\">Propal supprimée</font></b>";
} else {
$sql = "DELETE FROM llx_propaldet WHERE fk_propal = $propalid ;";
if ( $db->query($sql) )
{
print "<b><font color=\"red\">Propal supprimée</font></b>";
}
else
{
print $db->error();
print "<p>$sql";
}
}
else
{
print $db->error();
print "<p>$sql";
}
} else {
print $db->error();
print "<p>$sql";
}
}
$propalid = 0;
$brouillon = 1;
}