// Update Accounting form

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10226 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vSchoener
2011-11-17 16:38:32 +00:00
parent 4621551acf
commit e050010261
7 changed files with 33 additions and 21 deletions
@@ -154,6 +154,9 @@ class AdminAccountingExportControllerCore extends AdminController
$this->context->smarty->assign(array(
'clientPrefix' => Configuration::get('ACCOUNTING_CLIENT_PREFIX_EXPORT'),
'journal' => Configuration::get('ACCOUNTING_JOURNAL_EXPORT'),
'begin_date' => Tools::getValue('beginDate'),
'end_date' => Tools::getValue('endDate'),
'pathAccountExportTpl' => $this->pathAccountExportTpl,
'urlDownload' => Tools::getShopDomain().'/download/'
));
@@ -201,6 +204,7 @@ class AdminAccountingExportControllerCore extends AdminController
break;
case 'global_export':
$this->runGlobalExport();
Configuration::updateValue('ACCOUNTING_JOURNAL_EXPORT', Tools::getValue('journal'));
break;
default:
// If not defined, set export type to default