From 1d944a94cd844de45fb869662678110084a86e4d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 11 Nov 2009 15:14:47 +0000 Subject: [PATCH] Fix: bad verification --- htdocs/cashdesk/include/environnement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index e3689f8004b..7b41cc067ba 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -49,8 +49,8 @@ $conf_fkentrepot = $conf->global->CASHDESK_ID_WAREHOUSE > 0?$conf->global->CASHD // Check if setup ok if (empty($conf_fksoc)) dol_print_error("Setup of CashDesk module not complete. Third party not defined."); -if ($conf->bank->enabled && empty($conf_fkaccount)) dol_print_error("Setup of CashDesk module not complete. Bank account not defined."); -if ($conf->stock->enabled && empty($conf_fkentrepot)) dol_print_error("Setup of CashDesk module not complete. Warehous not defined."); +if ($conf->bank->enabled && (empty($conf_fkaccount_cash) || empty($conf_fkaccount_cheque) || empty($conf_fkaccount_cb))) dol_print_error("Setup of CashDesk module not complete. Bank account not defined."); +if ($conf->stock->enabled && empty($conf_fkentrepot)) dol_print_error("Setup of CashDesk module not complete. Warehouse not defined."); // Parametres d'affichage $conf_taille_listes = 200; // Nombre max de lignes a afficher dans les listes