diff --git a/htdocs/cashdesk/templates/menu.tpl.php b/htdocs/cashdesk/templates/menu.tpl.php index d20d0185c3f..7c98337254b 100644 --- a/htdocs/cashdesk/templates/menu.tpl.php +++ b/htdocs/cashdesk/templates/menu.tpl.php @@ -26,26 +26,31 @@ 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)) { $bankcash=new Account($db); $bankcash->fetch($conf->global->CASHDESK_ID_BANKACCOUNT); + $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)) { $warehouse=new Entrepot($db); $warehouse->fetch($conf->global->CASHDESK_ID_WAREHOUSE); + $warehouseLink = $warehouse->getNomUrl(1); } $langs->load("@cashdesk"); @@ -60,13 +65,13 @@ print ''; print ''; print '';