X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Fen_US-new.sql;h=31947a52b602dc8590f82c5c3a7871001516334d;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=69cb4c3d28af5bdf57553b2933b74645362e6171;hpb=92101d528a49ac3dda0a0f06960313b9a2794fd6;p=fa-stable.git diff --git a/sql/en_US-new.sql b/sql/en_US-new.sql index 69cb4c3d..31947a52 100644 --- a/sql/en_US-new.sql +++ b/sql/en_US-new.sql @@ -761,8 +761,7 @@ CREATE TABLE IF NOT EXISTS `0_fiscal_year` ( -- Dumping data for table `0_fiscal_year` -- -INSERT INTO `0_fiscal_year` VALUES(1, '2013-01-01', '2013-12-31', 0); -INSERT INTO `0_fiscal_year` VALUES(2, '2014-01-01', '2014-12-31', 0); +INSERT INTO `0_fiscal_year` VALUES(1, '2015-01-01', '2015-12-31', 0); -- -- Table structure for table `0_gl_trans` @@ -955,7 +954,7 @@ CREATE TABLE IF NOT EXISTS `0_item_units` ( INSERT INTO `0_item_units` VALUES('each', 'Each', 0, 0); INSERT INTO `0_item_units` VALUES('hr', 'Hours', 0, 0); ---- Structure of table `0_journal` +-- Table structure for table `0_journal` DROP TABLE IF EXISTS `0_journal`; CREATE TABLE `0_journal` ( @@ -973,7 +972,7 @@ CREATE TABLE `0_journal` ( KEY `tran_date` (`tran_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; ---- Data of table `0_journal` +-- Data of table `0_journal` -- -------------------------------------------------------- @@ -1021,28 +1020,6 @@ CREATE TABLE IF NOT EXISTS `0_loc_stock` ( -- Dumping data for table `0_loc_stock` -- - --- -------------------------------------------------------- - --- --- Table structure for table `0_movement_types` --- - -DROP TABLE IF EXISTS `0_movement_types`; -CREATE TABLE IF NOT EXISTS `0_movement_types` ( - `id` int(11) NOT NULL auto_increment, - `name` varchar(60) NOT NULL default '', - `inactive` tinyint(1) NOT NULL default '0', - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; - --- --- Dumping data for table `0_movement_types` --- - -INSERT INTO `0_movement_types` VALUES(1, 'Adjustment', 0); - -- -------------------------------------------------------- -- @@ -1634,26 +1611,21 @@ CREATE TABLE IF NOT EXISTS `0_stock_master` ( -- Table structure for table `0_stock_moves` -- -DROP TABLE IF EXISTS `0_stock_moves`; -CREATE TABLE IF NOT EXISTS `0_stock_moves` ( - `trans_id` int(11) NOT NULL auto_increment, - `trans_no` int(11) NOT NULL default '0', - `stock_id` char(20) NOT NULL default '', - `type` smallint(6) NOT NULL default '0', - `loc_code` char(5) NOT NULL default '', - `tran_date` date NOT NULL default '0000-00-00', - `person_id` int(11) default NULL, - `price` double NOT NULL default '0', - `reference` char(40) NOT NULL default '', - `qty` double NOT NULL default '1', - `discount_percent` double NOT NULL default '0', - `standard_cost` double NOT NULL default '0', - `visible` tinyint(1) NOT NULL default '1', - PRIMARY KEY (`trans_id`), +CREATE TABLE `0_stock_moves` ( + `trans_id` int(11) NOT NULL AUTO_INCREMENT, + `trans_no` int(11) NOT NULL DEFAULT '0', + `stock_id` char(20) NOT NULL DEFAULT '', + `type` smallint(6) NOT NULL DEFAULT '0', + `loc_code` char(5) NOT NULL DEFAULT '', + `tran_date` date NOT NULL DEFAULT '0000-00-00', + `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', + PRIMARY KEY (`trans_id`), KEY `type` (`type`,`trans_no`), KEY `Move` (`stock_id`,`loc_code`,`tran_date`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; -- -- Dumping data for table `0_stock_moves` -- @@ -1680,7 +1652,6 @@ CREATE TABLE IF NOT EXISTS `0_suppliers` ( `curr_code` char(3) default NULL, `payment_terms` int(11) default NULL, `tax_included` tinyint(1) NOT NULL default '0', - `tax_algorithm` tinyint(1) NOT NULL default '1', `dimension_id` int(11) default '0', `dimension2_id` int(11) default '0', `tax_group_id` int(11) default NULL, @@ -1778,7 +1749,6 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` ( `rate` double NOT NULL default '1', `alloc` double NOT NULL default '0', `tax_included` tinyint(1) NOT NULL default '0', - `tax_algorithm` tinyint(1) NOT NULL default '1', PRIMARY KEY (`type`,`trans_no`), KEY `supplier_id` (`supplier_id`), KEY `SupplierID_2` (`supplier_id`,`supp_reference`), @@ -1803,7 +1773,7 @@ CREATE TABLE IF NOT EXISTS `0_sys_prefs` ( `category` varchar(30) default NULL, `type` varchar(20) NOT NULL default '', `length` smallint(6) default NULL, - `value` text NOT NULL, + `value` TEXT NOT NULL DEFAULT '', PRIMARY KEY (`name`), KEY `category` (`category`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -1825,7 +1795,7 @@ INSERT INTO `0_sys_prefs` VALUES('coy_logo', 'setup.company', 'varchar', 100, '' INSERT INTO `0_sys_prefs` VALUES('domicile', 'setup.company', 'varchar', 55, ''); INSERT INTO `0_sys_prefs` VALUES('curr_default', 'setup.company', 'char', 3, 'USD'); INSERT INTO `0_sys_prefs` VALUES('use_dimension', 'setup.company', 'tinyint', 1, '1'); -INSERT INTO `0_sys_prefs` VALUES('f_year', 'setup.company', 'int', 11, '2'); +INSERT INTO `0_sys_prefs` VALUES('f_year', 'setup.company', 'int', 11, '1'); INSERT INTO `0_sys_prefs` VALUES('no_item_list', 'setup.company', 'tinyint', 1, '0'); INSERT INTO `0_sys_prefs` VALUES('no_customer_list', 'setup.company', 'tinyint', 1, '0'); INSERT INTO `0_sys_prefs` VALUES('no_supplier_list', 'setup.company', 'tinyint', 1, '0');