Skip to content
Snippets Groups Projects
Commit 3be5c66c authored by Regis Houssin's avatar Regis Houssin
Browse files

début ajout option : confirmation de suppression d'une ligne produit

parent 7e48672c
No related branches found
No related tags found
No related merge requests found
......@@ -133,13 +133,13 @@ else if ($_GET["action"] == 'disable_sousproduits')
Header("Location: produit.php");
exit;
}
else if ($_GET["action"] == 'activate_confirmdelete')
else if ($_GET["action"] == 'activate_confirmdeleteline')
{
dolibarr_set_const($db, "PRODUIT_CONFIRM_DELETE_LINE", "1");
Header("Location: produit.php");
exit;
}
else if ($_GET["action"] == 'disable_confirmdelete')
else if ($_GET["action"] == 'disable_confirmdeleteline')
{
dolibarr_del_const($db, "PRODUIT_CONFIRM_DELETE_LINE");
Header("Location: produit.php");
......
......@@ -96,7 +96,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes
$propal->delete_product($_GET['ligne']);
propale_pdf_create($db, $_GET['propalid'], $propal->modelpdf);
}
Header('Location: '.$_SERVER["PHP_SELF"]);
Header('Location: '.$_SERVER["PHP_SELF"].'?propalid='.$_GET['propalid']);
exit;
}
......
......@@ -461,6 +461,7 @@ LDAPSetupForVersion2=LDAP server configured for version 2
##### Products #####
ProductSetup=Products module setup
NumberOfProductShowInSelect=Max number of products in combos select lists (0=no limit)
ConfirmDeleteProductLineAbility=Confirmation of removal of a line produces in the forms
##### Sendings #####
SendingsSetup=Sending module setup
SendingsReceiptModel=Sending receipt model
......
......@@ -461,6 +461,7 @@ LDAPSetupForVersion2=Serveur LDAP configur
##### Products #####
ProductSetup=Configuration du module Produits
NumberOfProductShowInSelect=Nombre de produits max dans les listes déroulantes (0=aucune limite)
ConfirmDeleteProductLineAbility=Confirmation de suppression d'une ligne produit dans les formulaires
##### Sendings #####
SendingsSetup=Configuration du module Expéditions/Livraisons
SendingsReceiptModel=Modèle du bordereau d'expédition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment