Release 1.1. Enabled module addons and all the below bugfixes. No changes in database...
[fa-stable.git] / sql / en_US-demo.sql
1 -- phpMyAdmin SQL Dump
2 -- version 2.7.0-pl2
3 -- http://www.phpmyadmin.net
4 -- 
5 -- Host: localhost
6 -- Created: 09 februar 2007 at 10:54
7 -- Server Version: 4.1.11
8 -- PHP-version: 4.4.1
9 -- 
10 -- Database: `en_US-demo`
11 -- 
12
13 -- --------------------------------------------------------
14
15 -- 
16 -- Structure for table `areas`
17 -- 
18
19 DROP TABLE IF EXISTS `0_areas`;
20 CREATE TABLE IF NOT EXISTS `0_areas` (
21   `area_code` int(11) NOT NULL auto_increment,
22   `description` varchar(60) NOT NULL default '',
23   PRIMARY KEY  (`area_code`),
24   UNIQUE KEY `description` (`description`)
25 ) TYPE=MyISAM;
26
27 -- --------------------------------------------------------
28
29 -- 
30 -- Structure for table `bank_accounts`
31 -- 
32
33 DROP TABLE IF EXISTS `0_bank_accounts`;
34 CREATE TABLE IF NOT EXISTS `0_bank_accounts` (
35   `account_code` varchar(11) NOT NULL default '',
36   `account_type` smallint(6) NOT NULL default '0',
37   `bank_account_name` varchar(60) NOT NULL default '',
38   `bank_account_number` varchar(100) NOT NULL default '',
39   `bank_name` varchar(60) NOT NULL default '',
40   `bank_address` tinytext,
41   `bank_curr_code` char(3) NOT NULL default '',
42   PRIMARY KEY  (`account_code`),
43   KEY `bank_account_name` (`bank_account_name`),
44   KEY `bank_account_number` (`bank_account_number`)
45 ) TYPE=MyISAM;
46
47 -- --------------------------------------------------------
48
49 -- 
50 -- Structure for table `bank_trans`
51 -- 
52
53 DROP TABLE IF EXISTS `0_bank_trans`;
54 CREATE TABLE IF NOT EXISTS `0_bank_trans` (
55   `id` int(11) NOT NULL auto_increment,
56   `type` smallint(6) default NULL,
57   `trans_no` int(11) default NULL,
58   `bank_act` varchar(11) default NULL,
59   `ref` varchar(40) default NULL,
60   `trans_date` date NOT NULL default '0000-00-00',
61   `bank_trans_type_id` int(10) unsigned default NULL,
62   `amount` double default NULL,
63   `dimension_id` int(11) NOT NULL default '0',
64   `dimension2_id` int(11) NOT NULL default '0',
65   `person_type_id` int(11) NOT NULL default '0',
66   `person_id` tinyblob,
67   PRIMARY KEY  (`id`),
68   KEY `bank_act` (`bank_act`,`ref`),
69   KEY `type` (`type`,`trans_no`)
70 ) TYPE=InnoDB;
71
72 -- --------------------------------------------------------
73
74 -- 
75 -- Structure for table `bank_trans_types`
76 -- 
77
78 DROP TABLE IF EXISTS `0_bank_trans_types`;
79 CREATE TABLE IF NOT EXISTS `0_bank_trans_types` (
80   `id` int(11) NOT NULL auto_increment,
81   `name` varchar(60) NOT NULL default '',
82   PRIMARY KEY  (`id`),
83   UNIQUE KEY `name` (`name`)
84 ) TYPE=MyISAM;
85
86 -- --------------------------------------------------------
87
88 -- 
89 -- Structure for table `bom`
90 -- 
91
92 DROP TABLE IF EXISTS `0_bom`;
93 CREATE TABLE IF NOT EXISTS `0_bom` (
94   `id` int(11) NOT NULL auto_increment,
95   `parent` char(20) NOT NULL default '',
96   `component` char(20) NOT NULL default '',
97   `workcentre_added` char(5) NOT NULL default '',
98   `loc_code` char(5) NOT NULL default '',
99   `quantity` double NOT NULL default '1',
100   PRIMARY KEY  (`parent`,`component`,`workcentre_added`,`loc_code`),
101   KEY `component` (`component`),
102   KEY `id` (`id`),
103   KEY `loc_code` (`loc_code`),
104   KEY `parent` (`parent`,`loc_code`),
105   KEY `Parent_2` (`parent`),
106   KEY `workcentre_added` (`workcentre_added`)
107 ) TYPE=MyISAM;
108
109 -- --------------------------------------------------------
110
111 -- 
112 -- Structure for table `budget_trans`
113 -- 
114
115 DROP TABLE IF EXISTS `0_budget_trans`;
116 CREATE TABLE IF NOT EXISTS `0_budget_trans` (
117   `counter` int(11) NOT NULL auto_increment,
118   `type` smallint(6) NOT NULL default '0',
119   `type_no` bigint(16) NOT NULL default '1',
120   `tran_date` date NOT NULL default '0000-00-00',
121   `account` varchar(11) NOT NULL default '',
122   `memo_` tinytext NOT NULL,
123   `amount` double NOT NULL default '0',
124   `dimension_id` int(11) default '0',
125   `dimension2_id` int(11) default '0',
126   `person_type_id` int(11) default NULL,
127   `person_id` tinyblob,
128   PRIMARY KEY  (`counter`),
129   KEY `Type_and_Number` (`type`,`type_no`)
130 ) TYPE=InnoDB;
131
132 -- --------------------------------------------------------
133
134 -- 
135 -- Structure for table `chart_class`
136 -- 
137
138 DROP TABLE IF EXISTS `0_chart_class`;
139 CREATE TABLE IF NOT EXISTS `0_chart_class` (
140   `cid` int(11) NOT NULL default '0',
141   `class_name` varchar(60) NOT NULL default '',
142   `balance_sheet` tinyint(1) NOT NULL default '0',
143   PRIMARY KEY  (`cid`)
144 ) TYPE=MyISAM;
145
146 -- --------------------------------------------------------
147
148 -- 
149 -- Structure for table `chart_master`
150 -- 
151
152 DROP TABLE IF EXISTS `0_chart_master`;
153 CREATE TABLE IF NOT EXISTS `0_chart_master` (
154   `account_code` varchar(11) NOT NULL default '',
155   `account_code2` varchar(11) default '',
156   `account_name` varchar(60) NOT NULL default '',
157   `account_type` int(11) NOT NULL default '0',
158   `tax_code` int(11) NOT NULL default '0',
159   PRIMARY KEY  (`account_code`),
160   KEY `account_code` (`account_code`),
161   KEY `account_name` (`account_name`)
162 ) TYPE=MyISAM;
163
164 -- --------------------------------------------------------
165
166 -- 
167 -- Structure for table `chart_types`
168 -- 
169
170 DROP TABLE IF EXISTS `0_chart_types`;
171 CREATE TABLE IF NOT EXISTS `0_chart_types` (
172   `id` int(11) NOT NULL auto_increment,
173   `name` varchar(60) NOT NULL default '',
174   `class_id` tinyint(1) NOT NULL default '0',
175   `parent` int(11) NOT NULL default '-1',
176   PRIMARY KEY  (`id`),
177   UNIQUE KEY `name` (`name`)
178 ) TYPE=MyISAM;
179
180 -- --------------------------------------------------------
181
182 -- 
183 -- Structure for table `comments`
184 -- 
185
186 DROP TABLE IF EXISTS `0_comments`;
187 CREATE TABLE IF NOT EXISTS `0_comments` (
188   `type` int(11) NOT NULL default '0',
189   `id` int(11) NOT NULL default '0',
190   `date_` date default '0000-00-00',
191   `memo_` tinytext
192 ) TYPE=InnoDB;
193
194 -- --------------------------------------------------------
195
196 -- 
197 -- Structure for table `company`
198 -- 
199
200 DROP TABLE IF EXISTS `0_company`;
201 CREATE TABLE IF NOT EXISTS `0_company` (
202   `coy_code` int(11) NOT NULL default '1',
203   `coy_name` varchar(60) NOT NULL default '',
204   `gst_no` varchar(25) NOT NULL default '',
205   `coy_no` varchar(25) NOT NULL default '0',
206   `tax_prd` int(11) NOT NULL default '1',
207   `tax_last` int(11) NOT NULL default '1',
208   `postal_address` tinytext NOT NULL,
209   `phone` varchar(30) NOT NULL default '',
210   `fax` varchar(30) NOT NULL default '',
211   `email` varchar(100) NOT NULL default '',
212   `coy_logo` varchar(100) NOT NULL default '',
213   `domicile` varchar(55) NOT NULL default '',
214   `curr_default` char(3) NOT NULL default '',
215   `debtors_act` varchar(11) NOT NULL default '',
216   `pyt_discount_act` varchar(11) NOT NULL default '',
217   `creditors_act` varchar(11) NOT NULL default '',
218   `grn_act` varchar(11) NOT NULL default '',
219   `exchange_diff_act` varchar(11) NOT NULL default '',
220   `purch_exchange_diff_act` varchar(11) NOT NULL default '',
221   `retained_earnings_act` varchar(11) NOT NULL default '',
222   `freight_act` varchar(11) NOT NULL default '',
223   `default_sales_act` varchar(11) NOT NULL default '',
224   `default_sales_discount_act` varchar(11) NOT NULL default '',
225   `default_prompt_payment_act` varchar(11) NOT NULL default '',
226   `default_inventory_act` varchar(11) NOT NULL default '',
227   `default_cogs_act` varchar(11) NOT NULL default '',
228   `default_adj_act` varchar(11) NOT NULL default '',
229   `default_inv_sales_act` varchar(11) NOT NULL default '',
230   `default_assembly_act` varchar(11) NOT NULL default '',
231   `payroll_act` varchar(11) NOT NULL default '',
232   `custom1_name` varchar(60) NOT NULL default '',
233   `custom2_name` varchar(60) NOT NULL default '',
234   `custom3_name` varchar(60) NOT NULL default '',
235   `custom1_value` varchar(100) NOT NULL default '',
236   `custom2_value` varchar(100) NOT NULL default '',
237   `custom3_value` varchar(100) NOT NULL default '',
238   `allow_negative_stock` tinyint(1) NOT NULL default '0',
239   `po_over_receive` int(11) NOT NULL default '10',
240   `po_over_charge` int(11) NOT NULL default '10',
241   `default_credit_limit` int(11) NOT NULL default '1000',
242   `default_workorder_required` int(11) NOT NULL default '20',
243   `default_dim_required` int(11) NOT NULL default '20',
244   `past_due_days` int(11) NOT NULL default '30',
245   `use_dimension` tinyint(1) default '0',
246   `f_year` int(11) NOT NULL default '1',
247   PRIMARY KEY  (`coy_code`)
248 ) TYPE=MyISAM;
249
250 -- --------------------------------------------------------
251
252 -- 
253 -- Structure for table `credit_status`
254 -- 
255
256 DROP TABLE IF EXISTS `0_credit_status`;
257 CREATE TABLE IF NOT EXISTS `0_credit_status` (
258   `id` int(11) NOT NULL auto_increment,
259   `reason_description` char(100) NOT NULL default '',
260   `dissallow_invoices` tinyint(1) NOT NULL default '0',
261   PRIMARY KEY  (`id`),
262   UNIQUE KEY `reason_description` (`reason_description`)
263 ) TYPE=MyISAM;
264
265 -- --------------------------------------------------------
266
267 -- 
268 -- Structure for table `currencies`
269 -- 
270
271 DROP TABLE IF EXISTS `0_currencies`;
272 CREATE TABLE IF NOT EXISTS `0_currencies` (
273   `currency` varchar(60) NOT NULL default '',
274   `curr_abrev` char(3) NOT NULL default '',
275   `curr_symbol` varchar(10) NOT NULL default '',
276   `country` varchar(100) NOT NULL default '',
277   `hundreds_name` varchar(15) NOT NULL default '',
278   PRIMARY KEY  (`curr_abrev`)
279 ) TYPE=MyISAM;
280
281 -- --------------------------------------------------------
282
283 -- 
284 -- Structure for table `cust_allocations`
285 -- 
286
287 DROP TABLE IF EXISTS `0_cust_allocations`;
288 CREATE TABLE IF NOT EXISTS `0_cust_allocations` (
289   `id` int(11) NOT NULL auto_increment,
290   `amt` double unsigned default NULL,
291   `date_alloc` date NOT NULL default '0000-00-00',
292   `trans_no_from` int(11) default NULL,
293   `trans_type_from` int(11) default NULL,
294   `trans_no_to` int(11) default NULL,
295   `trans_type_to` int(11) default NULL,
296   PRIMARY KEY  (`id`)
297 ) TYPE=InnoDB;
298
299 -- --------------------------------------------------------
300
301 -- 
302 -- Structure for table `cust_branch`
303 -- 
304
305 DROP TABLE IF EXISTS `0_cust_branch`;
306 CREATE TABLE IF NOT EXISTS `0_cust_branch` (
307   `branch_code` int(11) NOT NULL auto_increment,
308   `debtor_no` int(11) NOT NULL default '0',
309   `br_name` varchar(60) NOT NULL default '',
310   `br_address` tinytext NOT NULL,
311   `area` int(11) default NULL,
312   `salesman` int(11) NOT NULL default '0',
313   `phone` varchar(30) NOT NULL default '',
314   `fax` varchar(30) NOT NULL default '',
315   `contact_name` varchar(60) NOT NULL default '',
316   `email` varchar(100) NOT NULL default '',
317   `default_location` varchar(5) NOT NULL default '',
318   `tax_group_id` int(11) default NULL,
319   `sales_account` varchar(11) default NULL,
320   `sales_discount_account` varchar(11) default NULL,
321   `receivables_account` varchar(11) default NULL,
322   `payment_discount_account` varchar(11) default NULL,
323   `default_ship_via` int(11) NOT NULL default '1',
324   `disable_trans` tinyint(4) NOT NULL default '0',
325   `br_post_address` tinytext NOT NULL,
326   PRIMARY KEY  (`branch_code`,`debtor_no`),
327   KEY `branch_code` (`branch_code`),
328   KEY `br_name` (`br_name`)
329 ) TYPE=MyISAM;
330
331 -- --------------------------------------------------------
332
333 -- 
334 -- Structure for table `debtor_trans`
335 -- 
336
337 DROP TABLE IF EXISTS `0_debtor_trans`;
338 CREATE TABLE IF NOT EXISTS `0_debtor_trans` (
339   `trans_no` int(11) unsigned NOT NULL default '0',
340   `type` smallint(6) unsigned NOT NULL default '0',
341   `debtor_no` int(11) unsigned default NULL,
342   `branch_code` int(11) NOT NULL default '-1',
343   `tran_date` date NOT NULL default '0000-00-00',
344   `due_date` date NOT NULL default '0000-00-00',
345   `reference` varchar(60) NOT NULL default '',
346   `tpe` int(11) NOT NULL default '0',
347   `order_` int(11) NOT NULL default '0',
348   `ov_amount` double NOT NULL default '0',
349   `ov_gst` double NOT NULL default '0',
350   `ov_freight` double NOT NULL default '0',
351   `ov_discount` double NOT NULL default '0',
352   `alloc` double NOT NULL default '0',
353   `rate` double NOT NULL default '1',
354   `ship_via` int(11) default NULL,
355   PRIMARY KEY  (`trans_no`,`type`),
356   KEY `debtor_no` (`debtor_no`,`branch_code`)
357 ) TYPE=InnoDB;
358
359 -- --------------------------------------------------------
360
361 -- 
362 -- Structure for table `debtor_trans_details`
363 -- 
364
365 DROP TABLE IF EXISTS `0_debtor_trans_details`;
366 CREATE TABLE IF NOT EXISTS `0_debtor_trans_details` (
367   `id` int(11) NOT NULL auto_increment,
368   `debtor_trans_no` int(11) default NULL,
369   `debtor_trans_type` int(11) default NULL,
370   `stock_id` varchar(20) NOT NULL default '',
371   `description` tinytext,
372   `unit_price` double NOT NULL default '0',
373   `unit_tax` double NOT NULL default '0',
374   `quantity` double NOT NULL default '0',
375   `discount_percent` double NOT NULL default '0',
376   `standard_cost` double NOT NULL default '0',
377   PRIMARY KEY  (`id`)
378 ) TYPE=InnoDB;
379
380 -- --------------------------------------------------------
381
382 -- 
383 -- Structure for table `debtor_trans_tax_details`
384 -- 
385
386 DROP TABLE IF EXISTS `0_debtor_trans_tax_details`;
387 CREATE TABLE IF NOT EXISTS `0_debtor_trans_tax_details` (
388   `id` int(11) NOT NULL auto_increment,
389   `debtor_trans_no` int(11) default NULL,
390   `debtor_trans_type` int(11) default NULL,
391   `tax_type_id` int(11) NOT NULL default '0',
392   `tax_type_name` varchar(60) default NULL,
393   `rate` double NOT NULL default '0',
394   `included_in_price` tinyint(1) NOT NULL default '0',
395   `amount` double NOT NULL default '0',
396   PRIMARY KEY  (`id`)
397 ) TYPE=InnoDB;
398
399 -- --------------------------------------------------------
400
401 -- 
402 -- Structure for table `debtors_master`
403 -- 
404
405 DROP TABLE IF EXISTS `0_debtors_master`;
406 CREATE TABLE IF NOT EXISTS `0_debtors_master` (
407   `debtor_no` int(11) NOT NULL auto_increment,
408   `name` varchar(60) NOT NULL default '',
409   `address` tinytext,
410   `email` varchar(100) NOT NULL default '',
411   `tax_id` varchar(55) NOT NULL default '',
412   `curr_code` char(3) NOT NULL default '',
413   `sales_type` int(11) NOT NULL default '1',
414   `dimension_id` int(11) NOT NULL default '0',
415   `dimension2_id` int(11) NOT NULL default '0',
416   `credit_status` int(11) NOT NULL default '0',
417   `payment_terms` int(11) default NULL,
418   `discount` double NOT NULL default '0',
419   `pymt_discount` double NOT NULL default '0',
420   `credit_limit` float NOT NULL default '1000',
421   PRIMARY KEY  (`debtor_no`),
422   UNIQUE KEY `name` (`name`)
423 ) TYPE=MyISAM;
424
425 -- --------------------------------------------------------
426
427 -- 
428 -- Structure for table `dimensions`
429 -- 
430
431 DROP TABLE IF EXISTS `0_dimensions`;
432 CREATE TABLE IF NOT EXISTS `0_dimensions` (
433   `id` int(11) NOT NULL auto_increment,
434   `reference` varchar(60) NOT NULL default '',
435   `name` varchar(60) NOT NULL default '',
436   `type_` tinyint(1) NOT NULL default '1',
437   `closed` tinyint(1) NOT NULL default '0',
438   `date_` date NOT NULL default '0000-00-00',
439   `due_date` date NOT NULL default '0000-00-00',
440   PRIMARY KEY  (`id`),
441   UNIQUE KEY `reference` (`reference`)
442 ) TYPE=InnoDB;
443
444 -- --------------------------------------------------------
445
446 -- 
447 -- Structure for table `exchange_rates`
448 -- 
449
450 DROP TABLE IF EXISTS `0_exchange_rates`;
451 CREATE TABLE IF NOT EXISTS `0_exchange_rates` (
452   `id` int(11) NOT NULL auto_increment,
453   `curr_code` char(3) NOT NULL default '',
454   `rate_buy` double NOT NULL default '0',
455   `rate_sell` double NOT NULL default '0',
456   `date_` date NOT NULL default '0000-00-00',
457   PRIMARY KEY  (`id`),
458   UNIQUE KEY `curr_code` (`curr_code`,`date_`)
459 ) TYPE=MyISAM;
460
461 -- --------------------------------------------------------
462
463 -- 
464 -- Structure for table `fiscal_year`
465 -- 
466
467 DROP TABLE IF EXISTS `0_fiscal_year`;
468 CREATE TABLE IF NOT EXISTS `0_fiscal_year` (
469   `id` int(11) NOT NULL auto_increment,
470   `begin` date default '0000-00-00',
471   `end` date default '0000-00-00',
472   `closed` tinyint(1) NOT NULL default '0',
473   PRIMARY KEY  (`id`)
474 ) TYPE=InnoDB;
475
476 -- --------------------------------------------------------
477
478 -- 
479 -- Structure for table `form_items`
480 -- 
481
482 DROP TABLE IF EXISTS `0_form_items`;
483 CREATE TABLE IF NOT EXISTS `0_form_items` (
484   `form_id` int(11) NOT NULL default '0',
485   `form_type` int(11) NOT NULL default '0',
486   `trans_type` int(11) NOT NULL default '0',
487   `trans_id` int(11) NOT NULL default '0',
488   `param1` varchar(100) NOT NULL default '',
489   `param2` varchar(100) default NULL,
490   PRIMARY KEY  (`form_id`,`form_type`)
491 ) TYPE=InnoDB;
492
493 -- --------------------------------------------------------
494
495 -- 
496 -- Structure for table `gl_trans`
497 -- 
498
499 DROP TABLE IF EXISTS `0_gl_trans`;
500 CREATE TABLE IF NOT EXISTS `0_gl_trans` (
501   `counter` int(11) NOT NULL auto_increment,
502   `type` smallint(6) NOT NULL default '0',
503   `type_no` bigint(16) NOT NULL default '1',
504   `tran_date` date NOT NULL default '0000-00-00',
505   `account` varchar(11) NOT NULL default '',
506   `memo_` tinytext NOT NULL,
507   `amount` double NOT NULL default '0',
508   `dimension_id` int(11) NOT NULL default '0',
509   `dimension2_id` int(11) NOT NULL default '0',
510   `person_type_id` int(11) default NULL,
511   `person_id` tinyblob,
512   PRIMARY KEY  (`counter`),
513   KEY `Type_and_Number` (`type`,`type_no`)
514 ) TYPE=InnoDB;
515
516 -- --------------------------------------------------------
517
518 -- 
519 -- Structure for table `grn_batch`
520 -- 
521
522 DROP TABLE IF EXISTS `0_grn_batch`;
523 CREATE TABLE IF NOT EXISTS `0_grn_batch` (
524   `id` int(11) NOT NULL auto_increment,
525   `supplier_id` int(11) NOT NULL default '0',
526   `purch_order_no` int(11) default NULL,
527   `reference` varchar(60) NOT NULL default '',
528   `delivery_date` date NOT NULL default '0000-00-00',
529   `loc_code` varchar(5) default NULL,
530   PRIMARY KEY  (`id`)
531 ) TYPE=InnoDB;
532
533 -- --------------------------------------------------------
534
535 -- 
536 -- Structure for table `grn_items`
537 -- 
538
539 DROP TABLE IF EXISTS `0_grn_items`;
540 CREATE TABLE IF NOT EXISTS `0_grn_items` (
541   `id` int(11) NOT NULL auto_increment,
542   `grn_batch_id` int(11) default NULL,
543   `po_detail_item` int(11) NOT NULL default '0',
544   `item_code` varchar(20) NOT NULL default '',
545   `description` tinytext,
546   `qty_recd` double NOT NULL default '0',
547   `quantity_inv` double NOT NULL default '0',
548   PRIMARY KEY  (`id`)
549 ) TYPE=InnoDB;
550
551 -- --------------------------------------------------------
552
553 -- 
554 -- Structure for table `item_tax_type_exemptions`
555 -- 
556
557 DROP TABLE IF EXISTS `0_item_tax_type_exemptions`;
558 CREATE TABLE IF NOT EXISTS `0_item_tax_type_exemptions` (
559   `item_tax_type_id` int(11) NOT NULL default '0',
560   `tax_type_id` int(11) NOT NULL default '0',
561   PRIMARY KEY  (`item_tax_type_id`,`tax_type_id`)
562 ) TYPE=InnoDB;
563
564 -- --------------------------------------------------------
565
566 -- 
567 -- Structure for table `item_tax_types`
568 -- 
569
570 DROP TABLE IF EXISTS `0_item_tax_types`;
571 CREATE TABLE IF NOT EXISTS `0_item_tax_types` (
572   `id` int(11) NOT NULL auto_increment,
573   `name` varchar(60) NOT NULL default '',
574   `exempt` tinyint(1) NOT NULL default '0',
575   PRIMARY KEY  (`id`),
576   UNIQUE KEY `name` (`name`)
577 ) TYPE=InnoDB;
578
579 -- --------------------------------------------------------
580
581 -- 
582 -- Structure for table `loc_stock`
583 -- 
584
585 DROP TABLE IF EXISTS `0_loc_stock`;
586 CREATE TABLE IF NOT EXISTS `0_loc_stock` (
587   `loc_code` char(5) NOT NULL default '',
588   `stock_id` char(20) NOT NULL default '',
589   `reorder_level` bigint(20) NOT NULL default '0',
590   PRIMARY KEY  (`loc_code`,`stock_id`),
591   KEY `stock_id` (`stock_id`)
592 ) TYPE=InnoDB;
593
594 -- --------------------------------------------------------
595
596 -- 
597 -- Structure for table `locations`
598 -- 
599
600 DROP TABLE IF EXISTS `0_locations`;
601 CREATE TABLE IF NOT EXISTS `0_locations` (
602   `loc_code` varchar(5) NOT NULL default '',
603   `location_name` varchar(60) NOT NULL default '',
604   `delivery_address` tinytext NOT NULL,
605   `phone` varchar(30) NOT NULL default '',
606   `fax` varchar(30) NOT NULL default '',
607   `email` varchar(100) NOT NULL default '',
608   `contact` varchar(30) NOT NULL default '',
609   PRIMARY KEY  (`loc_code`)
610 ) TYPE=MyISAM;
611
612 -- --------------------------------------------------------
613
614 -- 
615 -- Structure for table `movement_types`
616 -- 
617
618 DROP TABLE IF EXISTS `0_movement_types`;
619 CREATE TABLE IF NOT EXISTS `0_movement_types` (
620   `id` int(11) NOT NULL auto_increment,
621   `name` varchar(60) NOT NULL default '',
622   PRIMARY KEY  (`id`),
623   UNIQUE KEY `name` (`name`)
624 ) TYPE=MyISAM;
625
626 -- --------------------------------------------------------
627
628 -- 
629 -- Structure for table `payment_terms`
630 -- 
631
632 DROP TABLE IF EXISTS `0_payment_terms`;
633 CREATE TABLE IF NOT EXISTS `0_payment_terms` (
634   `terms_indicator` int(11) NOT NULL auto_increment,
635   `terms` char(80) NOT NULL default '',
636   `days_before_due` smallint(6) NOT NULL default '0',
637   `day_in_following_month` smallint(6) NOT NULL default '0',
638   PRIMARY KEY  (`terms_indicator`),
639   UNIQUE KEY `terms` (`terms`)
640 ) TYPE=MyISAM;
641
642 -- --------------------------------------------------------
643
644 -- 
645 -- Structure for table `prices`
646 -- 
647
648 DROP TABLE IF EXISTS `0_prices`;
649 CREATE TABLE IF NOT EXISTS `0_prices` (
650   `id` int(11) NOT NULL auto_increment,
651   `stock_id` varchar(20) NOT NULL default '',
652   `sales_type_id` int(11) NOT NULL default '0',
653   `curr_abrev` char(3) NOT NULL default '',
654   `price` double NOT NULL default '0',
655   PRIMARY KEY  (`id`),
656   UNIQUE KEY `price` (`stock_id`,`sales_type_id`,`curr_abrev`)
657 ) TYPE=MyISAM;
658
659 -- --------------------------------------------------------
660
661 -- 
662 -- Structure for table `purch_data`
663 -- 
664
665 DROP TABLE IF EXISTS `0_purch_data`;
666 CREATE TABLE IF NOT EXISTS `0_purch_data` (
667   `supplier_id` int(11) NOT NULL default '0',
668   `stock_id` char(20) NOT NULL default '',
669   `price` double NOT NULL default '0',
670   `suppliers_uom` char(50) NOT NULL default '',
671   `conversion_factor` double NOT NULL default '1',
672   `supplier_description` char(50) NOT NULL default '',
673   PRIMARY KEY  (`supplier_id`,`stock_id`)
674 ) TYPE=MyISAM;
675
676 -- --------------------------------------------------------
677
678 -- 
679 -- Structure for table `purch_order_details`
680 -- 
681
682 DROP TABLE IF EXISTS `0_purch_order_details`;
683 CREATE TABLE IF NOT EXISTS `0_purch_order_details` (
684   `po_detail_item` int(11) NOT NULL auto_increment,
685   `order_no` int(11) NOT NULL default '0',
686   `item_code` varchar(20) NOT NULL default '',
687   `description` tinytext,
688   `delivery_date` date NOT NULL default '0000-00-00',
689   `qty_invoiced` double NOT NULL default '0',
690   `unit_price` double NOT NULL default '0',
691   `act_price` double NOT NULL default '0',
692   `std_cost_unit` double NOT NULL default '0',
693   `quantity_ordered` double NOT NULL default '0',
694   `quantity_received` double NOT NULL default '0',
695   PRIMARY KEY  (`po_detail_item`)
696 ) TYPE=InnoDB;
697
698 -- --------------------------------------------------------
699
700 -- 
701 -- Structure for table `purch_orders`
702 -- 
703
704 DROP TABLE IF EXISTS `0_purch_orders`;
705 CREATE TABLE IF NOT EXISTS `0_purch_orders` (
706   `order_no` int(11) NOT NULL auto_increment,
707   `supplier_id` int(11) NOT NULL default '0',
708   `comments` tinytext,
709   `ord_date` date NOT NULL default '0000-00-00',
710   `reference` tinytext NOT NULL,
711   `requisition_no` tinytext,
712   `into_stock_location` varchar(5) NOT NULL default '',
713   `delivery_address` tinytext NOT NULL,
714   PRIMARY KEY  (`order_no`)
715 ) TYPE=InnoDB;
716
717 -- --------------------------------------------------------
718
719 -- 
720 -- Structure for table `refs`
721 -- 
722
723 DROP TABLE IF EXISTS `0_refs`;
724 CREATE TABLE IF NOT EXISTS `0_refs` (
725   `id` int(11) NOT NULL default '0',
726   `type` int(11) NOT NULL default '0',
727   `reference` varchar(100) NOT NULL default '',
728   PRIMARY KEY  (`id`,`type`)
729 ) TYPE=InnoDB;
730
731 -- --------------------------------------------------------
732
733 -- 
734 -- Structure for table `sales_order_details`
735 -- 
736
737 DROP TABLE IF EXISTS `0_sales_order_details`;
738 CREATE TABLE IF NOT EXISTS `0_sales_order_details` (
739   `order_no` int(11) NOT NULL default '0',
740   `stk_code` varchar(20) NOT NULL default '',
741   `description` tinytext,
742   `qty_invoiced` double NOT NULL default '0',
743   `unit_price` double NOT NULL default '0',
744   `quantity` double NOT NULL default '0',
745   `discount_percent` double NOT NULL default '0',
746   PRIMARY KEY  (`order_no`,`stk_code`)
747 ) TYPE=InnoDB;
748
749 -- --------------------------------------------------------
750
751 -- 
752 -- Structure for table `sales_orders`
753 -- 
754
755 DROP TABLE IF EXISTS `0_sales_orders`;
756 CREATE TABLE IF NOT EXISTS `0_sales_orders` (
757   `order_no` int(11) NOT NULL auto_increment,
758   `debtor_no` int(11) NOT NULL default '0',
759   `branch_code` int(11) NOT NULL default '0',
760   `customer_ref` tinytext NOT NULL,
761   `comments` tinytext,
762   `ord_date` date NOT NULL default '0000-00-00',
763   `order_type` int(11) NOT NULL default '0',
764   `ship_via` int(11) NOT NULL default '0',
765   `delivery_address` tinytext NOT NULL,
766   `contact_phone` varchar(30) default NULL,
767   `contact_email` varchar(100) default NULL,
768   `deliver_to` tinytext NOT NULL,
769   `freight_cost` double NOT NULL default '0',
770   `from_stk_loc` varchar(5) NOT NULL default '',
771   `delivery_date` date NOT NULL default '0000-00-00',
772   PRIMARY KEY  (`order_no`)
773 ) TYPE=InnoDB;
774
775 -- --------------------------------------------------------
776
777 -- 
778 -- Structure for table `sales_types`
779 -- 
780
781 DROP TABLE IF EXISTS `0_sales_types`;
782 CREATE TABLE IF NOT EXISTS `0_sales_types` (
783   `id` int(11) NOT NULL auto_increment,
784   `sales_type` char(50) NOT NULL default '',
785   PRIMARY KEY  (`id`),
786   UNIQUE KEY `sales_type` (`sales_type`)
787 ) TYPE=MyISAM;
788
789 -- --------------------------------------------------------
790
791 -- 
792 -- Structure for table `salesman`
793 -- 
794
795 DROP TABLE IF EXISTS `0_salesman`;
796 CREATE TABLE IF NOT EXISTS `0_salesman` (
797   `salesman_code` int(11) NOT NULL auto_increment,
798   `salesman_name` char(60) NOT NULL default '',
799   `salesman_phone` char(30) NOT NULL default '',
800   `salesman_fax` char(30) NOT NULL default '',
801   `salesman_email` varchar(100) NOT NULL default '',
802   PRIMARY KEY  (`salesman_code`),
803   UNIQUE KEY `salesman_name` (`salesman_name`)
804 ) TYPE=MyISAM;
805
806 -- --------------------------------------------------------
807
808 -- 
809 -- Structure for table `shippers`
810 -- 
811
812 DROP TABLE IF EXISTS `0_shippers`;
813 CREATE TABLE IF NOT EXISTS `0_shippers` (
814   `shipper_id` int(11) NOT NULL auto_increment,
815   `shipper_name` varchar(60) NOT NULL default '',
816   `phone` varchar(30) NOT NULL default '',
817   `contact` tinytext NOT NULL,
818   `address` tinytext NOT NULL,
819   PRIMARY KEY  (`shipper_id`),
820   UNIQUE KEY `name` (`shipper_name`)
821 ) TYPE=MyISAM;
822
823 -- --------------------------------------------------------
824
825 -- 
826 -- Structure for table `stock_category`
827 -- 
828
829 DROP TABLE IF EXISTS `0_stock_category`;
830 CREATE TABLE IF NOT EXISTS `0_stock_category` (
831   `category_id` int(11) NOT NULL auto_increment,
832   `description` varchar(60) NOT NULL default '',
833   `stock_act` varchar(11) default NULL,
834   `cogs_act` varchar(11) default NULL,
835   `adj_gl_act` varchar(11) default NULL,
836   `purch_price_var_act` varchar(11) default NULL,
837   PRIMARY KEY  (`category_id`),
838   UNIQUE KEY `description` (`description`)
839 ) TYPE=MyISAM;
840
841 -- --------------------------------------------------------
842
843 -- 
844 -- Structure for table `stock_master`
845 -- 
846
847 DROP TABLE IF EXISTS `0_stock_master`;
848 CREATE TABLE IF NOT EXISTS `0_stock_master` (
849   `stock_id` varchar(20) NOT NULL default '',
850   `category_id` int(11) NOT NULL default '0',
851   `tax_type_id` int(11) NOT NULL default '0',
852   `description` varchar(200) NOT NULL default '',
853   `long_description` tinytext NOT NULL,
854   `units` varchar(20) NOT NULL default 'each',
855   `mb_flag` char(1) NOT NULL default 'B',
856   `sales_account` varchar(11) NOT NULL default '',
857   `cogs_account` varchar(11) NOT NULL default '',
858   `inventory_account` varchar(11) NOT NULL default '',
859   `adjustment_account` varchar(11) NOT NULL default '',
860   `assembly_account` varchar(11) NOT NULL default '',
861   `dimension_id` int(11) default NULL,
862   `dimension2_id` int(11) default NULL,
863   `actual_cost` double NOT NULL default '0',
864   `last_cost` double NOT NULL default '0',
865   `material_cost` double NOT NULL default '0',
866   `labour_cost` double NOT NULL default '0',
867   `overhead_cost` double NOT NULL default '0',
868   PRIMARY KEY  (`stock_id`)
869 ) TYPE=InnoDB;
870
871 -- --------------------------------------------------------
872
873 -- 
874 -- Structure for table `stock_moves`
875 -- 
876
877 DROP TABLE IF EXISTS `0_stock_moves`;
878 CREATE TABLE IF NOT EXISTS `0_stock_moves` (
879   `trans_id` int(11) NOT NULL auto_increment,
880   `trans_no` int(11) NOT NULL default '0',
881   `stock_id` char(20) NOT NULL default '',
882   `type` smallint(6) NOT NULL default '0',
883   `loc_code` char(5) NOT NULL default '',
884   `tran_date` date NOT NULL default '0000-00-00',
885   `person_id` int(11) default NULL,
886   `price` double NOT NULL default '0',
887   `reference` char(40) NOT NULL default '',
888   `qty` double NOT NULL default '1',
889   `discount_percent` double NOT NULL default '0',
890   `standard_cost` double NOT NULL default '0',
891   `visible` tinyint(1) NOT NULL default '1',
892   PRIMARY KEY  (`trans_id`),
893   KEY `type` (`type`,`trans_no`)
894 ) TYPE=InnoDB;
895
896 -- --------------------------------------------------------
897
898 -- 
899 -- Structure for table `supp_allocations`
900 -- 
901
902 DROP TABLE IF EXISTS `0_supp_allocations`;
903 CREATE TABLE IF NOT EXISTS `0_supp_allocations` (
904   `id` int(11) NOT NULL auto_increment,
905   `amt` double unsigned default NULL,
906   `date_alloc` date NOT NULL default '0000-00-00',
907   `trans_no_from` int(11) default NULL,
908   `trans_type_from` int(11) default NULL,
909   `trans_no_to` int(11) default NULL,
910   `trans_type_to` int(11) default NULL,
911   PRIMARY KEY  (`id`)
912 ) TYPE=InnoDB;
913
914 -- --------------------------------------------------------
915
916 -- 
917 -- Structure for table `supp_invoice_items`
918 -- 
919
920 DROP TABLE IF EXISTS `0_supp_invoice_items`;
921 CREATE TABLE IF NOT EXISTS `0_supp_invoice_items` (
922   `id` int(11) NOT NULL auto_increment,
923   `supp_trans_no` int(11) default NULL,
924   `supp_trans_type` int(11) default NULL,
925   `gl_code` int(11) NOT NULL default '0',
926   `grn_item_id` int(11) default NULL,
927   `po_detail_item_id` int(11) default NULL,
928   `stock_id` varchar(20) NOT NULL default '',
929   `description` tinytext,
930   `quantity` double NOT NULL default '0',
931   `unit_price` double NOT NULL default '0',
932   `unit_tax` double NOT NULL default '0',
933   `memo_` tinytext,
934   PRIMARY KEY  (`id`)
935 ) TYPE=InnoDB;
936
937 -- --------------------------------------------------------
938
939 -- 
940 -- Structure for table `supp_invoice_tax_items`
941 -- 
942
943 DROP TABLE IF EXISTS `0_supp_invoice_tax_items`;
944 CREATE TABLE IF NOT EXISTS `0_supp_invoice_tax_items` (
945   `id` int(11) NOT NULL auto_increment,
946   `supp_trans_no` int(11) default NULL,
947   `supp_trans_type` int(11) default NULL,
948   `tax_type_id` int(11) NOT NULL default '0',
949   `tax_type_name` varchar(60) default NULL,
950   `rate` double NOT NULL default '0',
951   `included_in_price` tinyint(1) NOT NULL default '0',
952   `amount` double NOT NULL default '0',
953   PRIMARY KEY  (`id`)
954 ) TYPE=InnoDB;
955
956 -- --------------------------------------------------------
957
958 -- 
959 -- Structure for table `supp_trans`
960 -- 
961
962 DROP TABLE IF EXISTS `0_supp_trans`;
963 CREATE TABLE IF NOT EXISTS `0_supp_trans` (
964   `trans_no` int(11) unsigned NOT NULL default '0',
965   `type` smallint(6) unsigned NOT NULL default '0',
966   `supplier_id` int(11) unsigned default NULL,
967   `reference` tinytext NOT NULL,
968   `supp_reference` varchar(60) NOT NULL default '',
969   `tran_date` date NOT NULL default '0000-00-00',
970   `due_date` date NOT NULL default '0000-00-00',
971   `ov_amount` double NOT NULL default '0',
972   `ov_discount` double NOT NULL default '0',
973   `ov_gst` double NOT NULL default '0',
974   `rate` double NOT NULL default '1',
975   `alloc` double NOT NULL default '0',
976   PRIMARY KEY  (`trans_no`,`type`),
977   KEY `supplier_id` (`supplier_id`),
978   KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
979   KEY `type` (`type`)
980 ) TYPE=InnoDB;
981
982 -- --------------------------------------------------------
983
984 -- 
985 -- Structure for table `suppliers`
986 -- 
987
988 DROP TABLE IF EXISTS `0_suppliers`;
989 CREATE TABLE IF NOT EXISTS `0_suppliers` (
990   `supplier_id` int(11) NOT NULL auto_increment,
991   `supp_name` varchar(60) NOT NULL default '',
992   `address` tinytext NOT NULL,
993   `email` varchar(100) NOT NULL default '',
994   `bank_account` varchar(60) NOT NULL default '',
995   `curr_code` char(3) default NULL,
996   `payment_terms` int(11) default NULL,
997   `dimension_id` int(11) default '0',
998   `dimension2_id` int(11) default '0',
999   `tax_group_id` int(11) default NULL,
1000   `purchase_account` varchar(11) default NULL,
1001   `payable_account` varchar(11) default NULL,
1002   `payment_discount_account` varchar(11) default NULL,
1003   PRIMARY KEY  (`supplier_id`)
1004 ) TYPE=MyISAM;
1005
1006 -- --------------------------------------------------------
1007
1008 -- 
1009 -- Structure for table `sys_types`
1010 -- 
1011
1012 DROP TABLE IF EXISTS `0_sys_types`;
1013 CREATE TABLE IF NOT EXISTS `0_sys_types` (
1014   `type_id` smallint(6) NOT NULL default '0',
1015   `type_name` varchar(60) NOT NULL default '',
1016   `type_no` int(11) NOT NULL default '1',
1017   `next_reference` varchar(100) NOT NULL default '',
1018   PRIMARY KEY  (`type_id`)
1019 ) TYPE=InnoDB;
1020
1021 -- --------------------------------------------------------
1022
1023 -- 
1024 -- Structure for table `tax_group_items`
1025 -- 
1026
1027 DROP TABLE IF EXISTS `0_tax_group_items`;
1028 CREATE TABLE IF NOT EXISTS `0_tax_group_items` (
1029   `tax_group_id` int(11) NOT NULL default '0',
1030   `tax_type_id` int(11) NOT NULL default '0',
1031   `rate` double NOT NULL default '0',
1032   `included_in_price` tinyint(1) NOT NULL default '0',
1033   PRIMARY KEY  (`tax_group_id`,`tax_type_id`)
1034 ) TYPE=InnoDB;
1035
1036 -- --------------------------------------------------------
1037
1038 -- 
1039 -- Structure for table `tax_groups`
1040 -- 
1041
1042 DROP TABLE IF EXISTS `0_tax_groups`;
1043 CREATE TABLE IF NOT EXISTS `0_tax_groups` (
1044   `id` int(11) NOT NULL auto_increment,
1045   `name` varchar(60) NOT NULL default '',
1046   `tax_shipping` tinyint(1) NOT NULL default '0',
1047   PRIMARY KEY  (`id`),
1048   UNIQUE KEY `name` (`name`)
1049 ) TYPE=InnoDB;
1050
1051 -- --------------------------------------------------------
1052
1053 -- 
1054 -- Structure for table `tax_types`
1055 -- 
1056
1057 DROP TABLE IF EXISTS `0_tax_types`;
1058 CREATE TABLE IF NOT EXISTS `0_tax_types` (
1059   `id` int(11) NOT NULL auto_increment,
1060   `rate` double NOT NULL default '0',
1061   `sales_gl_code` varchar(11) NOT NULL default '',
1062   `purchasing_gl_code` varchar(11) NOT NULL default '',
1063   `name` varchar(60) NOT NULL default '',
1064   `out` tinyint(1) NOT NULL default '1',
1065   PRIMARY KEY  (`id`),
1066   UNIQUE KEY `name` (`name`)
1067 ) TYPE=InnoDB;
1068
1069 -- --------------------------------------------------------
1070
1071 -- 
1072 -- Structure for table `users`
1073 -- 
1074
1075 DROP TABLE IF EXISTS `0_users`;
1076 CREATE TABLE IF NOT EXISTS `0_users` (
1077   `user_id` varchar(60) NOT NULL default '',
1078   `password` varchar(100) NOT NULL default '',
1079   `real_name` varchar(100) NOT NULL default '',
1080   `full_access` int(11) NOT NULL default '1',
1081   `phone` varchar(30) NOT NULL default '',
1082   `email` varchar(100) default NULL,
1083   `language` varchar(20) default NULL,
1084   `date_format` tinyint(1) NOT NULL default '0',
1085   `date_sep` tinyint(1) NOT NULL default '0',
1086   `tho_sep` tinyint(1) NOT NULL default '0',
1087   `dec_sep` tinyint(1) NOT NULL default '0',
1088   `theme` varchar(20) NOT NULL default 'default',
1089   `page_size` varchar(20) NOT NULL default 'A4',
1090   `prices_dec` smallint(6) NOT NULL default '2',
1091   `qty_dec` smallint(6) NOT NULL default '2',
1092   `rates_dec` smallint(6) NOT NULL default '4',
1093   `percent_dec` smallint(6) NOT NULL default '1',
1094   `show_gl` tinyint(1) NOT NULL default '1',
1095   `show_codes` tinyint(1) NOT NULL default '0',
1096   `last_visit_date` datetime default NULL,
1097   PRIMARY KEY  (`user_id`)
1098 ) TYPE=MyISAM;
1099
1100 -- --------------------------------------------------------
1101
1102 -- 
1103 -- Structure for table `voided`
1104 -- 
1105
1106 DROP TABLE IF EXISTS `0_voided`;
1107 CREATE TABLE IF NOT EXISTS `0_voided` (
1108   `type` int(11) NOT NULL default '0',
1109   `id` int(11) NOT NULL default '0',
1110   `date_` date NOT NULL default '0000-00-00',
1111   `memo_` tinytext NOT NULL,
1112   UNIQUE KEY `id` (`type`,`id`)
1113 ) TYPE=InnoDB;
1114
1115 -- --------------------------------------------------------
1116
1117 -- 
1118 -- Structure for table `wo_issue_items`
1119 -- 
1120
1121 DROP TABLE IF EXISTS `0_wo_issue_items`;
1122 CREATE TABLE IF NOT EXISTS `0_wo_issue_items` (
1123   `id` int(11) NOT NULL auto_increment,
1124   `stock_id` varchar(40) default NULL,
1125   `issue_id` int(11) default NULL,
1126   `qty_issued` double default NULL,
1127   PRIMARY KEY  (`id`)
1128 ) TYPE=InnoDB;
1129
1130 -- --------------------------------------------------------
1131
1132 -- 
1133 -- Structure for table `wo_issues`
1134 -- 
1135
1136 DROP TABLE IF EXISTS `0_wo_issues`;
1137 CREATE TABLE IF NOT EXISTS `0_wo_issues` (
1138   `issue_no` int(11) NOT NULL auto_increment,
1139   `workorder_id` int(11) NOT NULL default '0',
1140   `reference` varchar(100) default NULL,
1141   `issue_date` date default NULL,
1142   `loc_code` varchar(5) default NULL,
1143   `workcentre_id` int(11) default NULL,
1144   PRIMARY KEY  (`issue_no`)
1145 ) TYPE=InnoDB;
1146
1147 -- --------------------------------------------------------
1148
1149 -- 
1150 -- Structure for table `wo_manufacture`
1151 -- 
1152
1153 DROP TABLE IF EXISTS `0_wo_manufacture`;
1154 CREATE TABLE IF NOT EXISTS `0_wo_manufacture` (
1155   `id` int(11) NOT NULL auto_increment,
1156   `reference` varchar(100) default NULL,
1157   `workorder_id` int(11) NOT NULL default '0',
1158   `quantity` double NOT NULL default '0',
1159   `date_` date NOT NULL default '0000-00-00',
1160   PRIMARY KEY  (`id`)
1161 ) TYPE=InnoDB;
1162
1163 -- --------------------------------------------------------
1164
1165 -- 
1166 -- Structure for table `wo_requirements`
1167 -- 
1168
1169 DROP TABLE IF EXISTS `0_wo_requirements`;
1170 CREATE TABLE IF NOT EXISTS `0_wo_requirements` (
1171   `id` int(11) NOT NULL auto_increment,
1172   `workorder_id` int(11) NOT NULL default '0',
1173   `stock_id` char(20) NOT NULL default '',
1174   `workcentre` char(5) NOT NULL default '',
1175   `units_req` double NOT NULL default '1',
1176   `std_cost` double NOT NULL default '0',
1177   `loc_code` char(5) NOT NULL default '',
1178   `units_issued` double NOT NULL default '0',
1179   PRIMARY KEY  (`id`)
1180 ) TYPE=InnoDB;
1181
1182 -- --------------------------------------------------------
1183
1184 -- 
1185 -- Structure for table `workcentres`
1186 -- 
1187
1188 DROP TABLE IF EXISTS `0_workcentres`;
1189 CREATE TABLE IF NOT EXISTS `0_workcentres` (
1190   `id` int(11) NOT NULL auto_increment,
1191   `name` char(40) NOT NULL default '',
1192   `description` char(50) NOT NULL default '',
1193   PRIMARY KEY  (`id`),
1194   UNIQUE KEY `name` (`name`)
1195 ) TYPE=MyISAM;
1196
1197 -- --------------------------------------------------------
1198
1199 -- 
1200 -- Structure for table `workorders`
1201 -- 
1202
1203 DROP TABLE IF EXISTS `0_workorders`;
1204 CREATE TABLE IF NOT EXISTS `0_workorders` (
1205   `id` int(11) NOT NULL auto_increment,
1206   `wo_ref` varchar(60) NOT NULL default '',
1207   `loc_code` varchar(5) NOT NULL default '',
1208   `units_reqd` double NOT NULL default '1',
1209   `stock_id` varchar(20) NOT NULL default '',
1210   `date_` date NOT NULL default '0000-00-00',
1211   `type` tinyint(4) NOT NULL default '0',
1212   `required_by` date NOT NULL default '0000-00-00',
1213   `released_date` date NOT NULL default '0000-00-00',
1214   `units_issued` double NOT NULL default '0',
1215   `closed` tinyint(1) NOT NULL default '0',
1216   `released` tinyint(1) NOT NULL default '0',
1217   `additional_costs` double NOT NULL default '0',
1218   PRIMARY KEY  (`id`),
1219   UNIQUE KEY `wo_ref` (`wo_ref`)
1220 ) TYPE=InnoDB;
1221
1222 -- --------------------------------------------------------
1223
1224 -- 
1225 -- Data in table `areas`
1226 -- 
1227
1228 INSERT INTO `0_areas` VALUES (1, 'USA');
1229 INSERT INTO `0_areas` VALUES (2, 'Far East');
1230 INSERT INTO `0_areas` VALUES (3, 'Africa');
1231 INSERT INTO `0_areas` VALUES (4, 'Europe');
1232
1233 -- 
1234 -- Data in table `bank_accounts`
1235 -- 
1236
1237 INSERT INTO `0_bank_accounts` VALUES ('1700', 0, 'Current account', 'N/A', 'N/A', '', 'USD');
1238 INSERT INTO `0_bank_accounts` VALUES ('1705', 0, 'Petty Cash account', 'N/A', 'N/A', '', 'USD');
1239 INSERT INTO `0_bank_accounts` VALUES ('1710', 0, 'Saving account', '10001000', 'Saving Bank', '', 'GBP');
1240
1241 -- 
1242 -- Data in table `bank_trans`
1243 -- 
1244
1245 INSERT INTO `0_bank_trans` VALUES (1, 12, 2, '1700', '111', '2006-01-18', 1, 5000, 0, 0, 2, 0x31);
1246 INSERT INTO `0_bank_trans` VALUES (2, 12, 3, '1700', '112', '2006-01-18', 1, 240, 0, 0, 2, 0x32);
1247 INSERT INTO `0_bank_trans` VALUES (3, 12, 4, '1700', '113', '2006-01-18', 1, 360, 0, 0, 2, 0x32);
1248 INSERT INTO `0_bank_trans` VALUES (4, 12, 5, '1700', '114', '2006-01-18', 1, 500, 0, 0, 2, 0x31);
1249 INSERT INTO `0_bank_trans` VALUES (5, 1, 2, '1700', '1', '2006-01-18', 1, -25, 0, 0, 0, '');
1250 INSERT INTO `0_bank_trans` VALUES (6, 1, 3, '1705', '2', '2006-01-18', 1, -250, 0, 0, 0, '');
1251 INSERT INTO `0_bank_trans` VALUES (7, 1, 4, '1700', '3', '2006-01-18', 1, -555, 0, 0, 4, 0x31);
1252 INSERT INTO `0_bank_trans` VALUES (8, 4, 2, '1700', '4', '2006-01-18', 1, -300, 0, 0, 0, '');
1253 INSERT INTO `0_bank_trans` VALUES (9, 4, 2, '1710', '4', '2006-01-18', 1, 250, 0, 0, 0, '');
1254 INSERT INTO `0_bank_trans` VALUES (10, 22, 2, '1700', '1', '2006-01-18', 1, -5000, 0, 0, 3, 0x31);
1255 INSERT INTO `0_bank_trans` VALUES (11, 22, 3, '1710', '2', '2006-01-18', 1, -3300, 0, 0, 3, 0x32);
1256 INSERT INTO `0_bank_trans` VALUES (12, 2, 2, '1700', '11', '2006-01-20', 1, 1050, 0, 0, 0, '');
1257 INSERT INTO `0_bank_trans` VALUES (13, 12, 6, '1700', '115', '2007-01-30', 1, 200, 0, 0, 2, 0x31);
1258 INSERT INTO `0_bank_trans` VALUES (14, 1, 5, '1700', '4', '2007-01-30', 1, -200, 0, 0, 4, 0x31);
1259 INSERT INTO `0_bank_trans` VALUES (15, 2, 3, '1700', '12', '2007-01-30', 3, 70, 0, 0, 4, 0x32);
1260 INSERT INTO `0_bank_trans` VALUES (16, 4, 3, '1700', '5', '2007-03-09', 1, -222, 0, 0, 0, '');
1261 INSERT INTO `0_bank_trans` VALUES (17, 4, 3, '1705', '5', '2007-03-09', 1, 222, 0, 0, 0, '');
1262 INSERT INTO `0_bank_trans` VALUES (18, 2, 4, '1700', '13', '2007-03-09', 3, 200, 0, 0, 2, 0x31);
1263 INSERT INTO `0_bank_trans` VALUES (19, 1, 6, '1700', '5', '2007-03-22', 1, -200, 0, 0, 3, 0x31);
1264 INSERT INTO `0_bank_trans` VALUES (20, 1, 7, '1700', '6', '2007-03-22', 1, -125, 0, 0, 0, 0x67796c6c657472616e73706f7274);
1265
1266 -- 
1267 -- Data in table `bank_trans_types`
1268 -- 
1269
1270 INSERT INTO `0_bank_trans_types` VALUES (1, 'Cash');
1271 INSERT INTO `0_bank_trans_types` VALUES (2, 'Cheque');
1272 INSERT INTO `0_bank_trans_types` VALUES (3, 'Transfer');
1273
1274 -- 
1275 -- Data in table `bom`
1276 -- 
1277
1278 INSERT INTO `0_bom` VALUES (1, '3400', '102', '1', 'DEF', 1);
1279 INSERT INTO `0_bom` VALUES (2, '3400', '103', '1', 'DEF', 1);
1280 INSERT INTO `0_bom` VALUES (3, '3400', '104', '1', 'DEF', 1);
1281 INSERT INTO `0_bom` VALUES (4, '3400', '201', '1', 'DEF', 1);
1282
1283 -- 
1284 -- Data in table `chart_class`
1285 -- 
1286
1287 INSERT INTO `0_chart_class` VALUES (1, 'Assets', 1);
1288 INSERT INTO `0_chart_class` VALUES (2, 'Liabilities', 1);
1289 INSERT INTO `0_chart_class` VALUES (3, 'Income', 0);
1290 INSERT INTO `0_chart_class` VALUES (4, 'Costs', 0);
1291 INSERT INTO `0_chart_class` VALUES (5, 'Gross', 0);
1292
1293 -- 
1294 -- Data in table `chart_master`
1295 -- 
1296
1297 INSERT INTO `0_chart_master` VALUES ('3000', '', 'Sales', 1, 1);
1298 INSERT INTO `0_chart_master` VALUES ('3010', '', 'Sales  - Wholesale', 1, 1);
1299 INSERT INTO `0_chart_master` VALUES ('3020', '', 'Sales of Other items', 1, 1);
1300 INSERT INTO `0_chart_master` VALUES ('3400', '', 'Difference On Exchange', 1, 0);
1301 INSERT INTO `0_chart_master` VALUES ('5000', '', 'Direct Labour', 2, 0);
1302 INSERT INTO `0_chart_master` VALUES ('5050', '', 'Direct Labour Recovery', 2, 0);
1303 INSERT INTO `0_chart_master` VALUES ('4200', '', 'Material Usage Varaiance', 2, 4);
1304 INSERT INTO `0_chart_master` VALUES ('4210', '', 'Consumable Materials', 2, 4);
1305 INSERT INTO `0_chart_master` VALUES ('4220', '', 'Purchase price Variance', 2, 0);
1306 INSERT INTO `0_chart_master` VALUES ('4000', '', 'Purchases of materials', 2, 4);
1307 INSERT INTO `0_chart_master` VALUES ('4250', '', 'Discounts Received', 2, 0);
1308 INSERT INTO `0_chart_master` VALUES ('4260', '', 'Exchange Variation', 2, 0);
1309 INSERT INTO `0_chart_master` VALUES ('4300', '', 'Freight Inwards', 2, 4);
1310 INSERT INTO `0_chart_master` VALUES ('4010', '', 'Cost of Goods Sold - Retail', 2, 4);
1311 INSERT INTO `0_chart_master` VALUES ('6790', '', 'Bank Charges', 5, 4);
1312 INSERT INTO `0_chart_master` VALUES ('6800', '', 'Entertainments', 5, 4);
1313 INSERT INTO `0_chart_master` VALUES ('6810', '', 'Legal Expenses', 5, 4);
1314 INSERT INTO `0_chart_master` VALUES ('6600', '', 'Repairs and Maintenance Office', 5, 4);
1315 INSERT INTO `0_chart_master` VALUES ('6730', '', 'phone', 5, 4);
1316 INSERT INTO `0_chart_master` VALUES ('8200', '', 'Bank Interest', 52, 0);
1317 INSERT INTO `0_chart_master` VALUES ('6840', '', 'Credit Control', 5, 0);
1318 INSERT INTO `0_chart_master` VALUES ('7040', '', 'Depreciation Office Equipment', 51, 0);
1319 INSERT INTO `0_chart_master` VALUES ('3800', '', 'Freight Outwards', 5, 4);
1320 INSERT INTO `0_chart_master` VALUES ('4500', '', 'Packaging', 5, 4);
1321 INSERT INTO `0_chart_master` VALUES ('6400', '', 'Commissions', 5, 0);
1322 INSERT INTO `0_chart_master` VALUES ('3200', '', 'Prompt Payment Discounts', 1, 0);
1323 INSERT INTO `0_chart_master` VALUES ('6700', '', 'General Expenses', 5, 4);
1324 INSERT INTO `0_chart_master` VALUES ('5200', '', 'Indirect Labour', 2, 0);
1325 INSERT INTO `0_chart_master` VALUES ('5210', '', 'Overhead Recovery', 5, 0);
1326 INSERT INTO `0_chart_master` VALUES ('1700', '', 'Bank account', 10, 0);
1327 INSERT INTO `0_chart_master` VALUES ('1705', '', 'Petty Cash', 10, 0);
1328 INSERT INTO `0_chart_master` VALUES ('1710', '', 'Foreign currency account', 10, 0);
1329 INSERT INTO `0_chart_master` VALUES ('1500', '', 'Accounts Receivable', 20, 0);
1330 INSERT INTO `0_chart_master` VALUES ('1400', '', 'Stocks of Raw Materials', 45, 0);
1331 INSERT INTO `0_chart_master` VALUES ('1410', '', 'Stocks of Work In Progress', 45, 0);
1332 INSERT INTO `0_chart_master` VALUES ('1420', '', 'Stocks of Finsihed Goods', 45, 0);
1333 INSERT INTO `0_chart_master` VALUES ('1430', '', 'Goods Received Clearing account', 30, 0);
1334 INSERT INTO `0_chart_master` VALUES ('2630', '', 'Accounts Payable', 30, 0);
1335 INSERT INTO `0_chart_master` VALUES ('2660', '', 'VAT out 5', 30, 0);
1336 INSERT INTO `0_chart_master` VALUES ('2662', '', 'VAT out 1', 30, 0);
1337 INSERT INTO `0_chart_master` VALUES ('2664', '', 'VAT out 25', 30, 0);
1338 INSERT INTO `0_chart_master` VALUES ('2680', '', 'VAT In 5', 30, 0);
1339 INSERT INTO `0_chart_master` VALUES ('2682', '', 'VAT In 25', 30, 0);
1340 INSERT INTO `0_chart_master` VALUES ('2050', '', 'Retained Earnings', 50, 0);
1341 INSERT INTO `0_chart_master` VALUES ('2000', '', 'Share Capital', 50, 0);
1342
1343 -- 
1344 -- Data in table `chart_types`
1345 -- 
1346
1347 INSERT INTO `0_chart_types` VALUES (1, 'Sales', 3, -1);
1348 INSERT INTO `0_chart_types` VALUES (2, 'Cost of Sales', 4, -1);
1349 INSERT INTO `0_chart_types` VALUES (5, 'Expenses', 4, -1);
1350 INSERT INTO `0_chart_types` VALUES (10, 'Cash/Bank', 1, -1);
1351 INSERT INTO `0_chart_types` VALUES (20, 'Accounts Receivable', 1, -1);
1352 INSERT INTO `0_chart_types` VALUES (30, 'Accounts Payable', 2, -1);
1353 INSERT INTO `0_chart_types` VALUES (40, 'Fixed Assets', 1, -1);
1354 INSERT INTO `0_chart_types` VALUES (45, 'Inventory', 1, -1);
1355 INSERT INTO `0_chart_types` VALUES (50, 'Equity', 2, -1);
1356 INSERT INTO `0_chart_types` VALUES (51, 'Depreciations', 4, -1);
1357 INSERT INTO `0_chart_types` VALUES (52, 'Financials', 4, -1);
1358
1359 -- 
1360 -- Data in table `comments`
1361 -- 
1362
1363 INSERT INTO `0_comments` VALUES (17, 2, '2006-01-18', 'initial balances');
1364 INSERT INTO `0_comments` VALUES (10, 6, '2007-01-30', 'Hi there you got it!');
1365 INSERT INTO `0_comments` VALUES (12, 6, '2007-01-30', 'This is good');
1366 INSERT INTO `0_comments` VALUES (1, 5, '2007-01-30', 'Totalgylle');
1367 INSERT INTO `0_comments` VALUES (40, 2, '0000-00-00', 'Gylle projevt');
1368 INSERT INTO `0_comments` VALUES (0, 6, '2007-02-02', 'A big memo');
1369 INSERT INTO `0_comments` VALUES (10, 7, '2007-02-03', 'Another big memo, which looks good.');
1370 INSERT INTO `0_comments` VALUES (4, 3, '2007-03-09', 'A little cash up front.');
1371
1372 -- 
1373 -- Data in table `company`
1374 -- 
1375
1376 INSERT INTO `0_company` VALUES (1, 'Drill Company Inc.', '987654321', '123123123', 1, 1, 'N/A', '202-122320', '202-18889123', 'delta@delta.com', 'logo_frontaccounting.jpg', 'DownTown', 'USD', '1500', '4250', '2630', '1430', '4260', '4220', '2050', '3800', '3000', '3000', '3200', '1420', '4010', '4210', '3000', '1410', '5000', '', '', '', '', '', '', 0, 10, 10, 1000, 20, 20, 30, 1, 2);
1377
1378 -- 
1379 -- Data in table `credit_status`
1380 -- 
1381
1382 INSERT INTO `0_credit_status` VALUES (1, 'Good History', 0);
1383 INSERT INTO `0_credit_status` VALUES (3, 'No more work until payment received', 1);
1384 INSERT INTO `0_credit_status` VALUES (4, 'In liquidation', 1);
1385
1386 -- 
1387 -- Data in table `currencies`
1388 -- 
1389
1390 INSERT INTO `0_currencies` VALUES ('Kronor', 'SEK', 'kr', 'Sweden', '?ren');
1391 INSERT INTO `0_currencies` VALUES ('Kroner', 'DKK', 'kr.', 'Denmark', '?re');
1392 INSERT INTO `0_currencies` VALUES ('Euro', 'EUR', '?', 'Europe', 'Cents');
1393 INSERT INTO `0_currencies` VALUES ('Pounds', 'GBP', '?', 'England', 'Pence');
1394 INSERT INTO `0_currencies` VALUES ('US Dollars', 'USD', '$', 'United States', 'Cents');
1395
1396 -- 
1397 -- Data in table `cust_allocations`
1398 -- 
1399
1400 INSERT INTO `0_cust_allocations` VALUES (1, 200, '2007-01-30', 6, 12, 6, 10);
1401 INSERT INTO `0_cust_allocations` VALUES (4, 133, '2007-03-09', 4, 2, 6, 10);
1402
1403 -- 
1404 -- Data in table `cust_branch`
1405 -- 
1406
1407 INSERT INTO `0_cust_branch` VALUES (1, 1, 'Main', '', 1, 1, '', '', 'Lucky Luke Inc.', 'joe@frontaccounting.com', 'DEF', 2, '3000', '3000', '1500', '3200', 1, 0, 'The Road');
1408 INSERT INTO `0_cust_branch` VALUES (2, 1, 'Branch 2', '', 1, 1, '', '', '', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, 'Another Road');
1409 INSERT INTO `0_cust_branch` VALUES (3, 2, 'Main', '', 1, 1, '', '', 'Money Makers Ltd.', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, '');
1410 INSERT INTO `0_cust_branch` VALUES (4, 2, 'Main', '', 1, 1, '', '', 'Money Makers Ltd.', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, 'UK,UK');
1411 INSERT INTO `0_cust_branch` VALUES (5, 3, 'Main', '', 1, 1, '', '', 'Junk Beer ApS', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, '');
1412
1413 -- 
1414 -- Data in table `debtor_trans`
1415 -- 
1416
1417 INSERT INTO `0_debtor_trans` VALUES (2, 10, 1, 1, '2006-01-18', '2006-01-18', '1', 1, 1, 1750, 0, 0, 0, 0, 1, 1);
1418 INSERT INTO `0_debtor_trans` VALUES (2, 11, 2, 3, '2006-01-18', '0000-00-00', '33', 1, 0, -1050, 0, 0, 0, 0, 1.2, 1);
1419 INSERT INTO `0_debtor_trans` VALUES (2, 12, 1, 1, '2006-01-18', '0000-00-00', '111', 0, 0, -10000, 0, 0, 0, 0, 1, 0);
1420 INSERT INTO `0_debtor_trans` VALUES (3, 10, 1, 1, '2006-01-18', '2006-01-18', '2', 1, 1, 1000, 0, 0, 0, 0, 1, 1);
1421 INSERT INTO `0_debtor_trans` VALUES (3, 12, 2, 3, '2006-01-18', '0000-00-00', '112', 0, 0, -200, 0, 0, 0, 0, 1.2, 0);
1422 INSERT INTO `0_debtor_trans` VALUES (4, 2, 1, 1, '2007-03-09', '0000-00-00', '13', 0, 0, -200, 0, 0, 0, 133, 1, 0);
1423 INSERT INTO `0_debtor_trans` VALUES (4, 10, 2, 3, '2006-01-18', '2006-01-18', '3', 1, 2, 1057.14285714, 52.8571428571, 0, 0, 0, 1.2, 1);
1424 INSERT INTO `0_debtor_trans` VALUES (4, 12, 2, 3, '2006-01-18', '0000-00-00', '113', 0, 0, -300, 0, 0, 0, 0, 1.2, 0);
1425 INSERT INTO `0_debtor_trans` VALUES (5, 10, 1, 1, '2007-01-28', '2007-01-28', '4', 1, 1, 93050, 0, 0, 0, 0, 1, 1);
1426 INSERT INTO `0_debtor_trans` VALUES (5, 12, 1, 1, '2006-01-18', '0000-00-00', '114', 0, 0, -500, 0, 0, 0, 0, 1, 0);
1427 INSERT INTO `0_debtor_trans` VALUES (6, 10, 1, 1, '2007-01-30', '2007-01-30', '5', 1, 3, 333, 0, 0, 0, 333, 1, 1);
1428 INSERT INTO `0_debtor_trans` VALUES (6, 12, 1, 1, '2007-01-30', '0000-00-00', '115', 0, 0, -200, 0, 0, 0, 200, 1, 0);
1429 INSERT INTO `0_debtor_trans` VALUES (7, 10, 1, 1, '2007-02-03', '2007-02-03', '6', 1, 4, 333, 0, 0, 0, 0, 1, 1);
1430 INSERT INTO `0_debtor_trans` VALUES (8, 10, 1, 1, '2007-02-03', '2007-02-03', '7', 1, 5, 333, 0, 0, 0, 0, 1, 1);
1431 INSERT INTO `0_debtor_trans` VALUES (9, 10, 2, 3, '2007-02-03', '2007-02-03', '8', 1, 6, 2857.1428571429, 142.85714285714, 0, 0, 0, 1.2, 1);
1432 INSERT INTO `0_debtor_trans` VALUES (10, 10, 1, 1, '2007-02-04', '2007-02-04', '9', 1, 9, 333, 0, 0, 0, 0, 1, 1);
1433 INSERT INTO `0_debtor_trans` VALUES (11, 10, 1, 1, '2007-02-04', '2007-03-22', '10', 1, 10, 333, 0, 0, 0, 0, 1, 1);
1434 INSERT INTO `0_debtor_trans` VALUES (12, 10, 1, 1, '2007-02-06', '2007-03-22', '11', 1, 11, 333, 0, 0, 0, 0, 1, 1);
1435 INSERT INTO `0_debtor_trans` VALUES (13, 10, 1, 1, '2007-02-25', '2007-03-22', '12', 1, 12, 333, 0, 0, 0, 0, 1, 1);
1436 INSERT INTO `0_debtor_trans` VALUES (14, 10, 1, 1, '2007-03-04', '2007-03-22', '13', 1, 13, 333, 0, 0, 0, 0, 1, 1);
1437 INSERT INTO `0_debtor_trans` VALUES (15, 10, 1, 1, '2007-03-05', '2007-03-22', '14', 1, 14, 333, 0, 25, 0, 0, 1, 1);
1438 INSERT INTO `0_debtor_trans` VALUES (16, 10, 1, 1, '2007-03-05', '2007-03-22', '15', 1, 15, 3000, 0, 44, 0, 0, 1, 1);
1439
1440 -- 
1441 -- Data in table `debtor_trans_details`
1442 -- 
1443
1444 INSERT INTO `0_debtor_trans_details` VALUES (1, 2, 10, '102', '17 inch VGA Monitor', 250, 0, -2, 0, 0);
1445 INSERT INTO `0_debtor_trans_details` VALUES (2, 2, 10, '103', '32MB VGA Card', 3000, 0, -10, 0, 0);
1446 INSERT INTO `0_debtor_trans_details` VALUES (3, 2, 10, '104', '52x CD Drive', 50, 0, -5, 0, 0);
1447 INSERT INTO `0_debtor_trans_details` VALUES (4, 3, 10, '103', '32MB VGA Card', 3000, 0, -10, 0, 0);
1448 INSERT INTO `0_debtor_trans_details` VALUES (5, 2, 11, '102', '17 inch VGA Monitor', 210, 0, 5, 0, 0);
1449 INSERT INTO `0_debtor_trans_details` VALUES (6, 4, 10, '102', '17 inch VGA Monitor', 211.428571429, 10.5714285714, -5, 0, 0);
1450 INSERT INTO `0_debtor_trans_details` VALUES (7, 5, 10, '102', '17 inch VGA Monitor', 250, 0, -8, 0, 0);
1451 INSERT INTO `0_debtor_trans_details` VALUES (8, 5, 10, '103', '32MB VGA Card', 3000, 0, -30, 0, 0);
1452 INSERT INTO `0_debtor_trans_details` VALUES (9, 5, 10, '104', '52x CD Drive', 50, 0, -21, 0, 0);
1453 INSERT INTO `0_debtor_trans_details` VALUES (10, 6, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1454 INSERT INTO `0_debtor_trans_details` VALUES (11, 7, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1455 INSERT INTO `0_debtor_trans_details` VALUES (12, 8, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1456 INSERT INTO `0_debtor_trans_details` VALUES (13, 9, 10, '3400', 'P4 Business System', 2857.1428571429, 142.85714285714, -1, 0, 0);
1457 INSERT INTO `0_debtor_trans_details` VALUES (14, 10, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1458 INSERT INTO `0_debtor_trans_details` VALUES (15, 11, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1459 INSERT INTO `0_debtor_trans_details` VALUES (16, 12, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1460 INSERT INTO `0_debtor_trans_details` VALUES (17, 13, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1461 INSERT INTO `0_debtor_trans_details` VALUES (18, 14, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1462 INSERT INTO `0_debtor_trans_details` VALUES (19, 15, 10, '102', '17 inch VGA Monitor', 333, 0, -1, 0, 0);
1463 INSERT INTO `0_debtor_trans_details` VALUES (20, 16, 10, '103', '32MB VGA Card', 3000, 0, -1, 0, 0);
1464
1465 -- 
1466 -- Data in table `debtor_trans_tax_details`
1467 -- 
1468
1469 INSERT INTO `0_debtor_trans_tax_details` VALUES (1, 4, 10, 1, NULL, 5, 1, 52.8571428571);
1470 INSERT INTO `0_debtor_trans_tax_details` VALUES (2, 9, 10, 1, NULL, 5, 1, 142.85714285714);
1471
1472 -- 
1473 -- Data in table `debtors_master`
1474 -- 
1475
1476 INSERT INTO `0_debtors_master` VALUES (1, 'Lucky Luke Inc.', '35 Waldorf Street\r\nTown 19358, AR', 'joe@frontaccounting.com', '12311231', 'USD', 1, 0, 0, 1, 1, 0, 0, 1000);
1477 INSERT INTO `0_debtors_master` VALUES (2, 'Money Makers Ltd.', 'N/A', '', '9876543', 'GBP', 1, 0, 0, 1, 1, 0, 0, 1000);
1478 INSERT INTO `0_debtors_master` VALUES (3, 'Junk Beer ApS', 'N/A', '', '123321123', 'DKK', 1, 0, 0, 1, 1, 0, 0, 1000);
1479
1480 -- 
1481 -- Data in table `dimensions`
1482 -- 
1483
1484 INSERT INTO `0_dimensions` VALUES (1, '1', 'Development', 1, 0, '2006-01-18', '2006-02-07');
1485 INSERT INTO `0_dimensions` VALUES (2, '2', 'Support', 1, 0, '2006-01-18', '2007-03-07');
1486 INSERT INTO `0_dimensions` VALUES (3, '3', 'Training', 2, 0, '2006-01-18', '2007-03-07');
1487
1488 -- 
1489 -- Data in table `exchange_rates`
1490 -- 
1491
1492 INSERT INTO `0_exchange_rates` VALUES (1, 'LE', 0.149, 0.149, '2006-01-18');
1493 INSERT INTO `0_exchange_rates` VALUES (2, 'GBP', 1.2, 1.2, '2006-01-18');
1494 INSERT INTO `0_exchange_rates` VALUES (3, 'SEK', 0.1667, 0.1667, '2007-01-29');
1495 INSERT INTO `0_exchange_rates` VALUES (4, 'DKK', 0.2, 0.2, '2007-03-05');
1496 INSERT INTO `0_exchange_rates` VALUES (5, 'EUR', 1.1, 1.1, '2007-03-05');
1497
1498 -- 
1499 -- Data in table `fiscal_year`
1500 -- 
1501
1502 INSERT INTO `0_fiscal_year` VALUES (1, '2006-01-01', '2006-12-31', 0);
1503 INSERT INTO `0_fiscal_year` VALUES (2, '2007-01-01', '2007-12-31', 0);
1504 INSERT INTO `0_fiscal_year` VALUES (5, '2005-01-01', '2005-12-31', 1);
1505
1506 -- 
1507 -- Data in table `form_items`
1508 -- 
1509
1510 INSERT INTO `0_form_items` VALUES (1, 10, 10, 2, '', NULL);
1511 INSERT INTO `0_form_items` VALUES (1, 11, 11, 2, '', NULL);
1512 INSERT INTO `0_form_items` VALUES (1, 18, 18, 1, '', NULL);
1513 INSERT INTO `0_form_items` VALUES (1, 26, 26, 1, '', NULL);
1514 INSERT INTO `0_form_items` VALUES (1, 30, 30, 1, '', NULL);
1515 INSERT INTO `0_form_items` VALUES (1, 50, 1, 2, '', NULL);
1516 INSERT INTO `0_form_items` VALUES (1, 51, 12, 2, '', NULL);
1517 INSERT INTO `0_form_items` VALUES (1, 60, 16, 2, 'DEF', NULL);
1518 INSERT INTO `0_form_items` VALUES (1, 61, 17, 2, 'DEF', NULL);
1519 INSERT INTO `0_form_items` VALUES (1, 62, 11, 2, 'DEF', NULL);
1520 INSERT INTO `0_form_items` VALUES (2, 10, 10, 3, '', NULL);
1521 INSERT INTO `0_form_items` VALUES (2, 18, 18, 2, '', NULL);
1522 INSERT INTO `0_form_items` VALUES (2, 26, 26, 2, '', NULL);
1523 INSERT INTO `0_form_items` VALUES (2, 30, 30, 2, '', NULL);
1524 INSERT INTO `0_form_items` VALUES (2, 50, 1, 3, '', NULL);
1525 INSERT INTO `0_form_items` VALUES (2, 51, 12, 3, '', NULL);
1526 INSERT INTO `0_form_items` VALUES (2, 60, 10, 2, 'DEF', NULL);
1527 INSERT INTO `0_form_items` VALUES (2, 61, 16, 2, 'CWA', NULL);
1528 INSERT INTO `0_form_items` VALUES (3, 10, 10, 4, '', NULL);
1529 INSERT INTO `0_form_items` VALUES (3, 18, 18, 3, '', NULL);
1530 INSERT INTO `0_form_items` VALUES (3, 26, 26, 3, '', NULL);
1531 INSERT INTO `0_form_items` VALUES (3, 30, 30, 3, '', '');
1532 INSERT INTO `0_form_items` VALUES (3, 50, 1, 4, '', NULL);
1533 INSERT INTO `0_form_items` VALUES (3, 51, 12, 4, '', NULL);
1534 INSERT INTO `0_form_items` VALUES (3, 60, 10, 3, 'DEF', NULL);
1535 INSERT INTO `0_form_items` VALUES (3, 61, 25, 1, 'DEF', NULL);
1536 INSERT INTO `0_form_items` VALUES (4, 10, 10, 5, '', '');
1537 INSERT INTO `0_form_items` VALUES (4, 18, 18, 4, '', NULL);
1538 INSERT INTO `0_form_items` VALUES (4, 26, 26, 4, '', '');
1539 INSERT INTO `0_form_items` VALUES (4, 30, 30, 4, '', '');
1540 INSERT INTO `0_form_items` VALUES (4, 50, 4, 2, '1700', NULL);
1541 INSERT INTO `0_form_items` VALUES (4, 51, 12, 5, '', NULL);
1542 INSERT INTO `0_form_items` VALUES (4, 60, 10, 4, 'DEF', NULL);
1543 INSERT INTO `0_form_items` VALUES (4, 61, 25, 2, 'DEF', NULL);
1544 INSERT INTO `0_form_items` VALUES (5, 10, 10, 6, '', '');
1545 INSERT INTO `0_form_items` VALUES (5, 18, 18, 5, '', NULL);
1546 INSERT INTO `0_form_items` VALUES (5, 26, 26, 5, '', '');
1547 INSERT INTO `0_form_items` VALUES (5, 30, 30, 5, '', '');
1548 INSERT INTO `0_form_items` VALUES (5, 50, 22, 2, '', NULL);
1549 INSERT INTO `0_form_items` VALUES (5, 51, 4, 2, '1710', NULL);
1550 INSERT INTO `0_form_items` VALUES (5, 60, 28, 1, 'DEF', '');
1551 INSERT INTO `0_form_items` VALUES (5, 61, 25, 3, 'DEF', NULL);
1552 INSERT INTO `0_form_items` VALUES (6, 10, 10, 7, '', '');
1553 INSERT INTO `0_form_items` VALUES (6, 30, 30, 6, '', '');
1554 INSERT INTO `0_form_items` VALUES (6, 50, 22, 3, '', NULL);
1555 INSERT INTO `0_form_items` VALUES (6, 51, 2, 2, '0', 'mr. mgoo');
1556 INSERT INTO `0_form_items` VALUES (6, 60, 10, 5, 'DEF', '');
1557 INSERT INTO `0_form_items` VALUES (6, 61, 29, 1, 'DEF', '');
1558 INSERT INTO `0_form_items` VALUES (7, 10, 10, 8, '', '');
1559 INSERT INTO `0_form_items` VALUES (7, 30, 30, 7, '', '');
1560 INSERT INTO `0_form_items` VALUES (7, 50, 1, 5, '4', '1');
1561 INSERT INTO `0_form_items` VALUES (7, 51, 12, 6, '2', '1');
1562 INSERT INTO `0_form_items` VALUES (7, 60, 10, 6, 'DEF', '');
1563 INSERT INTO `0_form_items` VALUES (7, 61, 29, 2, 'DEF', '');
1564 INSERT INTO `0_form_items` VALUES (8, 10, 10, 9, '', '');
1565 INSERT INTO `0_form_items` VALUES (8, 30, 30, 8, '', '');
1566 INSERT INTO `0_form_items` VALUES (8, 50, 4, 3, '1700', '1705');
1567 INSERT INTO `0_form_items` VALUES (8, 51, 2, 3, '4', '2');
1568 INSERT INTO `0_form_items` VALUES (8, 60, 10, 7, 'DEF', '');
1569 INSERT INTO `0_form_items` VALUES (9, 10, 10, 10, '', '');
1570 INSERT INTO `0_form_items` VALUES (9, 30, 30, 9, '', '');
1571 INSERT INTO `0_form_items` VALUES (9, 50, 1, 6, '3', '1');
1572 INSERT INTO `0_form_items` VALUES (9, 51, 4, 3, '1705', '1700');
1573 INSERT INTO `0_form_items` VALUES (9, 60, 10, 8, 'DEF', '');
1574 INSERT INTO `0_form_items` VALUES (10, 10, 10, 11, '', '');
1575 INSERT INTO `0_form_items` VALUES (10, 30, 30, 10, '', '');
1576 INSERT INTO `0_form_items` VALUES (10, 50, 1, 7, '0', 'gylle transport');
1577 INSERT INTO `0_form_items` VALUES (10, 51, 2, 4, '2', '1');
1578 INSERT INTO `0_form_items` VALUES (10, 60, 10, 9, 'DEF', '');
1579 INSERT INTO `0_form_items` VALUES (11, 10, 10, 12, '', '');
1580 INSERT INTO `0_form_items` VALUES (11, 30, 30, 11, '', '');
1581 INSERT INTO `0_form_items` VALUES (11, 60, 10, 10, 'DEF', '');
1582 INSERT INTO `0_form_items` VALUES (12, 10, 10, 13, '', '');
1583 INSERT INTO `0_form_items` VALUES (12, 30, 30, 12, '', '');
1584 INSERT INTO `0_form_items` VALUES (12, 60, 10, 11, 'DEF', '');
1585 INSERT INTO `0_form_items` VALUES (13, 10, 10, 14, '', '');
1586 INSERT INTO `0_form_items` VALUES (13, 30, 30, 13, '', '');
1587 INSERT INTO `0_form_items` VALUES (13, 60, 10, 12, 'DEF', '');
1588 INSERT INTO `0_form_items` VALUES (14, 10, 10, 15, '', '');
1589 INSERT INTO `0_form_items` VALUES (14, 30, 30, 14, '', '');
1590 INSERT INTO `0_form_items` VALUES (14, 60, 10, 13, 'DEF', '');
1591 INSERT INTO `0_form_items` VALUES (15, 10, 10, 16, '', '');
1592 INSERT INTO `0_form_items` VALUES (15, 30, 30, 15, '', '');
1593 INSERT INTO `0_form_items` VALUES (15, 60, 10, 14, 'DEF', '');
1594 INSERT INTO `0_form_items` VALUES (16, 60, 10, 15, 'DEF', '');
1595 INSERT INTO `0_form_items` VALUES (17, 60, 10, 16, 'DEF', '');
1596
1597 -- 
1598 -- Data in table `gl_trans`
1599 -- 
1600
1601 INSERT INTO `0_gl_trans` VALUES (1, 10, 2, '2006-01-18', '3000', '', -500, 0, 0, 2, 0x31);
1602 INSERT INTO `0_gl_trans` VALUES (2, 10, 2, '2006-01-18', '3000', '', -1000, 0, 0, 2, 0x31);
1603 INSERT INTO `0_gl_trans` VALUES (3, 10, 2, '2006-01-18', '3000', '', -250, 0, 0, 2, 0x31);
1604 INSERT INTO `0_gl_trans` VALUES (4, 10, 2, '2006-01-18', '1500', '', 1750, 0, 0, 2, 0x31);
1605 INSERT INTO `0_gl_trans` VALUES (5, 10, 3, '2006-01-18', '3000', '', -1000, 0, 0, 2, 0x31);
1606 INSERT INTO `0_gl_trans` VALUES (6, 10, 3, '2006-01-18', '1500', '', 1000, 0, 0, 2, 0x31);
1607 INSERT INTO `0_gl_trans` VALUES (7, 12, 2, '2006-01-18', '1700', '', 5000, 0, 0, 2, 0x31);
1608 INSERT INTO `0_gl_trans` VALUES (8, 12, 2, '2006-01-18', '1500', '', -10000, 0, 0, 2, 0x31);
1609 INSERT INTO `0_gl_trans` VALUES (9, 12, 3, '2006-01-18', '1700', '', 240, 0, 0, 2, 0x32);
1610 INSERT INTO `0_gl_trans` VALUES (10, 12, 3, '2006-01-18', '1500', '', -240, 0, 0, 2, 0x32);
1611 INSERT INTO `0_gl_trans` VALUES (11, 12, 4, '2006-01-18', '1700', '', 360, 0, 0, 2, 0x32);
1612 INSERT INTO `0_gl_trans` VALUES (12, 12, 4, '2006-01-18', '1500', '', -360, 0, 0, 2, 0x32);
1613 INSERT INTO `0_gl_trans` VALUES (13, 12, 5, '2006-01-18', '1700', '', 500, 0, 0, 2, 0x31);
1614 INSERT INTO `0_gl_trans` VALUES (14, 12, 5, '2006-01-18', '1500', '', -500, 0, 0, 2, 0x31);
1615 INSERT INTO `0_gl_trans` VALUES (15, 11, 2, '2006-01-18', '3000', '', 1260, 0, 0, 2, 0x32);
1616 INSERT INTO `0_gl_trans` VALUES (16, 11, 2, '2006-01-18', '1500', '', -1260, 0, 0, 2, 0x32);
1617 INSERT INTO `0_gl_trans` VALUES (17, 10, 4, '2006-01-18', '3000', '', -1268.57142857, 0, 0, 2, 0x32);
1618 INSERT INTO `0_gl_trans` VALUES (18, 10, 4, '2006-01-18', '1500', '', 1332, 0, 0, 2, 0x32);
1619 INSERT INTO `0_gl_trans` VALUES (19, 10, 4, '2006-01-18', '2660', '', -63.4285714286, 0, 0, 2, 0x32);
1620 INSERT INTO `0_gl_trans` VALUES (20, 1, 2, '2006-01-18', '1700', '', -25, 0, 0, 0, NULL);
1621 INSERT INTO `0_gl_trans` VALUES (21, 1, 2, '2006-01-18', '6600', '', 10, 0, 0, 0, NULL);
1622 INSERT INTO `0_gl_trans` VALUES (22, 1, 2, '2006-01-18', '6730', '', 15, 0, 0, 0, NULL);
1623 INSERT INTO `0_gl_trans` VALUES (23, 1, 3, '2006-01-18', '1705', '', -250, 0, 0, 0, NULL);
1624 INSERT INTO `0_gl_trans` VALUES (24, 1, 3, '2006-01-18', '6810', '', 3000, 0, 0, 0, NULL);
1625 INSERT INTO `0_gl_trans` VALUES (25, 1, 3, '2006-01-18', '6700', '', 150, 0, 0, 0, NULL);
1626 INSERT INTO `0_gl_trans` VALUES (26, 1, 4, '2006-01-18', '1700', '', -555, 0, 0, 4, 0x31);
1627 INSERT INTO `0_gl_trans` VALUES (27, 1, 4, '2006-01-18', '4500', '', 555, 0, 0, 4, 0x31);
1628 INSERT INTO `0_gl_trans` VALUES (28, 4, 2, '2006-01-18', '1700', '', -300, 0, 0, 0, NULL);
1629 INSERT INTO `0_gl_trans` VALUES (29, 4, 2, '2006-01-18', '1710', '', 300, 0, 0, 0, NULL);
1630 INSERT INTO `0_gl_trans` VALUES (30, 22, 2, '2006-01-18', '2630', '', 5000, 0, 0, 3, 0x31);
1631 INSERT INTO `0_gl_trans` VALUES (31, 22, 2, '2006-01-18', '1700', '', -5000, 0, 0, 3, 0x31);
1632 INSERT INTO `0_gl_trans` VALUES (32, 22, 3, '2006-01-18', '2630', '', 3960, 0, 0, 3, 0x32);
1633 INSERT INTO `0_gl_trans` VALUES (33, 22, 3, '2006-01-18', '1710', '', -3960, 0, 0, 3, 0x32);
1634 INSERT INTO `0_gl_trans` VALUES (34, 20, 2, '2006-01-18', '2630', '', -3445, 0, 0, 3, 0x31);
1635 INSERT INTO `0_gl_trans` VALUES (35, 20, 2, '2006-01-18', '1420', '', 1000, 0, 0, 3, 0x31);
1636 INSERT INTO `0_gl_trans` VALUES (36, 20, 2, '2006-01-18', '1420', '', 2250, 0, 0, 3, 0x31);
1637 INSERT INTO `0_gl_trans` VALUES (37, 20, 2, '2006-01-18', '2660', '', 162.5, 0, 0, 3, 0x31);
1638 INSERT INTO `0_gl_trans` VALUES (38, 20, 2, '2006-01-18', '2660', '', 32.5, 0, 0, 3, 0x31);
1639 INSERT INTO `0_gl_trans` VALUES (39, 20, 3, '2006-01-18', '2630', '', -26, 0, 0, 3, 0x31);
1640 INSERT INTO `0_gl_trans` VALUES (40, 20, 3, '2006-01-18', '1420', '', 26, 0, 0, 3, 0x31);
1641 INSERT INTO `0_gl_trans` VALUES (41, 2, 2, '2006-01-20', '1700', '', 1050, 0, 0, 0, NULL);
1642 INSERT INTO `0_gl_trans` VALUES (42, 2, 2, '2006-01-20', '4500', '', -1000, 0, 0, 0, NULL);
1643 INSERT INTO `0_gl_trans` VALUES (43, 2, 2, '2006-01-20', '6400', '', -50, 0, 0, 0, NULL);
1644 INSERT INTO `0_gl_trans` VALUES (44, 10, 5, '2007-01-28', '3000', '', -2000, 0, 0, 2, 0x31);
1645 INSERT INTO `0_gl_trans` VALUES (45, 10, 5, '2007-01-28', '3000', '', -90000, 0, 0, 2, 0x31);
1646 INSERT INTO `0_gl_trans` VALUES (46, 10, 5, '2007-01-28', '3000', '', -1050, 0, 0, 2, 0x31);
1647 INSERT INTO `0_gl_trans` VALUES (47, 10, 5, '2007-01-28', '1500', '', 93050, 0, 0, 2, 0x31);
1648 INSERT INTO `0_gl_trans` VALUES (48, 10, 6, '2007-01-30', '3000', '', -333, 0, 0, 2, 0x31);
1649 INSERT INTO `0_gl_trans` VALUES (49, 10, 6, '2007-01-30', '1500', '', 333, 0, 0, 2, 0x31);
1650 INSERT INTO `0_gl_trans` VALUES (50, 12, 6, '2007-01-30', '1700', '', 200, 0, 0, 2, 0x31);
1651 INSERT INTO `0_gl_trans` VALUES (51, 12, 6, '2007-01-30', '1500', '', -200, 0, 0, 2, 0x31);
1652 INSERT INTO `0_gl_trans` VALUES (52, 1, 5, '2007-01-30', '1700', '', -200, 0, 0, 4, 0x31);
1653 INSERT INTO `0_gl_trans` VALUES (53, 1, 5, '2007-01-30', '1400', 'Gylle', 200, 0, 0, 4, 0x31);
1654 INSERT INTO `0_gl_trans` VALUES (54, 2, 3, '2007-01-30', '1700', '', 70, 0, 0, 4, 0x32);
1655 INSERT INTO `0_gl_trans` VALUES (55, 2, 3, '2007-01-30', '4500', 'Packing', -50, 0, 0, 4, 0x32);
1656 INSERT INTO `0_gl_trans` VALUES (56, 2, 3, '2007-01-30', '6400', '', -20, 0, 0, 4, 0x32);
1657 INSERT INTO `0_gl_trans` VALUES (57, 20, 4, '2007-01-30', '2630', '', -17350, 0, 0, 3, 0x31);
1658 INSERT INTO `0_gl_trans` VALUES (58, 20, 4, '2007-01-30', '1420', '', 15100, 0, 0, 3, 0x31);
1659 INSERT INTO `0_gl_trans` VALUES (59, 20, 4, '2007-01-30', '1420', '', 2250, 0, 0, 3, 0x31);
1660 INSERT INTO `0_gl_trans` VALUES (60, 0, 2, '2007-02-02', '3000', 'nana', -100, 0, 0, NULL, NULL);
1661 INSERT INTO `0_gl_trans` VALUES (61, 0, 2, '2007-02-02', '4010', 'jojo', 100, 0, 0, NULL, NULL);
1662 INSERT INTO `0_gl_trans` VALUES (62, 0, 3, '2007-02-02', '3000', '', -25, 0, 0, NULL, NULL);
1663 INSERT INTO `0_gl_trans` VALUES (63, 0, 3, '2007-02-02', '4000', '', 25, 0, 0, NULL, NULL);
1664 INSERT INTO `0_gl_trans` VALUES (64, 0, 4, '2007-03-01', '3000', '', 25, 0, 0, NULL, NULL);
1665 INSERT INTO `0_gl_trans` VALUES (65, 0, 4, '2007-03-01', '4000', '', -25, 0, 0, NULL, NULL);
1666 INSERT INTO `0_gl_trans` VALUES (66, 0, 5, '2007-02-02', '3000', '', -50, 0, 0, NULL, NULL);
1667 INSERT INTO `0_gl_trans` VALUES (67, 0, 5, '2007-02-02', '4000', '', 50, 0, 0, NULL, NULL);
1668 INSERT INTO `0_gl_trans` VALUES (68, 0, 6, '2007-02-02', '3020', 'Til Ejnar', -400, 0, 0, NULL, NULL);
1669 INSERT INTO `0_gl_trans` VALUES (69, 0, 6, '2007-02-02', '1500', 'Opdate forrige linje', 400, 0, 0, NULL, NULL);
1670 INSERT INTO `0_gl_trans` VALUES (70, 20, 5, '2007-02-03', '2630', '', -6644, 0, 0, 3, 0x31);
1671 INSERT INTO `0_gl_trans` VALUES (71, 20, 5, '2007-02-03', '1420', '', 6644, 0, 0, 3, 0x31);
1672 INSERT INTO `0_gl_trans` VALUES (72, 10, 7, '2007-02-03', '3000', '', -333, 0, 0, 2, 0x31);
1673 INSERT INTO `0_gl_trans` VALUES (73, 10, 7, '2007-02-03', '1500', '', 333, 0, 0, 2, 0x31);
1674 INSERT INTO `0_gl_trans` VALUES (74, 10, 8, '2007-02-03', '3000', '', -333, 0, 0, 2, 0x31);
1675 INSERT INTO `0_gl_trans` VALUES (75, 10, 8, '2007-02-03', '1500', '', 333, 0, 0, 2, 0x31);
1676 INSERT INTO `0_gl_trans` VALUES (76, 10, 9, '2007-02-03', '3000', '', -3428.5714285714, 0, 0, 2, 0x32);
1677 INSERT INTO `0_gl_trans` VALUES (77, 10, 9, '2007-02-03', '1500', '', 3600, 0, 0, 2, 0x32);
1678 INSERT INTO `0_gl_trans` VALUES (78, 10, 9, '2007-02-03', '2660', '', -171.42857142857, 0, 0, 2, 0x32);
1679 INSERT INTO `0_gl_trans` VALUES (79, 10, 10, '2007-02-04', '3000', '', -333, 0, 0, 2, 0x31);
1680 INSERT INTO `0_gl_trans` VALUES (80, 10, 10, '2007-02-04', '1500', '', 333, 0, 0, 2, 0x31);
1681 INSERT INTO `0_gl_trans` VALUES (81, 10, 11, '2007-02-04', '3000', '', -333, 0, 0, 2, 0x31);
1682 INSERT INTO `0_gl_trans` VALUES (82, 10, 11, '2007-02-04', '1500', '', 333, 0, 0, 2, 0x31);
1683 INSERT INTO `0_gl_trans` VALUES (83, 10, 12, '2007-02-06', '3000', '', -333, 0, 0, 2, 0x31);
1684 INSERT INTO `0_gl_trans` VALUES (84, 10, 12, '2007-02-06', '1500', '', 333, 0, 0, 2, 0x31);
1685 INSERT INTO `0_gl_trans` VALUES (85, 0, 7, '2007-02-06', '1400', '', 100, 0, 0, NULL, NULL);
1686 INSERT INTO `0_gl_trans` VALUES (86, 0, 7, '2007-02-06', '1500', '', -100, 0, 0, NULL, NULL);
1687 INSERT INTO `0_gl_trans` VALUES (87, 0, 8, '2007-02-06', '1400', '', 100, 0, 0, NULL, NULL);
1688 INSERT INTO `0_gl_trans` VALUES (88, 0, 8, '2007-02-06', '2000', '', -100, 0, 0, NULL, NULL);
1689 INSERT INTO `0_gl_trans` VALUES (89, 0, 9, '2006-04-06', '1400', '', 100, 0, 0, NULL, NULL);
1690 INSERT INTO `0_gl_trans` VALUES (90, 0, 9, '2006-04-06', '2000', '', -100, 0, 0, NULL, NULL);
1691 INSERT INTO `0_gl_trans` VALUES (91, 0, 10, '2007-02-06', '1400', '', 100, 0, 0, NULL, NULL);
1692 INSERT INTO `0_gl_trans` VALUES (92, 0, 10, '2007-02-06', '2050', '', -100, 0, 0, NULL, NULL);
1693 INSERT INTO `0_gl_trans` VALUES (93, 0, 11, '2006-04-06', '1400', '', 100, 0, 0, NULL, NULL);
1694 INSERT INTO `0_gl_trans` VALUES (94, 0, 11, '2006-04-06', '3000', '', -100, 0, 0, NULL, NULL);
1695 INSERT INTO `0_gl_trans` VALUES (95, 0, 12, '2007-02-06', '1400', '', 100, 0, 0, NULL, NULL);
1696 INSERT INTO `0_gl_trans` VALUES (96, 0, 12, '2007-02-06', '3000', '', -100, 0, 0, NULL, NULL);
1697 INSERT INTO `0_gl_trans` VALUES (97, 0, 13, '2007-02-13', '1400', '', 10, 1, 0, NULL, NULL);
1698 INSERT INTO `0_gl_trans` VALUES (98, 0, 13, '2007-02-13', '1400', '', -10, 0, 0, NULL, NULL);
1699 INSERT INTO `0_gl_trans` VALUES (99, 10, 13, '2007-02-25', '3000', '', -333, 0, 0, NULL, NULL);
1700 INSERT INTO `0_gl_trans` VALUES (100, 10, 13, '2007-02-25', '1500', '', 333, 0, 0, NULL, NULL);
1701 INSERT INTO `0_gl_trans` VALUES (101, 0, 14, '2007-02-25', '1400', '', 10, 1, 0, NULL, NULL);
1702 INSERT INTO `0_gl_trans` VALUES (102, 0, 14, '2007-02-25', '3000', '', -10, 0, 0, NULL, NULL);
1703 INSERT INTO `0_gl_trans` VALUES (103, 0, 15, '2007-03-02', '1400', '', 10, 1, 0, NULL, NULL);
1704 INSERT INTO `0_gl_trans` VALUES (104, 0, 15, '2007-03-02', '1400', '', -10, 0, 0, NULL, NULL);
1705 INSERT INTO `0_gl_trans` VALUES (105, 0, 16, '2007-03-02', '3000', '', 100, 1, 0, NULL, NULL);
1706 INSERT INTO `0_gl_trans` VALUES (106, 0, 16, '2007-03-02', '1430', '', -100, 1, 0, NULL, NULL);
1707 INSERT INTO `0_gl_trans` VALUES (107, 10, 14, '2007-03-04', '3000', '', -333, 0, 0, 2, 0x31);
1708 INSERT INTO `0_gl_trans` VALUES (108, 10, 14, '2007-03-04', '1500', '', 333, 0, 0, 2, 0x31);
1709 INSERT INTO `0_gl_trans` VALUES (109, 10, 15, '2007-03-05', '3000', '', -333, 0, 0, 2, 0x31);
1710 INSERT INTO `0_gl_trans` VALUES (110, 10, 15, '2007-03-05', '1500', '', 358, 0, 0, 2, 0x31);
1711 INSERT INTO `0_gl_trans` VALUES (111, 10, 15, '2007-03-05', '3800', '', -25, 0, 0, 2, 0x31);
1712 INSERT INTO `0_gl_trans` VALUES (112, 10, 16, '2007-03-05', '3000', '', -3000, 0, 0, 2, 0x31);
1713 INSERT INTO `0_gl_trans` VALUES (113, 10, 16, '2007-03-05', '1500', '', 3044, 0, 0, 2, 0x31);
1714 INSERT INTO `0_gl_trans` VALUES (114, 10, 16, '2007-03-05', '3800', '', -44, 0, 0, 2, 0x31);
1715 INSERT INTO `0_gl_trans` VALUES (115, 20, 6, '2007-03-05', '2630', '', -33.34, 0, 0, 3, 0x33);
1716 INSERT INTO `0_gl_trans` VALUES (116, 20, 6, '2007-03-05', '6730', '', 33.34, 1, 0, 3, 0x33);
1717 INSERT INTO `0_gl_trans` VALUES (117, 4, 3, '2007-03-09', '1700', '', -222, 0, 0, NULL, NULL);
1718 INSERT INTO `0_gl_trans` VALUES (118, 4, 3, '2007-03-09', '1705', '', 222, 0, 0, NULL, NULL);
1719 INSERT INTO `0_gl_trans` VALUES (119, 2, 4, '2007-03-09', '1700', '', 200, 0, 0, 2, 0x31);
1720 INSERT INTO `0_gl_trans` VALUES (120, 2, 4, '2007-03-09', '1400', '', -200, 0, 0, 2, 0x31);
1721 INSERT INTO `0_gl_trans` VALUES (121, 1, 6, '2007-03-22', '1700', '', -200, 0, 0, 3, 0x31);
1722 INSERT INTO `0_gl_trans` VALUES (122, 1, 6, '2007-03-22', '2630', '', 200, 0, 0, 3, 0x31);
1723 INSERT INTO `0_gl_trans` VALUES (123, 1, 7, '2007-03-22', '1700', '', -125, 0, 0, 0, 0x67796c6c657472616e73706f7274);
1724 INSERT INTO `0_gl_trans` VALUES (124, 1, 7, '2007-03-22', '6700', '', 100, 0, 0, 0, 0x67796c6c657472616e73706f7274);
1725 INSERT INTO `0_gl_trans` VALUES (125, 1, 7, '2007-03-22', '2682', '', 25, 0, 0, 0, 0x67796c6c657472616e73706f7274);
1726 INSERT INTO `0_gl_trans` VALUES (126, 0, 17, '2007-03-25', '3000', '', -300, 1, 0, NULL, NULL);
1727 INSERT INTO `0_gl_trans` VALUES (127, 0, 17, '2007-03-25', '4200', '', 300, 0, 0, NULL, NULL);
1728
1729 -- 
1730 -- Data in table `grn_batch`
1731 -- 
1732
1733 INSERT INTO `0_grn_batch` VALUES (1, 1, 1, '1', '2006-01-18', 'DEF');
1734 INSERT INTO `0_grn_batch` VALUES (2, 1, 2, '2', '2006-01-18', 'DEF');
1735 INSERT INTO `0_grn_batch` VALUES (3, 1, 5, '3', '2006-01-18', 'DEF');
1736
1737 -- 
1738 -- Data in table `grn_items`
1739 -- 
1740
1741 INSERT INTO `0_grn_items` VALUES (1, 1, 1, '102', '17 inch VGA Monitor', 10, 10);
1742 INSERT INTO `0_grn_items` VALUES (2, 1, 2, '103', '32MB VGA Card', 50, 50);
1743 INSERT INTO `0_grn_items` VALUES (3, 2, 3, '104', '52x CD Drive', 1, 1);
1744 INSERT INTO `0_grn_items` VALUES (4, 3, 6, '104', '52x CD Drive (upgraded)', 3020, 302);
1745
1746 -- 
1747 -- Data in table `item_tax_types`
1748 -- 
1749
1750 INSERT INTO `0_item_tax_types` VALUES (1, 'Regular', 0);
1751
1752 -- 
1753 -- Data in table `loc_stock`
1754 -- 
1755
1756 INSERT INTO `0_loc_stock` VALUES ('CWA', '102', 0);
1757 INSERT INTO `0_loc_stock` VALUES ('CWA', '103', 0);
1758 INSERT INTO `0_loc_stock` VALUES ('CWA', '104', 0);
1759 INSERT INTO `0_loc_stock` VALUES ('CWA', '201', 0);
1760 INSERT INTO `0_loc_stock` VALUES ('CWA', '3400', 0);
1761 INSERT INTO `0_loc_stock` VALUES ('DEF', '102', 0);
1762 INSERT INTO `0_loc_stock` VALUES ('DEF', '103', 0);
1763 INSERT INTO `0_loc_stock` VALUES ('DEF', '104', 0);
1764 INSERT INTO `0_loc_stock` VALUES ('DEF', '201', 0);
1765 INSERT INTO `0_loc_stock` VALUES ('DEF', '3400', 0);
1766
1767 -- 
1768 -- Data in table `locations`
1769 -- 
1770
1771 INSERT INTO `0_locations` VALUES ('DEF', 'Default', 'N/A', '', '', '', '');
1772 INSERT INTO `0_locations` VALUES ('CWA', 'Cool Warehouse', '', '', '', '', '');
1773
1774 -- 
1775 -- Data in table `movement_types`
1776 -- 
1777
1778 INSERT INTO `0_movement_types` VALUES (1, 'Adjustment');
1779
1780 -- 
1781 -- Data in table `payment_terms`
1782 -- 
1783
1784 INSERT INTO `0_payment_terms` VALUES (1, 'Due 15th Of the Following Month', 0, 17);
1785 INSERT INTO `0_payment_terms` VALUES (2, 'Due By End Of The Following Month', 0, 30);
1786 INSERT INTO `0_payment_terms` VALUES (3, 'Payment due within 10 days', 10, 0);
1787 INSERT INTO `0_payment_terms` VALUES (4, 'Cash Only', 1, 0);
1788
1789 -- 
1790 -- Data in table `prices`
1791 -- 
1792
1793 INSERT INTO `0_prices` VALUES (1, '102', 1, 'USD', 333);
1794 INSERT INTO `0_prices` VALUES (2, '103', 1, 'USD', 3000);
1795 INSERT INTO `0_prices` VALUES (3, '104', 1, 'USD', 34);
1796 INSERT INTO `0_prices` VALUES (4, '201', 1, 'USD', 40);
1797 INSERT INTO `0_prices` VALUES (5, '3400', 1, 'USD', 600);
1798
1799 -- 
1800 -- Data in table `purch_order_details`
1801 -- 
1802
1803 INSERT INTO `0_purch_order_details` VALUES (1, 1, '102', '17 inch VGA Monitor', '2006-01-28', 10, 3020, 3020, 0, 3000, 10);
1804 INSERT INTO `0_purch_order_details` VALUES (2, 1, '103', '32MB VGA Card', '2006-01-28', 50, 90, 90, 0, 300, 50);
1805 INSERT INTO `0_purch_order_details` VALUES (3, 2, '104', '52x CD Drive', '2006-01-28', 1, 26, 26, 0, 1, 1);
1806 INSERT INTO `0_purch_order_details` VALUES (4, 3, '104', '52x CD Drive', '2006-01-28', 0, 22, 0, 0, 1, 0);
1807 INSERT INTO `0_purch_order_details` VALUES (6, 5, '104', '52x CD Drive', '2006-01-28', 302, 22, 22, 0, 330, 3020);
1808
1809 -- 
1810 -- Data in table `purch_orders`
1811 -- 
1812
1813 INSERT INTO `0_purch_orders` VALUES (1, 1, '', '2006-01-18', '3', '333', 'DEF', 'N/A');
1814 INSERT INTO `0_purch_orders` VALUES (2, 1, '', '2006-01-18', '4', '44', 'DEF', 'N/A');
1815 INSERT INTO `0_purch_orders` VALUES (3, 1, '', '2006-01-18', '5', '', 'DEF', 'N/A');
1816 INSERT INTO `0_purch_orders` VALUES (5, 1, '', '2006-01-18', '7', '', 'DEF', 'N/A');
1817
1818 -- 
1819 -- Data in table `refs`
1820 -- 
1821
1822 INSERT INTO `0_refs` VALUES (2, 0, 'Joe');
1823 INSERT INTO `0_refs` VALUES (3, 0, '19');
1824 INSERT INTO `0_refs` VALUES (4, 0, '19');
1825 INSERT INTO `0_refs` VALUES (5, 0, '20');
1826 INSERT INTO `0_refs` VALUES (6, 0, '21');
1827 INSERT INTO `0_refs` VALUES (7, 0, '22');
1828 INSERT INTO `0_refs` VALUES (8, 0, '23');
1829 INSERT INTO `0_refs` VALUES (9, 0, '24');
1830 INSERT INTO `0_refs` VALUES (10, 0, '25');
1831 INSERT INTO `0_refs` VALUES (11, 0, '26');
1832 INSERT INTO `0_refs` VALUES (12, 0, '27');
1833 INSERT INTO `0_refs` VALUES (13, 0, '28');
1834 INSERT INTO `0_refs` VALUES (14, 0, '29');
1835 INSERT INTO `0_refs` VALUES (15, 0, '30');
1836 INSERT INTO `0_refs` VALUES (16, 0, '31');
1837 INSERT INTO `0_refs` VALUES (17, 0, '32');
1838
1839 -- 
1840 -- Data in table `sales_order_details`
1841 -- 
1842
1843 INSERT INTO `0_sales_order_details` VALUES (1, '102', '17 inch VGA Monitor', 10, 250, 10, 0);
1844 INSERT INTO `0_sales_order_details` VALUES (1, '103', '32MB VGA Card', 50, 3000, 50, 0);
1845 INSERT INTO `0_sales_order_details` VALUES (1, '104', '52x CD Drive', 26, 50, 26, 0);
1846 INSERT INTO `0_sales_order_details` VALUES (2, '102', '17 inch VGA Monitor', 5, 222, 25, 0);
1847 INSERT INTO `0_sales_order_details` VALUES (3, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1848 INSERT INTO `0_sales_order_details` VALUES (4, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1849 INSERT INTO `0_sales_order_details` VALUES (5, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1850 INSERT INTO `0_sales_order_details` VALUES (6, '3400', 'P4 Business System', 1, 3000, 1, 0);
1851 INSERT INTO `0_sales_order_details` VALUES (7, '102', '17 inch VGA Monitor', 0, 333, 1, 0);
1852 INSERT INTO `0_sales_order_details` VALUES (8, '102', '17 inch VGA Monitor', 0, 333, 1, 0);
1853 INSERT INTO `0_sales_order_details` VALUES (9, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1854 INSERT INTO `0_sales_order_details` VALUES (10, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1855 INSERT INTO `0_sales_order_details` VALUES (11, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1856 INSERT INTO `0_sales_order_details` VALUES (12, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1857 INSERT INTO `0_sales_order_details` VALUES (13, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1858 INSERT INTO `0_sales_order_details` VALUES (14, '102', '17 inch VGA Monitor', 1, 333, 1, 0);
1859 INSERT INTO `0_sales_order_details` VALUES (15, '103', '32MB VGA Card', 1, 3000, 1, 0);
1860
1861 -- 
1862 -- Data in table `sales_orders`
1863 -- 
1864
1865 INSERT INTO `0_sales_orders` VALUES (1, 1, 1, '', '', '2006-01-18', 1, 1, 'The same', '', '', 'Main', 0, 'DEF', '2006-01-18');
1866 INSERT INTO `0_sales_orders` VALUES (2, 2, 3, '', '', '2006-01-18', 1, 1, 'His Addy', '', '', 'Main', 0, 'DEF', '2006-01-18');
1867 INSERT INTO `0_sales_orders` VALUES (3, 1, 1, 'Oops', 'This is a lot of stuff.', '2007-01-30', 1, 1, 'The Road\r\n333 33  Downtown', '040-365045', '', 'Main', 0, 'DEF', '2007-01-30');
1868 INSERT INTO `0_sales_orders` VALUES (4, 1, 1, '', '', '2007-02-03', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-03');
1869 INSERT INTO `0_sales_orders` VALUES (5, 1, 1, '', '', '2007-02-03', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-03');
1870 INSERT INTO `0_sales_orders` VALUES (6, 2, 3, '', '', '2007-02-03', 1, 1, 'Street', '', '', 'Main', 0, 'DEF', '2007-02-03');
1871 INSERT INTO `0_sales_orders` VALUES (7, 1, 1, '', '', '2007-02-03', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-03');
1872 INSERT INTO `0_sales_orders` VALUES (8, 1, 1, '', '', '2007-02-03', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-03');
1873 INSERT INTO `0_sales_orders` VALUES (9, 1, 1, '', '', '2007-02-04', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-04');
1874 INSERT INTO `0_sales_orders` VALUES (10, 1, 1, '', '', '2007-02-04', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-04');
1875 INSERT INTO `0_sales_orders` VALUES (11, 1, 1, '', '', '2007-02-06', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-06');
1876 INSERT INTO `0_sales_orders` VALUES (12, 1, 1, '', '', '2007-02-25', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-02-25');
1877 INSERT INTO `0_sales_orders` VALUES (13, 1, 1, '', '', '2007-03-04', 1, 1, 'The Road', '', '', 'Main', 0, 'DEF', '2007-03-04');
1878 INSERT INTO `0_sales_orders` VALUES (14, 1, 1, '', '', '2007-03-05', 1, 1, 'The Road', '', '', 'Main', 25, 'DEF', '2007-03-05');
1879 INSERT INTO `0_sales_orders` VALUES (15, 1, 1, '', '', '2007-03-05', 1, 1, 'The Road', '', '', 'Main', 44, 'DEF', '2007-03-05');
1880
1881 -- 
1882 -- Data in table `sales_types`
1883 -- 
1884
1885 INSERT INTO `0_sales_types` VALUES (1, 'Retail');
1886 INSERT INTO `0_sales_types` VALUES (2, 'Wholesale');
1887
1888 -- 
1889 -- Data in table `salesman`
1890 -- 
1891
1892 INSERT INTO `0_salesman` VALUES (1, 'Sparc Menser', '', '', '');
1893 INSERT INTO `0_salesman` VALUES (2, 'Joe Hunt', '', '', '');
1894
1895 -- 
1896 -- Data in table `shippers`
1897 -- 
1898
1899 INSERT INTO `0_shippers` VALUES (1, 'UPS', '', '', '');
1900 INSERT INTO `0_shippers` VALUES (2, 'Internet', '', '', '');
1901
1902 -- 
1903 -- Data in table `stock_category`
1904 -- 
1905
1906 INSERT INTO `0_stock_category` VALUES (1, 'Components', NULL, NULL, NULL, NULL);
1907 INSERT INTO `0_stock_category` VALUES (2, 'Charges', NULL, NULL, NULL, NULL);
1908 INSERT INTO `0_stock_category` VALUES (3, 'Systems', NULL, NULL, NULL, NULL);
1909 INSERT INTO `0_stock_category` VALUES (4, 'Services', NULL, NULL, NULL, NULL);
1910
1911 -- 
1912 -- Data in table `stock_master`
1913 -- 
1914
1915 INSERT INTO `0_stock_master` VALUES ('102', 1, 1, '17 inch VGA Monitor', '', 'each', 'B', '3000', '4010', '1420', '4210', '0', NULL, NULL, 0, 0, 0, 0, 0);
1916 INSERT INTO `0_stock_master` VALUES ('103', 1, 1, '32MB VGA Card', '', 'each', 'B', '3000', '4010', '1420', '4210', '0', NULL, NULL, 0, 0, 0, 0, 0);
1917 INSERT INTO `0_stock_master` VALUES ('104', 1, 1, '52x CD Drive', '', 'each', 'B', '3000', '4010', '1420', '4210', '0', NULL, NULL, 0, 0, 0, 0, 0);
1918 INSERT INTO `0_stock_master` VALUES ('201', 2, 1, 'Assembly Labour', '', 'each', 'D', '3000', '4010', '1420', '4210', '0', NULL, NULL, 0, 0, 0, 0, 0);
1919 INSERT INTO `0_stock_master` VALUES ('3400', 3, 1, 'P4 Business System', '', 'each', 'M', '3000', '4010', '1420', '4210', '0', NULL, NULL, 0, 0, 0, 0, 0);
1920
1921 -- 
1922 -- Data in table `stock_moves`
1923 -- 
1924
1925 INSERT INTO `0_stock_moves` VALUES (1, 2, '102', 17, 'DEF', '2006-01-18', 1, 0, '1', 3000, 0, 0, 1);
1926 INSERT INTO `0_stock_moves` VALUES (2, 2, '103', 17, 'DEF', '2006-01-18', 1, 0, '1', 3000, 0, 0, 1);
1927 INSERT INTO `0_stock_moves` VALUES (3, 2, '104', 17, 'DEF', '2006-01-18', 1, 0, '1', 150, 0, 0, 1);
1928 INSERT INTO `0_stock_moves` VALUES (4, 2, '3400', 17, 'DEF', '2006-01-18', 1, 0, '1', 50, 0, 0, 1);
1929 INSERT INTO `0_stock_moves` VALUES (5, 2, '102', 16, 'DEF', '2006-01-18', 1, 0, '1', -25, 0, 0, 1);
1930 INSERT INTO `0_stock_moves` VALUES (6, 2, '102', 16, 'CWA', '2006-01-18', 1, 0, '1', 25, 0, 0, 1);
1931 INSERT INTO `0_stock_moves` VALUES (7, 2, '102', 10, 'DEF', '2006-01-18', 0, 250, '', -2, 0, 0, 1);
1932 INSERT INTO `0_stock_moves` VALUES (8, 2, '103', 10, 'DEF', '2006-01-18', 0, 3000, '', -10, 0, 0, 1);
1933 INSERT INTO `0_stock_moves` VALUES (9, 2, '104', 10, 'DEF', '2006-01-18', 0, 50, '', -5, 0, 0, 1);
1934 INSERT INTO `0_stock_moves` VALUES (10, 3, '103', 10, 'DEF', '2006-01-18', 0, 3000, '', -10, 0, 0, 1);
1935 INSERT INTO `0_stock_moves` VALUES (11, 2, '102', 11, 'DEF', '2006-01-18', 0, 210, '', 5, 0, 0, 1);
1936 INSERT INTO `0_stock_moves` VALUES (12, 4, '102', 10, 'DEF', '2006-01-18', 0, 222, '', -5, 0, 0, 1);
1937 INSERT INTO `0_stock_moves` VALUES (13, 1, '102', 26, 'DEF', '2006-01-18', 0, 0, '1', -20, 0, 0, 1);
1938 INSERT INTO `0_stock_moves` VALUES (14, 1, '103', 26, 'DEF', '2006-01-18', 0, 0, '1', -20, 0, 0, 1);
1939 INSERT INTO `0_stock_moves` VALUES (15, 1, '104', 26, 'DEF', '2006-01-18', 0, 0, '1', -20, 0, 0, 1);
1940 INSERT INTO `0_stock_moves` VALUES (16, 1, '3400', 26, 'DEF', '2006-01-18', 0, 0, '1', 20, 0, 0, 1);
1941 INSERT INTO `0_stock_moves` VALUES (17, 2, '102', 26, 'DEF', '2006-01-18', 0, 0, '2', -5, 0, 0, 1);
1942 INSERT INTO `0_stock_moves` VALUES (18, 2, '103', 26, 'DEF', '2006-01-18', 0, 0, '2', -5, 0, 0, 1);
1943 INSERT INTO `0_stock_moves` VALUES (19, 2, '104', 26, 'DEF', '2006-01-18', 0, 0, '2', -5, 0, 0, 1);
1944 INSERT INTO `0_stock_moves` VALUES (20, 2, '3400', 26, 'DEF', '2006-01-18', 0, 0, '2', 5, 0, 0, 1);
1945 INSERT INTO `0_stock_moves` VALUES (21, 1, '102', 25, 'DEF', '2006-01-18', 1, 3020, '', 10, 0, 0, 1);
1946 INSERT INTO `0_stock_moves` VALUES (22, 1, '103', 25, 'DEF', '2006-01-18', 1, 90, '', 50, 0, 0, 1);
1947 INSERT INTO `0_stock_moves` VALUES (23, 2, '104', 25, 'DEF', '2006-01-18', 1, 26, '', 1, 0, 0, 1);
1948 INSERT INTO `0_stock_moves` VALUES (24, 3, '104', 25, 'DEF', '2006-01-18', 1, 22, '', 3020, 0, 0, 1);
1949 INSERT INTO `0_stock_moves` VALUES (25, 1, '102', 28, 'DEF', '2006-01-20', 0, 0, '', -10, 0, 0, 1);
1950 INSERT INTO `0_stock_moves` VALUES (26, 5, '102', 10, 'DEF', '2007-01-28', 0, 250, '', -8, 0, 0, 1);
1951 INSERT INTO `0_stock_moves` VALUES (27, 5, '103', 10, 'DEF', '2007-01-28', 0, 3000, '', -30, 0, 0, 1);
1952 INSERT INTO `0_stock_moves` VALUES (28, 5, '104', 10, 'DEF', '2007-01-28', 0, 50, '', -21, 0, 0, 1);
1953 INSERT INTO `0_stock_moves` VALUES (29, 6, '102', 10, 'DEF', '2007-01-30', 0, 333, '', -1, 0, 0, 1);
1954 INSERT INTO `0_stock_moves` VALUES (30, 4, '102', 26, 'DEF', '2007-01-30', 0, 0, '4', -5, 0, 0, 1);
1955 INSERT INTO `0_stock_moves` VALUES (31, 4, '103', 26, 'DEF', '2007-01-30', 0, 0, '4', -5, 0, 0, 1);
1956 INSERT INTO `0_stock_moves` VALUES (32, 4, '104', 26, 'DEF', '2007-01-30', 0, 0, '4', -5, 0, 0, 1);
1957 INSERT INTO `0_stock_moves` VALUES (33, 4, '3400', 26, 'DEF', '2007-01-30', 0, 0, '4', 5, 0, 0, 1);
1958 INSERT INTO `0_stock_moves` VALUES (34, 1, '3400', 29, 'DEF', '2007-01-30', 0, 0, '', 50, 0, 0, 1);
1959 INSERT INTO `0_stock_moves` VALUES (35, 2, '3400', 29, 'DEF', '2007-01-30', 0, 0, '', 20, 0, 0, 1);
1960 INSERT INTO `0_stock_moves` VALUES (36, 7, '102', 10, 'DEF', '2007-02-03', 0, 333, '', -1, 0, 0, 1);
1961 INSERT INTO `0_stock_moves` VALUES (37, 8, '102', 10, 'DEF', '2007-02-03', 0, 333, '', -1, 0, 0, 1);
1962 INSERT INTO `0_stock_moves` VALUES (38, 9, '3400', 10, 'DEF', '2007-02-03', 0, 3000, '', -1, 0, 0, 1);
1963 INSERT INTO `0_stock_moves` VALUES (39, 10, '102', 10, 'DEF', '2007-02-04', 0, 333, '', -1, 0, 0, 1);
1964 INSERT INTO `0_stock_moves` VALUES (40, 11, '102', 10, 'DEF', '2007-02-04', 0, 333, '', -1, 0, 0, 1);
1965 INSERT INTO `0_stock_moves` VALUES (41, 12, '102', 10, 'DEF', '2007-02-06', 0, 333, '', -1, 0, 0, 1);
1966 INSERT INTO `0_stock_moves` VALUES (42, 13, '102', 10, 'DEF', '2007-02-25', 0, 333, '', -1, 0, 0, 1);
1967 INSERT INTO `0_stock_moves` VALUES (43, 14, '102', 10, 'DEF', '2007-03-04', 0, 333, '', -1, 0, 0, 1);
1968 INSERT INTO `0_stock_moves` VALUES (44, 15, '102', 10, 'DEF', '2007-03-05', 0, 333, '', -1, 0, 0, 1);
1969 INSERT INTO `0_stock_moves` VALUES (45, 16, '103', 10, 'DEF', '2007-03-05', 0, 3000, '', -1, 0, 0, 1);
1970
1971 -- 
1972 -- Data in table `supp_allocations`
1973 -- 
1974
1975 INSERT INTO `0_supp_allocations` VALUES (7, 1529, '2007-01-30', 2, 22, 4, 20);
1976 INSERT INTO `0_supp_allocations` VALUES (8, 3445, '2007-01-30', 2, 22, 2, 20);
1977 INSERT INTO `0_supp_allocations` VALUES (9, 26, '2007-01-30', 2, 22, 3, 20);
1978
1979 -- 
1980 -- Data in table `supp_invoice_items`
1981 -- 
1982
1983 INSERT INTO `0_supp_invoice_items` VALUES (1, 2, 20, 0, 1, 1, '102', '17 inch VGA Monitor', 5, 3020, 0, '');
1984 INSERT INTO `0_supp_invoice_items` VALUES (2, 2, 20, 0, 2, 2, '103', '32MB VGA Card', 25, 90, 0, '');
1985 INSERT INTO `0_supp_invoice_items` VALUES (3, 3, 20, 0, 3, 3, '104', '52x CD Drive', 1, 26, 0, '');
1986 INSERT INTO `0_supp_invoice_items` VALUES (4, 4, 20, 0, 1, 1, '102', '17 inch VGA Monitor', 5, 3020, 0, '');
1987 INSERT INTO `0_supp_invoice_items` VALUES (5, 4, 20, 0, 2, 2, '103', '32MB VGA Card', 25, 90, 0, '');
1988 INSERT INTO `0_supp_invoice_items` VALUES (6, 5, 20, 0, 4, 6, '104', '52x CD Drive (upgraded)', 302, 22, 0, '');
1989 INSERT INTO `0_supp_invoice_items` VALUES (7, 6, 20, 6730, 0, 0, '', '', 0, 200, 0, 'yes');
1990
1991 -- 
1992 -- Data in table `supp_invoice_tax_items`
1993 -- 
1994
1995 INSERT INTO `0_supp_invoice_tax_items` VALUES (1, 2, 20, 1, NULL, 5, 0, 162.5);
1996 INSERT INTO `0_supp_invoice_tax_items` VALUES (2, 2, 20, 2, NULL, 1, 0, 32.5);
1997
1998 -- 
1999 -- Data in table `supp_trans`
2000 -- 
2001
2002 INSERT INTO `0_supp_trans` VALUES (2, 20, 1, '22', '22', '2006-01-18', '2006-02-22', 3250, 0, 195, 1, 3445);
2003 INSERT INTO `0_supp_trans` VALUES (2, 22, 1, '1', '', '2006-01-18', '2006-01-18', -5000, 0, 0, 1, 5000);
2004 INSERT INTO `0_supp_trans` VALUES (3, 20, 1, '23', 'asdf', '2006-01-18', '2006-02-22', 26, 0, 0, 1, 26);
2005 INSERT INTO `0_supp_trans` VALUES (3, 22, 2, '2', '', '2006-01-18', '2006-01-18', -3300, 0, 0, 1.2, 0);
2006 INSERT INTO `0_supp_trans` VALUES (4, 20, 1, '24', 'Hamselv', '2007-01-30', '2007-02-22', 17350, 0, 0, 1, 1529);
2007 INSERT INTO `0_supp_trans` VALUES (5, 20, 1, '25', '6789', '2007-02-03', '2007-03-22', 6644, 0, 0, 1, 0);
2008 INSERT INTO `0_supp_trans` VALUES (6, 1, 1, '5', '', '2007-03-22', '0000-00-00', -200, 0, 0, 1, 0);
2009 INSERT INTO `0_supp_trans` VALUES (6, 20, 3, '26', '333333', '2007-03-05', '2007-03-12', 200, 0, 0, 0.2, 0);
2010
2011 -- 
2012 -- Data in table `suppliers`
2013 -- 
2014
2015 INSERT INTO `0_suppliers` VALUES (1, 'Ghostbusters Corp.', '', '', '123456789', 'USD', 1, 0, 0, 2, '4000', '2630', '4250');
2016 INSERT INTO `0_suppliers` VALUES (2, 'Beefeater Ltd.', '', '', '987654321', 'GBP', 1, 0, 0, 2, '4000', '2630', '4250');
2017 INSERT INTO `0_suppliers` VALUES (3, 'Super Trooper AB', 'Adress', 'sven@sven.sve', '123456', 'SEK', 3, 0, 0, 2, '4000', '2630', '4250');
2018
2019 -- 
2020 -- Data in table `sys_types`
2021 -- 
2022
2023 INSERT INTO `0_sys_types` VALUES (0, 'Journal - GL', 17, '33');
2024 INSERT INTO `0_sys_types` VALUES (1, 'Payment - GL', 7, '7');
2025 INSERT INTO `0_sys_types` VALUES (2, 'Receipt - GL', 4, '14');
2026 INSERT INTO `0_sys_types` VALUES (4, 'Funds Transfer', 3, '6');
2027 INSERT INTO `0_sys_types` VALUES (10, 'Sales Invoice', 16, '16');
2028 INSERT INTO `0_sys_types` VALUES (11, 'Credit Note', 2, '34');
2029 INSERT INTO `0_sys_types` VALUES (12, 'Receipt', 6, '116');
2030 INSERT INTO `0_sys_types` VALUES (16, 'Location Transfer', 2, '2');
2031 INSERT INTO `0_sys_types` VALUES (17, 'Inventory Adjustment', 2, '2');
2032 INSERT INTO `0_sys_types` VALUES (18, 'Purchase Order', 1, '8');
2033 INSERT INTO `0_sys_types` VALUES (20, 'Supplier Invoice', 6, '27');
2034 INSERT INTO `0_sys_types` VALUES (21, 'Supplier Credit Note', 1, '2');
2035 INSERT INTO `0_sys_types` VALUES (22, 'Supplier Payment', 3, '3');
2036 INSERT INTO `0_sys_types` VALUES (25, 'Purchase Order Delivery', 1, '4');
2037 INSERT INTO `0_sys_types` VALUES (26, 'Work Order', 1, '6');
2038 INSERT INTO `0_sys_types` VALUES (28, 'Work Order Issue', 1, '2');
2039 INSERT INTO `0_sys_types` VALUES (29, 'Work Order Production', 1, '201');
2040 INSERT INTO `0_sys_types` VALUES (30, 'Sales Order', 1, '1');
2041 INSERT INTO `0_sys_types` VALUES (35, 'Cost Update', 1, '1');
2042 INSERT INTO `0_sys_types` VALUES (40, 'Dimension', 1, '3');
2043
2044 -- 
2045 -- Data in table `tax_group_items`
2046 -- 
2047
2048 INSERT INTO `0_tax_group_items` VALUES (1, 1, 5, 0);
2049 INSERT INTO `0_tax_group_items` VALUES (1, 2, 1, 0);
2050 INSERT INTO `0_tax_group_items` VALUES (3, 1, 5, 1);
2051 INSERT INTO `0_tax_group_items` VALUES (4, 3, 25, 0);
2052
2053 -- 
2054 -- Data in table `tax_groups`
2055 -- 
2056
2057 INSERT INTO `0_tax_groups` VALUES (1, 'Tax out', 0);
2058 INSERT INTO `0_tax_groups` VALUES (2, 'Tax-Free', 0);
2059 INSERT INTO `0_tax_groups` VALUES (3, 'Tax Included', 0);
2060 INSERT INTO `0_tax_groups` VALUES (4, 'Tax In', 0);
2061
2062 -- 
2063 -- Data in table `tax_types`
2064 -- 
2065
2066 INSERT INTO `0_tax_types` VALUES (1, 5, '2660', '2680', 'VAT out 5', 1);
2067 INSERT INTO `0_tax_types` VALUES (2, 1, '2662', '2680', 'Manufact tax 1', 1);
2068 INSERT INTO `0_tax_types` VALUES (3, 25, '2664', '2660', 'VAT out 25', 1);
2069 INSERT INTO `0_tax_types` VALUES (4, 5, '2660', '2680', 'VAT in 5', 0);
2070 INSERT INTO `0_tax_types` VALUES (5, 25, '2660', '2682', 'VAT in 25', 0);
2071
2072 -- 
2073 -- Data in table `users`
2074 -- 
2075
2076 INSERT INTO `0_users` VALUES ('demouser', '5f4dcc3b5aa765d61d8327deb882cf99', 'Demo User', 1, '999-999-999', 'demo@demo.nu', 'en_US', 0, 0, 0, 0, 'default', 'Letter', 2, 2, 3, 1, 1, 0, '2007-02-06 19:02:35');
2077 INSERT INTO `0_users` VALUES ('admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'Administrator', 2, '', 'info@frontaccounting.com', 'en_US', 0, 0, 0, 0, 'default', 'Letter', 2, 2, 4, 1, 1, 0, '2007-03-20 10:52:46');
2078
2079 -- 
2080 -- Data in table `wo_issue_items`
2081 -- 
2082
2083 INSERT INTO `0_wo_issue_items` VALUES (1, '102', 1, 10);
2084
2085 -- 
2086 -- Data in table `wo_issues`
2087 -- 
2088
2089 INSERT INTO `0_wo_issues` VALUES (1, 3, '1', '2006-01-20', 'DEF', 1);
2090
2091 -- 
2092 -- Data in table `wo_manufacture`
2093 -- 
2094
2095 INSERT INTO `0_wo_manufacture` VALUES (1, 'ab200', 3, 50, '2007-01-30');
2096 INSERT INTO `0_wo_manufacture` VALUES (2, 'ab201', 5, 20, '2007-01-30');
2097
2098 -- 
2099 -- Data in table `wo_requirements`
2100 -- 
2101
2102 INSERT INTO `0_wo_requirements` VALUES (1, 1, '102', '1', 1, 0, 'DEF', 20);
2103 INSERT INTO `0_wo_requirements` VALUES (2, 1, '103', '1', 1, 0, 'DEF', 20);
2104 INSERT INTO `0_wo_requirements` VALUES (3, 1, '104', '1', 1, 0, 'DEF', 20);
2105 INSERT INTO `0_wo_requirements` VALUES (4, 1, '201', '1', 1, 0, 'DEF', 20);
2106 INSERT INTO `0_wo_requirements` VALUES (5, 2, '102', '1', 1, 0, 'DEF', 5);
2107 INSERT INTO `0_wo_requirements` VALUES (6, 2, '103', '1', 1, 0, 'DEF', 5);
2108 INSERT INTO `0_wo_requirements` VALUES (7, 2, '104', '1', 1, 0, 'DEF', 5);
2109 INSERT INTO `0_wo_requirements` VALUES (8, 2, '201', '1', 1, 0, 'DEF', 5);
2110 INSERT INTO `0_wo_requirements` VALUES (9, 3, '102', '1', 1, 0, 'DEF', 0);
2111 INSERT INTO `0_wo_requirements` VALUES (10, 3, '103', '1', 1, 0, 'DEF', 0);
2112 INSERT INTO `0_wo_requirements` VALUES (11, 3, '104', '1', 1, 0, 'DEF', 0);
2113 INSERT INTO `0_wo_requirements` VALUES (12, 3, '201', '1', 1, 0, 'DEF', 0);
2114 INSERT INTO `0_wo_requirements` VALUES (13, 4, '102', '1', 1, 0, 'DEF', 5);
2115 INSERT INTO `0_wo_requirements` VALUES (14, 4, '103', '1', 1, 0, 'DEF', 5);
2116 INSERT INTO `0_wo_requirements` VALUES (15, 4, '104', '1', 1, 0, 'DEF', 5);
2117 INSERT INTO `0_wo_requirements` VALUES (16, 4, '201', '1', 1, 0, 'DEF', 5);
2118 INSERT INTO `0_wo_requirements` VALUES (17, 5, '102', '1', 1, 0, 'DEF', 0);
2119 INSERT INTO `0_wo_requirements` VALUES (18, 5, '103', '1', 1, 0, 'DEF', 0);
2120 INSERT INTO `0_wo_requirements` VALUES (19, 5, '104', '1', 1, 0, 'DEF', 0);
2121 INSERT INTO `0_wo_requirements` VALUES (20, 5, '201', '1', 1, 0, 'DEF', 0);
2122
2123 -- 
2124 -- Data in table `workcentres`
2125 -- 
2126
2127 INSERT INTO `0_workcentres` VALUES (1, 'work centre', '');
2128
2129 -- 
2130 -- Data in table `workorders`
2131 -- 
2132
2133 INSERT INTO `0_workorders` VALUES (1, '1', 'DEF', 20, '3400', '2006-01-18', 0, '2006-01-18', '2006-01-18', 20, 1, 1, 0);
2134 INSERT INTO `0_workorders` VALUES (2, '2', 'DEF', 5, '3400', '2006-01-18', 0, '2006-01-18', '2006-01-18', 5, 1, 1, 0);
2135 INSERT INTO `0_workorders` VALUES (3, '3', 'DEF', 50, '3400', '2006-01-18', 2, '2006-02-07', '2006-01-20', 50, 1, 1, 0);
2136 INSERT INTO `0_workorders` VALUES (4, '4', 'DEF', 5, '3400', '2007-01-30', 0, '2007-01-30', '2007-01-30', 5, 1, 1, 0);
2137 INSERT INTO `0_workorders` VALUES (5, '5', 'DEF', 20, '3400', '2007-01-30', 2, '2007-02-19', '2007-01-30', 20, 1, 1, 0);