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