* Copyright (C) 2008-2009 Laurent Destailleur * Copyright (C) 2009 Regis Houssin * * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ include_once(DOL_DOCUMENT_ROOT.'/societe/societe.class.php'); include_once(DOL_DOCUMENT_ROOT.'/compta/bank/account.class.php'); include_once(DOL_DOCUMENT_ROOT.'/product/stock/entrepot.class.php'); if (!empty($conf->global->CASHDESK_ID_THIRDPARTY)) { $company=new Societe($db); $company->fetch($conf->global->CASHDESK_ID_THIRDPARTY); $companyLink = $company->getNomUrl(1); } if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CASH)) { $bankcash=new Account($db); $bankcash->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CASH); $bankcashLink = $bankcash->getNomUrl(1); } if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB)) { $bankcb=new Account($db); $bankcb->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CB); $bankcbLink = $bankcb->getNomUrl(1); } if (!empty($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE)) { $bankcheque=new Account($db); $bankcheque->fetch($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE); $bankchequeLink = $bankcheque->getNomUrl(1); } if (!empty($conf->global->CASHDESK_ID_WAREHOUSE) && $conf->stock->enabled) { $warehouse=new Entrepot($db); $warehouse->fetch($conf->global->CASHDESK_ID_WAREHOUSE); $warehouseLink = $warehouse->getNomUrl(1); } $langs->load("@cashdesk"); $langs->load("main"); $logout=''; print ''; ?>