From 86bb93884af7fa77c54c11a98e15b9f6fe019df6 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Sat, 26 Dec 2015 06:35:56 +0100 Subject: [PATCH] Accountancy Add a list to select accounting account on tax admin --- htdocs/admin/taxes.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/taxes.php b/htdocs/admin/taxes.php index 0336547fd14..00bf0635293 100644 --- a/htdocs/admin/taxes.php +++ b/htdocs/admin/taxes.php @@ -26,7 +26,8 @@ */ require '../main.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; +require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php'; +if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT . '/accountancy/class/html.formventilation.class.php'; $langs->load('admin'); @@ -112,6 +113,7 @@ if ($action == 'update') { llxHeader(); $form=new Form($db); +if (! empty($conf->accounting->enabled)) $formaccountancy = New FormVentilation($db); $linkback=''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans('TaxSetup'),$linkback,'title_setup'); @@ -212,7 +214,14 @@ foreach ($list as $key) // Value print ''; - print ''; + if (! empty($conf->accounting->enabled)) + { + print $formaccountancy->select_account($conf->global->$key, $key, 1, '', 1, 1); + } + else + { + print ''; + } print ''; }