diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index 7b41cc067ba..cf95bb643fe 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -49,7 +49,7 @@ $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_cash) || empty($conf_fkaccount_cheque) || empty($conf_fkaccount_cb))) dol_print_error("Setup of CashDesk module not complete. Bank account not defined."); +if ($conf->banque->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