use_tax_free_amounts binary config variable + ConfigQuery::useTaxFreeAmounts() helper method
This commit is contained in:
@@ -42,4 +42,9 @@ class ConfigQuery extends BaseConfigQuery {
|
|||||||
{
|
{
|
||||||
return self::read('active-template', 'default');
|
return self::read('active-template', 'default');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function useTaxFreeAmounts()
|
||||||
|
{
|
||||||
|
return self::read('use_tax_free_amounts', 'default') == 1;
|
||||||
|
}
|
||||||
} // ConfigQuery
|
} // ConfigQuery
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ INSERT INTO `lang`(`id`,`title`,`code`,`locale`,`url`,`date_format`,`time_format
|
|||||||
INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updated_at`) VALUES
|
INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updated_at`) VALUES
|
||||||
('session_config.default', '1', 1, 1, NOW(), NOW()),
|
('session_config.default', '1', 1, 1, NOW(), NOW()),
|
||||||
('verifyStock', '1', 0, 0, NOW(), NOW()),
|
('verifyStock', '1', 0, 0, NOW(), NOW()),
|
||||||
|
('active-template', 'default', 0, 0, NOW(), NOW()),
|
||||||
('default_lang_without_translation', '1', 0, 0, NOW(), NOW()),
|
('default_lang_without_translation', '1', 0, 0, NOW(), NOW()),
|
||||||
('rewriting_enable', '0', 0, 0, NOW(), NOW()),
|
('rewriting_enable', '0', 0, 0, NOW(), NOW()),
|
||||||
('imagine_graphic_driver', 'gd', 0, 0, NOW(), NOW()),
|
('imagine_graphic_driver', 'gd', 0, 0, NOW(), NOW()),
|
||||||
@@ -15,7 +16,8 @@ INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updat
|
|||||||
('images_library_path', 'local/media/images', 0, 0, NOW(), NOW()),
|
('images_library_path', 'local/media/images', 0, 0, NOW(), NOW()),
|
||||||
('image_cache_dir_from_web_root', 'cache/images', 0, 0, NOW(), NOW()),
|
('image_cache_dir_from_web_root', 'cache/images', 0, 0, NOW(), NOW()),
|
||||||
('currency_rate_update_url', 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml', 0, 0, NOW(), NOW()),
|
('currency_rate_update_url', 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml', 0, 0, NOW(), NOW()),
|
||||||
('page_not_found_view', '404.html', 0, 0, NOW(), NOW());
|
('page_not_found_view', '404.html', 0, 0, NOW(), NOW()),
|
||||||
|
('use_tax_free_amounts', 1, 1, 0, NOW(), NOW());
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO `module` (`id`, `code`, `type`, `activate`, `position`, `full_namespace`, `created_at`, `updated_at`) VALUES
|
INSERT INTO `module` (`id`, `code`, `type`, `activate`, `position`, `full_namespace`, `created_at`, `updated_at`) VALUES
|
||||||
|
|||||||
Reference in New Issue
Block a user