NEW Link on balance to bookkeeping

This commit is contained in:
Alexandre SPANGARO 2020-09-07 22:03:41 +02:00
parent b5376d3322
commit ca32a93c0b
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ if ($action != 'export_csv')
{
$accountingaccountstatic->fetch(null, $line->numero_compte, true);
if (!empty($accountingaccountstatic->account_number)) {
$accounting_account = $accountingaccountstatic->getNomUrl(0, 1, 1, '', 1);
$accounting_account = $accountingaccountstatic->getNomUrl(0, 1);
} else {
$accounting_account = length_accountg($line->numero_compte);
}

View File

@ -460,7 +460,7 @@ class AccountingAccount extends CommonObject
$result = '';
if (empty($option)) {
if (empty($option) || $option == 'bookkeeping') {
$url = DOL_URL_ROOT . '/accountancy/bookkeeping/list.php?search_accountancy_code_start=' . $this->account_number . '&search_accountancy_code_end=' . $this->account_number;
} elseif ($option == 'bookkeepinglistbyaccount') {
$url = DOL_URL_ROOT . '/accountancy/bookkeeping/listbyaccount.php?search_accountancy_code_start=' . $this->account_number . '&search_accountancy_code_end=' . $this->account_number;