X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Fen_US-demo.sql;h=1d7184cbfef6dad61529af0f29733021cbd99c60;hb=3178545262f658085cb8a250a2195246e05c8213;hp=284281b4180e6747e77c6ba1621026dfea684243;hpb=a451be636774783e63c2fcdd9c7869c9aad48ba9;p=fa-stable.git diff --git a/sql/en_US-demo.sql b/sql/en_US-demo.sql index 284281b4..1d7184cb 100644 --- a/sql/en_US-demo.sql +++ b/sql/en_US-demo.sql @@ -1,11 +1,11 @@ -- MySQL dump of database 'en_US-demo' on host 'localhost' -- Backup Date and Time: 2019-01-21 11:16 --- Built by FrontAccounting 2.4.6 +-- Built by FrontAccounting 2.5.0 -- http://frontaccounting.com -- Company: Training Co. -- User: Administrator --- Compatibility: 2.4.1 +-- Compatibility: 2.5.0 SET NAMES latin1; @@ -644,7 +644,7 @@ CREATE TABLE `0_debtor_trans_details` ( `unit_tax` double NOT NULL DEFAULT '0', `quantity` double NOT NULL DEFAULT '0', `discount_percent` double NOT NULL DEFAULT '0', - `standard_cost` double NOT NULL DEFAULT '0', + `unit_cost` double NOT NULL DEFAULT '0', `qty_done` double NOT NULL DEFAULT '0', `src_id` int(11) NOT NULL, PRIMARY KEY (`id`), @@ -1217,7 +1217,7 @@ CREATE TABLE `0_purch_orders` ( `comments` tinytext, `ord_date` date NOT NULL DEFAULT '0000-00-00', `reference` tinytext NOT NULL, - `requisition_no` tinytext, + `supp_reference` tinytext, `into_stock_location` varchar(5) NOT NULL DEFAULT '', `delivery_address` tinytext NOT NULL, `total` double NOT NULL DEFAULT '0', @@ -1366,7 +1366,6 @@ CREATE TABLE `0_refs` ( -- Data of table `0_refs` -- INSERT INTO `0_refs` VALUES -('1', '0', '001/2012'), ('1', '1', '001/2018'), ('1', '10', '001/2018'), ('5', '10', '001/2019'), @@ -1616,6 +1615,7 @@ CREATE TABLE `0_stock_category` ( `inactive` tinyint(1) NOT NULL DEFAULT '0', `dflt_no_sale` tinyint(1) NOT NULL DEFAULT '0', `dflt_no_purchase` tinyint(1) NOT NULL DEFAULT '0', + `vat_category` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`category_id`), UNIQUE KEY `description` (`description`) ) ENGINE=InnoDB AUTO_INCREMENT=5 ; @@ -1623,10 +1623,10 @@ CREATE TABLE `0_stock_category` ( -- Data of table `0_stock_category` -- INSERT INTO `0_stock_category` VALUES -('1', 'Components', '1', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0'), -('2', 'Charges', '1', 'each', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0'), -('3', 'Systems', '1', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0'), -('4', 'Services', '1', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0'); +('1', 'Components', '1', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0'), +('2', 'Charges', '1', 'each', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0'), +('3', 'Systems', '1', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0'), +('4', 'Services', '1', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0'); -- Structure of table `0_stock_fa_class` -- @@ -1677,18 +1677,19 @@ CREATE TABLE `0_stock_master` ( `depreciation_start` date NOT NULL DEFAULT '0000-00-00', `depreciation_date` date NOT NULL DEFAULT '0000-00-00', `fa_class_id` varchar(20) NOT NULL DEFAULT '', + `vat_category` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`stock_id`) ) ENGINE=InnoDB ; -- Data of table `0_stock_master` -- INSERT INTO `0_stock_master` VALUES -('101', '1', '1', 'iPad Air 2 16GB', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '200', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', ''), -('102', '1', '1', 'iPhone 6 64GB', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '150', '150', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', ''), -('103', '1', '1', 'iPhone Cover Case', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '10', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', ''), -('201', '3', '1', 'AP Surf Set', '', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '360', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', ''), -('202', '4', '1', 'Maintenance', '', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', 'S', '0', '1', '0000-00-00', '0000-00-00', ''), -('301', '4', '1', 'Support', '', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', ''); +('101', '1', '1', 'iPad Air 2 16GB', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '200', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'), +('102', '1', '1', 'iPhone 6 64GB', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '150', '150', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'), +('103', '1', '1', 'iPhone Cover Case', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '10', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'), +('201', '3', '1', 'AP Surf Set', '', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '360', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'), +('202', '4', '1', 'Maintenance', '', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'), +('301', '4', '1', 'Support', '', 'hr', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'S', '0', '1', '0000-00-00', '0000-00-00', '', '0'); -- Structure of table `0_stock_moves` -- @@ -1704,7 +1705,7 @@ CREATE TABLE `0_stock_moves` ( `price` double NOT NULL DEFAULT '0', `reference` char(40) NOT NULL DEFAULT '', `qty` double NOT NULL DEFAULT '1', - `standard_cost` double NOT NULL DEFAULT '0', + `unit_cost` double NOT NULL DEFAULT '0', PRIMARY KEY (`trans_id`), KEY `type` (`type`,`trans_no`), KEY `Move` (`stock_id`,`loc_code`,`tran_date`) @@ -1916,7 +1917,7 @@ INSERT INTO `0_sys_prefs` VALUES ('default_inv_sales_act', 'glsetup.items', 'varchar', 15, '4010'), ('default_wip_act', 'glsetup.items', 'varchar', 15, '1530'), ('default_workorder_required', 'glsetup.manuf', 'int', 11, '20'), -('version_id', 'system', 'varchar', 11, '2.4.1'), +('version_id', 'system', 'varchar', 11, '2.5.0'), ('auto_curr_reval', 'setup.company', 'smallint', 6, '1'), ('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, '1550'), ('bcc_email', 'setup.company', 'varchar', 100, ''), @@ -1947,7 +1948,7 @@ DROP TABLE IF EXISTS `0_tag_associations`; CREATE TABLE `0_tag_associations` ( `record_id` varchar(15) NOT NULL, `tag_id` int(11) NOT NULL, - UNIQUE KEY `record_id` (`record_id`,`tag_id`) + PRIMARY KEY (`record_id`,`tag_id`) ) ENGINE=InnoDB ; -- Data of table `0_tag_associations` -- @@ -1991,6 +1992,7 @@ DROP TABLE IF EXISTS `0_tax_groups`; CREATE TABLE `0_tax_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL DEFAULT '', + `tax_area` tinyint(1) NOT NULL DEFAULT '0', `inactive` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) @@ -1999,8 +2001,8 @@ CREATE TABLE `0_tax_groups` ( -- Data of table `0_tax_groups` -- INSERT INTO `0_tax_groups` VALUES -('1', 'Tax', '0'), -('2', 'Tax Exempt', '0'); +('1', 'Tax', '0', '0'), +('2', 'Export/Import', '1', '0'); -- Structure of table `0_tax_types` -- @@ -2038,6 +2040,8 @@ CREATE TABLE `0_trans_tax_details` ( `amount` double NOT NULL DEFAULT '0', `memo` tinytext, `reg_type` tinyint(1) DEFAULT NULL, + `vat_category` int(11) NOT NULL DEFAULT '0', + `tax_group_id` tinyint(2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `Type_and_Number` (`trans_type`,`trans_no`), KEY `tran_date` (`tran_date`) @@ -2046,16 +2050,16 @@ CREATE TABLE `0_trans_tax_details` ( -- Data of table `0_trans_tax_details` -- INSERT INTO `0_trans_tax_details` VALUES -('1', '13', '1', '2018-05-10', '1', '5', '1', '1', '5942.86', '297.14', 'auto', NULL), -('2', '10', '1', '2018-05-10', '1', '5', '1', '1', '5942.86', '297.14', '001/2018', '0'), -('3', '20', '1', '2018-05-05', '1', '5', '1', '0', '3000', '150', 'rr4', '1'), -('4', '13', '2', '2018-05-07', '1', '5', '1', '1', '285.71', '14.29', 'auto', NULL), -('5', '10', '2', '2018-05-07', '1', '5', '1', '1', '285.71', '14.29', '002/2018', '0'), -('6', '13', '3', '2018-05-07', '0', '0', '1.123', '1', '267.14', '0', 'auto', NULL), -('7', '10', '3', '2018-05-07', '0', '0', '1.123', '1', '267.14', '0', '003/2018', '0'), -('8', '13', '5', '2019-01-21', '1', '5', '1', '1', '1190.48', '59.52', 'auto', NULL), -('9', '10', '5', '2019-01-21', '1', '5', '1', '1', '1190.48', '59.52', '001/2019', '0'), -('10', '20', '2', '2019-01-21', '1', '5', '1', '0', '900', '45', 'asd5', '1'); +('1', '13', '1', '2018-05-10', '1', '5', '1', '1', '5942.86', '297.14', 'auto', NULL, '0', '1'), +('2', '10', '1', '2018-05-10', '1', '5', '1', '1', '5942.86', '297.14', '001/2018', '0', '0', '1'), +('3', '20', '1', '2018-05-05', '1', '5', '1', '0', '3000', '150', 'rr4', '1', '0', '1'), +('4', '13', '2', '2018-05-07', '1', '5', '1', '1', '285.71', '14.29', 'auto', NULL, '0', '1'), +('5', '10', '2', '2018-05-07', '1', '5', '1', '1', '285.71', '14.29', '002/2018', '0', '0', '1'), +('6', '13', '3', '2018-05-07', '0', '0', '1.123', '1', '267.14', '0', 'auto', NULL, '0', '1'), +('7', '10', '3', '2018-05-07', '0', '0', '1.123', '1', '267.14', '0', '003/2018', '0', '0', '1'), +('8', '13', '5', '2019-01-21', '1', '5', '1', '1', '1190.48', '59.52', 'auto', NULL, '0', '1'), +('9', '10', '5', '2019-01-21', '1', '5', '1', '1', '1190.48', '59.52', '001/2019', '0', '0', '1'), +('10', '20', '2', '2019-01-21', '1', '5', '1', '0', '900', '45', 'asd5', '1', '0', '1'); -- Structure of table `0_useronline` -- @@ -2270,14 +2274,13 @@ CREATE TABLE `0_workorders` ( `units_issued` double NOT NULL DEFAULT '0', `closed` tinyint(1) NOT NULL DEFAULT '0', `released` tinyint(1) NOT NULL DEFAULT '0', - `additional_costs` double NOT NULL DEFAULT '0', PRIMARY KEY (`id`), - UNIQUE KEY `wo_ref` (`wo_ref`) + KEY `wo_ref` (`wo_ref`) ) ENGINE=InnoDB AUTO_INCREMENT=4 ; -- Data of table `0_workorders` -- INSERT INTO `0_workorders` VALUES -('1', '001/2018', 'DEF', '2', '201', '2018-05-05', '0', '2018-05-05', '2018-05-05', '2', '1', '1', '0'), -('2', '002/2018', 'DEF', '5', '201', '2018-05-07', '2', '2018-05-27', '2018-05-07', '0', '0', '1', '0'), -('3', '003/2018', 'DEF', '5', '201', '2018-05-07', '2', '2018-05-27', '0000-00-00', '0', '0', '0', '0'); \ No newline at end of file +('1', '001/2018', 'DEF', '2', '201', '2018-05-05', '0', '2018-05-05', '2018-05-05', '2', '1', '1'), +('2', '002/2018', 'DEF', '5', '201', '2018-05-07', '2', '2018-05-27', '2018-05-07', '0', '0', '1'), +('3', '003/2018', 'DEF', '5', '201', '2018-05-07', '2', '2018-05-27', '0000-00-00', '0', '0', '0'); \ No newline at end of file