From d6b96ec03a4f437d42a48e29553c23c53893c888 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Sat, 26 Dec 2015 08:38:18 +0100 Subject: [PATCH] Add function length_accountg to dictionary --- htdocs/admin/dict.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index bf0c69096cc..feb8646442a 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -36,6 +36,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; +if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php'; if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT . '/accountancy/class/html.formventilation.class.php'; $langs->load("errors"); @@ -1312,6 +1313,9 @@ if ($id) { $align="center"; } + else if ($fieldlist[$field]=='accountancy_code' || $fieldlist[$field]=='accountancy_code_sell' || $fieldlist[$field]=='accountancy_code_buy') { + $valuetoshow = length_accountg($valuetoshow); + } // Show value for field if ($showfield) print ''.$valuetoshow.'';