Add sales prices

This commit is contained in:
Dennis Eichhorn 2017-07-19 12:56:45 +02:00 committed by GitHub
parent dbc2bad041
commit 91f49168a7

View File

@ -118,6 +118,21 @@ class Installer extends InstallerAbstract
PRIMARY KEY (`itemmgmt_partslist_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
)->execute();
$dbPool->get('core')->con->prepare(
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemmgmt_sales_price` (
`itemmgmt_sales_price_id` int(11) NOT NULL AUTO_INCREMENT,
`itemmgmt_sales_price_customer` int(11) DEFAULT NULL,
`itemmgmt_sales_price_group` int(11) DEFAULT NULL,
`itemmgmt_sales_price_amount` varchar(50) DEFAULT NULL,
`itemmgmt_sales_price_price` int(11) DEFAULT NULL,
`itemmgmt_sales_price_bonus` int(11) DEFAULT NULL,
`itemmgmt_sales_price_discountp` int(11) DEFAULT NULL,
`itemmgmt_sales_price_discount` int(11) DEFAULT NULL,
`itemmgmt_sales_price_item` int(11) DEFAULT NULL,
PRIMARY KEY (`itemmgmt_sales_price_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
)->execute();
$dbPool->get('core')->con->prepare(
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'itemmgmt_purchase` (
@ -141,6 +156,7 @@ class Installer extends InstallerAbstract
`itemmgmt_purchase_price_discountp` int(11) DEFAULT NULL,
`itemmgmt_purchase_price_discount` int(11) DEFAULT NULL,
`itemmgmt_purchase_price_weight` int(11) DEFAULT NULL,
`itemmgmt_purchase_price_item` int(11) DEFAULT NULL,
PRIMARY KEY (`itemmgmt_purchase_price_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
)->execute();