`bank_act` varchar(11) default NULL,
`ref` varchar(40) default NULL,
`trans_date` date NOT NULL default '0000-00-00',
- `bank_trans_type_id` int(10) unsigned default NULL,
`amount` double default NULL,
`dimension_id` int(11) NOT NULL default '0',
`dimension2_id` int(11) NOT NULL default '0',
CREATE TABLE `0_chart_class` (
`cid` int(11) NOT NULL default '0',
`class_name` varchar(60) NOT NULL default '',
- `balance_sheet` tinyint(1) NOT NULL default '0',
- `sign_convert` tinyint(1) NOT NULL default '0',
+ `ctype` tinyint(1) NOT NULL default '0',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`cid`)
) TYPE=MyISAM ;
### Data of table `0_chart_class` ###
-INSERT INTO `0_chart_class` VALUES ('1', 'Assets', '1', '0', '0');
-INSERT INTO `0_chart_class` VALUES ('2', 'Liabilities', '2', '1', '0');
-INSERT INTO `0_chart_class` VALUES ('3', 'Income', '4', '1', '0');
-INSERT INTO `0_chart_class` VALUES ('4', 'Costs', '6', '1', '0');
+INSERT INTO `0_chart_class` VALUES ('1', 'Assets', '1', '0');
+INSERT INTO `0_chart_class` VALUES ('2', 'Liabilities', '2', '0');
+INSERT INTO `0_chart_class` VALUES ('3', 'Income', '4', '0');
+INSERT INTO `0_chart_class` VALUES ('4', 'Costs', '6', '0');
### Structure of table `0_chart_master` ###
INSERT INTO `0_chart_types` VALUES ('9', 'Other Revenue', '3', '-1', '0');
INSERT INTO `0_chart_types` VALUES ('10', 'Cost of Goods Sold', '4', '-1', '0');
INSERT INTO `0_chart_types` VALUES ('11', 'Payroll Expenses', '4', '-1', '0');
-INSERT INTO `0_chart_types` VALUES ('12', 'General & Administrative expenses', '4', '0');
+INSERT INTO `0_chart_types` VALUES ('12', 'General & Administrative expenses', '4', -1, '0');
### Structure of table `0_comments` ###
`debtors_act` varchar(11) NOT NULL default '',
`pyt_discount_act` varchar(11) NOT NULL default '',
`creditors_act` varchar(11) NOT NULL default '',
- `grn_act` varchar(11) NOT NULL default '',
+ `bank_charge_act` varchar(11) NOT NULL default '',
`exchange_diff_act` varchar(11) NOT NULL default '',
`profit_loss_year_act` varchar(11) NOT NULL default '',
`retained_earnings_act` varchar(11) NOT NULL default '',
`default_delivery_required` smallint(6) NOT NULL default '1',
`version_id` varchar(11) NOT NULL default '',
`time_zone` tinyint(1) NOT NULL default '0',
+ `add_pct` int(5) NOT NULL default '-1',
+ `round_to` int(5) NOT NULL default '1',
+ `login_tout` SMALLINT(6) NOT NULL DEFAULT '600',
PRIMARY KEY (`coy_code`)
) TYPE=MyISAM ;
### Data of table `0_company` ###
-INSERT INTO `0_company` VALUES ('1', 'Company name', '', '', '1', '1', 'N/A', '', '', '', '', '', 'USD', '1200', '5060', '2100', '1430', '4450', '4220', '2050', '4430', '4010', '4510', '4500', '1510', '5010', '5040', '4010', '1530', '5000', '', '', '', '', '', '', '0', '10', '10', '1000', '20', '20', '30', '1', '1', '0', '0', '0', '1', '0', '0', '', '1', '2.2', '0');
+INSERT INTO `0_company` VALUES ('1', 'Company name', '', '', '1', '1', 'N/A', '', '', '', '', '', 'USD', '1200', '5060', '2100', '5690', '4450', '9990', '3590', '4430', '4010', '4510', '4500', '1510', '5010', '5040', '4010', '1530', '5000', '0', '10', '10', '1000', '20', '20', '30', '1', '1', '0', '0', '0', '1', '0', '0', '', '1', '2.2', '0', '-1', '1', '600');
### Structure of table `0_credit_status` ###
`branch_code` int(11) NOT NULL auto_increment,
`debtor_no` int(11) NOT NULL default '0',
`br_name` varchar(60) NOT NULL default '',
+ `branch_ref` varchar(30) NOT NULL default '',
`br_address` tinytext NOT NULL,
`area` int(11) default NULL,
`salesman` int(11) NOT NULL default '0',
CREATE TABLE `0_debtors_master` (
`debtor_no` int(11) NOT NULL auto_increment,
`name` varchar(80) NOT NULL default '',
+ `debtor_ref` varchar(30) NOT NULL,
`address` tinytext,
`email` varchar(100) NOT NULL default '',
`tax_id` varchar(55) NOT NULL default '',
### Data of table `0_item_tax_types` ###
-INSERT INTO `0_item_tax_types` VALUES ('1', 'Regular', '0');
+INSERT INTO `0_item_tax_types` VALUES ('1', 'Regular', '0', '0');
### Structure of table `0_item_units` ###
CREATE TABLE `0_sales_order_details` (
`id` int(11) NOT NULL auto_increment,
`order_no` int(11) NOT NULL default '0',
+ `trans_type` smallint(6) NOT NULL default '30',
`stk_code` varchar(20) NOT NULL default '',
`description` tinytext,
`qty_sent` double NOT NULL default '0',
CREATE TABLE `0_sales_orders` (
`order_no` int(11) NOT NULL auto_increment,
+ `trans_type` smallint(6) NOT NULL default '30',
`version` tinyint(1) unsigned NOT NULL default '0',
`type` tinyint(1) NOT NULL default '0',
`debtor_no` int(11) NOT NULL default '0',
`branch_code` int(11) NOT NULL default '0',
+ `reference` varchar(100) NOT NULL default '',
`customer_ref` tinytext NOT NULL,
`comments` tinytext,
`ord_date` date NOT NULL default '0000-00-00',
`freight_cost` double NOT NULL default '0',
`from_stk_loc` varchar(5) NOT NULL default '',
`delivery_date` date NOT NULL default '0000-00-00',
- PRIMARY KEY (`order_no`)
-) TYPE=InnoDB AUTO_INCREMENT=1 ;
+ PRIMARY KEY (`trans_type`, `order_no`)
+) TYPE=InnoDB;
### Data of table `0_sales_orders` ###
`dflt_dim1` int(11) default NULL,
`dflt_dim2` int(11) default NULL,
`inactive` tinyint(1) NOT NULL default '0',
+ `dflt_no_sale` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`category_id`),
UNIQUE KEY `description` (`description`)
) TYPE=MyISAM AUTO_INCREMENT=5 ;
### Data of table `0_stock_category` ###
-INSERT INTO `0_stock_category` VALUES ('1', 'Components', '0');
-INSERT INTO `0_stock_category` VALUES ('2', 'Charges', '0');
-INSERT INTO `0_stock_category` VALUES ('3', 'Systems', '0');
-INSERT INTO `0_stock_category` VALUES ('4', 'Services', '0');
+INSERT INTO `0_stock_category` VALUES ('1', 'Components', '1', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
+INSERT INTO `0_stock_category` VALUES ('2', 'Charges', '1', 'each', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
+INSERT INTO `0_stock_category` VALUES ('3', 'Systems', '1', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
+INSERT INTO `0_stock_category` VALUES ('4', 'Services', '1', 'hrs', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
### Structure of table `0_stock_master` ###
`labour_cost` double NOT NULL default '0',
`overhead_cost` double NOT NULL default '0',
`inactive` tinyint(1) NOT NULL default '0',
+ `no_sale` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`stock_id`)
) TYPE=InnoDB ;
CREATE TABLE `0_suppliers` (
`supplier_id` int(11) NOT NULL auto_increment,
`supp_name` varchar(60) NOT NULL default '',
+ `supp_ref` varchar(30) NOT NULL default '',
`address` tinytext NOT NULL,
`supp_address` tinytext NOT NULL,
`phone` varchar(30) NOT NULL default '',
CREATE TABLE `0_sys_types` (
`type_id` smallint(6) NOT NULL default '0',
- `type_name` varchar(60) NOT NULL default '',
`type_no` int(11) NOT NULL default '1',
`next_reference` varchar(100) NOT NULL default '',
PRIMARY KEY (`type_id`)
### Data of table `0_sys_types` ###
-INSERT INTO `0_sys_types` VALUES ('0', 'Journal - GL', '17', '1');
-INSERT INTO `0_sys_types` VALUES ('1', 'Payment - GL', '7', '1');
-INSERT INTO `0_sys_types` VALUES ('2', 'Receipt - GL', '4', '1');
-INSERT INTO `0_sys_types` VALUES ('4', 'Funds Transfer', '3', '1');
-INSERT INTO `0_sys_types` VALUES ('10', 'Sales Invoice', '16', '1');
-INSERT INTO `0_sys_types` VALUES ('11', 'Credit Note', '2', '1');
-INSERT INTO `0_sys_types` VALUES ('12', 'Receipt', '6', '1');
-INSERT INTO `0_sys_types` VALUES ('13', 'Delivery', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('16', 'Location Transfer', '2', '1');
-INSERT INTO `0_sys_types` VALUES ('17', 'Inventory Adjustment', '2', '1');
-INSERT INTO `0_sys_types` VALUES ('18', 'Purchase Order', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('20', 'Supplier Invoice', '6', '1');
-INSERT INTO `0_sys_types` VALUES ('21', 'Supplier Credit Note', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('22', 'Supplier Payment', '3', '1');
-INSERT INTO `0_sys_types` VALUES ('25', 'Purchase Order Delivery', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('26', 'Work Order', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('28', 'Work Order Issue', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('29', 'Work Order Production', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('30', 'Sales Order', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('35', 'Cost Update', '1', '1');
-INSERT INTO `0_sys_types` VALUES ('40', 'Dimension', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('0', '17', '1');
+INSERT INTO `0_sys_types` VALUES ('1', '7', '1');
+INSERT INTO `0_sys_types` VALUES ('2', '4', '1');
+INSERT INTO `0_sys_types` VALUES ('4', '3', '1');
+INSERT INTO `0_sys_types` VALUES ('10', '16', '1');
+INSERT INTO `0_sys_types` VALUES ('11', '2', '1');
+INSERT INTO `0_sys_types` VALUES ('12', '6', '1');
+INSERT INTO `0_sys_types` VALUES ('13', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('16', '2', '1');
+INSERT INTO `0_sys_types` VALUES ('17', '2', '1');
+INSERT INTO `0_sys_types` VALUES ('18', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('20', '6', '1');
+INSERT INTO `0_sys_types` VALUES ('21', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('22', '3', '1');
+INSERT INTO `0_sys_types` VALUES ('25', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('26', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('28', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('29', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('30', '0', '1');
+INSERT INTO `0_sys_types` VALUES ('32', '0', '1');
+INSERT INTO `0_sys_types` VALUES ('35', '1', '1');
+INSERT INTO `0_sys_types` VALUES ('40', '1', '1');
### Structure of table `0_tax_group_items` ###
### Data of table `0_tax_groups` ###
-INSERT INTO `0_tax_groups` VALUES ('1', 'Tax', '0');
-INSERT INTO `0_tax_groups` VALUES ('2', 'Tax Exempt', '0');
+INSERT INTO `0_tax_groups` VALUES ('1', 'Tax', '0', '0');
+INSERT INTO `0_tax_groups` VALUES ('2', 'Tax Exempt', '0', '0');
### Structure of table `0_tax_types` ###
### Data of table `0_tax_types` ###
-INSERT INTO `0_tax_types` VALUES ('1', '5', '2150', '2150', 'Tax');
+INSERT INTO `0_tax_types` VALUES ('1', '5', '2150', '2150', 'Tax', '0');
### Structure of table `0_trans_tax_details` ###
`user_id` varchar(60) NOT NULL default '',
`password` varchar(100) NOT NULL default '',
`real_name` varchar(100) NOT NULL default '',
- `full_access` int(11) NOT NULL default '1',
+ `role_id` int(11) NOT NULL default '1',
`phone` varchar(30) NOT NULL default '',
`email` varchar(100) default NULL,
`language` varchar(20) default NULL,
`print_profile` varchar(30) NOT NULL default '1',
`rep_popup` tinyint(1) default '1',
`sticky_doc_date` tinyint(1) default '0',
+ `startup_tab` varchar(20) NOT NULL default '',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY (`user_id`)
### Data of table `0_users` ###
-INSERT INTO `0_users` VALUES ('1', 'admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'Administrator', '2', '', 'adm@adm.com', 'en_US', '0', '0', '0', '0', 'default', 'Letter', '2', '2', '4', '1', '1', '0', '0', '2008-04-04 12:34:29', '10', '1', '1', '1', '1', '0', '0');
+INSERT INTO `0_users` VALUES ('1', 'admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'Administrator', '2', '', 'adm@adm.com', 'en_US', '0', '0', '0', '0', 'default', 'Letter', '2', '2', '4', '1', '1', '0', '0', '2008-04-04 12:34:29', '10', '1', '1', '1', '1', '0', 'orders', '0');
### Structure of table `0_voided` ###