From 69d251276fe85e11084c5b050397901f53438248 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Mon, 19 Sep 2011 14:12:51 +0000 Subject: [PATCH] =?UTF-8?q?CashDesk:=20Add=20patch=20Aurelien=20Imhof:=20F?= =?UTF-8?q?orce=20decremente=20stock=20sur=20validation=20facture,=20quelq?= =?UTF-8?q?ue=20soit=20mode=20configur=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/cashdesk/include/environnement.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index adc8eb035b7..b4912dc03eb 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -1,6 +1,7 @@ * Copyright (C) 2009-2010 Laurent Destailleur + * Copyright (C) 2011 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,4 +46,8 @@ $conf_fkaccount_cb = (! empty($_SESSION["CASHDESK_ID_BANKACCOUNT_CB"]))?$_SESSIO $conf_taille_listes = (empty($conf->global->PRODUIT_LIMIT_SIZE)?500:$conf->global->PRODUIT_LIMIT_SIZE); // Nombre max de lignes a afficher dans les listes $conf_nbr_car_listes = 60; // Nombre max de caracteres par ligne dans les listes +// Aurélien Imhof: Force decremente stock sur validation facture, quelque soit mode configuré +if(!isset($conf->global->STOCK_CALCULATE_ON_BILL)) +$conf->global->STOCK_CALCULATE_ON_BILL = 1 ; + ?>