Ajout confirmation de suppression

This commit is contained in:
Regis Houssin 2006-05-30 09:18:51 +00:00
parent 7d65149781
commit 824ceb7ea3
2 changed files with 9 additions and 17 deletions

View File

@ -370,15 +370,6 @@ else
llxHeader('','', $addons);
if ($mesg) { print $mesg.'<br>'; }
/*
* Confirmation de la suppression de la facture fournisseur
*/
if ($_GET['action'] == 'delete')
{
$html->form_confirm('fiche.php?facid='.$fac->id, $langs->trans('DeleteBill'), $langs->trans('ConfirmDeleteBill'), 'confirm_delete');
print '<br />';
}
if ($_GET['action'] == 'edit')
{
@ -532,6 +523,15 @@ else
$html->form_confirm('fiche.php?facid='.$fac->id, $langs->trans('ValidateBill'), $langs->trans('ConfirmValidateBill', $fac->ref), 'confirm_valid');
print '<br />';
}
/*
* Confirmation de la suppression de la facture fournisseur
*/
if ($_GET['action'] == 'delete')
{
$html->form_confirm('fiche.php?facid='.$fac->id, $langs->trans('DeleteBill'), $langs->trans('ConfirmDeleteBill'), 'confirm_delete');
print '<br />';
}
print '<table border="0" width="100%">';
print '<tr><td width="50%" valign="top">';

View File

@ -42,14 +42,6 @@ if ($user->societe_id > 0)
$socidp = $user->societe_id;
}
if ($_GET["action"] == 'delete')
{
$fac = new FactureFournisseur($db);
$fac->delete($_GET["facid"]);
$facid = 0 ;
}
$page=$_GET["page"];
$sortorder = $_GET["sortorder"];
$sortfield = $_GET["sortfield"];