- Accounting: Add new tab for product to define the number liable to an existing zone, update upgrader and installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9986 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
function add_accounting_tab()
|
||||
{
|
||||
$id_parent = add_new_tab(
|
||||
'AdminAccounting',
|
||||
'en:Accounting|fr:Comptabilité|es:Accounting|de:Accounting|it:Accounting',
|
||||
0,
|
||||
true);
|
||||
|
||||
add_new_tab(
|
||||
'AdminAccountingManagement',
|
||||
'en:Account Number Management|fr:Gestion des numéros de comptes|es:Account Number Management|de:Account Number Management|it:Account Number Management',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminAccountingExport',
|
||||
'en:Export|fr:Export|es:Export|de:Export|it:Export',
|
||||
$id_parent);
|
||||
}
|
||||
@@ -2171,3 +2171,13 @@ CREATE TABLE `PREFIX_accounting_zone_shop` (
|
||||
PRIMARY KEY (`id_accounting_zone_shop`),
|
||||
UNIQUE KEY `id_zone` (`id_zone`,`id_shop`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `PREFIX_accounting_product_zone_shop` (
|
||||
`id_accounting_product_zone_shop` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`id_product` int(11) NOT NULL,
|
||||
`id_shop` int(11) NOT NULL,
|
||||
`id_zone` int(11) NOT NULL,
|
||||
`account_number` varchar(64) NOT NULL,
|
||||
PRIMARY KEY (`id_accounting_product_zone_shop`),
|
||||
UNIQUE KEY `id_product` (`id_product`,`id_shop`,`id_zone`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
SET NAMES 'utf8';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `PREFIX_accounting_zone_shop` (
|
||||
`id_accounting_zone_shop` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`id_zone` int(11) NOT NULL,
|
||||
`id_shop` int(11) NOT NULL,
|
||||
`account_number` varchar(64) NOT NULL,
|
||||
PRIMARY KEY (`id_accounting_zone_shop`),
|
||||
UNIQUE KEY `id_zone` (`id_zone`,`id_shop`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `PREFIX_accounting_product_zone_shop` (
|
||||
`id_accounting_product_zone_shop` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`id_product` int(11) NOT NULL,
|
||||
`id_shop` int(11) NOT NULL,
|
||||
`id_zone` int(11) NOT NULL,
|
||||
`account_number` varchar(64) NOT NULL,
|
||||
PRIMARY KEY (`id_accounting_product_zone_shop`),
|
||||
UNIQUE KEY `id_product` (`id_product`,`id_shop`,`id_zone`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
/* PHP:add_accounting_tab(); */;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `PREFIX_module_access` (
|
||||
`id_profile` int(10) unsigned NOT NULL,
|
||||
`id_module` int(10) unsigned NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user