mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Ajout confirmation de suppression
This commit is contained in:
parent
7d65149781
commit
824ceb7ea3
|
|
@ -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">';
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user