Fix: bad verification

This commit is contained in:
Regis Houssin 2009-11-11 15:55:32 +00:00
parent c97663b21f
commit b48cb74c46

View File

@ -22,16 +22,31 @@ include_once(DOL_DOCUMENT_ROOT.'/societe.class.php');
include_once(DOL_DOCUMENT_ROOT.'/compta/bank/account.class.php'); include_once(DOL_DOCUMENT_ROOT.'/compta/bank/account.class.php');
include_once(DOL_DOCUMENT_ROOT.'/product/stock/entrepot.class.php'); include_once(DOL_DOCUMENT_ROOT.'/product/stock/entrepot.class.php');
if (!empty($conf->global->CASHDESK_ID_THIRDPARTY))
{
$company=new Societe($db); $company=new Societe($db);
$company->fetch($conf->global->CASHDESK_ID_THIRDPARTY); $company->fetch($conf->global->CASHDESK_ID_THIRDPARTY);
}
if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT))
{
$bankcash=new Account($db); $bankcash=new Account($db);
$bankcash->fetch($conf->global->CASHDESK_ID_BANKACCOUNT); $bankcash->fetch($conf->global->CASHDESK_ID_BANKACCOUNT);
}
if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB))
{
$bankcb=new Account($db); $bankcb=new Account($db);
$bankcb->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CB); $bankcb->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CB);
}
if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE))
{
$bankcheque=new Account($db); $bankcheque=new Account($db);
$bankcheque->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE); $bankcheque->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE);
}
if (!empty($conf->global->CASHDESK_ID_WAREHOUSE))
{
$warehouse=new Entrepot($db); $warehouse=new Entrepot($db);
//$warehouse->fetch($conf->global->CASHDESK_ID_WAREHOUSE); $warehouse->fetch($conf->global->CASHDESK_ID_WAREHOUSE);
}
$langs->load("@cashdesk"); $langs->load("@cashdesk");
$langs->load("main"); $langs->load("main");