X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Fen_US-demo.sql;h=769477f81151188614127082517cc667222c385c;hb=4ae7b93fee1e59e639b39833f1437bcbc35685ea;hp=a9c8fbd189ecfbce64f82a8328f0a7eea8775433;hpb=f0f7b444137a81aa1a227cbb041f3d7d7eaa1715;p=fa-stable.git diff --git a/sql/en_US-demo.sql b/sql/en_US-demo.sql index a9c8fbd1..769477f8 100644 --- a/sql/en_US-demo.sql +++ b/sql/en_US-demo.sql @@ -851,13 +851,14 @@ CREATE TABLE IF NOT EXISTS `0_fiscal_year` ( PRIMARY KEY (`id`), UNIQUE KEY `begin` (`begin`), UNIQUE KEY `end` (`end`) -) ENGINE=InnoDB AUTO_INCREMENT=2 ; +) ENGINE=InnoDB AUTO_INCREMENT=3 ; -- -- Dumping data for table `0_fiscal_year` -- INSERT INTO `0_fiscal_year` VALUES (1, '2015-01-01', '2015-12-31', 0); +INSERT INTO `0_fiscal_year` VALUES (2, '2016-01-01', '2016-12-31', 0); -- -------------------------------------------------------- @@ -1876,7 +1877,6 @@ CREATE TABLE IF NOT EXISTS `0_stock_master` ( `dimension_id` int(11) DEFAULT NULL, `dimension2_id` int(11) DEFAULT NULL, `purchase_cost` double NOT NULL DEFAULT '0', - `last_cost` double NOT NULL DEFAULT '0', `material_cost` double NOT NULL DEFAULT '0', `labour_cost` double NOT NULL DEFAULT '0', `overhead_cost` double NOT NULL DEFAULT '0', @@ -1898,12 +1898,12 @@ CREATE TABLE IF NOT EXISTS `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', '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', '0', '0', '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', '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', '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', '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', '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', ''), +('102', '1', '1', 'iPhone 6 64GB', '', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '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', ''); -- -------------------------------------------------------- @@ -2173,6 +2173,7 @@ INSERT INTO `0_sys_prefs` VALUES ('default_loss_on_asset_disposal_act', 'glsetup INSERT INTO `0_sys_prefs` VALUES ('depreciation_period', 'glsetup.company', 'tinyint', '1', '1'); INSERT INTO `0_sys_prefs` VALUES ('use_manufacturing','setup.company', 'tinyint', 1, '1'); INSERT INTO `0_sys_prefs` VALUES ('use_fixed_assets','setup.company', 'tinyint', 1, '1'); +INSERT INTO `0_sys_prefs` VALUES ('wip_act', 'glsetup.manuf', 'varchar', '15', '1530'); -- -------------------------------------------------------- @@ -2520,6 +2521,7 @@ CREATE TABLE IF NOT EXISTS `0_wo_issue_items` ( `stock_id` varchar(40) DEFAULT NULL, `issue_id` int(11) DEFAULT NULL, `qty_issued` double DEFAULT NULL, + `unit_cost` double NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB; @@ -2561,7 +2563,7 @@ CREATE TABLE IF NOT EXISTS `0_wo_requirements` ( `stock_id` char(20) NOT NULL DEFAULT '', `workcentre` int(11) NOT NULL DEFAULT '0', `units_req` double NOT NULL DEFAULT '1', - `std_cost` double NOT NULL DEFAULT '0', + `unit_cost` double NOT NULL DEFAULT '0', `loc_code` char(5) NOT NULL DEFAULT '', `units_issued` double NOT NULL DEFAULT '0', PRIMARY KEY (`id`),