diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index 0825681b969..cdc13e67dca 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -48,17 +48,18 @@ $conf_fkaccount_cb = $conf->global->CASHDESK_ID_BANKACCOUNT_CB > 0?$conf->global $conf_fkentrepot = $conf->global->CASHDESK_ID_WAREHOUSE > 0?$conf->global->CASHDESK_ID_WAREHOUSE:$_SESSION["CASHDESK_ID_WAREHOUSE"]; // Check if setup ok +$error = ''; if (empty($conf_fksoc)) { - print '
Setup of CashDesk module not complete. Third party not defined
'; + $error.= '
Setup of CashDesk module not complete. Third party not defined
'; } if ($conf->banque->enabled && (empty($conf_fkaccount_cash) || empty($conf_fkaccount_cheque) || empty($conf_fkaccount_cb))) { - print '
Setup of CashDesk module not complete. Bank account not defined
'; + $error.= '
Setup of CashDesk module not complete. Bank account not defined
'; } if ($conf->stock->enabled && empty($conf_fkentrepot)) { - print '
Setup of CashDesk module not complete. Warehouse not defined
'; + $error.= '
Setup of CashDesk module not complete. Warehouse not defined
'; } // Parametres d'affichage