From c0b9e84f894775b00e489dec115ce9f26ee9845b Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Fri, 2 Jun 2006 09:06:27 +0000
Subject: [PATCH] =?UTF-8?q?Le=20fait=20de=20"class=E9=20factur=E9e"=20une?=
 =?UTF-8?q?=20propale=20en=20m=EAme=20temps=20qu'une=20commande=20devient?=
 =?UTF-8?q?=20une=20=20option=20activable=20dans=20la=20configuration=20du?=
 =?UTF-8?q?=20module=20propale?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 htdocs/admin/propale.php      | 2 +-
 htdocs/langs/en_US/admin.lang | 2 ++
 htdocs/langs/fr_FR/admin.lang | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php
index 3f9eb8166ac..80442ad1272 100644
--- a/htdocs/admin/propale.php
+++ b/htdocs/admin/propale.php
@@ -54,7 +54,7 @@ if ($_POST["action"] == 'nbprod')
 
 if ($_POST["action"] == 'activate_classifiedinvoiced')
 {
-    dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER", $_POST["value"]);
+    dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER", "1");
     Header("Location: propale.php");
     exit;
 }
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 6f1cf7f0d32..13a616429bc 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -409,6 +409,8 @@ NumberOfProductLines=Number of product lines
 PathToDocuments=Path to documents
 ProposalsNumberingModules=Commercial proposal numbering modules
 ProposalsPDFModules=Commercial proposal documents models
+ClassifiedInvoiced=Classified invoiced
+ClassifiedInvoicedWithOrder=Classified invoiced proposal at the same time as the order
 ##### Orders #####
 OrdersSetup=Orders' management setup
 OrdersNumberingModules=Orders numbering modules
diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang
index 52a04228e29..a9a6172afe9 100644
--- a/htdocs/langs/fr_FR/admin.lang
+++ b/htdocs/langs/fr_FR/admin.lang
@@ -409,6 +409,8 @@ NumberOfProductLines=Nombre de lignes produits
 PathToDocuments=Chemins d'acc�s aux documents
 ProposalsNumberingModules=Modules de num�rotation des propositions commerciales
 ProposalsPDFModules=Mod�les de documents de propositions commerciales
+ClassifiedInvoiced=Class� factur�e
+ClassifiedInvoicedWithOrder=Class� factur�e la propale en m�me temps que la commande
 ##### Orders #####
 OrdersSetup=Configuration du module Commandes
 OrdersNumberingModules=Modules de num�rotation des commandes
-- 
GitLab