diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index b4912dc03eb..2e2946e9fca 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -1,7 +1,7 @@ - * Copyright (C) 2009-2010 Laurent Destailleur - * Copyright (C) 2011 Juanjo Menent +/* Copyright (C) 2007-2008 Jeremie Ollivier + * Copyright (C) 2009-2011 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 @@ -42,12 +42,11 @@ $conf_fkaccount_cb = (! empty($_SESSION["CASHDESK_ID_BANKACCOUNT_CB"]))?$_SESSIO //var_dump($_SESSION); -// Parametres d'affichage +// View parameters $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 ; +// Add hidden option to force decrease of stock whatever is user setup +if (! empty($conf->global->CASHDESK_FORCE_STOCK_ON_BILL)) $conf->global->STOCK_CALCULATE_ON_BILL=1; ?>