CashDesk: Add patch Aurelien Imhof: Force decremente stock sur validation facture, quelque soit mode configuré

This commit is contained in:
Juanjo Menent 2011-09-19 14:12:51 +00:00
parent f62f8e8ce2
commit 69d251276f

View File

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
* Copyright (C) 2009-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* 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 ;
?>