/
version_20090310_install.sql
1908 lines (1619 loc) · 75.5 KB
/
version_20090310_install.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- Amberdms initial database creation SQL.
--
--
--
-- AMBERDMS BILLING SYSTEM VERSION 1.0.0
--
CREATE DATABASE `billing_system` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `billing_system`;
--
-- Table structure for table `account_ap`
--
CREATE TABLE `account_ap` (
`id` int(11) NOT NULL auto_increment,
`locked` tinyint(1) NOT NULL default '0',
`vendorid` int(11) NOT NULL default '0',
`employeeid` int(11) NOT NULL default '0',
`dest_account` int(11) NOT NULL default '0',
`code_invoice` varchar(255) NOT NULL default '',
`code_ordernumber` varchar(255) NOT NULL default '',
`code_ponumber` varchar(255) NOT NULL default '',
`date_due` date NOT NULL default '0000-00-00',
`date_trans` date NOT NULL default '0000-00-00',
`date_create` date NOT NULL default '0000-00-00',
`amount_total` decimal(11,2) NOT NULL default '0.00',
`amount_tax` decimal(11,2) NOT NULL default '0.00',
`amount` decimal(11,2) NOT NULL default '0.00',
`amount_paid` decimal(11,2) NOT NULL default '0.00',
`notes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_ap`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_ar`
--
CREATE TABLE `account_ar` (
`id` int(11) NOT NULL auto_increment,
`locked` tinyint(1) NOT NULL default '0',
`customerid` int(11) NOT NULL default '0',
`employeeid` int(11) NOT NULL default '0',
`dest_account` int(11) NOT NULL default '0',
`code_invoice` varchar(255) NOT NULL default '',
`code_ordernumber` varchar(255) NOT NULL default '',
`code_ponumber` varchar(255) NOT NULL default '',
`date_due` date NOT NULL default '0000-00-00',
`date_trans` date NOT NULL default '0000-00-00',
`date_create` date NOT NULL default '0000-00-00',
`date_sent` date NOT NULL default '0000-00-00',
`sentmethod` varchar(10) NOT NULL default '',
`amount_total` decimal(11,2) NOT NULL default '0.00',
`amount_tax` decimal(11,2) NOT NULL default '0.00',
`amount` decimal(11,2) NOT NULL default '0.00',
`amount_paid` decimal(11,2) NOT NULL default '0.00',
`notes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_ar`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_chart_menu`
--
CREATE TABLE `account_chart_menu` (
`id` int(11) NOT NULL auto_increment,
`value` varchar(50) NOT NULL default '',
`groupname` varchar(50) NOT NULL default '',
`description` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `account_chart_menu`
--
INSERT INTO `account_chart_menu` (`id`, `value`, `groupname`, `description`) VALUES (1, 'ar_summary_account', 'Accounts Receivables', 'Account to file all unpaid AR transactions/invoices too.'),
(2, 'ar_income', 'Accounts Receivables', 'Use this account to record income.'),
(3, 'tax_summary_account', 'Tax', 'Use this account for sales taxes.'),
(7, 'ap_summary_account', 'Accounts Payable', 'Account to file all unpaid AP transactions/invoices too.'),
(6, 'ar_payment', 'Accounts Receivables', 'Allow payments made by customers to be placed into this account'),
(8, 'ap_expense', 'Accounts Payable', 'Use this account for AP expenses'),
(9, 'ap_payment', 'Accounts Payable', 'Allow invoice payments to be taken from this account'),
(10, 'ap_expense_employeewages', 'Accounts Payable', 'Use this account for paying staff wages/expenses');
-- --------------------------------------------------------
--
-- Table structure for table `account_chart_type`
--
CREATE TABLE `account_chart_type` (
`id` int(11) NOT NULL auto_increment,
`value` varchar(20) NOT NULL default '',
`total_mode` varchar(6) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `account_chart_type`
--
INSERT INTO `account_chart_type` (`id`, `value`, `total_mode`) VALUES (1, 'Heading', ''),
(2, 'Asset', 'debit'),
(3, 'Liability', 'credit'),
(4, 'Equity', ''),
(5, 'Income', 'credit'),
(6, 'Expense', 'debit');
-- --------------------------------------------------------
--
-- Table structure for table `account_chart_types_menus`
--
CREATE TABLE `account_chart_types_menus` (
`id` int(11) NOT NULL auto_increment,
`menuid` int(11) NOT NULL,
`chart_typeid` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `account_chart_types_menus`
--
INSERT INTO `account_chart_types_menus` (`id`, `menuid`, `chart_typeid`) VALUES (1, 6, 2),
(2, 9, 2),
(3, 1, 2),
(4, 8, 2),
(5, 3, 3),
(6, 9, 3),
(7, 7, 3),
(8, 2, 5),
(9, 8, 6);
-- --------------------------------------------------------
--
-- Table structure for table `account_charts`
--
CREATE TABLE `account_charts` (
`id` int(11) NOT NULL auto_increment,
`code_chart` int(11) NOT NULL default '0',
`description` varchar(255) NOT NULL default '',
`chart_type` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=52 DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
--
-- Dumping data for table `account_charts`
--
INSERT INTO `account_charts` (`id`, `code_chart`, `description`, `chart_type`) VALUES (1, 1000, 'CURRENT ASSETS', 1),
(2, 1060, 'Current Account', 2),
(3, 1061, 'Savings Account', 2),
(5, 1065, 'Petty Cash', 2),
(6, 1200, 'Accounts Receivables', 2),
(7, 1205, 'Allowance for doubtful accounts', 2),
(8, 1500, 'INVENTORY ASSETS', 1),
(9, 1520, 'Inventory / General', 2),
(10, 1530, 'Inventory / Aftermarket Parts', 2),
(11, 1800, 'CAPITAL ASSETS', 1),
(12, 1820, 'Computer Equipment', 2),
(13, 2000, 'CURRENT LIABILITIES', 1),
(14, 2100, 'Accounts Payable', 3),
(15, 2110, 'Reimburse to Staff', 3),
(16, 2310, 'Sales Tax (GST)', 3),
(17, 4000, 'SALES REVENUE', 1),
(18, 4020, 'Sales / General', 5),
(19, 4021, 'Sales / Internet Services', 5),
(20, 4022, 'Sales / Webdevelopment', 5),
(21, 4023, 'Sales / Computer Hardware', 5),
(22, 4024, 'Sales / Server Support', 5),
(23, 4300, 'CONSULTING REVENUE', 1),
(24, 4320, 'Consulting', 5),
(25, 4400, 'OTHER REVENUE', 1),
(26, 4440, 'Interest', 5),
(28, 4460, 'Captial Investment', 4),
(29, 5000, 'COST OF GOODS SOLD', 1),
(30, 5010, 'Consulting Expenses', 6),
(31, 5020, 'Parts Purchased', 6),
(32, 5600, 'GENERAL & ADMINISTRATIVE EXPENSES', 1),
(33, 5610, 'Accounting & Legal', 6),
(34, 5611, 'Shareholder/Employee Withdrawals', 6),
(35, 5612, 'Webhosting', 6),
(36, 5615, 'Advertising & Promotions', 6),
(37, 5620, 'Bad Debts', 6),
(38, 5680, 'Taxes', 6),
(39, 5681, 'Withholding Tax', 6),
(40, 5685, 'Insurance', 6),
(41, 5690, 'Interest & Bank Charges', 6),
(42, 5700, 'Office Supplies', 6),
(43, 5760, 'Rent', 6),
(44, 5765, 'Repair & Maintenance', 6),
(45, 5785, 'Travel & Entertainment', 6),
(46, 5790, 'Utilities', 6),
(47, 5800, 'Colocation Hosting', 6),
(48, 5810, 'Foreign Exchange Loss', 6),
(49, 5820, 'Training/Conferences', 6),
(50, 5830, 'Shipping', 6),
(51, 1840, 'Furniture', 2);
-- --------------------------------------------------------
--
-- Table structure for table `account_charts_menus`
--
CREATE TABLE `account_charts_menus` (
`id` int(11) NOT NULL auto_increment,
`chartid` int(11) NOT NULL default '0',
`menuid` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;
--
-- Dumping data for table `account_charts_menus`
--
INSERT INTO `account_charts_menus` (`id`, `chartid`, `menuid`) VALUES (1, 2, 6),
(2, 2, 9),
(3, 3, 6),
(4, 3, 9),
(7, 5, 6),
(8, 5, 9),
(9, 6, 1),
(10, 12, 8),
(11, 14, 7),
(12, 15, 9),
(13, 16, 3),
(14, 18, 2),
(15, 19, 2),
(16, 20, 2),
(17, 21, 2),
(18, 22, 2),
(19, 24, 2),
(20, 30, 8),
(21, 31, 8),
(22, 33, 8),
(23, 34, 8),
(24, 35, 8),
(25, 36, 8),
(26, 40, 8),
(27, 42, 8),
(28, 43, 8),
(29, 44, 8),
(30, 45, 8),
(31, 46, 8),
(32, 47, 8),
(33, 49, 8),
(34, 50, 8),
(35, 10, 8);
-- --------------------------------------------------------
--
-- Table structure for table `account_gl`
--
CREATE TABLE `account_gl` (
`id` int(11) NOT NULL auto_increment,
`locked` tinyint(1) NOT NULL default '0',
`code_gl` varchar(255) NOT NULL default '',
`date_trans` date NOT NULL default '0000-00-00',
`employeeid` int(11) NOT NULL default '0',
`description` varchar(255) NOT NULL default '',
`notes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_gl`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_items`
--
CREATE TABLE `account_items` (
`id` int(11) NOT NULL auto_increment,
`invoiceid` int(11) NOT NULL default '0',
`invoicetype` varchar(6) NOT NULL default '',
`type` varchar(10) NOT NULL default '',
`customid` int(11) NOT NULL default '0',
`chartid` int(11) NOT NULL default '0',
`quantity` float NOT NULL default '0',
`units` varchar(10) NOT NULL default '',
`amount` decimal(11,2) NOT NULL default '0.00',
`price` decimal(11,2) NOT NULL default '0.00',
`description` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_items`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_items_options`
--
CREATE TABLE `account_items_options` (
`id` int(11) NOT NULL auto_increment,
`itemid` int(11) NOT NULL default '0',
`option_name` varchar(20) NOT NULL default '',
`option_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_items_options`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_quotes`
--
CREATE TABLE `account_quotes` (
`id` int(11) NOT NULL auto_increment,
`customerid` int(11) NOT NULL default '0',
`employeeid` int(11) NOT NULL default '0',
`code_quote` varchar(255) NOT NULL default '',
`date_trans` date NOT NULL default '0000-00-00',
`date_validtill` date NOT NULL default '0000-00-00',
`date_create` date NOT NULL default '0000-00-00',
`date_sent` date NOT NULL default '0000-00-00',
`sentmethod` varchar(10) NOT NULL default '',
`amount_total` decimal(11,2) NOT NULL default '0.00',
`amount_tax` decimal(11,2) NOT NULL default '0.00',
`amount` decimal(11,2) NOT NULL default '0.00',
`notes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_quotes`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_taxes`
--
CREATE TABLE `account_taxes` (
`id` int(11) NOT NULL auto_increment,
`name_tax` varchar(255) NOT NULL default '',
`chartid` int(11) NOT NULL default '0',
`taxrate` float NOT NULL default '0',
`taxnumber` varchar(255) NOT NULL default '',
`description` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_taxes`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_trans`
--
CREATE TABLE `account_trans` (
`id` int(11) NOT NULL auto_increment,
`type` varchar(6) NOT NULL default '',
`customid` int(11) NOT NULL default '0',
`chartid` int(11) NOT NULL default '0',
`date_trans` date NOT NULL default '0000-00-00',
`amount_debit` decimal(11,2) NOT NULL default '0.00',
`amount_credit` decimal(11,2) NOT NULL default '0.00',
`source` varchar(255) NOT NULL default '',
`memo` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `account_trans`
--
-- --------------------------------------------------------
--
-- Table structure for table `billing_cycles`
--
CREATE TABLE `billing_cycles` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`description` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `billing_cycles`
--
INSERT INTO `billing_cycles` (`id`, `name`, `description`) VALUES (1, 'monthly', 'Bill the customer every month since the start date'),
(2, '6monthly', 'Bill the customer every 6 months since the start date.'),
(3, 'yearly', 'Bill the customer once a year on the start date');
-- --------------------------------------------------------
--
-- Table structure for table `billing_modes`
--
CREATE TABLE `billing_modes` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`description` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `billing_modes`
--
INSERT INTO `billing_modes` (`id`, `name`, `description`) VALUES (1, 'periodend', 'Service is billed after it has been delivered.'),
(2, 'periodadvance', 'Service is billed in advance (before the service period has started)'),
(3, 'monthend', 'Service is billed after it has been delivered, with every period ending on the last day of the month.'),
(4, 'monthadvance', 'Service is billed in advance of the month beginning. The billing period will always end on the last date of the month.');
-- --------------------------------------------------------
--
-- Table structure for table `config`
--
CREATE TABLE `config` (
`name` varchar(255) NOT NULL default '',
`value` text NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `config`
--
INSERT INTO `config` (`name`, `value`) VALUES ('BLACKLIST_ENABLE', 'enabled'),
('BLACKLIST_LIMIT', '10'),
('JOURNAL_LOCK', '0'),
('UPLOAD_MAXBYTES', '5242880'),
('DATA_STORAGE_METHOD', 'database'),
('DATA_STORAGE_LOCATION', 'use_database'),
('ACCOUNTS_TERMS_DAYS', '20'),
('ACCOUNTS_AR_INVOICENUM', '100'),
('ACCOUNTS_INVOICE_LOCK', '0'),
('ACCOUNTS_AP_INVOICENUM', '100'),
('ACCOUNTS_GL_TRANSNUM', '100'),
('ACCOUNTS_QUOTES_NUM', '100'),
('ACCOUNTS_SERVICES_ADVANCEBILLING', '28'),
('CODE_CUSTOMER', '100'),
('CODE_VENDOR', '100'),
('CODE_PRODUCT', '100'),
('CODE_PROJECT', '100'),
('APP_PDFLATEX', '/usr/bin/pdflatex'),
('CODE_ACCOUNT', '1000'),
('CURRENCY_DEFAULT_NAME', 'NZD'),
('CURRENCY_DEFAULT_SYMBOL', '$'),
('COMPANY_NAME', 'Example Ltd'),
('COMPANY_ADDRESS1_STREET', '54a Stallman Lane\r\nFreeburbs'),
('COMPANY_ADDRESS1_CITY', 'Example City'),
('COMPANY_ADDRESS1_STATE', ''),
('COMPANY_ADDRESS1_COUNTRY', 'Example Country'),
('COMPANY_ADDRESS1_ZIPCODE', '0000'),
('COMPANY_CONTACT_PHONE', '00-11-111-1111'),
('COMPANY_CONTACT_FAX', '00-11-111-1112'),
('COMPANY_CONTACT_EMAIL', 'accounts@example.com'),
('COMPANY_PAYMENT_DETAILS', 'Please pay all invoices by direct transfer to XX-XXXX-XXXXXXX.'),
('ACCOUNTS_GL_LOCK', '0'),
('TIMESHEET_LOCK', '0'),
('TIMESHEET_BOOKTOFUTURE', 'disabled'),
('EMAIL_ENABLE', 'enabled'),
('ACCOUNTS_INVOICE_AUTOEMAIL', 'disabled'),
('DATEFORMAT', 'yyyy-mm-dd'),
('TIMEZONE_DEFAULT', 'SYSTEM'),
('SUBSCRIPTION_SUPPORT', 'none'),
('SUBSCRIPTION_ID', '0');
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE `customers` (
`id` int(11) NOT NULL auto_increment,
`code_customer` varchar(50) NOT NULL default '',
`name_customer` varchar(255) NOT NULL default '',
`name_contact` varchar(255) NOT NULL default '',
`contact_email` varchar(255) NOT NULL default '',
`contact_phone` varchar(255) NOT NULL default '',
`contact_fax` varchar(255) NOT NULL default '',
`date_start` date NOT NULL default '0000-00-00',
`date_end` date NOT NULL default '0000-00-00',
`tax_number` varchar(255) NOT NULL default '0',
`tax_default` int(11) NOT NULL default '0',
`address1_street` varchar(255) NOT NULL default '',
`address1_city` varchar(255) NOT NULL default '',
`address1_state` varchar(255) NOT NULL default '',
`address1_country` varchar(255) NOT NULL default '',
`address1_zipcode` int(11) NOT NULL default '0',
`address2_street` varchar(255) NOT NULL default '',
`address2_city` varchar(255) NOT NULL default '',
`address2_state` varchar(255) NOT NULL default '',
`address2_country` varchar(255) NOT NULL default '',
`address2_zipcode` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `customers`
--
-- --------------------------------------------------------
--
-- Table structure for table `customers_taxes`
--
CREATE TABLE `customers_taxes` (
`id` int(11) NOT NULL auto_increment,
`customerid` int(11) NOT NULL,
`taxid` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `customers_taxes`
--
-- --------------------------------------------------------
--
-- Table structure for table `file_upload_data`
--
CREATE TABLE `file_upload_data` (
`id` int(11) NOT NULL auto_increment,
`fileid` int(11) NOT NULL default '0',
`data` blob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Table for use as database-backed file storage system' AUTO_INCREMENT=2 ;
--
-- Dumping data for table `file_upload_data`
--
INSERT INTO `file_upload_data` (`id`, `fileid`, `data`) VALUES (1, 1, 0x89504e470d0a1a0a0000000d49484452000000e60000003c080600000072cfc6f2000000017352474200aece1ce900000006624b474400ff00ff00ffa0bda793000000097048597300000b1300000b1301009a9c180000000774494d4507d9020e042b117833b6530000001d74455874436f6d6d656e7400437265617465642077697468205468652047494d50ef64256e00000d8f4944415478daed9d797c54d515c7bf93494236b2635248248190088100098802e206855aa8b6b5e2820b5494b2a9b5556955dc5aa46e154141ad45a4b4a8a82d582c08d45a10646b58c222c8d64022842064b22ffde34c78efcd4c26992c24d0f3fd7cde27b9efbdb9f7bdfbeeef9d73cfbd73c756b3861a14456953f86915288a0a53511415a6a2a830154551612a8a0a53511415a6a2a830154551612a8aa2c2541415a6a228cd817fab961e9c0601510d3fbfa606ce6cd0a7d65406e641609c91fe7a1a1c7ef69c5f46fc8f20bfd048cf180f8fdcdaf2e54e7811e62d35d259a9b0699e0ad320e50588f9be0fc2ac82cffc5558ff47acd8082b3619e9e8f6f0ab316a3115a55559b7135e78d748778efbff10a6f63115452d6603d8f9132fae6cb53e314585d92a1c7fbf61e705c643cacb60b31bfbf217c1890face7450c8184a9d67d07a643f14e67a76504440d87d01e10942c41117ba8049a2a4f42f15e38b50a8ece83f2639eaf25ed2df00f375dc74228580e17ff12e2ee907c2b4f42c15238f038941f95f3427b43d263107935d8c3a0f490dcffe1195075c6bd9cd437acc1b2fc8570622974bc17be330e42d2811a706c83dcd720ffeda63f8f8038c93f6a1884a4817f24541541c93e38b91c726743c5f1666f062f2c862f7220e7a04bf33805374eb7ee9bfc43b8aa8f91aeaa8257ff0a6ffd1d720e41803ff4498189d7c3ad4355982d4b799e8826e951635fd450d8b811ca8e38ef2e12ba2f84a044e39cbc05862801127f0151d7bae76f03022f922d7230243c08393749637425f607101063a48b7743e2431071b9e94572117ce7a710fd7dd83a10daf7976bf30b30ce09e9069da741f47761eb60a82e75296794359aead8091d2741b44b6b0b1f205bd450d87d27d0484f237e1c749b0df660970e501404f487f0fe90f0809471e2c3667dbc5fe4c0927fb9ef2f2e73df3fd254cda5e570fdafad01a3f24a58bb43b64fbe84a04015a6ef448fa8fb58c93ed96a39f804445e25c201f08f804be643f650b11cdde6584559bc07f64ef4ee2a579d81ea0a0888069ba90bee1f063dde852f53ebb69cb5243c00f610cfc7dac543fafb10dad32a4a33edb3a0d37d7064a6f772121f14eb5ea7b0c688f53cf29cefcfa1e324489dedbebfe2a4d473ada7e2df1ed2df836dd741e18a566f3e0fcdb58ad29577564268900ad3773296d77dece0932246c369815db740bfff18162bea1a48b80fca8e419c6950acaa14768e866a8735cfb2a3926fc1c7e0d86e5829bf20881905697f90c6572bce8e13e0e074eff7600f8192fd707826541543d274b186678597297fbf5d0bb9af827f14749961940372edf509d31e0a8e5d70e0517183c30738f331b9d5494fc0b137a0f254c39f41bb8b6528cbcc8965b0770294e7827f0ca4bd0e1d7ee4f42eec524f1bba424d79b334833b87c3653d64b864e566935314e61e95ed9f267ff7e7c29c8facc7e2a2e0d97b20a38bb8b58fbc0eb92754982d4fd97f61f758e8f537635ff20c773770ffcfc191edfef9dd7778ceb7ba148ebf071183ad7dd48821f55f535509fce71a283becb4c41590bed8c5faef87ec61505d62b8ba498f1bc743d391a0b91737b4ca21de416d9fb56833547c2316ccfc92e870231c7bd3076b790ff8b533f982f990331aaa8b255d5900bb6e972e807f84ec0b4a80d81be0f8bbcdf258470d84514051895598e1a1f08bd19e3fb3600554bb2c2db7e44918d44bfecf4c859ec990399e36bf02dd85318e59b0148efc1e12ef7736c620d9ce460c96c0d1d7bcd442944c7468df0fda75164be4e7ec880425b9589384faafe7e4724394b57d4e57f21618a20428dae6d2c7b58be5f366e90afe6e88f2ecbd7e081585d62051f8e5be0933f26af72e44cc751efaf9f986306b3fd74cc26c54bf74a74b4c2ed110652d7d52a05f1a6cdca3c2f48dec615efa985fd77deceb8721f20ae99f593e7310f6dcedc53a4c842e33c54d6d08f6069ce7c871b16c451eced9eed2bfadf41080aae7f114eff26446454801fd4d2f934ebe3d83a0ced674c420d9ea7581135ab5e9b8baa869899ecfbbe46215a6ef147edabcf9d9ecd4398f226614a4cef1e01e1f35862b0262ad11579badfe325dfbb19edc51d7e190ba0241dea8a9a863bf4b3fcfe663deb646360b7b58ab369d0a97775b601db71118409be7c29992d7f577eed612242a7bc95bb0e306f7639da658d3a58724ba586cb278c9cf40e75fb7cd7b0eecd8b0fd15053eb6f013d66199c2d590ff4efd9f2bcf6bd5ea880987af728df4d13a6efba8067fced513192591d8b306aa1caacb8c2867ecf5d0692ae4ceb27e2ee4126b3a7fa155940061596df7bea3470076715fcdf7149c6c3daf28dbb77ccf6c72069f9c04c440defc7aac6c208d1e2ff5d640eddeada299de29b0dee4dd6fda2313123a441afb4e3be0f36d6dbf49b7bdb9b25d9ff7be057575e9d724cad8a599038fc157935df27d0ec2fa7aefd785f6b6a63bdc04d1c3dbeed30b4e8694170d5735a003a47908f214fcd5b77cf3ffe4f272ea0d9d1f43665db85ae778997c3160bfb8fdcd4c6c848bb52b807756c8d0c8c13cd96ab961b08b01af847133e18c3398ec2881bb9f83a252b598be93f8a0f7e305cba0747f6da706ba2f92c90067ddae7fc291e7e5ed1d731d5ce48cadfb05428fc5b039d308c67cbbd66a5d624742e67a38bd11825344940de953b626095365da5ff93108ee621de60099b2e7d8e1633f7fa58c5bc68e34b9f44f41dc18f8f67319a6f18f86b00c9928616bb9f7fb80eeeefbee98e1f27e5d237f87f797ef566ede6b1c5bb65ebef799140f87f2c1711e88b26d5a4c5f487ed298f5035071ca3a056def0428350d5b847483d4b946faf06fa49199091f000993216684cc6fcd5fd476ef3f7f91dc734024847677176559aed44163d8751b9c7409c485a4cab4c284a932ab282ca3454509d0b79b08ae41312b1b2c9806112e93a18acb647281a314126261e4652acc9623f25ab8789a75df5793ace38795a76420dcfcad94b8db207eacf389ed96e199620fb1f3d31b60eb1550f255dbad03c77699537b7aa307abb70ab60c721fe76c2855a761db70d8331e8abc58dc8a4238fe11ecba5382462dc0874fc3e37740cf240869e7fddc1e49f0ef578cd940668665c1ba39d0a943db6fde36fd193ee7fb29ac0f04779555128a733c4f0a686dbc2d0912d243be2153e3fc764973bf5002e3e5db2bb5dd86ca4219572e3dd822419fe660c701d875480248195da06ba7f3a745ea0a06200dab688b6ce72bc539ee11e5e6a43cafd587437ca567b26ce7a9a950144585a9288abab21714d9c3ad53f7cafeab75a2c2545a1d47b6d681bab28aa2a830154551612a8a0a53511415a6a2a830150b61df6b997c23479ebf7532e14558bbdd7bdd0c9ce4b90ecdff9bcf51612ae79caaaa0beb7ed6e7c85294de5837a7fe7c1a728e0af31cf0bb3fc3ac25f2ff03b3e19a07e4ffd55be0b6679a7edcccfc4fe0d20990314e9637dcb8dbfad6feed4218f033e87a2b2c5d074f2f80cb2642f2cdb0ec0b6b5e0fcf83be7743d63d70c0b436f4378570ddc3d06bac94b1798fb58c69af43bf7be1b36cf95cd63d92cf4373ddad7243afe7f7ef43ea18e8fd535953d5956f0a61e43448bf4bee7dcd56d97f280f064d966b1d3c45d28d297fd721484d00bbdd7bdd34c4d370b5a4cf2e9267967c337c6c2a737faed46f6ddd9d8fde469b16e61519c632109bf6c81aa31595b26f4846d38f9bb961307c3917b6bd05f31f81c92f5b2d58a758d8f01abcf704dcfc14a47482f5afc292a7acc2a9aa9286b8f54df9ad8cfb4d8b994f7d45d644ddfe47787b9ab878b55456c984eb4df3e09a4cf9dcc4eb259fb444282b6fdcf53cf5b69c97fd0778f476f73a9e320baeec0d3be7cb3959a9c6fe71df936b1d3b42aebd31e52fdf00232eadbf6e1ae35524749067b6783afcd254e6fdb3e1fe1ba59c9ec9d6ba5361360359a922a8d30e68170897a74bfaf3ed22baa61e37b3fbb058d49e63e51bf2e61fb3b1d9e016e7cf9b64a6427535dc749591765df4a9f6dcdb86c9ef65d4b26a33fcfc55e87337dcfe5b38695a28cf06fcf84a23fdefedd67ccc0b29f8723d837ac29d33e04f2bddd7cf01f874334cf881916f78a8e7f2cdf7e14bf9ffd86808d35bddf88acd06a39dcbdf5edadd5ae6da1d70a3b32e475fddf617a1f0449b9e921718009de3c5cd1c980e195dc5d5da970bdd3b4b8537e5b89931bf81b71f9105824bcb217a94e9ede5675df2b05da0e19af942750dac9b0d211e7e3bc36e6ff88fddf8723d1f3d03abb7c2e235f0c74fe0d317dc1bb8cf6ff306965f5c0aa78aa063f32f05849f9ffc8a9737e16a1fb325ddd95ef0fc6218d25bfe9ffb37e89b62547c538fd772a6585c23803796c9f78d1bcb62e71a347f590d834d2b815f9b09f3965afb5f7531b897359fc65e4fee0918d60f9e9b00d9fbdc8f0fcd923a0129e3b4c3e846d496ffe75562797d65cd56b8ba6fc3eaa63919d8d3f845b0f73f6bdab354617ae9671e2b80cb7b405cb45815b31bda94e3e6f0fbcc7b61c87dd0ff5e283c2356a031d8edb0e788041e662d81974c65ccbe0f566d91404bfa5db07065ddf9bc34095ef940f2c939d8f8ebb9e56909fc5c3155eed1f5be674d1101a5df252ef616e7c2072f4f81373f96e0cf9b1f4bda57967f697563bdd54d73f2d224f97dcdccf1b0751f84069f7fc2d4a54594162373bc048802ce7187a9a44c5ec0361b7cf02f98fd21ac7e49fb988a02c096375aa7dc1d0764fdd88a4a086e271170b5988aa25cf87d4c4551612a8aa2c254144585a9282a4c455154988aa2c25414a565f91f99f595c2321aea960000000049454e44ae426082);
-- --------------------------------------------------------
--
-- Table structure for table `file_uploads`
--
CREATE TABLE `file_uploads` (
`id` int(11) NOT NULL auto_increment,
`customid` int(11) NOT NULL default '0',
`type` varchar(20) NOT NULL default '',
`timestamp` bigint(20) unsigned NOT NULL default '0',
`file_name` varchar(255) NOT NULL default '',
`file_size` varchar(255) NOT NULL default '',
`file_location` char(2) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `file_uploads`
--
INSERT INTO `file_uploads` (`id`, `customid`, `type`, `timestamp`, `file_name`, `file_size`, `file_location`) VALUES (1, 0, 'COMPANY_LOGO', 1234659343, 'company_logo.png', '3640', 'db');
-- --------------------------------------------------------
--
-- Table structure for table `journal`
--
CREATE TABLE `journal` (
`id` int(11) NOT NULL auto_increment,
`locked` tinyint(1) NOT NULL default '0',
`journalname` varchar(50) NOT NULL default '',
`type` varchar(20) NOT NULL default '',
`userid` int(11) NOT NULL default '0',
`customid` int(11) NOT NULL default '0',
`timestamp` bigint(20) unsigned NOT NULL default '0',
`content` text NOT NULL,
`title` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `journalname` (`journalname`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `journal`
--
-- --------------------------------------------------------
--
-- Table structure for table `language`
--
CREATE TABLE `language` (
`id` int(11) NOT NULL auto_increment,
`language` varchar(20) NOT NULL default '',
`label` varchar(255) NOT NULL default '',
`translation` text NOT NULL,
PRIMARY KEY (`id`),
KEY `language` (`language`),
KEY `label` (`label`)
) ENGINE=MyISAM AUTO_INCREMENT=272 DEFAULT CHARSET=latin1 AUTO_INCREMENT=272 ;
--
-- Dumping data for table `language`
--
INSERT INTO `language` (`id`, `language`, `label`, `translation`) VALUES (1, 'en_us', 'name_customer', 'Customer Name'),
(2, 'en_us', 'name_contact', 'Contact Name'),
(4, 'en_us', 'customer_view', 'Customer Details'),
(5, 'en_us', 'address_billing', 'Billing Address'),
(6, 'en_us', 'address_shipping', 'Shipping Address'),
(7, 'en_us', 'id_customer', 'Customer ID'),
(8, 'en_us', 'submit', 'Save Information'),
(9, 'en_us', 'username_amberdms_bs', 'Username'),
(10, 'en_us', 'password_amberdms_bs', 'Password'),
(11, 'en_us', 'name_staff', 'Employee Name'),
(12, 'en_us', 'filter_date_start', 'Start Date'),
(13, 'en_us', 'filter_date_end', 'End Date'),
(14, 'en_us', 'filter_employee_id', 'Employee'),
(15, 'en_us', 'filter_customerid', 'Customer'),
(16, 'en_us', 'filter_hide_closed', 'Hide Options'),
(17, 'en_us', 'code_invoice', 'Invoice Number'),
(18, 'en_us', 'code_ordernumber', 'Order Number'),
(19, 'en_us', 'code_ponumber', 'PO Number'),
(20, 'en_us', 'date_trans', 'Transaction Date'),
(21, 'en_us', 'date_due', 'Date Due'),
(22, 'en_us', 'amount_tax', 'Amount of Tax'),
(23, 'en_us', 'amount_total', 'Total Amount'),
(24, 'en_us', 'amount_paid', 'Amount Paid'),
(25, 'en_us', 'sent', 'Sent'),
(26, 'en_us', 'filter_employeeid', 'Employee'),
(27, 'en_us', 'amount', 'Amount'),
(28, 'en_us', 'customerid', 'Customer'),
(29, 'en_us', 'employeeid', 'Employee'),
(30, 'en_us', 'dest_account', 'Destination Account'),
(31, 'en_us', 'notes', 'Notes/Details'),
(32, 'en_us', 'ar_invoice_details', 'AR Invoice Details'),
(33, 'en_us', 'ar_invoice_financials', 'AR Invoice Financials'),
(34, 'en_us', 'ar_invoice_other', 'AR Invoice Additional Details'),
(35, 'en_us', 'item_info', 'Item Information'),
(36, 'en_us', 'price', 'Price'),
(37, 'en_us', 'qnty', 'Qnty'),
(38, 'en_us', 'quantity', 'Quantity'),
(39, 'en_us', 'units', 'Units'),
(40, 'en_us', 'description', 'Description'),
(41, 'en_us', 'name_tax', 'Tax Name'),
(42, 'en_us', 'chartid', 'Account'),
(43, 'en_us', 'ar_invoice_item', 'AR Invoice Item Details'),
(44, 'en_us', 'timegroupid', 'Time Group'),
(45, 'en_us', 'productid', 'Product'),
(46, 'en_us', 'account', 'Account'),
(47, 'en_us', 'source', 'Source'),
(48, 'en_us', 'filter_title_search', 'Search Title'),
(49, 'en_us', 'filter_content_search', 'Search Content'),
(50, 'en_us', 'filter_hide_events', 'Hide Options'),
(51, 'en_us', 'ar_invoice_delete', 'Delete AR Invoice'),
(52, 'en_us', 'name_vendor', 'Vendor Name'),
(53, 'en_us', 'filter_vendorid', 'Vendor'),
(54, 'en_us', 'ap_invoice_details', 'AP Invoice Details'),
(55, 'en_us', 'ap_invoice_financials', 'AP Invoice Financials'),
(56, 'en_us', 'ap_invoice_other', 'AP Invoice Additional Details'),
(57, 'en_us', 'ap_invoice_item', 'AP Invoice Item Details'),
(58, 'en_us', 'ap_invoice_delete', 'Delete AP Invoice'),
(59, 'en_us', 'quote_details', 'Quote Details'),
(60, 'en_us', 'quote_other', 'Quote Additional Details'),
(61, 'en_us', 'quotes_invoice_item', 'Quote Item Details'),
(62, 'en_us', 'quote_delete', 'Delete Quote'),
(63, 'en_us', 'quote_convert_details', 'AR Invoice Details'),
(64, 'en_us', 'quote_invoice_financials', 'AR Invoice Financials'),
(65, 'en_us', 'journal_edit', 'Journal Entry Details'),
(66, 'en_us', 'title', 'Entry Title'),
(67, 'en_us', 'contents', 'Entry Content/Details'),
(68, 'en_us', 'upload', 'File to Upload'),
(69, 'en_us', 'code_quote', 'Quote Number'),
(70, 'en_us', 'delete_confirm', 'Confirm Deletion'),
(71, 'en_us', 'date_validtill', 'Expiry Date'),
(72, 'en_us', 'taxrate', 'Tax Rate'),
(73, 'en_us', 'taxnumber', 'Tax Number'),
(74, 'en_us', 'tax_details', 'Tax Details'),
(75, 'en_us', 'tax_delete', 'Delete Tax'),
(76, 'en_us', 'filter_mode', 'Mode'),
(77, 'en_us', 'code_chart', 'Account ID'),
(78, 'en_us', 'chart_type', 'Account Type'),
(79, 'en_us', 'debit', 'Debit'),
(80, 'en_us', 'credit', 'Credit'),
(81, 'en_us', 'chart_details', 'Account Details'),
(82, 'en_us', 'chart_delete', 'Delete Account'),
(83, 'en_us', 'memo', 'Memo/Details'),
(84, 'en_us', 'item_id', 'Transaction ID'),
(85, 'en_us', 'code_reference', 'Transaction ID'),
(86, 'en_us', 'filter_search', 'Search'),
(87, 'en_us', 'general_ledger_transaction_details', 'GL Transaction Details'),
(88, 'en_us', 'code_gl', 'Transaction ID'),
(89, 'en_us', 'filter_searchbox', 'Search'),
(90, 'en_us', 'code_customer', 'Customer ID'),
(91, 'en_us', 'contact_phone', 'Phone Number'),
(92, 'en_us', 'contact_email', 'Email Address'),
(93, 'en_us', 'contact_fax', 'Fax Number'),
(94, 'en_us', 'date_start', 'Start Date'),
(95, 'en_us', 'date_end', 'End Date'),
(96, 'en_us', 'tax_number', 'Tax Number'),
(97, 'en_us', 'address1_street', 'Street'),
(98, 'en_us', 'address1_city', 'City'),
(99, 'en_us', 'address1_state', 'State'),
(100, 'en_us', 'address1_country', 'Country'),
(101, 'en_us', 'address1_zipcode', 'Zipcode'),
(102, 'en_us', 'address2_street', 'Street'),
(103, 'en_us', 'address2_city', 'City'),
(104, 'en_us', 'address2_state', 'State'),
(105, 'en_us', 'address2_country', 'Country'),
(106, 'en_us', 'address2_zipcode', 'Zipcode'),
(107, 'en_us', 'filter_hide_ex_customers', 'Hide Options'),
(108, 'en_us', 'tax_default', 'Default Tax'),
(109, 'en_us', 'customer_taxes', 'Customer Tax Options'),
(110, 'en_us', 'name_service', 'Service Name'),
(111, 'en_us', 'active', 'Active'),
(112, 'en_us', 'typeid', 'Type'),
(113, 'en_us', 'date_period_next', 'Next Period'),
(114, 'en_us', 'label', 'translation'),
(115, 'en_us', 'service_edit', 'Service Details'),
(116, 'en_us', 'service_add', 'Service Details'),
(117, 'en_us', 'service_billing', 'Service Billing Details'),
(118, 'en_us', 'customer_delete', 'Delete Customer'),
(119, 'en_us', 'name_service', 'Service Name'),
(120, 'en_us', 'active', 'Active'),
(121, 'en_us', 'typeid', 'Type'),
(122, 'en_us', 'date_period_next', 'Next Period'),
(123, 'en_us', 'label', 'translation'),
(124, 'en_us', 'service_edit', 'Service Details'),
(125, 'en_us', 'service_add', 'Service Details'),
(126, 'en_us', 'service_billing', 'Service Billing Details'),
(127, 'en_us', 'customer_delete', 'Delete Customer'),
(128, 'en_us', 'paid', 'Paid'),
(129, 'en_us', 'invoiced', 'Invoiced'),
(130, 'en_us', 'service_delete', 'Delete Service'),
(131, 'en_us', 'code_vendor', 'Vendor ID'),
(132, 'en_us', 'filter_hide_ex_vendors', 'Hide Options'),
(133, 'en_us', 'vendor_taxes', 'Vendor Tax Options'),
(134, 'en_us', 'vendor_view', 'Vendor Details'),
(135, 'en_us', 'vendor_delete', 'Delete Vendor'),
(136, 'en_us', 'staff_code', 'Employee ID'),
(137, 'en_us', 'staff_position', 'Employee Position'),
(138, 'en_us', 'filter_hide_ex_employees', 'Hide Options'),
(139, 'en_us', 'staff_view', 'Employee Details'),
(140, 'en_us', 'staff_delete', 'Delete Employee'),
(141, 'en_us', 'code_product', 'Product ID'),
(142, 'en_us', 'name_product', 'Product Name'),
(143, 'en_us', 'account_sales', 'Sales Account'),
(144, 'en_us', 'price_cost', 'Cost Price'),
(145, 'en_us', 'price_sale', 'Sale Price'),
(146, 'en_us', 'date_current', 'Current Date'),
(147, 'en_us', 'quantity_instock', 'Quantity Instock'),
(148, 'en_us', 'paid', 'Paid'),
(149, 'en_us', 'invoiced', 'Invoiced'),
(150, 'en_us', 'service_delete', 'Delete Service'),
(151, 'en_us', 'code_vendor', 'Vendor ID'),
(152, 'en_us', 'filter_hide_ex_vendors', 'Hide Options'),
(153, 'en_us', 'vendor_taxes', 'Vendor Tax Options'),
(154, 'en_us', 'vendor_view', 'Vendor Details'),
(155, 'en_us', 'vendor_delete', 'Delete Vendor'),
(156, 'en_us', 'staff_code', 'Employee ID'),
(157, 'en_us', 'staff_position', 'Employee Position'),
(158, 'en_us', 'filter_hide_ex_employees', 'Hide Options'),
(159, 'en_us', 'staff_view', 'Employee Details'),
(160, 'en_us', 'staff_delete', 'Delete Employee'),
(161, 'en_us', 'code_product', 'Product ID'),
(162, 'en_us', 'name_product', 'Product Name'),
(163, 'en_us', 'account_sales', 'Sales Account'),
(164, 'en_us', 'price_cost', 'Cost Price'),
(165, 'en_us', 'price_sale', 'Sale Price'),
(166, 'en_us', 'date_current', 'Current Date'),
(167, 'en_us', 'quantity_instock', 'Quantity Instock'),
(168, 'en_us', 'quantity_vendor', 'Vendor''s Stock Quantity'),
(169, 'en_us', 'product_view', 'Product Details'),
(170, 'en_us', 'product_pricing', 'Product Pricing'),
(171, 'en_us', 'product_quantity', 'Product Stock'),
(172, 'en_us', 'product_supplier', 'Supplier Details'),
(173, 'en_us', 'code_product_vendor', 'Vendor Product ID'),
(174, 'en_us', 'product_delete', 'Delete Product'),
(175, 'en_us', 'included_units', 'Units Included'),
(176, 'en_us', 'price_extraunits', 'Price (per extra unit)'),
(177, 'en_us', 'billing_cycle', 'Billing Cycle'),
(178, 'en_us', 'service_details', 'Service Details'),
(179, 'en_us', 'service_plan', 'Service Plan Details'),
(180, 'en_us', 'service_plan_custom', 'Service Plan Options'),
(181, 'en_us', 'billing_mode', 'Billing Mode'),
(182, 'en_us', 'code_project', 'Project ID'),
(183, 'en_us', 'filter_hide_ex_projects', 'Hide Options'),
(184, 'en_us', 'details', 'details'),
(185, 'en_us', 'project_view', 'Project Details'),
(186, 'en_us', 'name_phase', 'Phase Name'),
(187, 'en_us', 'phase_edit', 'Phase Details'),
(188, 'en_us', 'date', 'Date'),
(189, 'en_us', 'time_group', 'Time Group'),
(190, 'en_us', 'time_booked', 'Time Booked'),
(191, 'en_us', 'filter_phaseid', 'Phase Name'),
(192, 'en_us', 'phaseid', 'Phase Name'),
(193, 'en_us', 'timereg_day', 'Day Time Booking'),
(194, 'en_us', 'filter_no_group', 'Hide Options'),
(195, 'en_us', 'time_billed', 'Billable Hours'),
(196, 'en_us', 'time_not_billed', 'Unbillable Hours'),
(197, 'en_us', 'timebilled_details', 'Time Group Details'),
(198, 'en_us', 'timebilled_selected', 'Time Group Registered Hours'),
(199, 'en_us', 'name_group', 'Time Group Name'),
(200, 'en_us', 'time_bill', 'Billable'),
(201, 'en_us', 'time_nobill', 'Unbillable'),
(202, 'en_us', 'project_delete', 'Delete Project'),
(203, 'en_us', 'name_project', 'Project Name'),
(204, 'en_us', 'projectandphase', 'Project/Phase'),
(205, 'en_us', 'priority', 'Priority'),
(206, 'en_us', 'filter_hide_ex_tickets', 'Hide Options'),
(207, 'en_us', 'status', 'Status'),
(208, 'en_us', 'code_support_ticket', 'Ticket ID'),
(209, 'en_us', 'support_ticket_details', 'Ticket Details'),
(210, 'en_us', 'support_ticket_status', 'Ticket Status'),
(211, 'en_us', 'support_delete', 'Delete Ticket'),
(212, 'en_us', 'username', 'Username'),
(213, 'en_us', 'realname', 'Realname'),
(214, 'en_us', 'password', 'Password'),
(215, 'en_us', 'password_confirm', 'Password - Confirm'),
(216, 'en_us', 'time', 'Time'),
(217, 'en_us', 'ipaddress', 'IP Address'),
(218, 'en_us', 'option_lang', 'Languages'),
(219, 'en_us', 'option_debug', 'Debugging'),
(220, 'en_us', 'user_view', 'User Details'),
(221, 'en_us', 'user_password', 'User Authentication'),
(222, 'en_us', 'user_info', 'User Information'),
(223, 'en_us', 'user_options', 'Account Options'),
(224, 'en_us', 'lastlogin_time', 'Lastlogin Time'),
(225, 'en_us', 'lastlogin_ipaddress', 'Lastlogin IP Address'),
(226, 'en_us', 'id_user', 'User ID'),
(227, 'en_us', 'user_permissions', 'User Permissions'),
(228, 'en_us', 'user_permissions_staff', 'User Staff Access Rights'),
(229, 'en_us', 'user_delete', 'Delete User Account'),
(230, 'en_us', 'blacklist_control', 'Blacklist Options'),
(231, 'en_us', 'blacklist_enable', 'Enable Blacklisting'),
(232, 'en_us', 'blacklist_limit', 'Max authentication attempts'),
(233, 'en_us', 'date_period_first', 'First Period'),
(234, 'en_us', 'option_dateformat', 'Date Format'),
(235, 'en_us', 'option_timezone', 'Timezone'),
(236, 'en_us', 'general_ledger_transaction_rows', 'GL Transaction Rows'),
(237, 'en_us', 'vendorid', 'Vendor'),
(238, 'en_us', 'tax_setup_options', 'Tax Setup Options'),
(239, 'en_us', 'ar_invoice_item_tax', 'AR Invoice Item Tax Selection'),
(240, 'en_us', 'ap_invoice_item_tax', 'AP Invoice Item Tax Selection'),
(241, 'en_us', 'instance_amberdms_bs', 'Customer Instance ID'),
(242, 'en_us', 'user_permissions_selectstaff', 'User Staff Configuration'),
(243, 'en_us', 'id_staff', 'Employee'),
(244, 'en_us', 'auditlock', 'Audit Locking'),
(245, 'en_us', 'date_lock', 'Lock Before'),
(246, 'en_us', 'content', 'Content'),
(247, 'en_us', 'content', 'Content'),
(248, 'en_us', 'option_shrink_tableoptions', 'Table Options Feature'),
(249, 'en_us', 'option_concurrent_logins', 'Concurrent Logins'),
(250, 'en_us', 'tbl_lnk_details', 'details'),
(251, 'en_us', 'tbl_lnk_permissions', 'permissions'),
(252, 'en_us', 'tbl_lnk_staffaccess', 'staffaccess'),
(253, 'en_us', 'tbl_lnk_timesheet', 'timesheet'),
(254, 'en_us', 'tbl_lnk_view_timeentry', 'View Time Entry'),
(255, 'en_us', 'date_as_of', 'Date as of'),
(256, 'en_us', 'mode', 'Mode'),
(257, 'en_us', 'service_tax', 'Service Tax'),
(258, 'en_us', 'usage_mode', 'Usage Mode'),
(259, 'en_us', 'serviceid', 'Service Plan'),
(260, 'en_us', 'timebilled_selection', 'Time Selection'),
(261, 'en_us', 'filter_groupby', 'Group By'),
(262, 'en_us', 'sender', 'Sender'),
(263, 'en_us', 'subject', 'Subject'),
(264, 'en_us', 'email_to', 'Email (To)'),
(265, 'en_us', 'email_message', 'Email Message'),
(266, 'en_us', 'email_cc', 'Email (CC)'),
(267, 'en_us', 'email_bcc', 'Email (BCC)'),
(268, 'en_us', 'account_purchase', 'Purchase Account'),
(269, 'en_us', 'description_useall', 'Description Useall'),
(270, 'en_us', 'general_ledger_transaction_submit', 'GL Transaction Submit'),
(271, 'en_us', 'invoice_gen_date', 'Invoice Gen Date');
-- --------------------------------------------------------
--
-- Table structure for table `language_avaliable`
--
CREATE TABLE `language_avaliable` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(5) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `language_avaliable`
--
INSERT INTO `language_avaliable` (`id`, `name`) VALUES (1, 'en_us');
-- --------------------------------------------------------
--
-- Table structure for table `menu`
--
CREATE TABLE `menu` (
`id` int(11) NOT NULL auto_increment,
`priority` int(11) NOT NULL default '0',
`parent` varchar(50) NOT NULL default '',
`topic` varchar(50) NOT NULL default '',
`link` varchar(50) NOT NULL default '',
`permid` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=167 DEFAULT CHARSET=latin1 AUTO_INCREMENT=167 ;
--
-- Dumping data for table `menu`
--
INSERT INTO `menu` (`id`, `priority`, `parent`, `topic`, `link`, `permid`) VALUES (1, 210, 'Customers', 'View Customers', 'customers/customers.php', 3),
(2, 220, 'Customers', 'Add Customer', 'customers/add.php', 4),
(6, 300, 'top', 'Vendors/Suppliers', 'vendors/vendors.php', 5),
(4, 1, 'top', 'Overview', 'home.php', 0),
(5, 200, 'top', 'Customers', 'customers/customers.php', 3),
(13, 100, 'top', 'Accounts', 'accounts/accounts.php', 0),
(14, 500, 'top', 'Products/Services/Projects', 'products/main.php', 0),
(15, 700, 'top', 'Time Keeping', 'timekeeping/timekeeping.php', 17),
(16, 800, 'top', 'Support Tickets', 'support/support.php', 9),
(7, 400, 'top', 'Human Resources', 'hr/staff.php', 7),
(12, 211, 'View Customers', '', 'customers/view.php', 0),
(17, 310, 'Vendors/Suppliers', 'View Vendors', 'vendors/vendors.php', 5),
(18, 320, 'Vendors/Suppliers', 'Add Vendor', 'vendors/add.php', 6),
(19, 311, 'View Vendors', '', 'vendors/view.php', 5),
(24, 810, 'Support Tickets', 'View Tickets', 'support/support.php', 9),
(26, 510, 'Products/Services/Projects', 'Products', 'products/products.php', 11),
(21, 410, 'Human Resources', 'View Staff', 'hr/staff.php', 7),
(22, 420, 'Human Resources', 'Add Staff', 'hr/staff-add.php', 8),
(23, 411, 'View Staff', '', 'hr/staff-view.php', 7),
(25, 820, 'Support Tickets', 'Add Ticket', 'support/add.php', 10),
(27, 511, 'Products', 'View Products', 'products/products.php', 11),
(28, 512, 'Products', 'Add Product', 'products/add.php', 12),
(29, 501, 'Products/Services/Projects', '', 'products/main.php', 0),
(30, 514, 'Products', '', 'products/products.php', 11),
(31, 520, 'Products/Services/Projects', 'Services', 'services/services.php', 13),
(32, 521, 'Services', '', 'services/services.php', 13),
(33, 522, 'Services', 'View Services', 'services/services.php', 13),
(34, 523, 'View Services', '', 'services/view.php', 13),
(35, 524, 'Services', 'Add Service', 'services/add.php', 14),
(36, 513, 'View Products', '', 'products/view.php', 11),
(37, 530, 'Products/Services/Projects', 'Projects', 'projects/projects.php', 15),
(38, 531, 'Projects', '', 'projects/projects.php', 15),
(39, 533, 'View Projects', '', 'projects/view.php', 15),
(40, 534, 'Projects', 'Add Project', 'projects/add.php', 16),
(41, 532, 'Projects', 'View Projects', 'projects/projects.php', 15),
(42, 701, 'Time Keeping', '', 'timekeeping/timekeeping.php', 17),
(43, 710, 'Time Keeping', 'Time Registration', 'timekeeping/timereg.php', 17),