mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-13 11:28:26 -04:00
Regen db, js, css files
This commit is contained in:
@@ -18,6 +18,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('company', 'Open Source Point of Sale'),
|
||||
('default_register_mode', 'sale'),
|
||||
('default_tax_rate', '8'),
|
||||
('default_tax_category', 'Standard'),
|
||||
('email', 'changeme@example.com'),
|
||||
('fax', ''),
|
||||
('phone', '555-555-5555'),
|
||||
@@ -86,15 +87,17 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('receipt_template', 'receipt_default'),
|
||||
('theme', 'flatly'),
|
||||
('customer_sales_tax_support', '0'),
|
||||
('default_origin_tax_code', ''),
|
||||
('statistics', '1'),
|
||||
('language', 'english'),
|
||||
('language_code', 'en'),
|
||||
('date_or_time_format',''),
|
||||
('customer_reward_enable',''),
|
||||
('customer_sales_tax_support', '0'),
|
||||
('default_origin_tax_code', ''),
|
||||
('cash_decimals', '2');
|
||||
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -343,7 +346,6 @@ INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_i
|
||||
('module_suppliers', 'module_suppliers_desc', 40, 'suppliers'),
|
||||
('module_taxes', 'module_taxes_desc', 105, 'taxes');
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -422,7 +424,6 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`, `location_id`) VA
|
||||
('sales_stock', 'sales', 1),
|
||||
('receivings_stock', 'receivings', 1);
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -531,8 +532,8 @@ CREATE TABLE `ospos_sales` (
|
||||
`invoice_number` varchar(32) DEFAULT NULL,
|
||||
`quote_number` varchar(32) DEFAULT NULL,
|
||||
`sale_id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`dinner_table_id` int(11) NULL,
|
||||
`sale_status` tinyint(2) NOT NULL DEFAULT 0,
|
||||
`dinner_table_id` int(11) NULL,
|
||||
PRIMARY KEY (`sale_id`),
|
||||
KEY `customer_id` (`customer_id`),
|
||||
KEY `employee_id` (`employee_id`),
|
||||
@@ -586,7 +587,7 @@ CREATE TABLE `ospos_sales_items_taxes` (
|
||||
`item_id` int(10) NOT NULL,
|
||||
`line` int(3) NOT NULL DEFAULT '0',
|
||||
`name` varchar(255) NOT NULL,
|
||||
`percent` decimal(15,4) NOT NULL,
|
||||
`percent` decimal(15,4) NOT NULL DEFAULT 0.0000,
|
||||
`tax_type` tinyint(2) NOT NULL DEFAULT 0,
|
||||
`rounding_code` tinyint(2) NOT NULL DEFAULT 0,
|
||||
`cascade_tax` tinyint(2) NOT NULL DEFAULT 0,
|
||||
@@ -641,66 +642,11 @@ CREATE TABLE `ospos_sales_taxes` (
|
||||
KEY `print_sequence` (`sale_id`,`print_sequence`,`tax_type`,`tax_group`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_sales_taxes`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_tax_categories`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_categories` (
|
||||
`tax_category_id` int(10) NOT NULL,
|
||||
`tax_category` varchar(32) NOT NULL,
|
||||
`tax_group_sequence` tinyint(2) NOT NULL,
|
||||
PRIMARY KEY (`tax_category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_tax_categories`
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_tax_categories` ( `tax_category_id`,`tax_category`, `tax_group_sequence` ) VALUES
|
||||
(0, 'Standard', 10),
|
||||
(1, 'Service', 12),
|
||||
(2, 'Alcohol', 11);
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_tax_codes`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_codes` (
|
||||
`tax_code` varchar(32) NOT NULL,
|
||||
`tax_code_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`tax_code_type` tinyint(2) NOT NULL DEFAULT 0,
|
||||
`city` varchar(255) NOT NULL DEFAULT '',
|
||||
`state` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`tax_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_tax_codes`
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_tax_code_rates`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_code_rates` (
|
||||
`rate_tax_code` varchar(32) NOT NULL,
|
||||
`rate_tax_category_id` int(10) NOT NULL,
|
||||
`tax_rate` decimal(15,4) NOT NULL DEFAULT 0.0000,
|
||||
`rounding_code` tinyint(2) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`rate_tax_code`,`rate_tax_category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -834,7 +780,6 @@ CREATE TABLE `ospos_stock_locations` (
|
||||
INSERT INTO `ospos_stock_locations` ( `deleted`, `location_name` ) VALUES ('0', 'stock');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_suppliers`
|
||||
--
|
||||
@@ -849,12 +794,47 @@ CREATE TABLE `ospos_suppliers` (
|
||||
KEY `person_id` (`person_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
--
|
||||
-- Dumping data for table `ospos_suppliers`
|
||||
-- Table structure for table `ospos_tax_categories`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_categories` (
|
||||
`tax_category_id` int(10) NOT NULL,
|
||||
`tax_category` varchar(32) NOT NULL,
|
||||
`tax_group_sequence` tinyint(2) NOT NULL,
|
||||
PRIMARY KEY (`tax_category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_stock_locations`
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_tax_categories` ( `tax_category_id`,`tax_category`, `tax_group_sequence` ) VALUES
|
||||
(0, 'Standard', 10),
|
||||
(1, 'Service', 12),
|
||||
(2, 'Alcohol', 11);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
--
|
||||
-- Table structure for table `ospos_tax_codes`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_codes` (
|
||||
`tax_code` varchar(32) NOT NULL,
|
||||
`tax_code_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`tax_code_type` tinyint(2) NOT NULL DEFAULT 0,
|
||||
`city` varchar(255) NOT NULL DEFAULT '',
|
||||
`state` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`tax_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_tax_codes`
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
--
|
||||
-- Table structure for table `ospos_dinner_tables`
|
||||
--
|
||||
@@ -919,6 +899,23 @@ CREATE TABLE IF NOT EXISTS `ospos_sales_reward_points` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
--
|
||||
-- Table structure for table `ospos_tax_code_rates`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_tax_code_rates` (
|
||||
`rate_tax_code` varchar(32) NOT NULL,
|
||||
`rate_tax_category_id` int(10) NOT NULL,
|
||||
`tax_rate` decimal(15,4) NOT NULL DEFAULT 0.0000,
|
||||
`rounding_code` tinyint(2) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`rate_tax_code`,`rate_tax_category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_tax_code_rates`
|
||||
--
|
||||
|
||||
--
|
||||
-- Constraints for dumped tables
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user