1 # Built by FrontAccounting 2.1.2
2 # http://frontaccounting.net
3 # Company: Training Co.
8 ### Structure of table `0_areas` ###
10 DROP TABLE IF EXISTS `0_areas`;
12 CREATE TABLE `0_areas` (
13 `area_code` int(11) NOT NULL auto_increment,
14 `description` varchar(60) NOT NULL default '',
15 `inactive` tinyint(1) NOT NULL default '0',
16 PRIMARY KEY (`area_code`),
17 UNIQUE KEY `description` (`description`)
18 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
21 ### Data of table `0_areas` ###
23 INSERT INTO `0_areas` VALUES ('1', 'Global', '0');
26 ### Structure of table `0_attachments` ###
28 DROP TABLE IF EXISTS `0_attachments`;
30 CREATE TABLE `0_attachments` (
31 `id` int(11) unsigned NOT NULL auto_increment,
32 `description` varchar(60) NOT NULL default '',
33 `type_no` int(11) NOT NULL default '0',
34 `trans_no` int(11) NOT NULL default '0',
35 `unique_name` varchar(60) NOT NULL default '',
36 `tran_date` date NOT NULL default '0000-00-00',
37 `filename` varchar(60) NOT NULL default '',
38 `filesize` int(11) NOT NULL default '0',
39 `filetype` varchar(60) NOT NULL default '',
41 KEY `type_no` (`type_no`,`trans_no`)
42 ) TYPE=MyISAM AUTO_INCREMENT=1 ;
45 ### Data of table `0_attachments` ###
47 ### Structure of table `0_audit_trail` ###
49 DROP TABLE IF EXISTS `0_audit_trail`;
51 CREATE TABLE `0_audit_trail` (
52 `id` int(11) NOT NULL AUTO_INCREMENT,
53 `type` smallint(6) unsigned NOT NULL default '0',
54 `trans_no` int(11) unsigned NOT NULL default '0',
55 `user` smallint(6) unsigned NOT NULL default '0',
56 `stamp` timestamp NOT NULL,
57 `description` varchar(60) default NULL,
58 `fiscal_year` int(11) NOT NULL,
59 `gl_date` date NOT NULL default '0000-00-00',
60 `gl_seq` int(11) unsigned default NULL,
62 KEY `Seq` (`fiscal_year`, `gl_date`, `gl_seq`),
63 KEY `Type_and_Number` (`type`,`trans_no`)
66 ### Data of table `0_audit_trail` ###
72 ### Structure of table `0_bank_accounts` ###
74 DROP TABLE IF EXISTS `0_bank_accounts`;
76 CREATE TABLE `0_bank_accounts` (
77 `account_code` varchar(11) NOT NULL default '',
78 `account_type` smallint(6) NOT NULL default '0',
79 `bank_account_name` varchar(60) NOT NULL default '',
80 `bank_account_number` varchar(100) NOT NULL default '',
81 `bank_name` varchar(60) NOT NULL default '',
82 `bank_address` tinytext,
83 `bank_curr_code` char(3) NOT NULL default '',
84 `dflt_curr_act` TINYINT(1) NOT NULL default '0',
85 `id` smallint(6) NOT NULL auto_increment,
86 `last_reconciled_date` timestamp NOT NULL default '0000-00-00 00:00:00',
87 `ending_reconcile_balance` double NOT NULL default '0',
88 `inactive` tinyint(1) NOT NULL default '0',
90 KEY `bank_account_name` (`bank_account_name`),
91 KEY `bank_account_number` (`bank_account_number`),
93 ) TYPE=MyISAM AUTO_INCREMENT=3 ;
96 ### Data of table `0_bank_accounts` ###
98 INSERT INTO `0_bank_accounts` VALUES ('1060', '0', 'Current account', '9999999999', 'Wachovia Bank', '', 'USD', '1', '1', '0000-00-00 00:00:00', '0', '0');
99 INSERT INTO `0_bank_accounts` VALUES ('1065', '3', 'Petty Cash account', 'N/A', 'N/A', '', 'USD', '0', '2', '0000-00-00 00:00:00', '0', '0');
102 ### Structure of table `0_bank_trans` ###
104 DROP TABLE IF EXISTS `0_bank_trans`;
106 CREATE TABLE `0_bank_trans` (
107 `id` int(11) NOT NULL auto_increment,
108 `type` smallint(6) default NULL,
109 `trans_no` int(11) default NULL,
110 `bank_act` varchar(11) default NULL,
111 `ref` varchar(40) default NULL,
112 `trans_date` date NOT NULL default '0000-00-00',
113 `amount` double default NULL,
114 `dimension_id` int(11) NOT NULL default '0',
115 `dimension2_id` int(11) NOT NULL default '0',
116 `person_type_id` int(11) NOT NULL default '0',
117 `person_id` tinyblob,
118 `reconciled` date default NULL,
120 KEY `bank_act` (`bank_act`,`ref`),
121 KEY `type` (`type`,`trans_no`),
122 KEY (`bank_act`,`reconciled`),
123 KEY (`bank_act`,`trans_date`)
124 ) TYPE=InnoDB AUTO_INCREMENT=12 ;
127 ### Data of table `0_bank_trans` ###
129 INSERT INTO `0_bank_trans` VALUES ('1', '22', '4', '1', '1', '2009-06-21', '-3465', '0', '0', '3', '2', NULL);
130 INSERT INTO `0_bank_trans` VALUES ('2', '26', '1', '1', '', '2009-06-21', '-10', '0', '0', '1', '1', NULL);
131 INSERT INTO `0_bank_trans` VALUES ('3', '26', '1', '1', '', '2009-06-21', '-20', '0', '0', '1', '0', NULL);
132 INSERT INTO `0_bank_trans` VALUES ('4', '0', '18', '1', '1', '2009-02-20', '1000', '0', '0', '0', '', NULL);
133 INSERT INTO `0_bank_trans` VALUES ('5', '0', '19', '1', '2', '2009-02-21', '4000', '0', '0', '0', '', NULL);
134 INSERT INTO `0_bank_trans` VALUES ('6', '2', '5', '1', '1', '2009-06-21', '100', '0', '0', '4', '3', NULL);
135 INSERT INTO `0_bank_trans` VALUES ('7', '1', '8', '1', '1', '2009-06-21', '-50', '0', '0', '4', '1', NULL);
136 INSERT INTO `0_bank_trans` VALUES ('8', '26', '5', '1', '', '2009-06-21', '-10', '0', '0', '1', '1', NULL);
137 INSERT INTO `0_bank_trans` VALUES ('9', '26', '5', '1', '', '2009-06-21', '-20', '0', '0', '1', '0', NULL);
138 INSERT INTO `0_bank_trans` VALUES ('10', '26', '7', '1', '', '2009-06-21', '-10', '0', '0', '1', '1', NULL);
139 INSERT INTO `0_bank_trans` VALUES ('11', '26', '7', '1', '', '2009-06-21', '-20', '0', '0', '1', '0', NULL);
142 ### Structure of table `0_bom` ###
144 DROP TABLE IF EXISTS `0_bom`;
146 CREATE TABLE `0_bom` (
147 `id` int(11) NOT NULL auto_increment,
148 `parent` char(20) NOT NULL default '',
149 `component` char(20) NOT NULL default '',
150 `workcentre_added` int(11) NOT NULL default '0',
151 `loc_code` char(5) NOT NULL default '',
152 `quantity` double NOT NULL default '1',
153 PRIMARY KEY (`parent`,`component`,`workcentre_added`,`loc_code`),
154 KEY `component` (`component`),
156 KEY `loc_code` (`loc_code`),
157 KEY `parent` (`parent`,`loc_code`),
158 KEY `workcentre_added` (`workcentre_added`)
159 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
162 ### Data of table `0_bom` ###
164 INSERT INTO `0_bom` VALUES ('1', '3400', '102', '1', 'DEF', '1');
165 INSERT INTO `0_bom` VALUES ('2', '3400', '103', '1', 'DEF', '1');
166 INSERT INTO `0_bom` VALUES ('3', '3400', '104', '1', 'DEF', '1');
169 ### Structure of table `0_budget_trans` ###
171 DROP TABLE IF EXISTS `0_budget_trans`;
173 CREATE TABLE `0_budget_trans` (
174 `counter` int(11) NOT NULL auto_increment,
175 `type` smallint(6) NOT NULL default '0',
176 `type_no` bigint(16) NOT NULL default '1',
177 `tran_date` date NOT NULL default '0000-00-00',
178 `account` varchar(11) NOT NULL default '',
179 `memo_` tinytext NOT NULL,
180 `amount` double NOT NULL default '0',
181 `dimension_id` int(11) default '0',
182 `dimension2_id` int(11) default '0',
183 `person_type_id` int(11) default NULL,
184 `person_id` tinyblob,
185 PRIMARY KEY (`counter`),
186 KEY `Type_and_Number` (`type`,`type_no`),
187 KEY `Account` (`account`, `tran_date`, `dimension_id`, `dimension2_id`)
188 ) TYPE=InnoDB AUTO_INCREMENT=1 ;
191 ### Data of table `0_budget_trans` ###
195 ### Structure of table `0_chart_class` ###
197 DROP TABLE IF EXISTS `0_chart_class`;
199 CREATE TABLE `0_chart_class` (
200 `cid` int(11) NOT NULL default '0',
201 `class_name` varchar(60) NOT NULL default '',
202 `ctype` tinyint(1) NOT NULL default '0',
203 `inactive` tinyint(1) NOT NULL default '0',
208 ### Data of table `0_chart_class` ###
210 INSERT INTO `0_chart_class` VALUES ('1', 'Assets', '1', '0');
211 INSERT INTO `0_chart_class` VALUES ('2', 'Liabilities', '2', '0');
212 INSERT INTO `0_chart_class` VALUES ('3', 'Income', '4', '0');
213 INSERT INTO `0_chart_class` VALUES ('4', 'Costs', '6', '0');
216 ### Structure of table `0_chart_master` ###
218 DROP TABLE IF EXISTS `0_chart_master`;
220 CREATE TABLE `0_chart_master` (
221 `account_code` varchar(11) NOT NULL default '',
222 `account_code2` varchar(11) default '',
223 `account_name` varchar(60) NOT NULL default '',
224 `account_type` int(11) NOT NULL default '0',
225 `inactive` tinyint(1) NOT NULL default '0',
226 PRIMARY KEY (`account_code`),
227 KEY `account_name` (`account_name`),
228 KEY `accounts_by_type` (`account_type`, `account_code`)
232 ### Data of table `0_chart_master` ###
234 INSERT INTO `0_chart_master` VALUES ('1060', '', 'Checking Account', '1', '0');
235 INSERT INTO `0_chart_master` VALUES ('1065', '', 'Petty Cash', '1', '0');
236 INSERT INTO `0_chart_master` VALUES ('1200', '', 'Accounts Receivables', '1', '0');
237 INSERT INTO `0_chart_master` VALUES ('1205', '', 'Allowance for doubtful accounts', '1', '0');
238 INSERT INTO `0_chart_master` VALUES ('1510', '', 'Inventory', '2', '0');
239 INSERT INTO `0_chart_master` VALUES ('1520', '', 'Stocks of Raw Materials', '2', '0');
240 INSERT INTO `0_chart_master` VALUES ('1530', '', 'Stocks of Work In Progress', '2', '0');
241 INSERT INTO `0_chart_master` VALUES ('1540', '', 'Stocks of Finsihed Goods', '2', '0');
242 INSERT INTO `0_chart_master` VALUES ('1550', '', 'Goods Received Clearing account', '2', '0');
243 INSERT INTO `0_chart_master` VALUES ('1820', '', 'Office Furniture & Equipment', '3', '0');
244 INSERT INTO `0_chart_master` VALUES ('1825', '', 'Accum. Amort. -Furn. & Equip.', '3', '0');
245 INSERT INTO `0_chart_master` VALUES ('1840', '', 'Vehicle', '3', '0');
246 INSERT INTO `0_chart_master` VALUES ('1845', '', 'Accum. Amort. -Vehicle', '3', '0');
247 INSERT INTO `0_chart_master` VALUES ('2100', '', 'Accounts Payable', '4', '0');
248 INSERT INTO `0_chart_master` VALUES ('2110', '', 'Accrued Income Tax - Federal', '4', '0');
249 INSERT INTO `0_chart_master` VALUES ('2120', '', 'Accrued Income Tax - State', '4', '0');
250 INSERT INTO `0_chart_master` VALUES ('2130', '', 'Accrued Franchise Tax', '4', '0');
251 INSERT INTO `0_chart_master` VALUES ('2140', '', 'Accrued Real & Personal Prop Tax', '4', '0');
252 INSERT INTO `0_chart_master` VALUES ('2150', '', 'Sales Tax', '4', '0');
253 INSERT INTO `0_chart_master` VALUES ('2160', '', 'Accrued Use Tax Payable', '4', '0');
254 INSERT INTO `0_chart_master` VALUES ('2210', '', 'Accrued Wages', '4', '0');
255 INSERT INTO `0_chart_master` VALUES ('2220', '', 'Accrued Comp Time', '4', '0');
256 INSERT INTO `0_chart_master` VALUES ('2230', '', 'Accrued Holiday Pay', '4', '0');
257 INSERT INTO `0_chart_master` VALUES ('2240', '', 'Accrued Vacation Pay', '4', '0');
258 INSERT INTO `0_chart_master` VALUES ('2310', '', 'Accr. Benefits - 401K', '4', '0');
259 INSERT INTO `0_chart_master` VALUES ('2320', '', 'Accr. Benefits - Stock Purchase', '4', '0');
260 INSERT INTO `0_chart_master` VALUES ('2330', '', 'Accr. Benefits - Med, Den', '4', '0');
261 INSERT INTO `0_chart_master` VALUES ('2340', '', 'Accr. Benefits - Payroll Taxes', '4', '0');
262 INSERT INTO `0_chart_master` VALUES ('2350', '', 'Accr. Benefits - Credit Union', '4', '0');
263 INSERT INTO `0_chart_master` VALUES ('2360', '', 'Accr. Benefits - Savings Bond', '4', '0');
264 INSERT INTO `0_chart_master` VALUES ('2370', '', 'Accr. Benefits - Garnish', '4', '0');
265 INSERT INTO `0_chart_master` VALUES ('2380', '', 'Accr. Benefits - Charity Cont.', '4', '0');
266 INSERT INTO `0_chart_master` VALUES ('2620', '', 'Bank Loans', '5', '0');
267 INSERT INTO `0_chart_master` VALUES ('2680', '', 'Loans from Shareholders', '5', '0');
268 INSERT INTO `0_chart_master` VALUES ('3350', '', 'Common Shares', '6', '0');
269 INSERT INTO `0_chart_master` VALUES ('3590', '', 'Retained Earnings - prior years', '7', '0');
270 INSERT INTO `0_chart_master` VALUES ('4010', '', 'Sales', '8', '0');
271 INSERT INTO `0_chart_master` VALUES ('4430', '', 'Shipping & Handling', '9', '0');
272 INSERT INTO `0_chart_master` VALUES ('4440', '', 'Interest', '9', '0');
273 INSERT INTO `0_chart_master` VALUES ('4450', '', 'Foreign Exchange Gain', '9', '0');
274 INSERT INTO `0_chart_master` VALUES ('4500', '', 'Prompt Payment Discounts', '9', '0');
275 INSERT INTO `0_chart_master` VALUES ('4510', '', 'Discounts Given', '9', '0');
276 INSERT INTO `0_chart_master` VALUES ('5010', '', 'Cost of Goods Sold - Retail', '10', '0');
277 INSERT INTO `0_chart_master` VALUES ('5020', '', 'Material Usage Varaiance', '10', '0');
278 INSERT INTO `0_chart_master` VALUES ('5030', '', 'Consumable Materials', '10', '0');
279 INSERT INTO `0_chart_master` VALUES ('5040', '', 'Purchase price Variance', '10', '0');
280 INSERT INTO `0_chart_master` VALUES ('5050', '', 'Purchases of materials', '10', '0');
281 INSERT INTO `0_chart_master` VALUES ('5060', '', 'Discounts Received', '10', '0');
282 INSERT INTO `0_chart_master` VALUES ('5100', '', 'Freight', '10', '0');
283 INSERT INTO `0_chart_master` VALUES ('5410', '', 'Wages & Salaries', '11', '0');
284 INSERT INTO `0_chart_master` VALUES ('5420', '', 'Wages - Overtime', '11', '0');
285 INSERT INTO `0_chart_master` VALUES ('5430', '', 'Benefits - Comp Time', '11', '0');
286 INSERT INTO `0_chart_master` VALUES ('5440', '', 'Benefits - Payroll Taxes', '11', '0');
287 INSERT INTO `0_chart_master` VALUES ('5450', '', 'Benefits - Workers Comp', '11', '0');
288 INSERT INTO `0_chart_master` VALUES ('5460', '', 'Benefits - Pension', '11', '0');
289 INSERT INTO `0_chart_master` VALUES ('5470', '', 'Benefits - General Benefits', '11', '0');
290 INSERT INTO `0_chart_master` VALUES ('5510', '', 'Inc Tax Exp - Federal', '11', '0');
291 INSERT INTO `0_chart_master` VALUES ('5520', '', 'Inc Tax Exp - State', '11', '0');
292 INSERT INTO `0_chart_master` VALUES ('5530', '', 'Taxes - Real Estate', '11', '0');
293 INSERT INTO `0_chart_master` VALUES ('5540', '', 'Taxes - Personal Property', '11', '0');
294 INSERT INTO `0_chart_master` VALUES ('5550', '', 'Taxes - Franchise', '11', '0');
295 INSERT INTO `0_chart_master` VALUES ('5560', '', 'Taxes - Foreign Withholding', '11', '0');
296 INSERT INTO `0_chart_master` VALUES ('5610', '', 'Accounting & Legal', '12', '0');
297 INSERT INTO `0_chart_master` VALUES ('5615', '', 'Advertising & Promotions', '12', '0');
298 INSERT INTO `0_chart_master` VALUES ('5620', '', 'Bad Debts', '12', '0');
299 INSERT INTO `0_chart_master` VALUES ('5660', '', 'Amortization Expense', '12', '0');
300 INSERT INTO `0_chart_master` VALUES ('5685', '', 'Insurance', '12', '0');
301 INSERT INTO `0_chart_master` VALUES ('5690', '', 'Interest & Bank Charges', '12', '0');
302 INSERT INTO `0_chart_master` VALUES ('5700', '', 'Office Supplies', '12', '0');
303 INSERT INTO `0_chart_master` VALUES ('5760', '', 'Rent', '12', '0');
304 INSERT INTO `0_chart_master` VALUES ('5765', '', 'Repair & Maintenance', '12', '0');
305 INSERT INTO `0_chart_master` VALUES ('5780', '', 'Telephone', '12', '0');
306 INSERT INTO `0_chart_master` VALUES ('5785', '', 'Travel & Entertainment', '12', '0');
307 INSERT INTO `0_chart_master` VALUES ('5790', '', 'Utilities', '12', '0');
308 INSERT INTO `0_chart_master` VALUES ('5795', '', 'Registrations', '12', '0');
309 INSERT INTO `0_chart_master` VALUES ('5800', '', 'Licenses', '12', '0');
310 INSERT INTO `0_chart_master` VALUES ('5810', '', 'Foreign Exchange Loss', '12', '0');
311 INSERT INTO `0_chart_master` VALUES ('9990', '', 'Year Profit/Loss', '12', '0');
313 ### Structure of table `0_chart_types` ###
315 DROP TABLE IF EXISTS `0_chart_types`;
317 CREATE TABLE `0_chart_types` (
318 `id` int(11) NOT NULL auto_increment,
319 `name` varchar(60) NOT NULL default '',
320 `class_id` tinyint(1) NOT NULL default '0',
321 `parent` int(11) NOT NULL default '-1',
322 `inactive` tinyint(1) NOT NULL default '0',
326 ) TYPE=MyISAM AUTO_INCREMENT=13 ;
329 ### Data of table `0_chart_types` ###
331 INSERT INTO `0_chart_types` VALUES ('1', 'Current Assets', '1', '-1', '0');
332 INSERT INTO `0_chart_types` VALUES ('2', 'Inventory Assets', '1', '-1', '0');
333 INSERT INTO `0_chart_types` VALUES ('3', 'Capital Assets', '1', '-1', '0');
334 INSERT INTO `0_chart_types` VALUES ('4', 'Current Liabilities', '2', '-1', '0');
335 INSERT INTO `0_chart_types` VALUES ('5', 'Long Term Liabilities', '2', '-1', '0');
336 INSERT INTO `0_chart_types` VALUES ('6', 'Share Capital', '2', '-1', '0');
337 INSERT INTO `0_chart_types` VALUES ('7', 'Retained Earnings', '2', '-1', '0');
338 INSERT INTO `0_chart_types` VALUES ('8', 'Sales Revenue', '3', '-1', '0');
339 INSERT INTO `0_chart_types` VALUES ('9', 'Other Revenue', '3', '-1', '0');
340 INSERT INTO `0_chart_types` VALUES ('10', 'Cost of Goods Sold', '4', '-1', '0');
341 INSERT INTO `0_chart_types` VALUES ('11', 'Payroll Expenses', '4', '-1', '0');
342 INSERT INTO `0_chart_types` VALUES ('12', 'General & Administrative expenses', '4', '-1', '0');
345 ### Structure of table `0_comments` ###
347 DROP TABLE IF EXISTS `0_comments`;
349 CREATE TABLE `0_comments` (
350 `type` int(11) NOT NULL default '0',
351 `id` int(11) NOT NULL default '0',
352 `date_` date default '0000-00-00',
354 KEY `type_and_id` (`type`, `id`)
358 ### Data of table `0_comments` ###
362 ### Structure of table `0_company` ###
364 DROP TABLE IF EXISTS `0_company`;
366 CREATE TABLE `0_company` (
367 `coy_code` int(11) NOT NULL default '1',
368 `coy_name` varchar(60) NOT NULL default '',
369 `gst_no` varchar(25) NOT NULL default '',
370 `coy_no` varchar(25) NOT NULL default '0',
371 `tax_prd` int(11) NOT NULL default '1',
372 `tax_last` int(11) NOT NULL default '1',
373 `postal_address` tinytext NOT NULL,
374 `phone` varchar(30) NOT NULL default '',
375 `fax` varchar(30) NOT NULL default '',
376 `email` varchar(100) NOT NULL default '',
377 `coy_logo` varchar(100) NOT NULL default '',
378 `domicile` varchar(55) NOT NULL default '',
379 `curr_default` char(3) NOT NULL default '',
380 `debtors_act` varchar(11) NOT NULL default '',
381 `pyt_discount_act` varchar(11) NOT NULL default '',
382 `creditors_act` varchar(11) NOT NULL default '',
383 `bank_charge_act` varchar(11) NOT NULL default '',
384 `exchange_diff_act` varchar(11) NOT NULL default '',
385 `profit_loss_year_act` varchar(11) NOT NULL default '',
386 `retained_earnings_act` varchar(11) NOT NULL default '',
387 `freight_act` varchar(11) NOT NULL default '',
388 `default_sales_act` varchar(11) NOT NULL default '',
389 `default_sales_discount_act` varchar(11) NOT NULL default '',
390 `default_prompt_payment_act` varchar(11) NOT NULL default '',
391 `default_inventory_act` varchar(11) NOT NULL default '',
392 `default_cogs_act` varchar(11) NOT NULL default '',
393 `default_adj_act` varchar(11) NOT NULL default '',
394 `default_inv_sales_act` varchar(11) NOT NULL default '',
395 `default_assembly_act` varchar(11) NOT NULL default '',
396 `payroll_act` varchar(11) NOT NULL default '',
397 `allow_negative_stock` tinyint(1) NOT NULL default '0',
398 `po_over_receive` int(11) NOT NULL default '10',
399 `po_over_charge` int(11) NOT NULL default '10',
400 `default_credit_limit` int(11) NOT NULL default '1000',
401 `default_workorder_required` int(11) NOT NULL default '20',
402 `default_dim_required` int(11) NOT NULL default '20',
403 `past_due_days` int(11) NOT NULL default '30',
404 `use_dimension` tinyint(1) default '0',
405 `f_year` int(11) NOT NULL default '1',
406 `no_item_list` tinyint(1) NOT NULL default '0',
407 `no_customer_list` tinyint(1) NOT NULL default '0',
408 `no_supplier_list` tinyint(1) NOT NULL default '0',
409 `base_sales` int(11) NOT NULL default '-1',
410 `foreign_codes` tinyint(1) NOT NULL default '0',
411 `accumulate_shipping` tinyint(1) NOT NULL default '0',
412 `legal_text` tinytext NOT NULL,
413 `default_delivery_required` smallint(6) NOT NULL default '1',
414 `version_id` varchar(11) NOT NULL default '',
415 `time_zone` tinyint(1) NOT NULL default '0',
416 `add_pct` int(5) NOT NULL default '-1',
417 `round_to` int(5) NOT NULL default '1',
418 `login_tout` SMALLINT(6) NOT NULL DEFAULT '600',
419 PRIMARY KEY (`coy_code`)
422 ### Data of table `0_company` ###
424 INSERT INTO `0_company` VALUES ('1', 'Training Co.', '9876543', '123456789', '1', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '(222) 111.222.333', '', 'delta@delta.com', 'logo_frontaccounting.jpg', '', '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', '2', '0', '0', '0', '1', '0', '0', '', '1', '2.2', '0', '-1', '1', '600');
426 ### Structure of table `0_credit_status` ###
428 DROP TABLE IF EXISTS `0_credit_status`;
430 CREATE TABLE `0_credit_status` (
431 `id` int(11) NOT NULL auto_increment,
432 `reason_description` char(100) NOT NULL default '',
433 `dissallow_invoices` tinyint(1) NOT NULL default '0',
434 `inactive` tinyint(1) NOT NULL default '0',
436 UNIQUE KEY `reason_description` (`reason_description`)
437 ) TYPE=MyISAM AUTO_INCREMENT=5 ;
440 ### Data of table `0_credit_status` ###
442 INSERT INTO `0_credit_status` VALUES ('1', 'Good History', '0', '0');
443 INSERT INTO `0_credit_status` VALUES ('3', 'No more work until payment received', '1', '0');
444 INSERT INTO `0_credit_status` VALUES ('4', 'In liquidation', '1', '0');
447 ### Structure of table `0_currencies` ###
449 DROP TABLE IF EXISTS `0_currencies`;
451 CREATE TABLE `0_currencies` (
452 `currency` varchar(60) NOT NULL default '',
453 `curr_abrev` char(3) NOT NULL default '',
454 `curr_symbol` varchar(10) NOT NULL default '',
455 `country` varchar(100) NOT NULL default '',
456 `hundreds_name` varchar(15) NOT NULL default '',
457 `auto_update` tinyint(1) NOT NULL default '1',
458 `inactive` tinyint(1) NOT NULL default '0',
459 PRIMARY KEY (`curr_abrev`)
463 ### Data of table `0_currencies` ###
465 INSERT INTO `0_currencies` VALUES ('US Dollars', 'USD', '$', 'United States', 'Cents', '1', '0');
466 INSERT INTO `0_currencies` VALUES ('CA Dollars', 'CAD', '$', 'Canada', 'Cents', '1', '0');
467 INSERT INTO `0_currencies` VALUES ('Euro', 'EUR', '?', 'Europe', 'Cents', '1', '0');
468 INSERT INTO `0_currencies` VALUES ('Pounds', 'GBP', '?', 'England', 'Pence', '1', '0');
469 INSERT INTO `0_currencies` VALUES ('DK Kroner', 'DKK', '?', 'Denmark', 'Ore', '1', '0');
471 ### Structure of table `0_cust_allocations` ###
473 DROP TABLE IF EXISTS `0_cust_allocations`;
475 CREATE TABLE `0_cust_allocations` (
476 `id` int(11) NOT NULL auto_increment,
477 `amt` double unsigned default NULL,
478 `date_alloc` date NOT NULL default '0000-00-00',
479 `trans_no_from` int(11) default NULL,
480 `trans_type_from` int(11) default NULL,
481 `trans_no_to` int(11) default NULL,
482 `trans_type_to` int(11) default NULL,
484 KEY `From` (`trans_type_from`, `trans_no_from`),
485 KEY `To` (`trans_type_to`, `trans_no_to`)
486 ) TYPE=InnoDB AUTO_INCREMENT=2 ;
489 ### Data of table `0_cust_allocations` ###
491 INSERT INTO `0_cust_allocations` VALUES ('1', '37.68', '2009-06-21', '3', '11', '18', '10');
494 ### Structure of table `0_cust_branch` ###
496 DROP TABLE IF EXISTS `0_cust_branch`;
498 CREATE TABLE `0_cust_branch` (
499 `branch_code` int(11) NOT NULL auto_increment,
500 `debtor_no` int(11) NOT NULL default '0',
501 `br_name` varchar(60) NOT NULL default '',
502 `branch_ref` varchar(30) NOT NULL default '',
503 `br_address` tinytext NOT NULL,
504 `area` int(11) default NULL,
505 `salesman` int(11) NOT NULL default '0',
506 `phone` varchar(30) NOT NULL default '',
507 `phone2` varchar(30) NOT NULL default '',
508 `fax` varchar(30) NOT NULL default '',
509 `contact_name` varchar(60) NOT NULL default '',
510 `email` varchar(100) NOT NULL default '',
511 `default_location` varchar(5) NOT NULL default '',
512 `tax_group_id` int(11) default NULL,
513 `sales_account` varchar(11) default NULL,
514 `sales_discount_account` varchar(11) default NULL,
515 `receivables_account` varchar(11) default NULL,
516 `payment_discount_account` varchar(11) default NULL,
517 `default_ship_via` int(11) NOT NULL default '1',
518 `disable_trans` tinyint(4) NOT NULL default '0',
519 `br_post_address` tinytext NOT NULL,
520 `group_no` int(11) NOT NULL default '0',
521 `notes` tinytext NOT NULL,
522 `inactive` tinyint(1) NOT NULL default '0',
523 PRIMARY KEY (`branch_code`,`debtor_no`),
524 KEY `branch_code` (`branch_code`),
527 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
530 ### Data of table `0_cust_branch` ###
532 INSERT INTO `0_cust_branch` VALUES ('1', '1', 'Beefeater Ltd.', 'Beefeater', '', '1', '1', '', '', '', 'Main Branch', '', 'DEF', '2', '', '4510', '1200', '4500', '1', '0', 'Address 1\r\nAddress 2\r\nAddress 3', '0', '', '0');
533 INSERT INTO `0_cust_branch` VALUES ('2', '2', 'Ghostbusters Corp.', 'Ghostbusters', 'Address 1\r\nAddress 2\r\nAddress 3', '1', '1', '', '', '', 'Main Branch', '', 'DEF', '1', '', '4510', '1200', '4500', '1', '0', 'Address 1\r\nAddress 2\r\nAddress 3', '0', '', '0');
534 INSERT INTO `0_cust_branch` VALUES ('3', '3', 'Brezan', 'Brezan', 'Address 1\r\nAddress 2\r\nAddress 3', '1', '1', '', '', '', 'Main Branch', '', 'DEF', '1', '', '4510', '1200', '4500', '1', '0', 'Address 1\r\nAddress 2\r\nAddress 3', '0', '', '0');
537 ### Structure of table `0_debtor_trans` ###
539 DROP TABLE IF EXISTS `0_debtor_trans`;
541 CREATE TABLE `0_debtor_trans` (
542 `trans_no` int(11) unsigned NOT NULL default '0',
543 `type` smallint(6) unsigned NOT NULL default '0',
544 `version` tinyint(1) unsigned NOT NULL default '0',
545 `debtor_no` int(11) unsigned default NULL,
546 `branch_code` int(11) NOT NULL default '-1',
547 `tran_date` date NOT NULL default '0000-00-00',
548 `due_date` date NOT NULL default '0000-00-00',
549 `reference` varchar(60) NOT NULL default '',
550 `tpe` int(11) NOT NULL default '0',
551 `order_` int(11) NOT NULL default '0',
552 `ov_amount` double NOT NULL default '0',
553 `ov_gst` double NOT NULL default '0',
554 `ov_freight` double NOT NULL default '0',
555 `ov_freight_tax` double NOT NULL default '0',
556 `ov_discount` double NOT NULL default '0',
557 `alloc` double NOT NULL default '0',
558 `rate` double NOT NULL default '1',
559 `ship_via` int(11) default NULL,
560 `trans_link` int(11) NOT NULL default '0',
561 `dimension_id` int(11) NOT NULL default '0',
562 `dimension2_id` int(11) NOT NULL default '0',
563 `payment_terms` int(11) default NULL,
564 PRIMARY KEY (`type`, `trans_no`),
565 KEY `debtor_no` (`debtor_no`,`branch_code`),
570 ### Data of table `0_debtor_trans` ###
572 INSERT INTO `0_debtor_trans` VALUES ('2', '13', '0', '1', '1', '2009-06-21', '2009-06-22', '1', '2', '1', '60.8', '0', '10', '0', '0', '0', '1.6445729799917', '1', '0', '0', '0','3');
573 INSERT INTO `0_debtor_trans` VALUES ('3', '11', '0', '3', '3', '2009-06-21', '0000-00-00', '1', '2', '3', '35.89', '1.79', '0', '0', '0', '37.68', '1.3932', '1', '18', '2', '0','3');
574 INSERT INTO `0_debtor_trans` VALUES ('3', '13', '1', '2', '2', '2009-06-21', '2009-06-22', 'auto', '1', '2', '50', '2.5', '0', '0', '0', '0', '1', '1', '17', '0', '0','');
575 INSERT INTO `0_debtor_trans` VALUES ('4', '13', '1', '3', '3', '2009-06-21', '2009-07-01', 'auto', '2', '3', '35.89', '1.79', '0', '0', '0', '0', '1.3932', '1', '18', '2', '0','3');
576 INSERT INTO `0_debtor_trans` VALUES ('5', '13', '1', '2', '2', '2009-06-21', '2009-06-22', 'auto', '1', '5', '50', '0', '5', '0', '0', '0', '1', '1', '19', '0', '0','4');
577 INSERT INTO `0_debtor_trans` VALUES ('17', '10', '0', '2', '2', '2009-06-21', '2009-06-22', '1', '1', '2', '50', '2.5', '0', '0', '0', '0', '1', '1', '3', '0', '0','4');
578 INSERT INTO `0_debtor_trans` VALUES ('18', '10', '1', '3', '3', '2009-06-21', '2009-07-01', '2', '2', '3', '35.89', '1.79', '0', '0', '0', '37.68', '1.3932', '1', '4', '2', '0','3');
579 INSERT INTO `0_debtor_trans` VALUES ('19', '10', '0', '2', '2', '2009-06-21', '2009-06-22', '3', '1', '5', '50', '0', '5', '0', '0', '0', '1', '1', '5', '0', '0','4');
582 ### Structure of table `0_debtor_trans_details` ###
584 DROP TABLE IF EXISTS `0_debtor_trans_details`;
586 CREATE TABLE `0_debtor_trans_details` (
587 `id` int(11) NOT NULL auto_increment,
588 `debtor_trans_no` int(11) default NULL,
589 `debtor_trans_type` int(11) default NULL,
590 `stock_id` varchar(20) NOT NULL default '',
591 `description` tinytext,
592 `unit_price` double NOT NULL default '0',
593 `unit_tax` double NOT NULL default '0',
594 `quantity` double NOT NULL default '0',
595 `discount_percent` double NOT NULL default '0',
596 `standard_cost` double NOT NULL default '0',
597 `qty_done` double NOT NULL default '0',
599 KEY `Transaction` (`debtor_trans_type`, `debtor_trans_no`)
600 ) TYPE=InnoDB AUTO_INCREMENT=9 ;
603 ### Data of table `0_debtor_trans_details` ###
605 INSERT INTO `0_debtor_trans_details` VALUES ('1', '2', '13', '102', '17inch VGA Monitor', '30.4', '0', '2', '0', '10', '0');
606 INSERT INTO `0_debtor_trans_details` VALUES ('2', '3', '13', '102', '17inch VGA Monitor', '50', '2.5', '1', '0', '10', '1');
607 INSERT INTO `0_debtor_trans_details` VALUES ('3', '17', '10', '102', '17inch VGA Monitor', '50', '2.5', '1', '0', '10', '0');
608 INSERT INTO `0_debtor_trans_details` VALUES ('4', '4', '13', '102', '17inch VGA Monitor', '35.89', '1.79', '1', '0', '10', '1');
609 INSERT INTO `0_debtor_trans_details` VALUES ('5', '18', '10', '102', '17inch VGA Monitor', '35.89', '1.79', '1', '0', '10', '1');
610 INSERT INTO `0_debtor_trans_details` VALUES ('6', '5', '13', '102', '17inch VGA Monitor', '50', '2.38', '1', '0', '10', '1');
611 INSERT INTO `0_debtor_trans_details` VALUES ('7', '19', '10', '102', '17inch VGA Monitor', '50', '2.38', '1', '0', '10', '0');
612 INSERT INTO `0_debtor_trans_details` VALUES ('8', '3', '11', '102', '17inch VGA Monitor', '35.89', '1.79', '1', '0', '10', '0');
615 ### Structure of table `0_debtors_master` ###
617 DROP TABLE IF EXISTS `0_debtors_master`;
619 CREATE TABLE `0_debtors_master` (
620 `debtor_no` int(11) NOT NULL auto_increment,
621 `name` varchar(100) NOT NULL default '',
622 `debtor_ref` varchar(30) NOT NULL,
624 `email` varchar(100) NOT NULL default '',
625 `tax_id` varchar(55) NOT NULL default '',
626 `curr_code` char(3) NOT NULL default '',
627 `sales_type` int(11) NOT NULL default '1',
628 `dimension_id` int(11) NOT NULL default '0',
629 `dimension2_id` int(11) NOT NULL default '0',
630 `credit_status` int(11) NOT NULL default '0',
631 `payment_terms` int(11) default NULL,
632 `discount` double NOT NULL default '0',
633 `pymt_discount` double NOT NULL default '0',
634 `credit_limit` float NOT NULL default '1000',
635 `notes` tinytext NOT NULL,
636 `inactive` tinyint(1) NOT NULL default '0',
637 PRIMARY KEY (`debtor_no`),
638 UNIQUE KEY `name` (`name`),
640 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
643 ### Data of table `0_debtors_master` ###
645 INSERT INTO `0_debtors_master` VALUES ('1', 'Beefeater Ltd.', 'Beefeater', 'Addr 1\r\nAddr 2\r\nAddr 3', '', '345678', 'GBP', '2', '0', '0', '1', '3', '0', '0', '1000', '', '0');
646 INSERT INTO `0_debtors_master` VALUES ('2', 'Ghostbusters Corp.', 'Ghostbusters', 'Address 1\r\nAddress 2\r\nAddress 3', '', '2222222', 'USD', '1', '0', '0', '1', '4', '0', '0', '1000', '', '0');
647 INSERT INTO `0_debtors_master` VALUES ('3', 'Brezan', 'Brezan', 'Address 1\r\nAddress 2\r\nAddress 3', '', '7777777', 'EUR', '2', '0', '0', '1', '3', '0', '0', '1000', '', '0');
650 ### Structure of table `0_dimensions` ###
652 DROP TABLE IF EXISTS `0_dimensions`;
654 CREATE TABLE `0_dimensions` (
655 `id` int(11) NOT NULL auto_increment,
656 `reference` varchar(60) NOT NULL default '',
657 `name` varchar(60) NOT NULL default '',
658 `type_` tinyint(1) NOT NULL default '1',
659 `closed` tinyint(1) NOT NULL default '0',
660 `date_` date NOT NULL default '0000-00-00',
661 `due_date` date NOT NULL default '0000-00-00',
663 UNIQUE KEY `reference` (`reference`),
667 ) TYPE=InnoDB AUTO_INCREMENT=3 ;
670 ### Data of table `0_dimensions` ###
672 INSERT INTO `0_dimensions` VALUES ('1', '1', 'Support', '1', '0', '2009-06-21', '2015-07-11');
673 INSERT INTO `0_dimensions` VALUES ('2', '2', 'Development', '1', '0', '2009-06-21', '2015-07-11');
676 ### Structure of table `0_exchange_rates` ###
678 DROP TABLE IF EXISTS `0_exchange_rates`;
680 CREATE TABLE `0_exchange_rates` (
681 `id` int(11) NOT NULL auto_increment,
682 `curr_code` char(3) NOT NULL default '',
683 `rate_buy` double NOT NULL default '0',
684 `rate_sell` double NOT NULL default '0',
685 `date_` date NOT NULL default '0000-00-00',
687 UNIQUE KEY `curr_code` (`curr_code`,`date_`)
688 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
691 ### Data of table `0_exchange_rates` ###
693 INSERT INTO `0_exchange_rates` VALUES ('1', 'DKK', '0.18717252868313', '0.18717252868313', '2009-06-21');
694 INSERT INTO `0_exchange_rates` VALUES ('2', 'GBP', '1.6445729799917', '1.6445729799917', '2009-06-21');
695 INSERT INTO `0_exchange_rates` VALUES ('3', 'EUR', '1.3932', '1.3932', '2009-06-21');
698 ### Structure of table `0_fiscal_year` ###
700 DROP TABLE IF EXISTS `0_fiscal_year`;
702 CREATE TABLE `0_fiscal_year` (
703 `id` int(11) NOT NULL auto_increment,
704 `begin` date default '0000-00-00',
705 `end` date default '0000-00-00',
706 `closed` tinyint(1) NOT NULL default '0',
710 ) TYPE=InnoDB AUTO_INCREMENT=3 ;
713 ### Data of table `0_fiscal_year` ###
715 INSERT INTO `0_fiscal_year` VALUES ('1', '2008-01-01', '2008-12-31', '0');
716 INSERT INTO `0_fiscal_year` VALUES ('2', '2009-01-01', '2009-12-31', '0');
719 ### Structure of table `0_gl_trans` ###
721 DROP TABLE IF EXISTS `0_gl_trans`;
723 CREATE TABLE `0_gl_trans` (
724 `counter` int(11) NOT NULL auto_increment,
725 `type` smallint(6) NOT NULL default '0',
726 `type_no` bigint(16) NOT NULL default '1',
727 `tran_date` date NOT NULL default '0000-00-00',
728 `account` varchar(11) NOT NULL default '',
729 `memo_` tinytext NOT NULL,
730 `amount` double NOT NULL default '0',
731 `dimension_id` int(11) NOT NULL default '0',
732 `dimension2_id` int(11) NOT NULL default '0',
733 `person_type_id` int(11) default NULL,
734 `person_id` tinyblob,
735 PRIMARY KEY (`counter`),
736 KEY `Type_and_Number` (`type`,`type_no`),
737 KEY (`dimension_id`),
738 KEY (`dimension2_id`),
740 KEY `account_and_tran_date` (`account`, `tran_date`)
741 ) TYPE=InnoDB AUTO_INCREMENT=84 ;
744 ### Data of table `0_gl_trans` ###
746 INSERT INTO `0_gl_trans` VALUES ('1', '20', '7', '2009-06-21', '2100', '', '-3465', '0', '0', '3', '2');
747 INSERT INTO `0_gl_trans` VALUES ('2', '20', '7', '2009-06-21', '1510', '', '1000', '0', '0', '3', '2');
748 INSERT INTO `0_gl_trans` VALUES ('3', '20', '7', '2009-06-21', '1510', '', '1100', '0', '0', '3', '2');
749 INSERT INTO `0_gl_trans` VALUES ('4', '20', '7', '2009-06-21', '1510', '', '1200', '0', '0', '3', '2');
750 INSERT INTO `0_gl_trans` VALUES ('5', '20', '7', '2009-06-21', '2150', '', '165', '0', '0', '3', '2');
751 INSERT INTO `0_gl_trans` VALUES ('6', '22', '4', '2009-06-21', '2100', '', '3465', '0', '0', '3', '2');
752 INSERT INTO `0_gl_trans` VALUES ('7', '22', '4', '2009-06-21', '1060', '', '-3465', '0', '0', '3', '2');
753 INSERT INTO `0_gl_trans` VALUES ('8', '26', '1', '2009-06-21', '1510', '', '-100', '0', '0', NULL, '');
754 INSERT INTO `0_gl_trans` VALUES ('9', '26', '1', '2009-06-21', '1510', '', '-110', '0', '0', NULL, '');
755 INSERT INTO `0_gl_trans` VALUES ('10', '26', '1', '2009-06-21', '1510', '', '-120', '0', '0', NULL, '');
756 INSERT INTO `0_gl_trans` VALUES ('11', '26', '1', '2009-06-21', '1060', 'Overhead Cost', '-10', '0', '0', '1', '1');
757 INSERT INTO `0_gl_trans` VALUES ('12', '26', '1', '2009-06-21', '1530', 'Overhead Cost', '10', '0', '0', '1', '1');
758 INSERT INTO `0_gl_trans` VALUES ('13', '26', '1', '2009-06-21', '1060', 'Labour Cost', '-20', '0', '0', '1', '0');
759 INSERT INTO `0_gl_trans` VALUES ('14', '26', '1', '2009-06-21', '1530', 'Labour Cost', '20', '0', '0', '1', '0');
760 INSERT INTO `0_gl_trans` VALUES ('15', '26', '1', '2009-06-21', '1510', '', '330', '0', '0', NULL, '');
761 INSERT INTO `0_gl_trans` VALUES ('16', '13', '2', '2009-06-21', '5010', '', '20', '0', '0', '2', '1');
762 INSERT INTO `0_gl_trans` VALUES ('17', '13', '2', '2009-06-21', '1510', '', '-20', '0', '0', '2', '1');
763 INSERT INTO `0_gl_trans` VALUES ('18', '13', '3', '2009-06-21', '5010', '', '10', '0', '0', '2', '2');
764 INSERT INTO `0_gl_trans` VALUES ('19', '13', '3', '2009-06-21', '1510', '', '-10', '0', '0', '2', '2');
765 INSERT INTO `0_gl_trans` VALUES ('20', '10', '17', '2009-06-21', '4010', '', '-50', '0', '0', '2', '2');
766 INSERT INTO `0_gl_trans` VALUES ('21', '10', '17', '2009-06-21', '1200', '', '52.5', '0', '0', '2', '2');
767 INSERT INTO `0_gl_trans` VALUES ('22', '10', '17', '2009-06-21', '2150', '', '-2.5', '0', '0', '2', '2');
768 INSERT INTO `0_gl_trans` VALUES ('23', '13', '4', '2009-06-21', '5010', '', '10', '2', '0', '2', '3');
769 INSERT INTO `0_gl_trans` VALUES ('24', '13', '4', '2009-06-21', '1510', '', '-10', '0', '0', '2', '3');
770 INSERT INTO `0_gl_trans` VALUES ('25', '10', '18', '2009-06-21', '4010', '', '-50', '2', '0', '2', '3');
771 INSERT INTO `0_gl_trans` VALUES ('26', '10', '18', '2009-06-21', '1200', '', '52.5', '0', '0', '2', '3');
772 INSERT INTO `0_gl_trans` VALUES ('27', '10', '18', '2009-06-21', '2150', '', '-2.5', '0', '0', '2', '3');
773 INSERT INTO `0_gl_trans` VALUES ('28', '0', '18', '2009-02-20', '1060', '', '1000', '0', '0', NULL, '');
774 INSERT INTO `0_gl_trans` VALUES ('29', '0', '18', '2009-02-20', '3350', '', '-1000', '0', '0', NULL, '');
775 INSERT INTO `0_gl_trans` VALUES ('30', '0', '19', '2009-02-21', '1060', '', '4000', '0', '0', NULL, '');
776 INSERT INTO `0_gl_trans` VALUES ('31', '0', '19', '2009-02-21', '3350', '', '-4000', '0', '0', NULL, '');
777 INSERT INTO `0_gl_trans` VALUES ('32', '26', '3', '2009-06-21', '1510', '', '-20', '0', '0', NULL, '');
778 INSERT INTO `0_gl_trans` VALUES ('33', '26', '3', '2009-06-21', '1510', '', '-22', '0', '0', NULL, '');
779 INSERT INTO `0_gl_trans` VALUES ('34', '26', '3', '2009-06-21', '1510', '', '-24', '0', '0', NULL, '');
780 INSERT INTO `0_gl_trans` VALUES ('35', '26', '3', '2009-06-21', '1540', '', '66', '0', '0', NULL, '');
781 INSERT INTO `0_gl_trans` VALUES ('36', '2', '5', '2009-06-21', '2150', 'Cash Sales', '-4.76', '0', '0', '4', '3');
782 INSERT INTO `0_gl_trans` VALUES ('37', '2', '5', '2009-06-21', '4010', 'Cash Sales', '-95.24', '0', '0', '4', '3');
783 INSERT INTO `0_gl_trans` VALUES ('38', '2', '5', '2009-06-21', '1060', '', '100', '0', '0', '4', '3');
784 INSERT INTO `0_gl_trans` VALUES ('39', '1', '8', '2009-06-21', '2150', 'Maintenance', '2.38', '0', '0', '4', '1');
785 INSERT INTO `0_gl_trans` VALUES ('40', '1', '8', '2009-06-21', '5765', 'Maintenance', '47.62', '0', '0', '4', '1');
786 INSERT INTO `0_gl_trans` VALUES ('41', '1', '8', '2009-06-21', '1060', '', '-50', '0', '0', '4', '1');
787 INSERT INTO `0_gl_trans` VALUES ('42', '20', '8', '2009-06-21', '2100', '', '-20', '0', '0', '3', '2');
788 INSERT INTO `0_gl_trans` VALUES ('43', '20', '8', '2009-06-21', '2150', '', '0.95', '0', '0', '3', '2');
789 INSERT INTO `0_gl_trans` VALUES ('44', '20', '8', '2009-06-21', '5780', '', '19.05', '0', '0', '3', '2');
790 INSERT INTO `0_gl_trans` VALUES ('45', '26', '4', '2009-06-21', '1510', '', '-40', '0', '0', NULL, '');
791 INSERT INTO `0_gl_trans` VALUES ('46', '26', '4', '2009-06-21', '1510', '', '-44', '0', '0', NULL, '');
792 INSERT INTO `0_gl_trans` VALUES ('47', '26', '4', '2009-06-21', '1510', '', '-48', '0', '0', NULL, '');
793 INSERT INTO `0_gl_trans` VALUES ('48', '26', '4', '2009-06-21', '1540', '', '132', '0', '0', NULL, '');
794 INSERT INTO `0_gl_trans` VALUES ('49', '26', '2', '2009-06-21', '1510', '', '-20', '0', '0', NULL, '');
795 INSERT INTO `0_gl_trans` VALUES ('50', '26', '2', '2009-06-21', '1510', '', '-22', '0', '0', NULL, '');
796 INSERT INTO `0_gl_trans` VALUES ('51', '26', '2', '2009-06-21', '1510', '', '-24', '0', '0', NULL, '');
797 INSERT INTO `0_gl_trans` VALUES ('52', '26', '2', '2009-06-21', '1540', '', '66', '0', '0', NULL, '');
798 INSERT INTO `0_gl_trans` VALUES ('53', '26', '5', '2009-06-21', '1510', '', '-50', '0', '0', NULL, '');
799 INSERT INTO `0_gl_trans` VALUES ('54', '26', '5', '2009-06-21', '1510', '', '-55', '0', '0', NULL, '');
800 INSERT INTO `0_gl_trans` VALUES ('55', '26', '5', '2009-06-21', '1510', '', '-60', '0', '0', NULL, '');
801 INSERT INTO `0_gl_trans` VALUES ('56', '26', '5', '2009-06-21', '1060', 'Overhead Cost', '-10', '0', '0', '1', '1');
802 INSERT INTO `0_gl_trans` VALUES ('57', '26', '5', '2009-06-21', '1530', 'Overhead Cost', '10', '0', '0', '1', '1');
803 INSERT INTO `0_gl_trans` VALUES ('58', '26', '5', '2009-06-21', '1060', 'Labour Cost', '-20', '0', '0', '1', '0');
804 INSERT INTO `0_gl_trans` VALUES ('59', '26', '5', '2009-06-21', '1530', 'Labour Cost', '20', '0', '0', '1', '0');
805 INSERT INTO `0_gl_trans` VALUES ('60', '26', '5', '2009-06-21', '1540', '', '165', '0', '0', NULL, '');
806 INSERT INTO `0_gl_trans` VALUES ('61', '26', '6', '2009-06-21', '1510', '', '50', '0', '0', NULL, '');
807 INSERT INTO `0_gl_trans` VALUES ('62', '26', '6', '2009-06-21', '1510', '', '55', '0', '0', NULL, '');
808 INSERT INTO `0_gl_trans` VALUES ('63', '26', '6', '2009-06-21', '1510', '', '60', '0', '0', NULL, '');
809 INSERT INTO `0_gl_trans` VALUES ('64', '26', '6', '2009-06-21', '1540', '', '-165', '0', '0', NULL, '');
810 INSERT INTO `0_gl_trans` VALUES ('65', '26', '7', '2009-06-21', '1510', '', '20', '0', '0', NULL, '');
811 INSERT INTO `0_gl_trans` VALUES ('66', '26', '7', '2009-06-21', '1510', '', '22', '0', '0', NULL, '');
812 INSERT INTO `0_gl_trans` VALUES ('67', '26', '7', '2009-06-21', '1510', '', '24', '0', '0', NULL, '');
813 INSERT INTO `0_gl_trans` VALUES ('68', '26', '7', '2009-06-21', '1060', 'Overhead Cost', '-10', '0', '0', '1', '1');
814 INSERT INTO `0_gl_trans` VALUES ('69', '26', '7', '2009-06-21', '1530', 'Overhead Cost', '10', '0', '0', '1', '1');
815 INSERT INTO `0_gl_trans` VALUES ('70', '26', '7', '2009-06-21', '1060', 'Labour Cost', '-20', '0', '0', '1', '0');
816 INSERT INTO `0_gl_trans` VALUES ('71', '26', '7', '2009-06-21', '1530', 'Labour Cost', '20', '0', '0', '1', '0');
817 INSERT INTO `0_gl_trans` VALUES ('72', '26', '7', '2009-06-21', '1540', '', '-66', '0', '0', NULL, '');
818 INSERT INTO `0_gl_trans` VALUES ('73', '13', '5', '2009-06-21', '5010', '', '10', '0', '0', '2', '2');
819 INSERT INTO `0_gl_trans` VALUES ('74', '13', '5', '2009-06-21', '1510', '', '-10', '0', '0', '2', '2');
820 INSERT INTO `0_gl_trans` VALUES ('75', '10', '19', '2009-06-21', '4010', '', '-47.62', '0', '0', '2', '2');
821 INSERT INTO `0_gl_trans` VALUES ('76', '10', '19', '2009-06-21', '1200', '', '55', '0', '0', '2', '2');
822 INSERT INTO `0_gl_trans` VALUES ('77', '10', '19', '2009-06-21', '4430', '', '-5', '0', '0', '2', '2');
823 INSERT INTO `0_gl_trans` VALUES ('78', '10', '19', '2009-06-21', '2150', '', '-2.38', '0', '0', '2', '2');
824 INSERT INTO `0_gl_trans` VALUES ('79', '11', '3', '2009-06-21', '5010', '', '-10', '2', '0', '2', '3');
825 INSERT INTO `0_gl_trans` VALUES ('80', '11', '3', '2009-06-21', '1510', '', '10', '0', '0', '2', '3');
826 INSERT INTO `0_gl_trans` VALUES ('81', '11', '3', '2009-06-21', '4010', '', '50', '2', '0', '2', '3');
827 INSERT INTO `0_gl_trans` VALUES ('82', '11', '3', '2009-06-21', '1200', '', '-52.5', '0', '0', '2', '3');
828 INSERT INTO `0_gl_trans` VALUES ('83', '11', '3', '2009-06-21', '2150', '', '2.5', '0', '0', '2', '3');
831 ### Structure of table `0_grn_batch` ###
833 DROP TABLE IF EXISTS `0_grn_batch`;
835 CREATE TABLE `0_grn_batch` (
836 `id` int(11) NOT NULL auto_increment,
837 `supplier_id` int(11) NOT NULL default '0',
838 `purch_order_no` int(11) default NULL,
839 `reference` varchar(60) NOT NULL default '',
840 `delivery_date` date NOT NULL default '0000-00-00',
841 `loc_code` varchar(5) default NULL,
843 KEY(`delivery_date`),
844 KEY(`purch_order_no`)
845 ) TYPE=InnoDB AUTO_INCREMENT=2 ;
848 ### Data of table `0_grn_batch` ###
850 INSERT INTO `0_grn_batch` VALUES ('1', '2', '1', '1', '2009-06-21', 'DEF');
853 ### Structure of table `0_grn_items` ###
855 DROP TABLE IF EXISTS `0_grn_items`;
857 CREATE TABLE `0_grn_items` (
858 `id` int(11) NOT NULL auto_increment,
859 `grn_batch_id` int(11) default NULL,
860 `po_detail_item` int(11) NOT NULL default '0',
861 `item_code` varchar(20) NOT NULL default '',
862 `description` tinytext,
863 `qty_recd` double NOT NULL default '0',
864 `quantity_inv` double NOT NULL default '0',
867 ) TYPE=InnoDB AUTO_INCREMENT=4 ;
870 ### Data of table `0_grn_items` ###
872 INSERT INTO `0_grn_items` VALUES ('1', '1', '1', '102', '17inch VGA Monitor', '100', '100');
873 INSERT INTO `0_grn_items` VALUES ('2', '1', '2', '103', '32MB VGA Card', '100', '100');
874 INSERT INTO `0_grn_items` VALUES ('3', '1', '3', '104', '52x CD Drive', '100', '100');
877 ### Structure of table `0_groups` ###
879 DROP TABLE IF EXISTS `0_groups`;
881 CREATE TABLE `0_groups` (
882 `id` smallint(6) unsigned NOT NULL auto_increment,
883 `description` varchar(60) NOT NULL default '',
884 `inactive` tinyint(1) NOT NULL default '0',
886 UNIQUE KEY `description` (`description`)
887 ) TYPE=MyISAM AUTO_INCREMENT=4 AUTO_INCREMENT=4 ;
890 ### Data of table `0_groups` ###
892 INSERT INTO `0_groups` VALUES ('1', 'Small', '0');
893 INSERT INTO `0_groups` VALUES ('2', 'Medium', '0');
894 INSERT INTO `0_groups` VALUES ('3', 'Large', '0');
897 ### Structure of table `0_item_codes` ###
899 DROP TABLE IF EXISTS `0_item_codes`;
901 CREATE TABLE `0_item_codes` (
902 `id` int(11) unsigned NOT NULL auto_increment,
903 `item_code` varchar(20) NOT NULL,
904 `stock_id` varchar(20) NOT NULL,
905 `description` varchar(200) NOT NULL default '',
906 `category_id` smallint(6) unsigned NOT NULL,
907 `quantity` double NOT NULL default '1',
908 `is_foreign` tinyint(1) NOT NULL default '0',
909 `inactive` tinyint(1) NOT NULL default '0',
911 UNIQUE KEY `stock_id` (`stock_id`,`item_code`),
913 ) TYPE=MyISAM AUTO_INCREMENT=6 ;
916 ### Data of table `0_item_codes` ###
918 INSERT INTO `0_item_codes` VALUES ('1', '102', '102', '17inch VGA Monitor', '1', '1', '0', '0');
919 INSERT INTO `0_item_codes` VALUES ('2', '103', '103', '32MB VGA Card', '1', '1', '0', '0');
920 INSERT INTO `0_item_codes` VALUES ('3', '104', '104', '52x CD Drive', '1', '1', '0', '0');
921 INSERT INTO `0_item_codes` VALUES ('4', '3400', '3400', 'P4 Business System', '3', '1', '0', '0');
922 INSERT INTO `0_item_codes` VALUES ('5', '201', '201', 'Assembly Labour', '4', '1', '0', '0');
925 ### Structure of table `0_item_tax_type_exemptions` ###
927 DROP TABLE IF EXISTS `0_item_tax_type_exemptions`;
929 CREATE TABLE `0_item_tax_type_exemptions` (
930 `item_tax_type_id` int(11) NOT NULL default '0',
931 `tax_type_id` int(11) NOT NULL default '0',
932 PRIMARY KEY (`item_tax_type_id`,`tax_type_id`)
936 ### Data of table `0_item_tax_type_exemptions` ###
940 ### Structure of table `0_item_tax_types` ###
942 DROP TABLE IF EXISTS `0_item_tax_types`;
944 CREATE TABLE `0_item_tax_types` (
945 `id` int(11) NOT NULL auto_increment,
946 `name` varchar(60) NOT NULL default '',
947 `exempt` tinyint(1) NOT NULL default '0',
948 `inactive` tinyint(1) NOT NULL default '0',
950 UNIQUE KEY `name` (`name`)
951 ) TYPE=InnoDB AUTO_INCREMENT=2 ;
954 ### Data of table `0_item_tax_types` ###
956 INSERT INTO `0_item_tax_types` VALUES ('1', 'Regular', '0', '0');
958 ### Structure of table `0_item_units` ###
960 DROP TABLE IF EXISTS `0_item_units`;
962 CREATE TABLE `0_item_units` (
963 `abbr` varchar(20) NOT NULL,
964 `name` varchar(40) NOT NULL,
965 `decimals` tinyint(2) NOT NULL,
966 `inactive` tinyint(1) NOT NULL default '0',
967 PRIMARY KEY (`abbr`),
968 UNIQUE KEY `name` (`name`)
972 ### Data of table `0_item_units` ###
974 INSERT INTO `0_item_units` VALUES ('ea.', 'Each', '0', '0');
975 INSERT INTO `0_item_units` VALUES ('hrs', 'Hours', '1', '0');
978 ### Structure of table `0_loc_stock` ###
980 DROP TABLE IF EXISTS `0_loc_stock`;
982 CREATE TABLE `0_loc_stock` (
983 `loc_code` char(5) NOT NULL default '',
984 `stock_id` char(20) NOT NULL default '',
985 `reorder_level` bigint(20) NOT NULL default '0',
986 PRIMARY KEY (`loc_code`,`stock_id`),
987 KEY `stock_id` (`stock_id`)
991 ### Data of table `0_loc_stock` ###
993 INSERT INTO `0_loc_stock` VALUES ('DEF', '102', '0');
994 INSERT INTO `0_loc_stock` VALUES ('DEF', '103', '0');
995 INSERT INTO `0_loc_stock` VALUES ('DEF', '104', '0');
996 INSERT INTO `0_loc_stock` VALUES ('DEF', '201', '0');
997 INSERT INTO `0_loc_stock` VALUES ('DEF', '3400', '0');
1000 ### Structure of table `0_locations` ###
1002 DROP TABLE IF EXISTS `0_locations`;
1004 CREATE TABLE `0_locations` (
1005 `loc_code` varchar(5) NOT NULL default '',
1006 `location_name` varchar(60) NOT NULL default '',
1007 `delivery_address` tinytext NOT NULL,
1008 `phone` varchar(30) NOT NULL default '',
1009 `phone2` varchar(30) NOT NULL default '',
1010 `fax` varchar(30) NOT NULL default '',
1011 `email` varchar(100) NOT NULL default '',
1012 `contact` varchar(30) NOT NULL default '',
1013 `inactive` tinyint(1) NOT NULL default '0',
1014 PRIMARY KEY (`loc_code`)
1018 ### Data of table `0_locations` ###
1020 INSERT INTO `0_locations` VALUES ('DEF', 'Default', 'Delivery 1\r\nDelivery 2\r\nDelivery 3', '', '', '', '', '', '0');
1023 ### Structure of table `0_movement_types` ###
1025 DROP TABLE IF EXISTS `0_movement_types`;
1027 CREATE TABLE `0_movement_types` (
1028 `id` int(11) NOT NULL auto_increment,
1029 `name` varchar(60) NOT NULL default '',
1030 `inactive` tinyint(1) NOT NULL default '0',
1032 UNIQUE KEY `name` (`name`)
1033 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
1036 ### Data of table `0_movement_types` ###
1038 INSERT INTO `0_movement_types` VALUES ('1', 'Adjustment', '0');
1041 ### Structure of table `0_payment_terms` ###
1043 DROP TABLE IF EXISTS `0_payment_terms`;
1045 CREATE TABLE `0_payment_terms` (
1046 `terms_indicator` int(11) NOT NULL auto_increment,
1047 `terms` char(80) NOT NULL default '',
1048 `days_before_due` smallint(6) NOT NULL default '0',
1049 `day_in_following_month` smallint(6) NOT NULL default '0',
1050 `inactive` tinyint(1) NOT NULL default '0',
1051 PRIMARY KEY (`terms_indicator`),
1052 UNIQUE KEY `terms` (`terms`)
1053 ) TYPE=MyISAM AUTO_INCREMENT=5 ;
1056 ### Data of table `0_payment_terms` ###
1058 INSERT INTO `0_payment_terms` VALUES ('1', 'Due 15th Of the Following Month', '0', '17', '0');
1059 INSERT INTO `0_payment_terms` VALUES ('2', 'Due By End Of The Following Month', '0', '30', '0');
1060 INSERT INTO `0_payment_terms` VALUES ('3', 'Payment due within 10 days', '10', '0', '0');
1061 INSERT INTO `0_payment_terms` VALUES ('4', 'Cash Only', '1', '0', '0');
1064 ### Structure of table `0_prices` ###
1066 DROP TABLE IF EXISTS `0_prices`;
1068 CREATE TABLE `0_prices` (
1069 `id` int(11) NOT NULL auto_increment,
1070 `stock_id` varchar(20) NOT NULL default '',
1071 `sales_type_id` int(11) NOT NULL default '0',
1072 `curr_abrev` char(3) NOT NULL default '',
1073 `price` double NOT NULL default '0',
1075 UNIQUE KEY `price` (`stock_id`,`sales_type_id`,`curr_abrev`)
1076 ) TYPE=MyISAM AUTO_INCREMENT=5 ;
1079 ### Data of table `0_prices` ###
1081 INSERT INTO `0_prices` VALUES ('1', '3400', '1', 'USD', '100');
1082 INSERT INTO `0_prices` VALUES ('2', '102', '1', 'USD', '50');
1083 INSERT INTO `0_prices` VALUES ('3', '103', '1', 'USD', '55');
1084 INSERT INTO `0_prices` VALUES ('4', '104', '1', 'USD', '60');
1087 ### Structure of table `0_print_profiles` ###
1089 DROP TABLE IF EXISTS `0_print_profiles`;
1091 CREATE TABLE `0_print_profiles` (
1092 `id` smallint(6) unsigned NOT NULL auto_increment,
1093 `profile` varchar(30) NOT NULL,
1094 `report` varchar(5) default NULL,
1095 `printer` tinyint(3) unsigned default NULL,
1097 UNIQUE KEY `profile` (`profile`,`report`)
1098 ) TYPE=MyISAM AUTO_INCREMENT=10 ;
1101 ### Data of table `0_print_profiles` ###
1103 INSERT INTO `0_print_profiles` VALUES ('1', 'Out of office', '', '0');
1104 INSERT INTO `0_print_profiles` VALUES ('2', 'Sales Department', '', '0');
1105 INSERT INTO `0_print_profiles` VALUES ('3', 'Central', '', '2');
1106 INSERT INTO `0_print_profiles` VALUES ('4', 'Sales Department', '104', '2');
1107 INSERT INTO `0_print_profiles` VALUES ('5', 'Sales Department', '105', '2');
1108 INSERT INTO `0_print_profiles` VALUES ('6', 'Sales Department', '107', '2');
1109 INSERT INTO `0_print_profiles` VALUES ('7', 'Sales Department', '109', '2');
1110 INSERT INTO `0_print_profiles` VALUES ('8', 'Sales Department', '110', '2');
1111 INSERT INTO `0_print_profiles` VALUES ('9', 'Sales Department', '201', '2');
1114 ### Structure of table `0_printers` ###
1116 DROP TABLE IF EXISTS `0_printers`;
1118 CREATE TABLE `0_printers` (
1119 `id` tinyint(3) unsigned NOT NULL auto_increment,
1120 `name` varchar(20) NOT NULL,
1121 `description` varchar(60) NOT NULL,
1122 `queue` varchar(20) NOT NULL,
1123 `host` varchar(40) NOT NULL,
1124 `port` smallint(11) unsigned NOT NULL,
1125 `timeout` tinyint(3) unsigned NOT NULL,
1127 UNIQUE KEY `name` (`name`)
1128 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
1131 ### Data of table `0_printers` ###
1133 INSERT INTO `0_printers` VALUES ('1', 'QL500', 'Label printer', 'QL500', 'server', '127', '20');
1134 INSERT INTO `0_printers` VALUES ('2', 'Samsung', 'Main network printer', 'scx4521F', 'server', '515', '5');
1135 INSERT INTO `0_printers` VALUES ('3', 'Local', 'Local print server at user IP', 'lp', '', '515', '10');
1138 ### Structure of table `0_purch_data` ###
1140 DROP TABLE IF EXISTS `0_purch_data`;
1142 CREATE TABLE `0_purch_data` (
1143 `supplier_id` int(11) NOT NULL default '0',
1144 `stock_id` char(20) NOT NULL default '',
1145 `price` double NOT NULL default '0',
1146 `suppliers_uom` char(50) NOT NULL default '',
1147 `conversion_factor` double NOT NULL default '1',
1148 `supplier_description` char(50) NOT NULL default '',
1149 PRIMARY KEY (`supplier_id`,`stock_id`)
1153 ### Data of table `0_purch_data` ###
1155 INSERT INTO `0_purch_data` VALUES ('2', '102', '10', '', '1', '17inch VGA Monitor');
1156 INSERT INTO `0_purch_data` VALUES ('2', '103', '11', '', '1', '32MB VGA Card');
1157 INSERT INTO `0_purch_data` VALUES ('2', '104', '12', '', '1', '52x CD Drive');
1160 ### Structure of table `0_purch_order_details` ###
1162 DROP TABLE IF EXISTS `0_purch_order_details`;
1164 CREATE TABLE `0_purch_order_details` (
1165 `po_detail_item` int(11) NOT NULL auto_increment,
1166 `order_no` int(11) NOT NULL default '0',
1167 `item_code` varchar(20) NOT NULL default '',
1168 `description` tinytext,
1169 `delivery_date` date NOT NULL default '0000-00-00',
1170 `qty_invoiced` double NOT NULL default '0',
1171 `unit_price` double NOT NULL default '0',
1172 `act_price` double NOT NULL default '0',
1173 `std_cost_unit` double NOT NULL default '0',
1174 `quantity_ordered` double NOT NULL default '0',
1175 `quantity_received` double NOT NULL default '0',
1176 PRIMARY KEY (`po_detail_item`),
1177 KEY `order` (`order_no`, `po_detail_item`)
1178 ) TYPE=InnoDB AUTO_INCREMENT=6 ;
1181 ### Data of table `0_purch_order_details` ###
1183 INSERT INTO `0_purch_order_details` VALUES ('1', '1', '102', '17inch VGA Monitor', '2009-07-01', '100', '10', '10', '10', '100', '100');
1184 INSERT INTO `0_purch_order_details` VALUES ('2', '1', '103', '32MB VGA Card', '2009-07-01', '100', '11', '11', '11', '100', '100');
1185 INSERT INTO `0_purch_order_details` VALUES ('3', '1', '104', '52x CD Drive', '2009-07-01', '100', '12', '12', '12', '100', '100');
1186 INSERT INTO `0_purch_order_details` VALUES ('4', '2', '102', '17inch VGA Monitor', '2009-07-01', '0', '5', '0', '0', '1', '0');
1187 INSERT INTO `0_purch_order_details` VALUES ('5', '2', '103', '32MB VGA Card', '2009-07-01', '0', '5', '0', '0', '1', '0');
1190 ### Structure of table `0_purch_orders` ###
1192 DROP TABLE IF EXISTS `0_purch_orders`;
1194 CREATE TABLE `0_purch_orders` (
1195 `order_no` int(11) NOT NULL auto_increment,
1196 `supplier_id` int(11) NOT NULL default '0',
1197 `comments` tinytext,
1198 `ord_date` date NOT NULL default '0000-00-00',
1199 `reference` tinytext NOT NULL,
1200 `requisition_no` tinytext,
1201 `into_stock_location` varchar(5) NOT NULL default '',
1202 `delivery_address` tinytext NOT NULL,
1203 PRIMARY KEY (`order_no`),
1205 ) TYPE=InnoDB AUTO_INCREMENT=3 ;
1208 ### Data of table `0_purch_orders` ###
1210 INSERT INTO `0_purch_orders` VALUES ('1', '2', '', '2009-06-01', '1', '', 'DEF', 'Delivery 1\r\nDelivery 2\r\nDelivery 3');
1211 INSERT INTO `0_purch_orders` VALUES ('2', '3', '', '2009-06-21', '2', '', 'DEF', 'Delivery 1\r\nDelivery 2\r\nDelivery 3');
1214 ### Structure of table `0_quick_entries` ###
1216 DROP TABLE IF EXISTS `0_quick_entries`;
1218 CREATE TABLE `0_quick_entries` (
1219 `id` smallint(6) unsigned NOT NULL auto_increment,
1220 `type` tinyint(1) NOT NULL default '0',
1221 `description` varchar(60) NOT NULL,
1222 `base_amount` double NOT NULL default '0',
1223 `base_desc` varchar(60) default NULL,
1224 `bal_type` tinyint(1) NOT NULL default '0',
1226 KEY `description` (`description`)
1227 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
1230 ### Data of table `0_quick_entries` ###
1232 INSERT INTO `0_quick_entries` VALUES ('1', '1', 'Maintenance', '0', 'Amount', '0');
1233 INSERT INTO `0_quick_entries` VALUES ('2', '4', 'Phone', '0', 'Amount', '0');
1234 INSERT INTO `0_quick_entries` VALUES ('3', '2', 'Cash Sales', '0', 'Amount', '0');
1237 ### Structure of table `0_quick_entry_lines` ###
1239 DROP TABLE IF EXISTS `0_quick_entry_lines`;
1241 CREATE TABLE `0_quick_entry_lines` (
1242 `id` smallint(6) unsigned NOT NULL auto_increment,
1243 `qid` smallint(6) unsigned NOT NULL,
1244 `amount` double default '0',
1245 `action` varchar(2) NOT NULL,
1246 `dest_id` varchar(11) NOT NULL,
1247 `dimension_id` smallint(6) unsigned default NULL,
1248 `dimension2_id` smallint(6) unsigned default NULL,
1251 ) TYPE=MyISAM AUTO_INCREMENT=8 ;
1254 ### Data of table `0_quick_entry_lines` ###
1256 INSERT INTO `0_quick_entry_lines` VALUES ('1', '1', '0', 't-', '1', '0', '0');
1257 INSERT INTO `0_quick_entry_lines` VALUES ('2', '2', '0', 't-', '1', '0', '0');
1258 INSERT INTO `0_quick_entry_lines` VALUES ('3', '3', '0', 't-', '1', '0', '0');
1259 INSERT INTO `0_quick_entry_lines` VALUES ('4', '3', '0', '=', '4010', '0', '0');
1260 INSERT INTO `0_quick_entry_lines` VALUES ('5', '1', '0', '=', '5765', '0', '0');
1261 INSERT INTO `0_quick_entry_lines` VALUES ('6', '2', '0', '=', '5780', '0', '0');
1264 ### Structure of table `0_recurrent_invoices` ###
1266 DROP TABLE IF EXISTS `0_recurrent_invoices`;
1268 CREATE TABLE `0_recurrent_invoices` (
1269 `id` smallint(6) unsigned NOT NULL auto_increment,
1270 `description` varchar(60) NOT NULL default '',
1271 `order_no` int(11) unsigned NOT NULL,
1272 `debtor_no` int(11) unsigned default NULL,
1273 `group_no` smallint(6) unsigned default NULL,
1274 `days` int(11) NOT NULL default '0',
1275 `monthly` int(11) NOT NULL default '0',
1276 `begin` date NOT NULL default '0000-00-00',
1277 `end` date NOT NULL default '0000-00-00',
1278 `last_sent` date NOT NULL default '0000-00-00',
1280 UNIQUE KEY `description` (`description`)
1281 ) TYPE=InnoDB AUTO_INCREMENT=1 ;
1284 ### Data of table `0_recurrent_invoices` ###
1288 ### Structure of table `0_refs` ###
1290 DROP TABLE IF EXISTS `0_refs`;
1292 CREATE TABLE `0_refs` (
1293 `id` int(11) NOT NULL default '0',
1294 `type` int(11) NOT NULL default '0',
1295 `reference` varchar(100) NOT NULL default '',
1296 PRIMARY KEY (`id`,`type`),
1297 KEY `Type_and_Reference` (`type`,`reference`)
1301 ### Data of table `0_refs` ###
1303 INSERT INTO `0_refs` VALUES ('18', '0', '1');
1304 INSERT INTO `0_refs` VALUES ('19', '0', '2');
1307 ### Structure of table `0_sales_order_details` ###
1309 DROP TABLE IF EXISTS `0_sales_order_details`;
1311 CREATE TABLE `0_sales_order_details` (
1312 `id` int(11) NOT NULL auto_increment,
1313 `order_no` int(11) NOT NULL default '0',
1314 `trans_type` smallint(6) NOT NULL default '30',
1315 `stk_code` varchar(20) NOT NULL default '',
1316 `description` tinytext,
1317 `qty_sent` double NOT NULL default '0',
1318 `unit_price` double NOT NULL default '0',
1319 `quantity` double NOT NULL default '0',
1320 `discount_percent` double NOT NULL default '0',
1322 KEY `sorder` (`trans_type`, `order_no`)
1323 ) TYPE=InnoDB AUTO_INCREMENT=6 ;
1326 ### Data of table `0_sales_order_details` ###
1328 INSERT INTO `0_sales_order_details` VALUES ('1', '1', '30', '102', '17inch VGA Monitor', '2', '30.4', '2', '0');
1329 INSERT INTO `0_sales_order_details` VALUES ('2', '2', '30', '102', '17inch VGA Monitor', '1', '50', '1', '0');
1330 INSERT INTO `0_sales_order_details` VALUES ('3', '3', '30', '102', '17inch VGA Monitor', '1', '35.89', '1', '0');
1331 INSERT INTO `0_sales_order_details` VALUES ('4', '4', '30', '102', '17inch VGA Monitor', '0', '21.28', '2', '0');
1332 INSERT INTO `0_sales_order_details` VALUES ('5', '5', '30', '102', '17inch VGA Monitor', '1', '50', '1', '0');
1335 ### Structure of table `0_sales_orders` ###
1337 DROP TABLE IF EXISTS `0_sales_orders`;
1339 CREATE TABLE `0_sales_orders` (
1340 `order_no` int(11) NOT NULL,
1341 `trans_type` smallint(6) NOT NULL default '30',
1342 `version` tinyint(1) unsigned NOT NULL default '0',
1343 `type` tinyint(1) NOT NULL default '0',
1344 `debtor_no` int(11) NOT NULL default '0',
1345 `branch_code` int(11) NOT NULL default '0',
1346 `reference` varchar(100) NOT NULL default '',
1347 `customer_ref` tinytext NOT NULL,
1348 `comments` tinytext,
1349 `ord_date` date NOT NULL default '0000-00-00',
1350 `order_type` int(11) NOT NULL default '0',
1351 `ship_via` int(11) NOT NULL default '0',
1352 `delivery_address` tinytext NOT NULL,
1353 `contact_phone` varchar(30) default NULL,
1354 `contact_email` varchar(100) default NULL,
1355 `deliver_to` tinytext NOT NULL,
1356 `freight_cost` double NOT NULL default '0',
1357 `from_stk_loc` varchar(5) NOT NULL default '',
1358 `delivery_date` date NOT NULL default '0000-00-00',
1359 `payment_terms` int(11) default NULL,
1360 PRIMARY KEY (`trans_type`, `order_no`)
1363 ### Data of table `0_sales_orders` ###
1365 INSERT INTO `0_sales_orders` VALUES ('1', '30', '1', '0', '1', '1', '1', '', '', '2009-06-21', '2', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '', '', 'Beefeater Ltd.', '10', 'DEF', '2009-06-22','3');
1366 INSERT INTO `0_sales_orders` VALUES ('2', '30', '1', '0', '2', '2', '2', '', '', '2009-06-21', '1', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '', '', 'Ghostbusters Corp.', '0', 'DEF', '2009-06-22','4');
1367 INSERT INTO `0_sales_orders` VALUES ('3', '30', '1', '0', '3', '3', '3', '', '', '2009-06-21', '2', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '', '', 'Brezan', '0', 'DEF', '2009-07-01','3');
1368 INSERT INTO `0_sales_orders` VALUES ('4', '30', '0', '0', '1', '1', '4', '', '', '2009-06-21', '2', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '', '', 'Beefeater Ltd.', '0', 'DEF', '2009-06-22','3');
1369 INSERT INTO `0_sales_orders` VALUES ('5', '30', '1', '0', '2', '2', '5', '', '', '2009-06-21', '1', '1', 'Address 1\r\nAddress 2\r\nAddress 3', '', '', 'Ghostbusters Corp.', '5', 'DEF', '2009-06-22','4');
1372 ### Structure of table `0_sales_pos` ###
1374 DROP TABLE IF EXISTS `0_sales_pos`;
1376 CREATE TABLE `0_sales_pos` (
1377 `id` smallint(6) unsigned NOT NULL auto_increment,
1378 `pos_name` varchar(30) NOT NULL,
1379 `cash_sale` tinyint(1) NOT NULL,
1380 `credit_sale` tinyint(1) NOT NULL,
1381 `pos_location` varchar(5) NOT NULL,
1382 `pos_account` smallint(6) unsigned NOT NULL,
1383 `inactive` tinyint(1) NOT NULL default '0',
1385 UNIQUE KEY `pos_name` (`pos_name`)
1386 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
1389 ### Data of table `0_sales_pos` ###
1391 INSERT INTO `0_sales_pos` VALUES ('1', 'Default', '1', '1', 'DEF', '2', '0');
1394 ### Structure of table `0_sales_types` ###
1396 DROP TABLE IF EXISTS `0_sales_types`;
1398 CREATE TABLE `0_sales_types` (
1399 `id` int(11) NOT NULL auto_increment,
1400 `sales_type` char(50) NOT NULL default '',
1401 `tax_included` int(1) NOT NULL default '0',
1402 `factor` double NOT NULL default '1',
1403 `inactive` tinyint(1) NOT NULL default '0',
1405 UNIQUE KEY `sales_type` (`sales_type`)
1406 ) TYPE=MyISAM AUTO_INCREMENT=3 ;
1409 ### Data of table `0_sales_types` ###
1411 INSERT INTO `0_sales_types` VALUES ('1', 'Retail', '1', '1', '0');
1412 INSERT INTO `0_sales_types` VALUES ('2', 'Wholesale', '0', '0.7', '0');
1415 ### Structure of table `0_salesman` ###
1417 DROP TABLE IF EXISTS `0_salesman`;
1419 CREATE TABLE `0_salesman` (
1420 `salesman_code` int(11) NOT NULL auto_increment,
1421 `salesman_name` char(60) NOT NULL default '',
1422 `salesman_phone` char(30) NOT NULL default '',
1423 `salesman_fax` char(30) NOT NULL default '',
1424 `salesman_email` varchar(100) NOT NULL default '',
1425 `provision` double NOT NULL default '0',
1426 `break_pt` double NOT NULL default '0',
1427 `provision2` double NOT NULL default '0',
1428 `inactive` tinyint(1) NOT NULL default '0',
1429 PRIMARY KEY (`salesman_code`),
1430 UNIQUE KEY `salesman_name` (`salesman_name`)
1431 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
1434 ### Data of table `0_salesman` ###
1436 INSERT INTO `0_salesman` VALUES ('1', 'Sales Person', '', '', '', '5', '1000', '4', '0');
1438 ### Structure of table `0_security_roles` ###
1440 DROP TABLE IF EXISTS `0_security_roles`;
1441 CREATE TABLE IF NOT EXISTS `0_security_roles` (
1442 `id` int(11) NOT NULL auto_increment,
1443 `role` varchar(30) NOT NULL,
1444 `description` varchar(50) default NULL,
1447 `inactive` tinyint(1) NOT NULL default '0',
1449 UNIQUE KEY `role` (`role`)
1450 ) TYPE=MyISAM AUTO_INCREMENT=11 ;
1453 -- Data of table `0_security_roles`
1456 INSERT INTO `0_security_roles` VALUES (1, 'Inquiries', 'Inquiries', '768;2816;3072;3328;5632;5888;8192;8448;10752;11008;13312;15872;16128', '257;258;259;260;513;514;515;516;517;518;519;520;521;522;523;524;525;773;774;2822;3073;3075;3076;3077;3329;3330;3331;3332;3333;3334;3335;5377;5633;5640;5889;5890;5891;7937;7938;7939;7940;8193;8194;8450;8451;10497;10753;11009;11010;11012;13313;13315;15617;15618;15619;15620;15621;15622;15623;15624;15625;15626;15873;15882;16129;16130;16131;16132', 0);
1457 INSERT INTO `0_security_roles` VALUES (2, 'System Administrator', 'System Administrator', '256;512;768;2816;3072;3328;5376;5632;5888;7936;8192;8448;10496;10752;11008;13056;13312;15616;15872;16128', '257;258;259;260;513;514;515;516;517;518;519;520;521;522;523;524;525;769;770;771;772;773;774;2817;2818;2819;2820;2821;2822;2823;3073;3074;3082;3075;3076;3077;3078;3079;3080;3081;3329;3330;3331;3332;3333;3334;3335;5377;5633;5634;5635;5636;5637;5641;5638;5639;5640;5889;5890;5891;7937;7938;7939;7940;8193;8194;8195;8196;8197;8449;8450;8451;10497;10753;10754;10755;10756;10757;11009;11010;11012;13057;13313;13314;13315;15617;15618;15619;15620;15621;15622;15623;15624;15625;15626;15627;15873;15874;15875;15876;15877;15878;15879;15880;15883;15881;15882;16129;16130;16131;16132', 0);
1458 INSERT INTO `0_security_roles` VALUES (3, 'Salesman', 'Salesman', '768;3072;5632;8192;15872', '773;774;3073;3075;3081;5633;8194;15873', 0);
1459 INSERT INTO `0_security_roles` VALUES (4, 'Stock Manager', 'Stock Manager', '2816;3072;3328;5632;5888;8192;8448;10752;11008;13312;15872;16128', '2818;2822;3073;3076;3077;3329;3330;3330;3330;3331;3331;3332;3333;3334;3335;5633;5640;5889;5890;5891;8193;8194;8450;8451;10753;11009;11010;11012;13313;13315;15882;16129;16130;16131;16132', 0);
1460 INSERT INTO `0_security_roles` VALUES (5, 'Production Manager', 'Production Manager', '512;2816;3072;3328;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '521;523;524;2818;2819;2820;2821;2822;2823;3073;3074;3076;3077;3078;3079;3080;3081;3329;3330;3330;3330;3331;3331;3332;3333;3334;3335;5633;5640;5640;5889;5890;5891;8193;8194;8196;8197;8450;8451;10753;10755;11009;11010;11012;13313;13315;15617;15619;15620;15621;15624;15624;15876;15877;15880;15882;16129;16130;16131;16132', 0);
1461 INSERT INTO `0_security_roles` VALUES (6, 'Purchase Officer', 'Purchase Officer', '512;2816;3072;3328;5376;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '521;523;524;2818;2819;2820;2821;2822;2823;3073;3074;3076;3077;3078;3079;3080;3081;3329;3330;3330;3330;3331;3331;3332;3333;3334;3335;5377;5633;5635;5640;5640;5889;5890;5891;8193;8194;8196;8197;8449;8450;8451;10753;10755;11009;11010;11012;13313;13315;15617;15619;15620;15621;15624;15624;15876;15877;15880;15882;16129;16130;16131;16132', 0);
1462 INSERT INTO `0_security_roles` VALUES (7, 'AR Officer', 'AR Officer', '512;768;2816;3072;3328;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '521;523;524;771;773;774;2818;2819;2820;2821;2822;2823;3073;3073;3074;3075;3076;3077;3078;3079;3080;3081;3081;3329;3330;3330;3330;3331;3331;3332;3333;3334;3335;5633;5633;5634;5637;5638;5639;5640;5640;5889;5890;5891;8193;8194;8194;8196;8197;8450;8451;10753;10755;11009;11010;11012;13313;13315;15617;15619;15620;15621;15624;15624;15873;15876;15877;15878;15880;15882;16129;16130;16131;16132', 0);
1463 INSERT INTO `0_security_roles` VALUES (8, 'AP Officer', 'AP Officer', '512;2816;3072;3328;5376;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '257;258;259;260;521;523;524;769;770;771;772;773;774;2818;2819;2820;2821;2822;2823;3073;3074;3082;3076;3077;3078;3079;3080;3081;3329;3330;3331;3332;3333;3334;3335;5377;5633;5635;5640;5889;5890;5891;7937;7938;7939;7940;8193;8194;8196;8197;8449;8450;8451;10497;10753;10755;11009;11010;11012;13057;13313;13315;15617;15619;15620;15621;15624;15876;15877;15880;15882;16129;16130;16131;16132', 0);
1464 INSERT INTO `0_security_roles` VALUES (9, 'Accountant', 'New Accountant', '512;768;2816;3072;3328;5376;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '257;258;259;260;521;523;524;771;772;773;774;2818;2819;2820;2821;2822;2823;3073;3074;3075;3076;3077;3078;3079;3080;3081;3329;3330;3331;3332;3333;3334;3335;5377;5633;5634;5635;5637;5638;5639;5640;5889;5890;5891;7937;7938;7939;7940;8193;8194;8196;8197;8449;8450;8451;10497;10753;10755;11009;11010;11012;13313;13315;15617;15618;15619;15620;15621;15624;15873;15876;15877;15878;15880;15882;16129;16130;16131;16132', 0);
1465 INSERT INTO `0_security_roles` VALUES (10, 'Sub Admin', 'Sub Admin', '512;768;2816;3072;3328;5376;5632;5888;8192;8448;10752;11008;13312;15616;15872;16128', '257;258;259;260;521;523;524;771;772;773;774;2818;2819;2820;2821;2822;2823;3073;3074;3082;3075;3076;3077;3078;3079;3080;3081;3329;3330;3331;3332;3333;3334;3335;5377;5633;5634;5635;5637;5638;5639;5640;5889;5890;5891;7937;7938;7939;7940;8193;8194;8196;8197;8449;8450;8451;10497;10753;10755;11009;11010;11012;13057;13313;13315;15617;15619;15620;15621;15624;15873;15874;15876;15877;15878;15879;15880;15882;16129;16130;16131;16132', 0);
1467 ### Structure of table `0_shippers` ###
1469 DROP TABLE IF EXISTS `0_shippers`;
1471 CREATE TABLE `0_shippers` (
1472 `shipper_id` int(11) NOT NULL auto_increment,
1473 `shipper_name` varchar(60) NOT NULL default '',
1474 `phone` varchar(30) NOT NULL default '',
1475 `phone2` varchar(30) NOT NULL default '',
1476 `contact` tinytext NOT NULL,
1477 `address` tinytext NOT NULL,
1478 `inactive` tinyint(1) NOT NULL default '0',
1479 PRIMARY KEY (`shipper_id`),
1480 UNIQUE KEY `name` (`shipper_name`)
1481 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
1484 ### Data of table `0_shippers` ###
1486 INSERT INTO `0_shippers` VALUES ('1', 'Default', '', '', '', '', '0');
1489 ### Structure of table `0_sql_trail` ###
1491 DROP TABLE IF EXISTS `0_sql_trail`;
1493 CREATE TABLE `0_sql_trail` (
1494 `id` int(11) unsigned NOT NULL auto_increment,
1495 `sql` text NOT NULL,
1496 `result` tinyint(1) NOT NULL,
1497 `msg` varchar(255) NOT NULL,
1499 ) TYPE=MyISAM AUTO_INCREMENT=1 ;
1502 ### Data of table `0_sql_trail` ###
1506 ### Structure of table `0_stock_category` ###
1508 DROP TABLE IF EXISTS `0_stock_category`;
1510 CREATE TABLE `0_stock_category` (
1511 `category_id` int(11) NOT NULL auto_increment,
1512 `description` varchar(60) NOT NULL default '',
1513 `dflt_tax_type` int(11) NOT NULL default '1',
1514 `dflt_units` varchar(20) NOT NULL default 'each',
1515 `dflt_mb_flag` char(1) NOT NULL default 'B',
1516 `dflt_sales_act` varchar(11) NOT NULL default '',
1517 `dflt_cogs_act` varchar(11) NOT NULL default '',
1518 `dflt_inventory_act` varchar(11) NOT NULL default '',
1519 `dflt_adjustment_act` varchar(11) NOT NULL default '',
1520 `dflt_assembly_act` varchar(11) NOT NULL default '',
1521 `dflt_dim1` int(11) default NULL,
1522 `dflt_dim2` int(11) default NULL,
1523 `inactive` tinyint(1) NOT NULL default '0',
1524 `dflt_no_sale` tinyint(1) NOT NULL default '0',
1525 PRIMARY KEY (`category_id`),
1526 UNIQUE KEY `description` (`description`)
1527 ) TYPE=MyISAM AUTO_INCREMENT=5 ;
1529 ### Data of table `0_stock_category` ###
1531 INSERT INTO `0_stock_category` VALUES ('1', 'Components', '1', 'each', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
1532 INSERT INTO `0_stock_category` VALUES ('2', 'Charges', '1', 'each', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
1533 INSERT INTO `0_stock_category` VALUES ('3', 'Systems', '1', 'each', 'M', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
1534 INSERT INTO `0_stock_category` VALUES ('4', 'Services', '1', 'hrs', 'D', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0');
1537 ### Structure of table `0_stock_master` ###
1539 DROP TABLE IF EXISTS `0_stock_master`;
1541 CREATE TABLE `0_stock_master` (
1542 `stock_id` varchar(20) NOT NULL default '',
1543 `category_id` int(11) NOT NULL default '0',
1544 `tax_type_id` int(11) NOT NULL default '0',
1545 `description` varchar(200) NOT NULL default '',
1546 `long_description` tinytext NOT NULL,
1547 `units` varchar(20) NOT NULL default 'each',
1548 `mb_flag` char(1) NOT NULL default 'B',
1549 `sales_account` varchar(11) NOT NULL default '',
1550 `cogs_account` varchar(11) NOT NULL default '',
1551 `inventory_account` varchar(11) NOT NULL default '',
1552 `adjustment_account` varchar(11) NOT NULL default '',
1553 `assembly_account` varchar(11) NOT NULL default '',
1554 `dimension_id` int(11) default NULL,
1555 `dimension2_id` int(11) default NULL,
1556 `actual_cost` double NOT NULL default '0',
1557 `last_cost` double NOT NULL default '0',
1558 `material_cost` double NOT NULL default '0',
1559 `labour_cost` double NOT NULL default '0',
1560 `overhead_cost` double NOT NULL default '0',
1561 `inactive` tinyint(1) NOT NULL default '0',
1562 `no_sale` tinyint(1) NOT NULL default '0',
1563 `editable` tinyint(1) NOT NULL default '0',
1564 PRIMARY KEY (`stock_id`)
1568 ### Data of table `0_stock_master` ###
1570 INSERT INTO `0_stock_master` VALUES ('102', '1', '1', '17inch VGA Monitor', '', 'ea.', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '10', '0', '0', '0', '0', '0');
1571 INSERT INTO `0_stock_master` VALUES ('103', '1', '1', '32MB VGA Card', '', 'ea.', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '11', '0', '0', '0', '0', '0');
1572 INSERT INTO `0_stock_master` VALUES ('104', '1', '1', '52x CD Drive', '', 'ea.', 'B', '4010', '5010', '1510', '5040', '1530', '0', '0', '0', '0', '12', '0', '0', '0', '0', '0');
1573 INSERT INTO `0_stock_master` VALUES ('201', '4', '1', 'Assembly Labour', '', 'hrs', 'D', '4010', '5010', '5010', '5040', '1530', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
1574 INSERT INTO `0_stock_master` VALUES ('3400', '3', '1', 'P4 Business System', '', 'ea.', 'M', '4010', '5010', '1540', '5040', '1530', '0', '0', '0', '0', '33', '3.9999999999999', '2', '0', '0', '0');
1577 ### Structure of table `0_stock_moves` ###
1579 DROP TABLE IF EXISTS `0_stock_moves`;
1581 CREATE TABLE `0_stock_moves` (
1582 `trans_id` int(11) NOT NULL auto_increment,
1583 `trans_no` int(11) NOT NULL default '0',
1584 `stock_id` char(20) NOT NULL default '',
1585 `type` smallint(6) NOT NULL default '0',
1586 `loc_code` char(5) NOT NULL default '',
1587 `tran_date` date NOT NULL default '0000-00-00',
1588 `person_id` int(11) default NULL,
1589 `price` double NOT NULL default '0',
1590 `reference` char(40) NOT NULL default '',
1591 `qty` double NOT NULL default '1',
1592 `discount_percent` double NOT NULL default '0',
1593 `standard_cost` double NOT NULL default '0',
1594 `visible` tinyint(1) NOT NULL default '1',
1595 PRIMARY KEY (`trans_id`),
1596 KEY `type` (`type`,`trans_no`),
1597 KEY `Move` (`stock_id`,`loc_code`, `tran_date`)
1598 ) TYPE=InnoDB AUTO_INCREMENT=37 ;
1601 ### Data of table `0_stock_moves` ###
1603 INSERT INTO `0_stock_moves` VALUES ('1', '1', '102', '25', 'DEF', '2009-06-21', '2', '10', '', '100', '0', '10', '1');
1604 INSERT INTO `0_stock_moves` VALUES ('2', '1', '103', '25', 'DEF', '2009-06-21', '2', '11', '', '100', '0', '11', '1');
1605 INSERT INTO `0_stock_moves` VALUES ('3', '1', '104', '25', 'DEF', '2009-06-21', '2', '12', '', '100', '0', '12', '1');
1606 INSERT INTO `0_stock_moves` VALUES ('4', '1', '102', '26', 'DEF', '2009-06-21', '0', '0', '1', '-10', '0', '0', '1');
1607 INSERT INTO `0_stock_moves` VALUES ('5', '1', '103', '26', 'DEF', '2009-06-21', '0', '0', '1', '-10', '0', '0', '1');
1608 INSERT INTO `0_stock_moves` VALUES ('6', '1', '104', '26', 'DEF', '2009-06-21', '0', '0', '1', '-10', '0', '0', '1');
1609 INSERT INTO `0_stock_moves` VALUES ('7', '1', '3400', '26', 'DEF', '2009-06-21', '0', '0', '1', '10', '0', '0', '1');
1610 INSERT INTO `0_stock_moves` VALUES ('8', '2', '102', '13', 'DEF', '2009-06-21', '0', '30.4', '1', '-2', '0', '10', '1');
1611 INSERT INTO `0_stock_moves` VALUES ('9', '3', '102', '13', 'DEF', '2009-06-21', '0', '50', 'auto', '-1', '0', '10', '1');
1612 INSERT INTO `0_stock_moves` VALUES ('10', '4', '102', '13', 'DEF', '2009-06-21', '0', '35.89', 'auto', '-1', '0', '10', '1');
1613 INSERT INTO `0_stock_moves` VALUES ('11', '3', '102', '26', 'DEF', '2009-06-21', '0', '0', '3', '-2', '0', '0', '1');
1614 INSERT INTO `0_stock_moves` VALUES ('12', '3', '103', '26', 'DEF', '2009-06-21', '0', '0', '3', '-2', '0', '0', '1');
1615 INSERT INTO `0_stock_moves` VALUES ('13', '3', '104', '26', 'DEF', '2009-06-21', '0', '0', '3', '-2', '0', '0', '1');
1616 INSERT INTO `0_stock_moves` VALUES ('14', '3', '3400', '26', 'DEF', '2009-06-21', '0', '0', '3', '2', '0', '0', '1');
1617 INSERT INTO `0_stock_moves` VALUES ('15', '4', '102', '26', 'DEF', '2009-06-21', '0', '0', '4', '-4', '0', '0', '1');
1618 INSERT INTO `0_stock_moves` VALUES ('16', '4', '103', '26', 'DEF', '2009-06-21', '0', '0', '4', '-4', '0', '0', '1');
1619 INSERT INTO `0_stock_moves` VALUES ('17', '4', '104', '26', 'DEF', '2009-06-21', '0', '0', '4', '-4', '0', '0', '1');
1620 INSERT INTO `0_stock_moves` VALUES ('18', '4', '3400', '26', 'DEF', '2009-06-21', '0', '0', '4', '4', '0', '0', '1');
1621 INSERT INTO `0_stock_moves` VALUES ('19', '2', '102', '26', 'DEF', '2009-06-21', '0', '0', '', '-2', '0', '0', '1');
1622 INSERT INTO `0_stock_moves` VALUES ('20', '2', '103', '26', 'DEF', '2009-06-21', '0', '0', '', '-2', '0', '0', '1');
1623 INSERT INTO `0_stock_moves` VALUES ('21', '2', '104', '26', 'DEF', '2009-06-21', '0', '0', '', '-2', '0', '0', '1');
1624 INSERT INTO `0_stock_moves` VALUES ('22', '1', '3400', '29', 'DEF', '2009-06-21', '0', '0', '', '2', '0', '0', '1');
1625 INSERT INTO `0_stock_moves` VALUES ('23', '5', '102', '26', 'DEF', '2009-06-21', '0', '0', '5', '-5', '0', '0', '1');
1626 INSERT INTO `0_stock_moves` VALUES ('24', '5', '103', '26', 'DEF', '2009-06-21', '0', '0', '5', '-5', '0', '0', '1');
1627 INSERT INTO `0_stock_moves` VALUES ('25', '5', '104', '26', 'DEF', '2009-06-21', '0', '0', '5', '-5', '0', '0', '1');
1628 INSERT INTO `0_stock_moves` VALUES ('26', '5', '3400', '26', 'DEF', '2009-06-21', '0', '0', '5', '5', '0', '0', '1');
1629 INSERT INTO `0_stock_moves` VALUES ('27', '6', '102', '26', 'DEF', '2009-06-21', '0', '0', '6', '5', '0', '0', '1');
1630 INSERT INTO `0_stock_moves` VALUES ('28', '6', '103', '26', 'DEF', '2009-06-21', '0', '0', '6', '5', '0', '0', '1');
1631 INSERT INTO `0_stock_moves` VALUES ('29', '6', '104', '26', 'DEF', '2009-06-21', '0', '0', '6', '5', '0', '0', '1');
1632 INSERT INTO `0_stock_moves` VALUES ('30', '6', '3400', '26', 'DEF', '2009-06-21', '0', '0', '6', '-5', '0', '0', '1');
1633 INSERT INTO `0_stock_moves` VALUES ('31', '7', '102', '26', 'DEF', '2009-06-21', '0', '0', '7', '2', '0', '0', '1');
1634 INSERT INTO `0_stock_moves` VALUES ('32', '7', '103', '26', 'DEF', '2009-06-21', '0', '0', '7', '2', '0', '0', '1');
1635 INSERT INTO `0_stock_moves` VALUES ('33', '7', '104', '26', 'DEF', '2009-06-21', '0', '0', '7', '2', '0', '0', '1');
1636 INSERT INTO `0_stock_moves` VALUES ('34', '7', '3400', '26', 'DEF', '2009-06-21', '0', '0', '7', '-2', '0', '0', '1');
1637 INSERT INTO `0_stock_moves` VALUES ('35', '5', '102', '13', 'DEF', '2009-06-21', '0', '50', 'auto', '-1', '0', '10', '1');
1638 INSERT INTO `0_stock_moves` VALUES ('36', '3', '102', '11', 'DEF', '2009-06-21', '0', '37.68', 'Return Ex Inv: 18', '1', '0', '10', '0');
1641 ### Structure of table `0_supp_allocations` ###
1643 DROP TABLE IF EXISTS `0_supp_allocations`;
1645 CREATE TABLE `0_supp_allocations` (
1646 `id` int(11) NOT NULL auto_increment,
1647 `amt` double unsigned default NULL,
1648 `date_alloc` date NOT NULL default '0000-00-00',
1649 `trans_no_from` int(11) default NULL,
1650 `trans_type_from` int(11) default NULL,
1651 `trans_no_to` int(11) default NULL,
1652 `trans_type_to` int(11) default NULL,
1654 KEY `From` (`trans_type_from`, `trans_no_from`),
1655 KEY `To` (`trans_type_to`, `trans_no_to`)
1656 ) TYPE=InnoDB AUTO_INCREMENT=2 ;
1659 ### Data of table `0_supp_allocations` ###
1661 INSERT INTO `0_supp_allocations` VALUES ('1', '3465', '2009-06-21', '4', '22', '7', '20');
1664 ### Structure of table `0_supp_invoice_items` ###
1666 DROP TABLE IF EXISTS `0_supp_invoice_items`;
1668 CREATE TABLE `0_supp_invoice_items` (
1669 `id` int(11) NOT NULL auto_increment,
1670 `supp_trans_no` int(11) default NULL,
1671 `supp_trans_type` int(11) default NULL,
1672 `gl_code` varchar(11) NOT NULL default '0',
1673 `grn_item_id` int(11) default NULL,
1674 `po_detail_item_id` int(11) default NULL,
1675 `stock_id` varchar(20) NOT NULL default '',
1676 `description` tinytext,
1677 `quantity` double NOT NULL default '0',
1678 `unit_price` double NOT NULL default '0',
1679 `unit_tax` double NOT NULL default '0',
1682 KEY `Transaction` (`supp_trans_type`, `supp_trans_no`, `stock_id`)
1683 ) TYPE=InnoDB AUTO_INCREMENT=6 ;
1686 ### Data of table `0_supp_invoice_items` ###
1688 INSERT INTO `0_supp_invoice_items` VALUES ('1', '7', '20', '0', '1', '1', '102', '17inch VGA Monitor', '100', '10', '0.5', '');
1689 INSERT INTO `0_supp_invoice_items` VALUES ('2', '7', '20', '0', '2', '2', '103', '32MB VGA Card', '100', '11', '0.55', '');
1690 INSERT INTO `0_supp_invoice_items` VALUES ('3', '7', '20', '0', '3', '3', '104', '52x CD Drive', '100', '12', '0.6', '');
1691 INSERT INTO `0_supp_invoice_items` VALUES ('4', '8', '20', '2150', '0', '0', '', '', '0', '0.95', '0', 'Phone');
1692 INSERT INTO `0_supp_invoice_items` VALUES ('5', '8', '20', '5780', '0', '0', '', '', '0', '19.05', '0', 'Phone');
1695 ### Structure of table `0_supp_trans` ###
1697 DROP TABLE IF EXISTS `0_supp_trans`;
1699 CREATE TABLE `0_supp_trans` (
1700 `trans_no` int(11) unsigned NOT NULL default '0',
1701 `type` smallint(6) unsigned NOT NULL default '0',
1702 `supplier_id` int(11) unsigned default NULL,
1703 `reference` tinytext NOT NULL,
1704 `supp_reference` varchar(60) NOT NULL default '',
1705 `tran_date` date NOT NULL default '0000-00-00',
1706 `due_date` date NOT NULL default '0000-00-00',
1707 `ov_amount` double NOT NULL default '0',
1708 `ov_discount` double NOT NULL default '0',
1709 `ov_gst` double NOT NULL default '0',
1710 `rate` double NOT NULL default '1',
1711 `alloc` double NOT NULL default '0',
1712 PRIMARY KEY (`type`, `trans_no`),
1713 KEY `supplier_id` (`supplier_id`),
1714 KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
1715 KEY `type` (`type`),
1720 ### Data of table `0_supp_trans` ###
1722 INSERT INTO `0_supp_trans` VALUES ('4', '22', '2', '1', '', '2009-06-21', '2009-06-21', '-3465', '0', '0', '1', '3465');
1723 INSERT INTO `0_supp_trans` VALUES ('7', '20', '2', '1', '5t', '2009-06-21', '2009-07-01', '3300', '0', '165', '1', '3465');
1724 INSERT INTO `0_supp_trans` VALUES ('8', '20', '2', '2', 'cc', '2009-06-21', '2009-07-01', '20', '0', '0', '1', '0');
1727 ### Structure of table `0_suppliers` ###
1729 DROP TABLE IF EXISTS `0_suppliers`;
1731 CREATE TABLE `0_suppliers` (
1732 `supplier_id` int(11) NOT NULL auto_increment,
1733 `supp_name` varchar(60) NOT NULL default '',
1734 `supp_ref` varchar(30) NOT NULL default '',
1735 `address` tinytext NOT NULL,
1736 `supp_address` tinytext NOT NULL,
1737 `phone` varchar(30) NOT NULL default '',
1738 `phone2` varchar(30) NOT NULL default '',
1739 `fax` varchar(30) NOT NULL default '',
1740 `gst_no` varchar(25) NOT NULL default '',
1741 `contact` varchar(60) NOT NULL default '',
1742 `supp_account_no` varchar(40) NOT NULL default '',
1743 `email` varchar(100) NOT NULL default '',
1744 `website` varchar(100) NOT NULL default '',
1745 `bank_account` varchar(60) NOT NULL default '',
1746 `curr_code` char(3) default NULL,
1747 `payment_terms` int(11) default NULL,
1748 `dimension_id` int(11) default '0',
1749 `dimension2_id` int(11) default '0',
1750 `tax_group_id` int(11) default NULL,
1751 `credit_limit` double NOT NULL default '0',
1752 `purchase_account` varchar(11) default NULL,
1753 `payable_account` varchar(11) default NULL,
1754 `payment_discount_account` varchar(11) default NULL,
1755 `notes` tinytext NOT NULL,
1756 `inactive` tinyint(1) NOT NULL default '0',
1757 PRIMARY KEY (`supplier_id`),
1759 ) TYPE=MyISAM AUTO_INCREMENT=4 ;
1762 ### Data of table `0_suppliers` ###
1764 INSERT INTO `0_suppliers` VALUES ('1', 'Junk Beer ApS', 'Junk Beer', 'Mailing 1\r\nMailing 2\r\nMailing 3', 'Address 1\r\nAddress 2\r\nAddress 3', '+45 55667788', '', '', '123456', 'Contact', '111', '', '', '', 'DKK', '3', '1', '0', '2', '1', '5010', '2100', '5060', 'A supplier with junk beers.', '0');
1765 INSERT INTO `0_suppliers` VALUES ('2', 'Lucky Luke Inc.', 'Lucky Luke', 'Mailing 1\r\nMailing 2\r\nMailing 3', 'Address 1\r\nAddress 2\r\nAddress 3', '(111) 222.333.444', '', '', '654321', 'Luke', '333', '', '', '', 'USD', '3', '0', '0', '1', '1', '5010', '2100', '5060', '', '0');
1766 INSERT INTO `0_suppliers` VALUES ('3', 'Money Makers Ltd.', 'Money Makers', 'Mailing 1\r\nMailing 2\r\nMailing 3', 'Address 1\r\nAddress 2\r\nAddress 3', '+44 444 555 666', '', '', '987654', 'Makers', '222', '', '', '', 'GBP', '3', '0', '0', '2', '1', '5010', '2100', '5060', '', '0');
1768 ### Structure of table `0_sys_prefs` ###
1770 DROP TABLE IF EXISTS `0_sys_prefs`;
1772 CREATE TABLE `0_sys_prefs` (
1773 `name` varchar(35) NOT NULL default '',
1774 `category` varchar(30) default NULL,
1775 `type` varchar(20) NOT NULL default 'varchar',
1776 `length` smallint(6) default NULL,
1778 PRIMARY KEY (`name`),
1779 KEY `category` (`category`)
1783 ### Data of table `0_sys_prefs` ###
1785 INSERT INTO `0_sys_prefs` VALUES ('coy_name', 'setup.company', 'varchar', '60', 'Training Co.');
1786 INSERT INTO `0_sys_prefs` VALUES ('gst_no', 'setup.company', 'varchar', '25', '9876543');
1787 INSERT INTO `0_sys_prefs` VALUES ('coy_no', 'setup.company', 'varchar', '25', '123456789');
1788 INSERT INTO `0_sys_prefs` VALUES ('tax_prd', 'setup.company', 'int', '11', '1');
1789 INSERT INTO `0_sys_prefs` VALUES ('tax_last', 'setup.company', 'int', '11', '1');
1790 INSERT INTO `0_sys_prefs` VALUES ('postal_address', 'setup.company', 'tinytext', '0', 'Address 1\r\nAddress 2\r\nAddress 3');
1791 INSERT INTO `0_sys_prefs` VALUES ('phone', 'setup.company', 'varchar', '30', '(222) 111.222.333');
1792 INSERT INTO `0_sys_prefs` VALUES ('fax', 'setup.company', 'varchar', '30', NULL);
1793 INSERT INTO `0_sys_prefs` VALUES ('email', 'setup.company', 'varchar', '100', 'delta@delta.com');
1794 INSERT INTO `0_sys_prefs` VALUES ('coy_logo', 'setup.company', 'varchar', '100', 'logo_frontaccounting.jpg');
1795 INSERT INTO `0_sys_prefs` VALUES ('domicile', 'setup.company', 'varchar', '55', NULL);
1796 INSERT INTO `0_sys_prefs` VALUES ('curr_default', 'setup.company', 'char', '3', 'USD');
1797 INSERT INTO `0_sys_prefs` VALUES ('use_dimension', 'setup.company', 'tinyint', '1', '1');
1798 INSERT INTO `0_sys_prefs` VALUES ('f_year', 'setup.company', 'int', '11', '2');
1799 INSERT INTO `0_sys_prefs` VALUES ('no_item_list', 'setup.company', 'tinyint', '1', '0');
1800 INSERT INTO `0_sys_prefs` VALUES ('no_customer_list', 'setup.company', 'tinyint', '1', '0');
1801 INSERT INTO `0_sys_prefs` VALUES ('no_supplier_list', 'setup.company', 'tinyint', '1', '0');
1802 INSERT INTO `0_sys_prefs` VALUES ('base_sales', 'setup.company', 'int', '11', '1');
1803 INSERT INTO `0_sys_prefs` VALUES ('time_zone', 'setup.company', 'tinyint', '1', '0');
1804 INSERT INTO `0_sys_prefs` VALUES ('add_pct', 'setup.company', 'int', '5', '-1');
1805 INSERT INTO `0_sys_prefs` VALUES ('round_to', 'setup.company', 'int', '5', '1');
1806 INSERT INTO `0_sys_prefs` VALUES ('login_tout', 'setup.company', 'smallint', '6', '600');
1807 INSERT INTO `0_sys_prefs` VALUES ('past_due_days', 'glsetup.general', 'int', '11', '30');
1808 INSERT INTO `0_sys_prefs` VALUES ('profit_loss_year_act', 'glsetup.general', 'varchar', '11', '9990');
1809 INSERT INTO `0_sys_prefs` VALUES ('retained_earnings_act', 'glsetup.general', 'varchar', '11', '3590');
1810 INSERT INTO `0_sys_prefs` VALUES ('bank_charge_act', 'glsetup.general', 'varchar', '11', '5690');
1811 INSERT INTO `0_sys_prefs` VALUES ('exchange_diff_act', 'glsetup.general', 'varchar', '11', '4450');
1812 INSERT INTO `0_sys_prefs` VALUES ('default_credit_limit', 'glsetup.customer', 'int', '11', '1000');
1813 INSERT INTO `0_sys_prefs` VALUES ('accumulate_shipping', 'glsetup.customer', 'tinyint', '1', '0');
1814 INSERT INTO `0_sys_prefs` VALUES ('legal_text', 'glsetup.customer', 'tinytext', '0', NULL);
1815 INSERT INTO `0_sys_prefs` VALUES ('freight_act', 'glsetup.customer', 'varchar', '11', '4430');
1816 INSERT INTO `0_sys_prefs` VALUES ('debtors_act', 'glsetup.sales', 'varchar', '11', '1200');
1817 INSERT INTO `0_sys_prefs` VALUES ('default_sales_act', 'glsetup.sales', 'varchar', '11', '4010');
1818 INSERT INTO `0_sys_prefs` VALUES ('default_sales_discount_act', 'glsetup.sales', 'varchar', '11', '4510');
1819 INSERT INTO `0_sys_prefs` VALUES ('default_prompt_payment_act', 'glsetup.sales', 'varchar', '11', '4500');
1820 INSERT INTO `0_sys_prefs` VALUES ('default_delivery_required', 'glsetup.sales', 'smallint', '6', '1');
1821 INSERT INTO `0_sys_prefs` VALUES ('default_dim_required', 'glsetup.dims', 'int', '11', '20');
1822 INSERT INTO `0_sys_prefs` VALUES ('pyt_discount_act', 'glsetup.purchase', 'varchar', '11', '5060');
1823 INSERT INTO `0_sys_prefs` VALUES ('creditors_act', 'glsetup.purchase', 'varchar', '11', '2100');
1824 INSERT INTO `0_sys_prefs` VALUES ('po_over_receive', 'glsetup.purchase', 'int', '11', '10');
1825 INSERT INTO `0_sys_prefs` VALUES ('po_over_charge', 'glsetup.purchase', 'int', '11', '10');
1826 INSERT INTO `0_sys_prefs` VALUES ('allow_negative_stock', 'glsetup.inventory', 'tinyint', '1', '0');
1827 INSERT INTO `0_sys_prefs` VALUES ('default_inventory_act', 'glsetup.items', 'varchar', '11', '1510');
1828 INSERT INTO `0_sys_prefs` VALUES ('default_cogs_act', 'glsetup.items', 'varchar', '11', '5010');
1829 INSERT INTO `0_sys_prefs` VALUES ('default_adj_act', 'glsetup.items', 'varchar', '11', '5040');
1830 INSERT INTO `0_sys_prefs` VALUES ('default_inv_sales_act', 'glsetup.items', 'varchar', '11', '4010');
1831 INSERT INTO `0_sys_prefs` VALUES ('default_assembly_act', 'glsetup.items', 'varchar', '11', '1530');
1832 INSERT INTO `0_sys_prefs` VALUES ('default_workorder_required', 'glsetup.manuf', 'int', '11', '20');
1833 INSERT INTO `0_sys_prefs` VALUES ('version_id', 'system', 'varchar', '11', '2.3');
1837 ### Structure of table `0_sys_types` ###
1839 DROP TABLE IF EXISTS `0_sys_types`;
1841 CREATE TABLE `0_sys_types` (
1842 `type_id` smallint(6) NOT NULL default '0',
1843 `type_no` int(11) NOT NULL default '1',
1844 `next_reference` varchar(100) NOT NULL default '',
1845 PRIMARY KEY (`type_id`)
1849 ### Data of table `0_sys_types` ###
1851 INSERT INTO `0_sys_types` VALUES ('0', '19', '3');
1852 INSERT INTO `0_sys_types` VALUES ('1', '8', '2');
1853 INSERT INTO `0_sys_types` VALUES ('2', '5', '2');
1854 INSERT INTO `0_sys_types` VALUES ('4', '3', '1');
1855 INSERT INTO `0_sys_types` VALUES ('10', '19', '4');
1856 INSERT INTO `0_sys_types` VALUES ('11', '3', '2');
1857 INSERT INTO `0_sys_types` VALUES ('12', '6', '1');
1858 INSERT INTO `0_sys_types` VALUES ('13', '5', '2');
1859 INSERT INTO `0_sys_types` VALUES ('16', '2', '1');
1860 INSERT INTO `0_sys_types` VALUES ('17', '2', '1');
1861 INSERT INTO `0_sys_types` VALUES ('18', '1', '3');
1862 INSERT INTO `0_sys_types` VALUES ('20', '8', '3');
1863 INSERT INTO `0_sys_types` VALUES ('21', '1', '1');
1864 INSERT INTO `0_sys_types` VALUES ('22', '4', '2');
1865 INSERT INTO `0_sys_types` VALUES ('25', '1', '2');
1866 INSERT INTO `0_sys_types` VALUES ('26', '1', '8');
1867 INSERT INTO `0_sys_types` VALUES ('28', '1', '1');
1868 INSERT INTO `0_sys_types` VALUES ('29', '1', '2');
1869 INSERT INTO `0_sys_types` VALUES ('30', '5', '6');
1870 INSERT INTO `0_sys_types` VALUES ('32', '0', '1');
1871 INSERT INTO `0_sys_types` VALUES ('35', '1', '1');
1872 INSERT INTO `0_sys_types` VALUES ('40', '1', '3');
1875 ### Structure of table `0_tax_group_items` ###
1877 DROP TABLE IF EXISTS `0_tax_group_items`;
1879 CREATE TABLE `0_tax_group_items` (
1880 `tax_group_id` int(11) NOT NULL default '0',
1881 `tax_type_id` int(11) NOT NULL default '0',
1882 `rate` double NOT NULL default '0',
1883 PRIMARY KEY (`tax_group_id`,`tax_type_id`)
1887 ### Data of table `0_tax_group_items` ###
1889 INSERT INTO `0_tax_group_items` VALUES ('1', '1', '5');
1892 ### Structure of table `0_tax_groups` ###
1894 DROP TABLE IF EXISTS `0_tax_groups`;
1896 CREATE TABLE `0_tax_groups` (
1897 `id` int(11) NOT NULL auto_increment,
1898 `name` varchar(60) NOT NULL default '',
1899 `tax_shipping` tinyint(1) NOT NULL default '0',
1900 `inactive` tinyint(1) NOT NULL default '0',
1902 UNIQUE KEY `name` (`name`)
1903 ) TYPE=InnoDB AUTO_INCREMENT=3 ;
1906 ### Data of table `0_tax_groups` ###
1908 INSERT INTO `0_tax_groups` VALUES ('1', 'Tax', '0', '0');
1909 INSERT INTO `0_tax_groups` VALUES ('2', 'Tax Exempt', '0', '0');
1911 ### Structure of table `0_tax_types` ###
1913 DROP TABLE IF EXISTS `0_tax_types`;
1915 CREATE TABLE `0_tax_types` (
1916 `id` int(11) NOT NULL auto_increment,
1917 `rate` double NOT NULL default '0',
1918 `sales_gl_code` varchar(11) NOT NULL default '',
1919 `purchasing_gl_code` varchar(11) NOT NULL default '',
1920 `name` varchar(60) NOT NULL default '',
1921 `inactive` tinyint(1) NOT NULL default '0',
1923 ) TYPE=InnoDB AUTO_INCREMENT=5 AUTO_INCREMENT=5 ;
1926 ### Data of table `0_tax_types` ###
1928 INSERT INTO `0_tax_types` VALUES ('1', '5', '2150', '2150', 'Tax', '0');
1930 ### Structure of table `0_trans_tax_details` ###
1932 DROP TABLE IF EXISTS `0_trans_tax_details`;
1934 CREATE TABLE `0_trans_tax_details` (
1935 `id` int(11) NOT NULL auto_increment,
1936 `trans_type` smallint(6) default NULL,
1937 `trans_no` int(11) default NULL,
1938 `tran_date` date NOT NULL,
1939 `tax_type_id` int(11) NOT NULL default '0',
1940 `rate` double NOT NULL default '0',
1941 `ex_rate` double NOT NULL default '1',
1942 `included_in_price` tinyint(1) NOT NULL default '0',
1943 `net_amount` double NOT NULL default '0',
1944 `amount` double NOT NULL default '0',
1947 KEY `Type_and_Number` (`trans_type`,`trans_no`),
1949 ) TYPE=InnoDB AUTO_INCREMENT=12 ;
1952 ### Data of table `0_trans_tax_details` ###
1954 INSERT INTO `0_trans_tax_details` VALUES ('1', '20', '7', '2009-06-21', '1', '5', '1', '0', '3300', '165', '5t');
1955 INSERT INTO `0_trans_tax_details` VALUES ('2', '13', '3', '2009-06-21', '1', '5', '1', '0', '50', '2.5', 'auto');
1956 INSERT INTO `0_trans_tax_details` VALUES ('3', '10', '17', '2009-06-21', '1', '5', '1', '0', '50', '2.5', '1');
1957 INSERT INTO `0_trans_tax_details` VALUES ('4', '13', '4', '2009-06-21', '1', '5', '1.3932', '0', '35.89', '1.7945', 'auto');
1958 INSERT INTO `0_trans_tax_details` VALUES ('5', '10', '18', '2009-06-21', '1', '5', '1.3932', '0', '35.89', '1.7945', '2');
1959 INSERT INTO `0_trans_tax_details` VALUES ('6', '2', '5', '2009-06-21', '1', '5', '1', '0', '95.2', '4.76', '');
1960 INSERT INTO `0_trans_tax_details` VALUES ('7', '1', '8', '2009-06-21', '1', '5', '1', '0', '-47.6', '-2.38', '');
1961 INSERT INTO `0_trans_tax_details` VALUES ('8', '20', '8', '2009-06-21', '1', '5', '1', '0', '-19', '-0.95', 'cc');
1962 INSERT INTO `0_trans_tax_details` VALUES ('9', '13', '5', '2009-06-21', '1', '5', '1', '1', '47.619047619048', '2.3809523809524', 'auto');
1963 INSERT INTO `0_trans_tax_details` VALUES ('10', '10', '19', '2009-06-21', '1', '5', '1', '1', '47.619047619048', '2.3809523809524', '3');
1964 INSERT INTO `0_trans_tax_details` VALUES ('11', '11', '3', '2009-06-21', '1', '5', '1.3932', '0', '35.89', '1.7945', '1');
1966 ### Structure of table `0_users` ###
1968 DROP TABLE IF EXISTS `0_users`;
1970 CREATE TABLE `0_users` (
1971 `id` SMALLINT(6) AUTO_INCREMENT,
1972 `user_id` varchar(60) NOT NULL default '',
1973 `password` varchar(100) NOT NULL default '',
1974 `real_name` varchar(100) NOT NULL default '',
1975 `role_id` int(11) NOT NULL default '1',
1976 `phone` varchar(30) NOT NULL default '',
1977 `email` varchar(100) default NULL,
1978 `language` varchar(20) default NULL,
1979 `date_format` tinyint(1) NOT NULL default '0',
1980 `date_sep` tinyint(1) NOT NULL default '0',
1981 `tho_sep` tinyint(1) NOT NULL default '0',
1982 `dec_sep` tinyint(1) NOT NULL default '0',
1983 `theme` varchar(20) NOT NULL default 'default',
1984 `page_size` varchar(20) NOT NULL default 'A4',
1985 `prices_dec` smallint(6) NOT NULL default '2',
1986 `qty_dec` smallint(6) NOT NULL default '2',
1987 `rates_dec` smallint(6) NOT NULL default '4',
1988 `percent_dec` smallint(6) NOT NULL default '1',
1989 `show_gl` tinyint(1) NOT NULL default '1',
1990 `show_codes` tinyint(1) NOT NULL default '0',
1991 `show_hints` tinyint(1) NOT NULL default '0',
1992 `last_visit_date` datetime default NULL,
1993 `query_size` tinyint(1) default '10',
1994 `graphic_links` tinyint(1) default '1',
1995 `pos` smallint(6) default '1',
1996 `print_profile` varchar(30) NOT NULL default '1',
1997 `rep_popup` tinyint(1) default '1',
1998 `sticky_doc_date` tinyint(1) default '0',
1999 `startup_tab` varchar(20) NOT NULL default '',
2000 `inactive` tinyint(1) NOT NULL default '0',
2002 UNIQUE KEY (`user_id`)
2003 ) TYPE=MyISAM AUTO_INCREMENT=2;
2006 ### Data of table `0_users` ###
2008 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', '2009-01-30 09:39:03', '10', '1', '1', '1', '1', '0', 'orders', '0');
2009 INSERT INTO `0_users` VALUES ('2', 'demouser', '5f4dcc3b5aa765d61d8327deb882cf99', 'Demo User', '9', '999-999-999', 'demo@demo.nu', 'en_US', '0', '0', '0', '0', 'default', 'Letter', '2', '2', '3', '1', '1', '0', '0', '2008-02-06 19:02:35', '10', '1', '1', '1', '1', '0', 'orders', '0');
2011 ### Structure of table `0_voided` ###
2013 DROP TABLE IF EXISTS `0_voided`;
2015 CREATE TABLE `0_voided` (
2016 `type` int(11) NOT NULL default '0',
2017 `id` int(11) NOT NULL default '0',
2018 `date_` date NOT NULL default '0000-00-00',
2019 `memo_` tinytext NOT NULL,
2020 UNIQUE KEY `id` (`type`,`id`)
2024 ### Data of table `0_voided` ###
2028 ### Structure of table `0_wo_issue_items` ###
2030 DROP TABLE IF EXISTS `0_wo_issue_items`;
2032 CREATE TABLE `0_wo_issue_items` (
2033 `id` int(11) NOT NULL auto_increment,
2034 `stock_id` varchar(40) default NULL,
2035 `issue_id` int(11) default NULL,
2036 `qty_issued` double default NULL,
2038 ) TYPE=InnoDB AUTO_INCREMENT=1 ;
2041 ### Data of table `0_wo_issue_items` ###
2045 ### Structure of table `0_wo_issues` ###
2047 DROP TABLE IF EXISTS `0_wo_issues`;
2049 CREATE TABLE `0_wo_issues` (
2050 `issue_no` int(11) NOT NULL auto_increment,
2051 `workorder_id` int(11) NOT NULL default '0',
2052 `reference` varchar(100) default NULL,
2053 `issue_date` date default NULL,
2054 `loc_code` varchar(5) default NULL,
2055 `workcentre_id` int(11) default NULL,
2056 PRIMARY KEY (`issue_no`),
2057 KEY (`workorder_id`)
2058 ) TYPE=InnoDB AUTO_INCREMENT=1 ;
2061 ### Data of table `0_wo_issues` ###
2065 ### Structure of table `0_wo_manufacture` ###
2067 DROP TABLE IF EXISTS `0_wo_manufacture`;
2069 CREATE TABLE `0_wo_manufacture` (
2070 `id` int(11) NOT NULL auto_increment,
2071 `reference` varchar(100) default NULL,
2072 `workorder_id` int(11) NOT NULL default '0',
2073 `quantity` double NOT NULL default '0',
2074 `date_` date NOT NULL default '0000-00-00',
2076 KEY (`workorder_id`)
2077 ) TYPE=InnoDB AUTO_INCREMENT=2 ;
2080 ### Data of table `0_wo_manufacture` ###
2082 INSERT INTO `0_wo_manufacture` VALUES ('1', '1', '2', '2', '2009-06-21');
2085 ### Structure of table `0_wo_requirements` ###
2087 DROP TABLE IF EXISTS `0_wo_requirements`;
2089 CREATE TABLE `0_wo_requirements` (
2090 `id` int(11) NOT NULL auto_increment,
2091 `workorder_id` int(11) NOT NULL default '0',
2092 `stock_id` char(20) NOT NULL default '',
2093 `workcentre` int(11) NOT NULL default '0',
2094 `units_req` double NOT NULL default '1',
2095 `std_cost` double NOT NULL default '0',
2096 `loc_code` char(5) NOT NULL default '',
2097 `units_issued` double NOT NULL default '0',
2099 KEY (`workorder_id`)
2100 ) TYPE=InnoDB AUTO_INCREMENT=22 ;
2103 ### Data of table `0_wo_requirements` ###
2105 INSERT INTO `0_wo_requirements` VALUES ('1', '1', '102', '1', '1', '0', 'DEF', '10');
2106 INSERT INTO `0_wo_requirements` VALUES ('2', '1', '103', '1', '1', '0', 'DEF', '10');
2107 INSERT INTO `0_wo_requirements` VALUES ('3', '1', '104', '1', '1', '0', 'DEF', '10');
2108 INSERT INTO `0_wo_requirements` VALUES ('4', '2', '102', '1', '1', '0', 'DEF', '0');
2109 INSERT INTO `0_wo_requirements` VALUES ('5', '2', '103', '1', '1', '0', 'DEF', '0');
2110 INSERT INTO `0_wo_requirements` VALUES ('6', '2', '104', '1', '1', '0', 'DEF', '0');
2111 INSERT INTO `0_wo_requirements` VALUES ('7', '3', '102', '1', '1', '0', 'DEF', '2');
2112 INSERT INTO `0_wo_requirements` VALUES ('8', '3', '103', '1', '1', '0', 'DEF', '2');
2113 INSERT INTO `0_wo_requirements` VALUES ('9', '3', '104', '1', '1', '0', 'DEF', '2');
2114 INSERT INTO `0_wo_requirements` VALUES ('10', '4', '102', '1', '1', '0', 'DEF', '4');
2115 INSERT INTO `0_wo_requirements` VALUES ('11', '4', '103', '1', '1', '0', 'DEF', '4');
2116 INSERT INTO `0_wo_requirements` VALUES ('12', '4', '104', '1', '1', '0', 'DEF', '4');
2117 INSERT INTO `0_wo_requirements` VALUES ('13', '5', '102', '1', '1', '0', 'DEF', '5');
2118 INSERT INTO `0_wo_requirements` VALUES ('14', '5', '103', '1', '1', '0', 'DEF', '5');
2119 INSERT INTO `0_wo_requirements` VALUES ('15', '5', '104', '1', '1', '0', 'DEF', '5');
2120 INSERT INTO `0_wo_requirements` VALUES ('16', '6', '102', '1', '1', '0', 'DEF', '-5');
2121 INSERT INTO `0_wo_requirements` VALUES ('17', '6', '103', '1', '1', '0', 'DEF', '-5');
2122 INSERT INTO `0_wo_requirements` VALUES ('18', '6', '104', '1', '1', '0', 'DEF', '-5');
2123 INSERT INTO `0_wo_requirements` VALUES ('19', '7', '102', '1', '1', '0', 'DEF', '-2');
2124 INSERT INTO `0_wo_requirements` VALUES ('20', '7', '103', '1', '1', '0', 'DEF', '-2');
2125 INSERT INTO `0_wo_requirements` VALUES ('21', '7', '104', '1', '1', '0', 'DEF', '-2');
2128 ### Structure of table `0_workcentres` ###
2130 DROP TABLE IF EXISTS `0_workcentres`;
2132 CREATE TABLE `0_workcentres` (
2133 `id` int(11) NOT NULL auto_increment,
2134 `name` char(40) NOT NULL default '',
2135 `description` char(50) NOT NULL default '',
2136 `inactive` tinyint(1) NOT NULL default '0',
2138 UNIQUE KEY `name` (`name`)
2139 ) TYPE=MyISAM AUTO_INCREMENT=2 ;
2142 ### Data of table `0_workcentres` ###
2144 INSERT INTO `0_workcentres` VALUES ('1', 'Workshop', 'Workshop in Alabama', '0');
2147 ### Structure of table `0_workorders` ###
2149 DROP TABLE IF EXISTS `0_workorders`;
2151 CREATE TABLE `0_workorders` (
2152 `id` int(11) NOT NULL auto_increment,
2153 `wo_ref` varchar(60) NOT NULL default '',
2154 `loc_code` varchar(5) NOT NULL default '',
2155 `units_reqd` double NOT NULL default '1',
2156 `stock_id` varchar(20) NOT NULL default '',
2157 `date_` date NOT NULL default '0000-00-00',
2158 `type` tinyint(4) NOT NULL default '0',
2159 `required_by` date NOT NULL default '0000-00-00',
2160 `released_date` date NOT NULL default '0000-00-00',
2161 `units_issued` double NOT NULL default '0',
2162 `closed` tinyint(1) NOT NULL default '0',
2163 `released` tinyint(1) NOT NULL default '0',
2164 `additional_costs` double NOT NULL default '0',
2166 UNIQUE KEY `wo_ref` (`wo_ref`)
2167 ) TYPE=InnoDB AUTO_INCREMENT=8 ;
2170 ### Data of table `0_workorders` ###
2172 INSERT INTO `0_workorders` VALUES ('1', '1', 'DEF', '10', '3400', '2009-06-21', '0', '2009-06-21', '2009-06-21', '10', '1', '1', '10');
2173 INSERT INTO `0_workorders` VALUES ('2', '2', 'DEF', '3', '3400', '2009-06-21', '2', '2009-07-11', '2009-06-21', '2', '0', '1', '0');
2174 INSERT INTO `0_workorders` VALUES ('3', '3', 'DEF', '2', '3400', '2009-06-21', '0', '2009-06-21', '2009-06-21', '2', '1', '1', '0');
2175 INSERT INTO `0_workorders` VALUES ('4', '4', 'DEF', '4', '3400', '2009-06-21', '0', '2009-06-21', '2009-06-21', '4', '1', '1', '0');
2176 INSERT INTO `0_workorders` VALUES ('5', '5', 'DEF', '5', '3400', '2009-06-21', '0', '2009-06-21', '2009-06-21', '5', '1', '1', '10');
2177 INSERT INTO `0_workorders` VALUES ('6', '6', 'DEF', '-5', '3400', '2009-06-21', '1', '2009-06-21', '2009-06-21', '-5', '1', '1', '0');
2178 INSERT INTO `0_workorders` VALUES ('7', '7', 'DEF', '-2', '3400', '2009-06-21', '1', '2009-06-21', '2009-06-21', '-2', '1', '1', '10');
2181 ### Structure of table `0_tags` ###
2183 DROP TABLE IF EXISTS `0_tags`;
2185 CREATE TABLE `0_tags` (
2186 `id` int(11) NOT NULL auto_increment,
2187 `type` smallint(6) NOT NULL,
2188 `name` varchar(30) NOT NULL,
2189 `description` varchar(60) default NULL,
2190 `inactive` tinyint(1) NOT NULL default '0',
2192 UNIQUE KEY(`type`,`name`)
2193 ) TYPE=MyISAM AUTO_INCREMENT=1;
2196 ### Data of table `0_chart_tags` ###
2200 ### Structure of table `0_tag_associations` ###
2202 DROP TABLE IF EXISTS `0_tag_associations`;
2204 CREATE TABLE `0_tag_associations` (
2205 `record_id` varchar(11) NOT NULL,
2206 `tag_id` int(11) NOT NULL,
2207 UNIQUE KEY(`record_id`,`tag_id`)
2211 ### Data of table `0_tag_associations` ###
2213 DROP TABLE IF EXISTS `0_useronline` ;
2215 CREATE TABLE `0_useronline` (
2216 `id` int(11) NOT NULL AUTO_INCREMENT ,
2217 `timestamp` int(15) NOT NULL default '0',
2218 `ip` varchar(40) NOT NULL default '',
2219 `file` varchar(100) NOT NULL default '',
2220 PRIMARY KEY `id` (`id`) ,
2223 ) TYPE=MYISAM AUTO_INCREMENT=1;