INSERT INTO `comp_gl` (`ID`, `companyID`, `acctCode`, `acctGroupID`, `description`, `amount_cr`, `amount_dr`, `period`, `year`, `createdID`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(2631, 1, '820011000', 10, 'Cleaning	Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2632, 1, '820012000', 10, 'Postage & Delivery', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2633, 1, '820013000', 10, 'Printing', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2634, 1, '820014000', 10, 'Rent', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2635, 1, '820015000', 10, 'Store Supplies', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2636, 1, '820016000', 10, 'Telephone', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2637, 1, '820017000', 10, 'Water', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2638, 1, '820018000', 10, 'Shrinkage/Spoilage', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2639, 1, '820019000', 10, 'Employment Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2640, 1, '820019010', 10, 'Fringe Benefits Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2641, 1, '820019020', 10, 'Staff Amenities ', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2642, 1, '820019030', 10, 'Wages & Salaries ', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2643, 1, '820019040', 10, 'Workers'' Compensation', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2644, 1, '820019050', 10, 'Other Employment Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2645, 1, '820020000', 10, 'Uniforms & Laundry', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2646, 1, '830000000', 10, 'Interest & Bank Charges', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2647, 1, '840000000', 10, 'Discounts Given', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2648, 1, '841000000', 10, 'Prompt Payment Discount', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2649, 1, '850000000', 10, 'Zakat Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2650, 1, '860000000', 11, 'Bad Debt Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2651, 1, '870000000', 11, 'Exchange Difference', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2652, 1, '860000000', 12, 'Income Tax Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2653, 1, '810019010', 10, 'Advertising', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2654, 2, '120000000', 1, 'Retained Earnings-Prior Year', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2655, 2, '130000000', 1, 'Current Year Earnings', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2656, 2, '200000000', 2, 'Fixed Assets', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2657, 2, '200010000', 2, 'Buildings & Improvements', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2658, 2, '200010010', 2, 'Bldgs & Imprv at Cost', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2659, 2, '200010020', 2, 'Bldgs & Imprv Accum Dep''n', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2660, 2, '200020000', 2, 'Production Equipment', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2661, 2, '200020010', 2, 'Production Equipment at Cost', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2662, 2, '200020020', 2, 'Production Equipment Accum Dep''n', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2663, 2, '200030000', 2, 'Furniture and Fixtures', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2664, 2, '200030010', 2, 'Furniture & Fixtures at Cost', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2665, 2, '200030020', 2, 'Furniture & Fixtures Accum Dep''n', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2666, 2, '200040000', 2, 'Motor Vehicles', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2667, 2, '200040010', 2, 'Motor Vehicles at Cost', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2668, 2, '200040020', 2, 'Motor Vehicles Accum Dep''n', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2669, 2, '200050000', 2, 'Leasehold Improvements', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2670, 2, '200050010', 2, 'Improvements at Cost', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2671, 2, '200050020', 2, 'Improvements Amortisation', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2672, 2, '210000000', 3, 'Trade Receivable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2673, 2, '220000000', 3, 'Cash and Bank Balances', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2674, 2, '220010000', 3, 'Bank', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2675, 2, '220020000', 3, 'Cash in Hand', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2676, 2, '220030000', 3, 'Petty Cash', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2677, 2, '230000000', 3, 'Inventories', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2678, 2, '230010000', 3, 'Stock of Work in Progress', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2679, 2, '240000000', 3, 'Other Receivables', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2680, 2, '250000000', 3, 'Prepayments and Deposits', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2681, 2, '250010000', 3, 'Prepayments', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2682, 2, '250020000', 3, 'Deposits Paid', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2683, 2, '260000000', 3, 'Tax Claimable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2684, 2, '260010000', 3, 'GST Input Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2685, 2, '260011000', 3, 'Provision for GST Non-Claimable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2686, 2, '260020000', 3, 'Suspense GST - Input Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2687, 2, '300000000', 4, 'Trade Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2688, 2, '320000000', 4, 'Other Payables', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2689, 2, '330000000', 4, 'Tax Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2690, 2, '330010000', 4, 'GST Output Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2691, 2, '330020000', 4, 'Suspense GST - Output Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2692, 2, '330030000', 4, 'Import Duty Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2693, 2, '330040000', 4, 'Sales Tax Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2694, 2, '330050000', 4, 'Service Tax Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2695, 2, '340000000', 4, 'Accruals', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2696, 2, '340010000', 4, 'Accrued Payroll', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2697, 2, '340020000', 4, 'Payroll Deductions Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2698, 2, '340030000', 4, 'PAYE Tax Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2699, 2, '340040000', 4, 'Commission Payable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2700, 2, '350000000', 4, 'Client Deposits', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2701, 2, '360000000', 5, 'Deffered Tax Liabilities', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2702, 2, '370000000', 6, 'Borrowing', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2703, 2, '370010000', 6, 'Bank Loans', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2704, 2, '370080000', 6, 'Other Long-Term Liabilities', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2705, 2, '400000000', 7, 'Sales', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2706, 2, '410000000', 7, 'Audio Equip Rental Income', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2707, 2, '420000000', 7, 'Video Equip Rental Income', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2708, 2, '430000000', 7, 'Other Service Fees', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2709, 2, '460000000', 7, 'Miscellaneous Income', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2710, 2, '500000000', 8, 'Cost of Goods Sold', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2711, 2, '500010000', 8, 'Purchases - Audio Equip', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2712, 2, '500020000', 8, 'Purchases - Video Equip', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2713, 2, '510000000', 8, 'Purchase Price Variance', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2714, 2, '560000000', 8, 'Freight', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2715, 2, '570000000', 8, 'Inventory Adjustment Account', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2716, 2, '580000000', 8, 'Commission Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2717, 2, '710000000', 9, 'Discount Received', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2718, 2, '711000000', 9, 'Interest Income', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2719, 2, '712000000', 9, 'Late Fees Collected', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2720, 2, '713000000', 9, 'Freight Collected', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2721, 2, '810000000', 10, 'Administration Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2722, 2, '810010000', 10, 'Accounting Fees', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2723, 2, '810011000', 10, 'Legal Fees', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2724, 2, '810012000', 10, 'Postage & Delivery', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2725, 2, '810013000', 10, 'Office Supplies', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2726, 2, '810014000', 10, 'Dues & Subscriptions', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2727, 2, '810015000', 10, 'Telephone', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2728, 2, '810016000', 10, 'Advertising', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2729, 2, '810017000', 10, 'Maintenance & Repairs', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2730, 2, '810018000', 10, 'Freight', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2731, 2, '810019000', 10, 'Late Payment Charges', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2732, 2, '810020000', 10, 'Rent', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2733, 2, '810021000', 10, 'Electricity', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2734, 2, '810022000', 10, 'Depreciation Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2735, 2, '810040000', 10, 'GST- Non Claimable', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2736, 2, '810050000', 10, 'Service Tax', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2737, 2, '820000000', 10, 'Employment Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2738, 2, '820010000', 10, 'Staff Amenities', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2739, 2, '820030000', 10, 'Wages & Salaries', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2740, 2, '820040000', 10, 'Workers'' Compensation', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2741, 2, '820050000', 10, 'Other Employment Expenses', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2742, 2, '830000000', 10, 'Interest & Bank Charges', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2743, 2, '840000000', 10, 'Discounts Given', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2744, 2, '841000000', 10, 'Prompt Payment Discount', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2745, 2, '850000000', 10, 'Zakat Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2746, 2, '860000000', 11, 'Bad Debt Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2747, 2, '870000000', 11, 'Exchange Difference', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2748, 2, '860000000', 12, 'Income Tax Expense', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2749, 2, '110000000', 1, 'Share Capital', 0, 0, 2, 2014, NULL, '2014-05-15 11:04:18', NULL, '2014-05-15 11:04:18'),
(2806, 1, '100000000', 1, 'Owner''s/Shareholder''s capital', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2807, 1, '120000000', 1, 'Retained Earnings-Prior Year', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2808, 1, '130000000', 1, 'Current Year Earnings', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2809, 1, '200000000', 2, 'Fixed Assets', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2810, 1, '200010000', 2, 'Manufacturing Plant', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2811, 1, '200010010', 2, 'Manufacturing Plant at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2812, 1, '200010020', 2, 'Manufacturing Plant Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2813, 1, '200020000', 2, 'Manufacturing Equipment', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2814, 1, '200020010', 2, 'Manufacturing Equipment at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2815, 1, '200020020', 2, 'Manufacturing Equipment Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2816, 1, '200030000', 2, 'Furniture & Fixtures', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2817, 1, '200030010', 2, 'Furn & Fixtures at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2818, 1, '200030020', 2, 'Furn & Fixtures Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2819, 1, '200040000', 2, 'Office Equipment', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2820, 1, '200040010', 2, 'Office Equipment at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2821, 1, '200040020', 2, 'Office Equipment Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2822, 1, '200050000', 2, 'Motor Vehicles', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2823, 1, '200050010', 2, 'Motor Vehicles at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2824, 1, '200050020', 2, 'Motor Vehicles Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2825, 1, '210000000', 3, 'Trade Receivable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2826, 1, '220000000', 3, 'Cash and Bank Balances', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2827, 1, '220010000', 3, 'Bank', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2828, 1, '220020000', 3, 'Cash in Hand', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2829, 1, '220030000', 3, 'Petty Cash''s', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2830, 1, '230000000', 3, 'Inventories', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2831, 1, '230010000', 3, 'Stock of Work in Progress', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2832, 1, '240000000', 3, 'Other Receivables', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2833, 1, '250000000', 3, 'Prepayments and Deposits', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2834, 1, '250010000', 3, 'Prepayments', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2835, 1, '250020000', 3, 'Deposits Paid', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2836, 1, '260000000', 3, 'Tax Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2837, 1, '260010000', 3, 'GST Input Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2838, 1, '260011000', 3, 'Provision for GST Non-Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2839, 1, '260020000', 3, 'Suspense GST - Input Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2840, 1, '300000000', 4, 'Trade Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2841, 1, '320000000', 4, 'Other Payables', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2842, 1, '330000000', 4, 'Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2843, 1, '330010000', 4, 'GST Output Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2844, 1, '330020000', 4, 'Suspense GST - Output Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2845, 1, '330030000', 4, 'Import Duty Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2846, 1, '330040000', 4, 'Sales Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2847, 1, '330050000', 4, 'Service Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2848, 1, '340000000', 4, 'Accruals', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2849, 1, '340010000', 4, 'Accrued Payroll', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2850, 1, '340020000', 4, 'Payroll Deductions', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2851, 1, '340030000', 4, 'PAYE Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2852, 1, '340040000', 4, 'Commission Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2853, 1, '350000000', 4, 'Client Deposits', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2854, 1, '360000000', 5, 'Deffered Tax Liabilities', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2855, 1, '370000000', 6, 'Borrowing', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2856, 1, '370010000', 6, 'Bank Loan', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2857, 1, '370080000', 6, 'Other Long-Term Liabilities', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2858, 1, '400000000', 7, 'Sales', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2859, 1, '400010000', 7, 'Sales-Baked Items', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2860, 1, '400020000', 7, 'Sales-Novelty Items', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2861, 1, '480000000', 7, 'Miscellaneous Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2862, 1, '500000000', 8, 'Cost of Goods Sold', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2863, 1, '500010000', 8, 'Baked Items', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2864, 1, '500020000', 8, 'Novelty Items', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2865, 1, '510000000', 8, 'Purchase Price Variance', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2866, 1, '560000000', 8, 'Freight', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2867, 1, '570000000', 8, 'Inventory Adjustment Account', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2868, 1, '580000000', 8, 'Commission Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2869, 1, '710000000', 9, 'Discount Received', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2870, 1, '711000000', 9, 'Interest Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2871, 1, '712000000', 9, 'Late Fees Collected', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2872, 1, '713000000', 9, 'Freight Collected', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2873, 1, '810000000', 10, 'Administration Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2874, 1, '810011100', 10, 'Accounting Fees', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2875, 1, '810011200', 10, 'Legal Fees', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2876, 1, '810014000', 10, 'Dues & Subscriptions', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2877, 1, '810015000', 10, 'Office Supplies', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2878, 1, '810016000', 10, 'Freight', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2879, 1, '810017000', 10, 'Late Payment Charges', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2880, 1, '810019000', 10, 'Advertising & Promotion Exp', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2881, 1, '810019020', 10, 'In-store Promotions', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2882, 1, '810020000', 10, 'Depreciation Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2883, 1, '810040000', 10, 'GST- Non Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2884, 1, '810050000', 10, 'Service Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2885, 1, '820000000', 10, 'Operation Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2886, 1, '820011000', 10, 'Cleaning	Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2887, 1, '820012000', 10, 'Postage & Delivery', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2888, 1, '820013000', 10, 'Printing', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2889, 1, '820014000', 10, 'Rent', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2890, 1, '820015000', 10, 'Store Supplies', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2891, 1, '820016000', 10, 'Telephone', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2892, 1, '820017000', 10, 'Water', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2893, 1, '820018000', 10, 'Shrinkage/Spoilage', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2894, 1, '820019000', 10, 'Employment Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2895, 1, '820019010', 10, 'Fringe Benefits Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2896, 1, '820019020', 10, 'Staff Amenities ', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2897, 1, '820019030', 10, 'Wages & Salaries ', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2898, 1, '820019040', 10, 'Workers'' Compensation', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2899, 1, '820019050', 10, 'Other Employment Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2900, 1, '820020000', 10, 'Uniforms & Laundry', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2901, 1, '830000000', 10, 'Interest & Bank Charges', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2902, 1, '840000000', 10, 'Discounts Given', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2903, 1, '841000000', 10, 'Prompt Payment Discount', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2904, 1, '850000000', 10, 'Zakat Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2905, 1, '860000000', 11, 'Bad Debt Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2906, 1, '870000000', 11, 'Exchange Difference', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2907, 1, '860000000', 12, 'Income Tax Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2908, 1, '810019010', 10, 'Advertising', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2909, 2, '120000000', 1, 'Retained Earnings-Prior Year', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2910, 2, '130000000', 1, 'Current Year Earnings', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2911, 2, '200000000', 2, 'Fixed Assets', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2912, 2, '200010000', 2, 'Buildings & Improvements', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2913, 2, '200010010', 2, 'Bldgs & Imprv at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2914, 2, '200010020', 2, 'Bldgs & Imprv Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2915, 2, '200020000', 2, 'Production Equipment', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2916, 2, '200020010', 2, 'Production Equipment at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2917, 2, '200020020', 2, 'Production Equipment Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2918, 2, '200030000', 2, 'Furniture and Fixtures', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2919, 2, '200030010', 2, 'Furniture & Fixtures at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2920, 2, '200030020', 2, 'Furniture & Fixtures Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2921, 2, '200040000', 2, 'Motor Vehicles', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2922, 2, '200040010', 2, 'Motor Vehicles at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2923, 2, '200040020', 2, 'Motor Vehicles Accum Dep''n', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2924, 2, '200050000', 2, 'Leasehold Improvements', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2925, 2, '200050010', 2, 'Improvements at Cost', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2926, 2, '200050020', 2, 'Improvements Amortisation', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2927, 2, '210000000', 3, 'Trade Receivable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2928, 2, '220000000', 3, 'Cash and Bank Balances', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2929, 2, '220010000', 3, 'Bank', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2930, 2, '220020000', 3, 'Cash in Hand', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2931, 2, '220030000', 3, 'Petty Cash', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2932, 2, '230000000', 3, 'Inventories', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2933, 2, '230010000', 3, 'Stock of Work in Progress', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2934, 2, '240000000', 3, 'Other Receivables', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2935, 2, '250000000', 3, 'Prepayments and Deposits', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2936, 2, '250010000', 3, 'Prepayments', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2937, 2, '250020000', 3, 'Deposits Paid', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2938, 2, '260000000', 3, 'Tax Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2939, 2, '260010000', 3, 'GST Input Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2940, 2, '260011000', 3, 'Provision for GST Non-Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2941, 2, '260020000', 3, 'Suspense GST - Input Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2942, 2, '300000000', 4, 'Trade Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2943, 2, '320000000', 4, 'Other Payables', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2944, 2, '330000000', 4, 'Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2945, 2, '330010000', 4, 'GST Output Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2946, 2, '330020000', 4, 'Suspense GST - Output Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2947, 2, '330030000', 4, 'Import Duty Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2948, 2, '330040000', 4, 'Sales Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2949, 2, '330050000', 4, 'Service Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2950, 2, '340000000', 4, 'Accruals', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2951, 2, '340010000', 4, 'Accrued Payroll', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2952, 2, '340020000', 4, 'Payroll Deductions Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2953, 2, '340030000', 4, 'PAYE Tax Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2954, 2, '340040000', 4, 'Commission Payable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2955, 2, '350000000', 4, 'Client Deposits', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2956, 2, '360000000', 5, 'Deffered Tax Liabilities', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2957, 2, '370000000', 6, 'Borrowing', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2958, 2, '370010000', 6, 'Bank Loans', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2959, 2, '370080000', 6, 'Other Long-Term Liabilities', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2960, 2, '400000000', 7, 'Sales', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2961, 2, '410000000', 7, 'Audio Equip Rental Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2962, 2, '420000000', 7, 'Video Equip Rental Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2963, 2, '430000000', 7, 'Other Service Fees', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2964, 2, '460000000', 7, 'Miscellaneous Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2965, 2, '500000000', 8, 'Cost of Goods Sold', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2966, 2, '500010000', 8, 'Purchases - Audio Equip', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2967, 2, '500020000', 8, 'Purchases - Video Equip', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2968, 2, '510000000', 8, 'Purchase Price Variance', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2969, 2, '560000000', 8, 'Freight', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2970, 2, '570000000', 8, 'Inventory Adjustment Account', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2971, 2, '580000000', 8, 'Commission Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2972, 2, '710000000', 9, 'Discount Received', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2973, 2, '711000000', 9, 'Interest Income', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2974, 2, '712000000', 9, 'Late Fees Collected', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2975, 2, '713000000', 9, 'Freight Collected', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2976, 2, '810000000', 10, 'Administration Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2977, 2, '810010000', 10, 'Accounting Fees', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2978, 2, '810011000', 10, 'Legal Fees', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2979, 2, '810012000', 10, 'Postage & Delivery', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2980, 2, '810013000', 10, 'Office Supplies', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2981, 2, '810014000', 10, 'Dues & Subscriptions', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2982, 2, '810015000', 10, 'Telephone', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2983, 2, '810016000', 10, 'Advertising', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2984, 2, '810017000', 10, 'Maintenance & Repairs', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2985, 2, '810018000', 10, 'Freight', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2986, 2, '810019000', 10, 'Late Payment Charges', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2987, 2, '810020000', 10, 'Rent', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2988, 2, '810021000', 10, 'Electricity', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2989, 2, '810022000', 10, 'Depreciation Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2990, 2, '810040000', 10, 'GST- Non Claimable', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2991, 2, '810050000', 10, 'Service Tax', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2992, 2, '820000000', 10, 'Employment Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2993, 2, '820010000', 10, 'Staff Amenities', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2994, 2, '820030000', 10, 'Wages & Salaries', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2995, 2, '820040000', 10, 'Workers'' Compensation', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2996, 2, '820050000', 10, 'Other Employment Expenses', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2997, 2, '830000000', 10, 'Interest & Bank Charges', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2998, 2, '840000000', 10, 'Discounts Given', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(2999, 2, '841000000', 10, 'Prompt Payment Discount', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(3000, 2, '850000000', 10, 'Zakat Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(3001, 2, '860000000', 11, 'Bad Debt Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(3002, 2, '870000000', 11, 'Exchange Difference', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(3003, 2, '860000000', 12, 'Income Tax Expense', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20'),
(3004, 2, '110000000', 1, 'Share Capital', 0, 0, 1, 2014, NULL, '2014-05-15 11:04:20', NULL, '2014-05-15 11:04:20');

-- --------------------------------------------------------

--
-- Table structure for table `comp_jl_seq`
--

CREATE TABLE IF NOT EXISTS `comp_jl_seq` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `compID` int(11) DEFAULT NULL,
  `moduleID` int(11) DEFAULT NULL,
  `initial` varchar(2) CHARACTER SET utf8 DEFAULT NULL,
  `year` year(4) NOT NULL,
  `period` int(2) NOT NULL,
  `seqNo` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `comp_jl_seq`
--

INSERT INTO `comp_jl_seq` (`ID`, `compID`, `moduleID`, `initial`, `year`, `period`, `seqNo`) VALUES
(1, 1, 1, 'JL', 2014, 5, 27),
(2, 1, 1, 'JL', 2014, 6, 6),
(3, 1, 1, 'JL', 2013, 12, 2),
(4, 1, 3, 'AP', 2014, 5, 6),
(9, 1, 3, 'AP', 2014, 6, 13),
(10, 7, 3, 'AP', 2014, 6, 3),
(11, 1, 2, 'AR', 2014, 6, 8);

-- --------------------------------------------------------

--
-- Table structure for table `comp_journal`
--

CREATE TABLE IF NOT EXISTS `comp_journal` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) DEFAULT NULL,
  `journalID` varchar(50) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `batch` varchar(50) DEFAULT NULL,
  `module` int(11) DEFAULT NULL,
  `effective_date` date DEFAULT NULL,
  `entered_date` date DEFAULT NULL,
  `period` smallint(2) DEFAULT NULL,
  `year` year(4) DEFAULT NULL,
  `total_amount_dr` double DEFAULT NULL,
  `total_amount_cr` double DEFAULT NULL,
  `total_amount` double DEFAULT '0',
  `status` tinyint(4) DEFAULT '0',
  `remarks` varchar(128) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `formNo` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=103 ;

--
-- Dumping data for table `comp_journal`
--

INSERT INTO `comp_journal` (`ID`, `companyID`, `journalID`, `description`, `batch`, `module`, `effective_date`, `entered_date`, `period`, `year`, `total_amount_dr`, `total_amount_cr`, `total_amount`, `status`, `remarks`, `createdBy`, `createdTS`, `formNo`) VALUES
(1, 1, 'JL20140500000014', 'Testing Journal entry', NULL, 1, '2014-05-28', NULL, 5, 2014, 100600, 100600, 0, 1, NULL, 0, '2014-05-28 10:46:07', NULL),
(2, 1, 'JL20140500000015', 'Testing journal', NULL, 1, '2014-05-28', NULL, 5, 2014, 301800, 301800, 0, 1, NULL, 0, '2014-05-28 10:47:50', NULL),
(3, 1, 'JL20140500000016', 'Testing Journal', NULL, 1, '2014-05-28', NULL, 5, 2014, 1000000, 1000000, 0, 1, NULL, 0, '2014-05-28 10:49:03', NULL),
(4, 1, 'JL20140500000017', 'Testing Journal', NULL, 1, '2014-05-28', NULL, 5, 2014, 50000, 50000, 0, 1, NULL, 0, '2014-05-28 10:50:03', NULL),
(5, 1, 'JL20140500000018', 'testing journal', NULL, 1, '2014-05-28', NULL, 5, 2014, 150200, 150200, 0, 1, NULL, 0, '2014-05-28 10:52:00', NULL),
(6, 1, 'JL20140500000019', 'Testing', NULL, 1, '2014-05-28', NULL, 5, 2014, 6750, 6750, 0, 1, NULL, 0, '2014-05-28 10:54:15', NULL),
(7, 1, 'JL20140500000020', 'Salary And Wages', NULL, 1, '2014-05-28', NULL, 5, 2014, 55000, 55000, 0, 1, NULL, 0, '2014-05-28 10:58:50', NULL),
(8, 1, 'JL20140500000021', 'Asset Equipment', NULL, 1, '2014-05-28', NULL, 5, 2014, 100000, 100000, 0, 1, NULL, 0, '2014-05-28 10:59:38', NULL),
(9, 1, 'JL20140500000022', 'Depreciation', NULL, 1, '2014-05-28', NULL, 5, 2014, 20000, 20000, 0, 1, NULL, 0, '2014-05-28 11:00:52', NULL),
(10, 1, 'JL20140500000023', 'Operating Income', NULL, 1, '2014-05-28', NULL, 5, 2014, 2300, 2300, 0, 1, NULL, 0, '2014-05-28 11:02:19', NULL),
(11, 1, 'JL20140500000024', 'Finance Income', NULL, 1, '2014-05-28', NULL, 5, 2014, 1500, 1500, 0, 1, NULL, 0, '2014-05-28 11:03:30', NULL),
(12, 1, 'JL20140500000025', 'Finance Cost', NULL, 1, '2014-05-28', NULL, 5, 2014, 500, 500, 0, 1, NULL, 0, '2014-05-28 11:04:25', NULL),
(13, 1, 'JL20140500000026', 'wrong account', NULL, 1, '2014-05-29', NULL, 5, 2014, 3800, 3800, 0, 1, NULL, 0, '2014-05-29 04:20:48', NULL),
(14, 1, 'JL20140500000027', 'Test Entry', NULL, 1, '2014-05-30', NULL, 5, 2014, NULL, NULL, NULL, 0, NULL, 0, '2014-05-30 08:55:31', NULL),
(15, 1, 'JL20140600000002', 'rantal', NULL, 1, '2014-06-02', NULL, 6, 2014, NULL, NULL, NULL, 0, NULL, 0, '2014-06-02 07:16:05', NULL),
(16, 1, 'JL20140600000003', 'yahaya', NULL, 1, '2014-06-02', NULL, 6, 2014, NULL, NULL, NULL, 0, NULL, 0, '2014-06-02 10:35:55', NULL),
(17, 1, 'JL20140600000004', 'Zadss', NULL, 1, '2014-06-02', NULL, 6, 2014, NULL, NULL, NULL, 0, NULL, 0, '2014-06-02 10:51:42', NULL),
(18, 1, 'JL20140600000005', 'TEST', NULL, 1, '2014-06-03', NULL, 6, 2014, NULL, NULL, NULL, 0, NULL, 0, '2014-06-03 11:22:46', NULL),
(81, 1, 'AP20140600000004', 'Posting Credit Note Confirm[ PCN00000001 ]', NULL, 3, '2014-06-16', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-16 07:55:49', 'PCN00000001'),
(82, 1, 'AP20140600000005', 'Posting Credit Note Confirm[ PCN00000002 ]', NULL, 3, '2014-06-16', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-16 07:55:49', 'PCN00000002'),
(83, 1, 'AP20140600000006', 'Posting Credit Note Confirm[ PCN00000003 ]', NULL, 3, '2014-06-16', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-16 07:55:49', 'PCN00000003'),
(84, 1, 'AP20140600000007', NULL, NULL, 3, '2014-06-16', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-06-16 09:12:02', NULL),
(85, 1, 'AP20140600000008', NULL, NULL, 3, '2014-06-12', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-06-16 09:12:02', NULL),
(86, 1, 'AP20140600000009', ' [ PDN[00000003] ]', NULL, 3, '2014-06-11', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-06-16 09:14:42', NULL),
(90, 1, 'AP20140600000010', 'Posting Debit Note Confirm [ PDN[00000005] ]', NULL, 3, '2014-06-20', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-20 04:24:20', 'PDN[00000005]'),
(91, 1, 'AP20140600000011', 'Posting Debit Note Confirm [ PDN[00000005] ]', NULL, 3, '2014-06-20', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-20 04:24:54', 'PDN[00000005]'),
(92, 1, 'AP20140600000012', 'Posting Debit Note Confirm [ PDN[00000005] ]', NULL, 3, '2014-06-12', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-20 04:27:28', 'PDN[00000005]'),
(93, 1, 'AP20140600000013', 'Posting Debit Note Confirm [ PDN[00000005] ]', NULL, 3, '2014-06-12', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-20 04:28:10', 'PDN[00000005]'),
(98, 1, 'AR20140600000005', ' [ SON20140618[00000018] ]', NULL, 2, '2014-06-18', NULL, 6, 2014, 2509.44, 2509.44, 0, 0, NULL, 1, '2014-06-23 11:37:42', 'SON20140618[00000018]'),
(99, 1, 'AR20140600000006', ' [ SDN[00000007] ]', NULL, 2, '2014-06-23', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-24 00:57:14', 'SDN[00000007]'),
(100, 1, 'AR20140600000007', ' [ SDN[00000007] ]', NULL, 2, '2014-06-23', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-24 00:57:26', 'SDN[00000007]'),
(101, 1, 'AR20140600000008', ' [ SDN[00000007] ]', NULL, 2, '2014-06-23', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-06-24 01:01:34', 'SDN[00000007]'),
(102, 1, 'JL20140600000006', 'TEST', NULL, 1, '2014-06-24', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-06-24 09:44:05', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `comp_journal_detail`
--

CREATE TABLE IF NOT EXISTS `comp_journal_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) DEFAULT '0',
  `journalID` varchar(50) DEFAULT '0',
  `sequence` int(11) DEFAULT '0',
  `acctCode` int(11) DEFAULT '0',
  `description` varchar(200) DEFAULT '0',
  `amount_cr` double DEFAULT '0',
  `amount_dr` double DEFAULT '0',
  `currencyID` int(11) DEFAULT '0',
  `currency_amount` double DEFAULT '0',
  `exchange_rate` double DEFAULT '0',
  `enter_exchange_rate` double DEFAULT '0',
  `period` smallint(2) DEFAULT '0',
  `year` year(4) DEFAULT NULL,
  `formNo` varchar(50) DEFAULT NULL,
  `line` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT '0',
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=266 ;

--
-- Dumping data for table `comp_journal_detail`
--

INSERT INTO `comp_journal_detail` (`ID`, `companyID`, `journalID`, `sequence`, `acctCode`, `description`, `amount_cr`, `amount_dr`, `currencyID`, `currency_amount`, `exchange_rate`, `enter_exchange_rate`, `period`, `year`, `formNo`, `line`, `status`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'JL20140500000014', 1, 57, 'Testing', 0, 100000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:47:39', NULL, '2014-05-28 11:05:42'),
(2, 1, 'JL20140500000014', 2, 32, 'GST input', 0, 600, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:47:40', NULL, '2014-05-28 11:05:42'),
(3, 1, 'JL20140500000014', 3, 35, '', 100600, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:47:40', NULL, '2014-05-28 11:05:42'),
(4, 1, 'JL20140500000015', 1, 20, 'Testing', 0, 301800, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:48:50', NULL, '2014-05-28 11:05:42'),
(5, 1, 'JL20140500000015', 2, 53, 'testing sales', 300000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:48:50', NULL, '2014-05-28 11:05:42'),
(6, 1, 'JL20140500000015', 3, 38, '', 1800, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:48:50', NULL, '2014-05-28 11:05:42'),
(7, 1, 'JL20140500000016', 1, 22, 'Bank input', 0, 1000000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:49:44', NULL, '2014-05-28 11:05:42'),
(8, 1, 'JL20140500000016', 2, 1, '', 1000000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:49:44', NULL, '2014-05-28 11:05:42'),
(9, 1, 'JL20140500000017', 1, 35, 'Test payables', 0, 50000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:50:46', NULL, '2014-05-28 11:05:42'),
(10, 1, 'JL20140500000017', 2, 22, '', 50000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:50:46', NULL, '2014-05-28 11:05:42'),
(11, 1, 'JL20140500000018', 1, 22, 'testing', 0, 150200, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:54:08', NULL, '2014-05-28 11:05:42'),
(12, 1, 'JL20140500000018', 2, 101, 'testing', 200, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:54:08', NULL, '2014-05-28 11:05:42'),
(13, 1, 'JL20140500000018', 3, 20, '', 150000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:54:08', NULL, '2014-05-28 11:05:42'),
(14, 1, 'JL20140500000019', 1, 81, 'testing', 0, 1500, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(15, 1, 'JL20140500000019', 2, 82, 'testing', 0, 300, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(16, 1, 'JL20140500000019', 3, 83, 'testing', 0, 200, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(17, 1, 'JL20140500000019', 4, 84, 'testing', 0, 4500, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(18, 1, 'JL20140500000019', 5, 86, 'telephone', 0, 150, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(19, 1, 'JL20140500000019', 6, 87, 'water bill', 0, 100, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(20, 1, 'JL20140500000019', 7, 22, '', 6750, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:58:32', NULL, '2014-05-28 11:05:42'),
(21, 1, 'JL20140500000020', 1, 92, 'Salary', 0, 55000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:59:24', NULL, '2014-05-28 11:05:42'),
(22, 1, 'JL20140500000020', 2, 22, '', 55000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 10:59:24', NULL, '2014-05-28 11:05:42'),
(23, 1, 'JL20140500000021', 1, 9, 'Office Equipme', 0, 100000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:00:43', NULL, '2014-05-28 11:05:42'),
(24, 1, 'JL20140500000021', 2, 22, '', 100000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:00:43', NULL, '2014-05-28 11:05:42'),
(25, 1, 'JL20140500000022', 1, 77, 'Depreciation', 0, 20000, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:02:07', NULL, '2014-05-28 11:05:42'),
(26, 1, 'JL20140500000022', 2, 16, 'Depreciation', 20000, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:02:07', NULL, '2014-05-28 11:05:42'),
(27, 1, 'JL20140500000023', 1, 22, 'Operationg Inc', 0, 2300, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:03:19', NULL, '2014-05-28 11:05:42'),
(28, 1, 'JL20140500000023', 2, 56, 'Operationg Inc', 2300, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:03:19', NULL, '2014-05-28 11:05:42'),
(29, 1, 'JL20140500000024', 1, 22, 'Finance Income', 0, 1500, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:04:08', NULL, '2014-05-28 11:05:42'),
(30, 1, 'JL20140500000024', 2, 56, 'Finance Income', 1500, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:04:08', NULL, '2014-05-28 11:05:42'),
(31, 1, 'JL20140500000025', 1, 80, 'Finance Cost', 0, 500, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:05:27', NULL, '2014-05-28 11:05:43'),
(32, 1, 'JL20140500000025', 2, 22, 'Finance Cost', 500, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-28 11:05:27', NULL, '2014-05-28 11:05:43'),
(33, 1, 'JL20140500000026', 1, 56, '', 0, 3800, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-29 04:21:57', NULL, '2014-05-29 04:22:04'),
(34, 1, 'JL20140500000026', 2, 64, '', 2300, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-29 04:21:57', NULL, '2014-05-29 04:22:04'),
(35, 1, 'JL20140500000026', 3, 97, '', 1500, 0, 0, 0, 0, 0, 5, 2014, NULL, NULL, 1, 0, '2014-05-29 04:21:57', NULL, '2014-05-29 04:22:04'),
(204, 1, 'AP20140600000004', 1, 0, '[331000200]Plastic Chair - Red', 60, 0, 1, 60, 1, 0, 6, 2014, 'PCN00000001', 2, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(205, 1, 'AP20140600000004', 2, 0, '[331000200]Plastic Chair - Red', 0, 60, 1, 60, 1, 0, 6, 2014, 'PCN00000001', 2, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(206, 1, 'AP20140600000004', 3, 38, '[331000200]Plastic Chair - Red', 0, 3.6, 1, 3.6, 1, 0, 6, 2014, 'PCN00000001', 2, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(207, 1, 'AP20140600000004', 4, 0, '[331000200]Plastic Chair - Red', 3.6, 0, 1, 3.6, 1, 0, 6, 2014, 'PCN00000001', 2, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(208, 1, 'AP20140600000004', 5, 0, '[331000100]Plastic Chair - Blue', 240, 0, 1, 240, 1, 0, 6, 2014, 'PCN00000001', 1, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(209, 1, 'AP20140600000004', 6, 0, '[331000100]Plastic Chair - Blue', 0, 240, 1, 240, 1, 0, 6, 2014, 'PCN00000001', 1, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(210, 1, 'AP20140600000004', 7, 38, '[331000100]Plastic Chair - Blue', 0, 14.4, 1, 14.4, 1, 0, 6, 2014, 'PCN00000001', 1, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(211, 1, 'AP20140600000004', 8, 0, '[331000100]Plastic Chair - Blue', 14.4, 0, 1, 14.4, 1, 0, 6, 2014, 'PCN00000001', 1, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(212, 1, 'AP20140600000005', 1, 13, '[501012000]Nasi Goreng Ayam', 575, 0, 1, 575, 1, 0, 6, 2014, 'PCN00000002', 4, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(213, 1, 'AP20140600000005', 2, 12, '[501012000]Nasi Goreng Ayam', 0, 575, 1, 575, 1, 0, 6, 2014, 'PCN00000002', 4, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(214, 1, 'AP20140600000005', 3, 38, '[501012000]Nasi Goreng Ayam', 0, 34.5, 1, 34.5, 1, 0, 6, 2014, 'PCN00000002', 4, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(215, 1, 'AP20140600000005', 4, 13, '[501012000]Nasi Goreng Ayam', 34.5, 0, 1, 34.5, 1, 0, 6, 2014, 'PCN00000002', 4, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(216, 1, 'AP20140600000005', 5, 13, '[331000300]Plastic Chair - White', 3400, 0, 1, 3400, 1, 0, 6, 2014, 'PCN00000002', 3, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(217, 1, 'AP20140600000005', 6, 16, '[331000300]Plastic Chair - White', 0, 3400, 1, 3400, 1, 0, 6, 2014, 'PCN00000002', 3, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(218, 1, 'AP20140600000005', 7, 38, '[331000300]Plastic Chair - White', 0, 340, 1, 340, 1, 0, 6, 2014, 'PCN00000002', 3, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(219, 1, 'AP20140600000005', 8, 13, '[331000300]Plastic Chair - White', 340, 0, 1, 340, 1, 0, 6, 2014, 'PCN00000002', 3, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(220, 1, 'AP20140600000006', 1, 13, '[100300100]Steel chair for outdoor', 1450, 0, 1, 1450, 1, 0, 6, 2014, 'PCN00000003', 6, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(221, 1, 'AP20140600000006', 2, 3, '[100300100]Steel chair for outdoor', 0, 1450, 1, 1450, 1, 0, 6, 2014, 'PCN00000003', 6, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(222, 1, 'AP20140600000006', 3, 38, '[100300100]Steel chair for outdoor', 0, 87, 1, 87, 1, 0, 6, 2014, 'PCN00000003', 6, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(223, 1, 'AP20140600000006', 4, 13, '[100300100]Steel chair for outdoor', 87, 0, 1, 87, 1, 0, 6, 2014, 'PCN00000003', 6, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(224, 1, 'AP20140600000006', 5, 13, '[100300100]Steel chair for outdoor', 60000, 0, 1, 60000, 1, 0, 6, 2014, 'PCN00000003', 5, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(225, 1, 'AP20140600000006', 6, 3, '[100300100]Steel chair for outdoor', 0, 60000, 1, 60000, 1, 0, 6, 2014, 'PCN00000003', 5, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(226, 1, 'AP20140600000006', 7, 38, '[100300100]Steel chair for outdoor', 0, 3600, 1, 3600, 1, 0, 6, 2014, 'PCN00000003', 5, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(227, 1, 'AP20140600000006', 8, 13, '[100300100]Steel chair for outdoor', 3600, 0, 1, 3600, 1, 0, 6, 2014, 'PCN00000003', 5, 0, 1, '2014-06-16 07:55:49', NULL, '2014-06-16 07:55:49'),
(228, 1, 'AP20140600000007', 1, 0, '[331000100]Plastic Chair - Blue', 18, 0, 1, 9, 2, 0, 6, 2014, 'PDN[00000005]', 7, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(229, 1, 'AP20140600000007', 2, 0, '[331000100]Plastic Chair - Blue', 0, 18, 1, 9, 2, 0, 6, 2014, 'PDN[00000005]', 7, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(230, 1, 'AP20140600000007', 3, 0, '[331000100]Plastic Chair - Blue', 0, 1.08, 1, 0.54, 2, 0, 6, 2014, 'PDN[00000005]', 7, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(231, 1, 'AP20140600000007', 4, 38, '[331000100]Plastic Chair - Blue', 1.08, 0, 1, 0.54, 2, 0, 6, 2014, 'PDN[00000005]', 7, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(232, 1, 'AP20140600000008', 1, 0, '[321000100]Teak wooden chair with natural finish', 1, 0, 1, 1, 1, 0, 6, 2014, 'PDN[00000004]', 6, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(233, 1, 'AP20140600000008', 2, 0, '[321000100]Teak wooden chair with natural finish', 0, 1, 1, 1, 1, 0, 6, 2014, 'PDN[00000004]', 6, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(234, 1, 'AP20140600000008', 3, 0, '[321000100]Teak wooden chair with natural finish', 0, 0.01, 1, 0.01, 1, 0, 6, 2014, 'PDN[00000004]', 6, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(235, 1, 'AP20140600000008', 4, NULL, '[321000100]Teak wooden chair with natural finish', 0.01, 0, 1, 0.01, 1, 0, 6, 2014, 'PDN[00000004]', 6, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(236, 1, 'AP20140600000008', 5, 3, '[100300100]Steel chair for outdoor', 24, 0, 1, 24, 1, 0, 6, 2014, 'PDN[00000004]', 5, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(237, 1, 'AP20140600000008', 6, 0, '[100300100]Steel chair for outdoor', 0, 24, 1, 24, 1, 0, 6, 2014, 'PDN[00000004]', 5, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(238, 1, 'AP20140600000008', 7, 0, '[100300100]Steel chair for outdoor', 0, 1.44, 1, 1.44, 1, 0, 6, 2014, 'PDN[00000004]', 5, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(239, 1, 'AP20140600000008', 8, 38, '[100300100]Steel chair for outdoor', 1.44, 0, 1, 1.44, 1, 0, 6, 2014, 'PDN[00000004]', 5, 0, 1, '2014-06-16 09:12:02', NULL, '2014-06-16 09:12:02'),
(240, 1, 'AP20140600000009', 1, 3, '[100300100]Steel chair for outdoor', 2, 0, 1, 2, 1, 0, 6, 2014, 'PDN[00000003]', 4, 0, 1, '2014-06-16 09:14:42', NULL, '2014-06-16 09:14:42'),
(241, 1, 'AP20140600000009', 2, 13, '[100300100]Steel chair for outdoor', 0, 2, 1, 2, 1, 0, 6, 2014, 'PDN[00000003]', 4, 0, 1, '2014-06-16 09:14:42', NULL, '2014-06-16 09:14:42'),
(242, 1, 'AP20140600000009', 3, 13, '[100300100]Steel chair for outdoor', 0, 0.12, 1, 0.12, 1, 0, 6, 2014, 'PDN[00000003]', 4, 0, 1, '2014-06-16 09:14:42', NULL, '2014-06-16 09:14:42'),
(243, 1, 'AP20140600000009', 4, 38, '[100300100]Steel chair for outdoor', 0.12, 0, 1, 0.12, 1, 0, 6, 2014, 'PDN[00000003]', 4, 0, 1, '2014-06-16 09:14:42', NULL, '2014-06-16 09:14:42'),
(246, 1, 'AR20140600000005', 1, 20, '[331000100]Plastic Chair - Blue', 1212, 0, 1, 1212, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(247, 1, 'AR20140600000005', 2, 79, '[331000100]Plastic Chair - Blue', 0, 1212, 1, 1212, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(248, 1, 'AR20140600000005', 3, 38, '[331000100]Plastic Chair - Blue', 0, 72.72, 1, 72.72, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(249, 1, 'AR20140600000005', 4, 20, '[331000100]Plastic Chair - Blue', 72.72, 0, 1, 72.72, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(250, 1, 'AR20140600000005', 5, 20, '[321000100]Teak wooden chair with natural finish', 12, 0, 1, 12, 1, 0, 6, 2014, 'SON20140618[00000018]', 2, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(251, 1, 'AR20140600000005', 6, 79, '[321000100]Teak wooden chair with natural finish', 0, 12, 1, 12, 1, 0, 6, 2014, 'SON20140618[00000018]', 2, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(252, 1, 'AR20140600000005', 7, 38, '[321000100]Teak wooden chair with natural finish', 0, 0.72, 1, 0.72, 1, 0, 6, 2014, 'SON20140618[00000018]', 2, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(253, 1, 'AR20140600000005', 8, 20, '[321000100]Teak wooden chair with natural finish', 0.72, 0, 1, 0.72, 1, 0, 6, 2014, 'SON20140618[00000018]', 2, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(254, 1, 'AR20140600000005', 9, 20, 'delivery charges', 0, 0, 1, 0, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(255, 1, 'AR20140600000005', 10, 86, 'delivery charges', 0, 0, 1, 0, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(256, 1, 'AR20140600000005', 11, 38, 'delivery charges', 0, 0, 1, 0, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(257, 1, 'AR20140600000005', 12, 20, 'delivery charges', 0, 0, 1, 0, 1, 0, 6, 2014, 'SON20140618[00000018]', 1, 0, 1, '2014-06-23 11:37:42', NULL, '2014-06-23 11:37:42'),
(258, 1, 'AR20140600000006', 1, 79, '[100300100]Steel chair for outdoor', 1, 0, 1, 1, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 00:57:14', NULL, '2014-06-24 00:57:14'),
(259, 1, 'AR20140600000006', 2, 20, '[100300100]Steel chair for outdoor', 0, 1, 1, 1, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 00:57:14', NULL, '2014-06-24 00:57:14'),
(260, 1, 'AR20140600000006', 3, 20, '[100300100]Steel chair for outdoor', 0, 0.06, 1, 0.06, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 00:57:14', NULL, '2014-06-24 00:57:14'),
(261, 1, 'AR20140600000006', 4, 38, '[100300100]Steel chair for outdoor', 0.06, 0, 1, 0.06, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 00:57:14', NULL, '2014-06-24 00:57:14'),
(262, 1, 'AR20140600000008', 1, 79, '[100300100]Steel chair for outdoor', 1, 0, 1, 1, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 01:01:34', NULL, '2014-06-24 01:01:34'),
(263, 1, 'AR20140600000008', 2, 20, '[100300100]Steel chair for outdoor', 0, 1, 1, 1, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 01:01:34', NULL, '2014-06-24 01:01:34'),
(264, 1, 'AR20140600000008', 3, 20, '[100300100]Steel chair for outdoor', 0, 0.06, 1, 0.06, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 01:01:34', NULL, '2014-06-24 01:01:34'),
(265, 1, 'AR20140600000008', 4, 38, '[100300100]Steel chair for outdoor', 0.06, 0, 1, 0.06, 1, 0, 6, 2014, 'SDN[00000007]', 1, 0, 1, '2014-06-24 01:01:34', NULL, '2014-06-24 01:01:34');

-- --------------------------------------------------------

--
-- Table structure for table `comp_location_transfer`
--

CREATE TABLE IF NOT EXISTS `comp_location_transfer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `fromLocationID` int(11) NOT NULL,
  `toLocationID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `movementTypeID` int(11) NOT NULL,
  `dateTransfer` date NOT NULL,
  `memo` text NOT NULL,
  `is_delete` smallint(6) NOT NULL,
  `updateable` smallint(6) NOT NULL DEFAULT '1',
  `createdby` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `comp_location_transfer`
--

INSERT INTO `comp_location_transfer` (`ID`, `companyID`, `fromLocationID`, `toLocationID`, `formNo`, `movementTypeID`, `dateTransfer`, `memo`, `is_delete`, `updateable`, `createdby`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(4, 27, 0, 0, 'LT', 0, '2014-06-11', '', 0, 1, 0, '2014-06-11 02:05:32', 0, '2014-06-19 10:43:54'),
(6, 1, 1, 2, 'LT', 79, '2014-06-12', 'asfda sdfa sdfa', 0, 0, 0, '2014-06-12 05:13:19', 0, '2014-06-20 02:19:41'),
(7, 1, 1, 2, 'LT234', 79, '2014-06-17', 'Lorem ipsum dolor sit emet', 0, 0, 16, '2014-06-17 03:02:16', 0, '2014-06-20 02:19:41'),
(8, 1, 1, 2, 'LT', 79, '2014-06-19', 'sdfasdf asdf asdf ', 0, 0, 16, '2014-06-19 10:40:43', 0, '2014-06-20 02:19:36'),
(9, 1, 1, 2, 'LT', 79, '2014-06-19', 'asdff df sadf', 0, 0, 16, '2014-06-19 10:42:13', 0, '2014-06-19 10:44:52'),
(10, 1, 1, 2, 'LT', 79, '2014-06-20', 'fda fasd f', 0, 0, 16, '2014-06-20 02:17:55', 0, '2014-06-20 02:19:36'),
(11, 1, 2, 1, 'LT', 78, '2014-06-20', 'test from main off 2 to main off', 0, 0, 16, '2014-06-20 03:19:18', 0, '2014-06-24 02:21:50');

-- --------------------------------------------------------

--
-- Table structure for table `comp_location_transfer_detail`
--

CREATE TABLE IF NOT EXISTS `comp_location_transfer_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `locationTransferID` int(11) NOT NULL,
  `LineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `fromStock` int(11) NOT NULL,
  `is_delete` smallint(6) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

--
-- Dumping data for table `comp_location_transfer_detail`
--

INSERT INTO `comp_location_transfer_detail` (`ID`, `locationTransferID`, `LineNo`, `itemID`, `quantity`, `fromStock`, `is_delete`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(4, 6, 1, 9, 678, 675, 0, 16, '2014-06-17 03:01:39', 0, '2014-06-20 01:01:55'),
(5, 7, 1, 7, 45, 564, 0, 16, '2014-06-17 03:02:16', 0, '2014-06-20 02:18:23'),
(6, 7, 2, 7, 34, 565, 0, 16, '2014-06-17 03:02:28', 0, '2014-06-20 02:18:26'),
(7, 8, 0, 4, 2, 10, 0, 16, '2014-06-19 10:40:43', 0, '0000-00-00 00:00:00'),
(8, 9, 0, 4, 2, 10, 0, 16, '2014-06-19 10:42:13', 0, '0000-00-00 00:00:00'),
(9, 9, 0, 1, 2, 6, 0, 16, '2014-06-19 10:43:01', 0, '0000-00-00 00:00:00'),
(10, 10, 0, 1, 4, 4, 0, 16, '2014-06-20 02:17:55', 0, '0000-00-00 00:00:00'),
(11, 10, 0, 4, 3, 8, 0, 16, '2014-06-20 02:18:04', 0, '0000-00-00 00:00:00'),
(12, 7, 0, 7, 2, 10, 0, 16, '2014-06-20 02:18:33', 0, '0000-00-00 00:00:00'),
(13, 11, 0, 1, 1, 10, 0, 16, '2014-06-20 03:19:18', 0, '0000-00-00 00:00:00'),
(14, 11, 0, 8, 2, 10, 0, 16, '2014-06-20 03:19:29', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_payment`
--

CREATE TABLE IF NOT EXISTS `comp_payment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `amountPaid` double NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `paymentDate` date NOT NULL,
  `updateAble` smallint(1) NOT NULL DEFAULT '1',
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `addressID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `totalDiscount` double NOT NULL,
  `bankCharges` double NOT NULL,
  `totalOtherCharge` double NOT NULL,
  `totalPaid` double NOT NULL,
  `totalApplied` double NOT NULL,
  `outOfBalance` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `accountDescription` varchar(128) NOT NULL,
  `paymentID` int(11) NOT NULL,
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=74 ;

--
-- Dumping data for table `comp_payment`
--

INSERT INTO `comp_payment` (`ID`, `companyID`, `supplierID`, `projectID`, `amountPaid`, `paymentMethodID`, `referenceNo`, `accountID`, `formNo`, `paymentDate`, `updateAble`, `currencyID`, `exchangeRate`, `addressID`, `memo`, `totalDiscount`, `bankCharges`, `totalOtherCharge`, `totalPaid`, `totalApplied`, `outOfBalance`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `accountDescription`, `paymentID`, `journalNo`) VALUES
(1, 1, 0, 0, 0, 0, 0, 0, 'PP201459', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 08:43:00', 0, '2014-05-23 09:07:33', 0, '', 0, ''),
(17, 1, 0, 0, 0, 0, 0, 0, 'PP201459', '0000-00-00', 1, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 11:03:45', 0, '2014-05-23 09:07:38', 0, '', 0, ''),
(18, 1, 0, 0, 0, 0, 0, 0, 'PP201459', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 11:05:46', 0, '2014-05-22 11:11:36', 0, '', 0, ''),
(19, 1, 0, 0, 0, 0, 0, 0, 'PP201459', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 11:08:34', 0, '2014-05-19 02:43:22', 0, '', 0, ''),
(20, 1, 0, 0, 0, 0, 0, 0, 'PP201459', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 11:13:47', 0, '2014-05-19 02:43:22', 0, '', 0, ''),
(21, 1, 0, 0, 20, 0, 0, 0, 'PP201459', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 50, 0, '2014-05-09 11:24:07', 0, '2014-05-19 02:43:22', 0, 'TEST', 0, ''),
(22, 1, 0, 0, 0, 0, 0, 0, 'PP2014514', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:03:46', 0, '2014-05-19 02:43:22', 0, '', 0, ''),
(23, 1, 0, 0, 0, 0, 0, 0, 'PP2014514', '0000-00-00', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:15:23', 0, '2014-05-19 02:43:22', 0, '', 0, ''),
(24, 1, 1, 0, 0, 0, 0, 0, 'PP2014514', '2014-05-15', 0, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:24:02', 0, '2014-05-23 09:45:16', 0, '', 0, ''),
(25, 1, 1, 0, 0, 0, 0, 0, 'PP2014514', '2014-05-16', 1, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:29:53', 0, '2014-05-26 02:59:19', 0, '', 0, ''),
(26, 1, 1, 0, 0, 0, 0, 0, 'PP2014514', '2014-05-14', 1, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:36:34', 0, '2014-05-26 03:02:16', 0, '', 0, ''),
(27, 1, 23, 0, 0, 0, 0, 0, 'PP2014526', '2014-05-17', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 04:23:36', 0, '2014-05-28 04:48:49', 0, '0', 0, ''),
(28, 0, 1, 0, 104.19, 0, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 07:46:57', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(29, 0, 1, 0, 15.85, 0, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 07:51:32', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(30, 0, 1, 0, 100, 0, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 08:05:23', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(31, 0, 1, 0, 2.12, 0, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 08:21:22', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(32, 0, 1, 0, 97, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:02:34', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(33, 0, 1, 0, 11, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:09:04', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(34, 0, 1, 0, 11, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:15:12', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(35, 0, 1, 0, 11, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:17:50', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(36, 0, 1, 0, 1, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:21:42', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(37, 0, 1, 0, 1, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:22:52', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(38, 0, 1, 0, 1, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:26:08', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(39, 0, 1, 0, 1, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:27:11', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(40, 0, 1, 0, 1, 0, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:29:07', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(41, 0, 0, 0, 0, 0, 0, 0, 'PP2014529', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 1, '2014-05-29 09:38:45', 0, '2014-06-02 01:01:56', 0, '0', 0, ''),
(42, 1, 1, 0, 2, 0, 0, 0, 'PP201462', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 00:31:56', 0, '2014-06-02 01:01:51', 0, '0', 0, ''),
(43, 1, 1, 0, 4, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 00:49:53', 0, '2014-06-02 01:01:46', 0, '0', 0, ''),
(44, 1, 1, 0, 4, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:13:51', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(45, 1, 1, 0, 4, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:16:54', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(46, 1, 1, 0, 4, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:18:05', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(47, 1, 1, 0, 4, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:18:38', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(48, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:38:43', 0, '0000-00-00 00:00:00', 0, '2', 0, ''),
(49, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:40:39', 0, '0000-00-00 00:00:00', 0, '2', 0, ''),
(50, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:41:18', 0, '0000-00-00 00:00:00', 0, '2', 0, ''),
(51, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:42:53', 0, '0000-00-00 00:00:00', 0, '2', 0, ''),
(52, 1, 1, 0, 2, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:45:41', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(53, 1, 1, 0, 2, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:46:26', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(54, 1, 1, 0, 3, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:49:07', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(55, 1, 1, 0, 3, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:50:03', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(56, 1, 1, 0, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:59:32', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(57, 1, 1, 0, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:01:00', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(58, 1, 1, 0, 1, 0, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:10:04', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(59, 1, 1, 0, 1, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:13:49', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(60, 1, 1, 0, 3, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:18:49', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(61, 1, 1, 0, 3, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:19:29', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(62, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:37:14', 0, '0000-00-00 00:00:00', 0, '1', 0, ''),
(63, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:51:46', 0, '0000-00-00 00:00:00', 0, '1', 0, ''),
(64, 1, 1, 1, 1, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:55:12', 0, '0000-00-00 00:00:00', 0, '1', 0, ''),
(65, 1, 1, 0, 2, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 2, 0, 2, 2, 0, 16, '2014-06-02 03:13:43', 0, '0000-00-00 00:00:00', 0, '12', 0, ''),
(66, 1, 1, 2, 12, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 03:41:13', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(67, 1, 1, 2, 12, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 03:46:20', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(68, 1, 1, 0, 11, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 04:20:27', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(69, 1, 1, 0, 0, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 1, 0, 0, 0, 0, 0, 16, '2014-06-02 04:29:45', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(70, 1, 1, 0, 1, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 1, 1, 0, 1, 0, 0, 16, '2014-06-02 04:31:38', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(71, 1, 1, 0, 2, 0, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 3, -1, 2, 1, 0, 16, '2014-06-02 04:33:52', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(72, 1, 1, 1, 2, 0, 112233, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 3, -1, 2, 1, 0, 16, '2014-06-02 04:44:30', 0, '0000-00-00 00:00:00', 0, '1', 0, ''),
(73, 1, 1, 0, 0, 0, 0, 0, 'PP20140613', '2014-06-13', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-13 10:35:38', 0, '0000-00-00 00:00:00', 0, '0', 0, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_payment_detail`
--

CREATE TABLE IF NOT EXISTS `comp_payment_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `purchaseInvoiceID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `APBalance` double NOT NULL,
  `discount` double NOT NULL,
  `amountApplied` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ;

--
-- Dumping data for table `comp_payment_detail`
--

INSERT INTO `comp_payment_detail` (`ID`, `paymentID`, `lineNo`, `purchaseInvoiceID`, `totalAmount`, `APBalance`, `discount`, `amountApplied`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 0, 71, 0, 100, 1, 100, 1, '2014-05-27 01:19:27', 0, '0000-00-00 00:00:00', 0),
(2, 0, 0, 71, 0, 100, 71, 100, 16, '2014-05-27 06:58:59', 0, '0000-00-00 00:00:00', 0),
(3, 0, 0, 71, 0, 0, 71, 100, 16, '2014-05-27 07:03:22', 0, '0000-00-00 00:00:00', 0),
(4, 0, 0, 71, 0, -100, 0, 100, 16, '2014-05-27 07:10:18', 0, '0000-00-00 00:00:00', 0),
(5, 40, 0, 71, 0, -300, 1, 0, 16, '2014-05-27 10:29:07', 0, '0000-00-00 00:00:00', 0),
(6, 40, 0, 72, 0, 1, 1, 1, 16, '2014-05-27 10:29:07', 0, '0000-00-00 00:00:00', 0),
(7, 40, 0, 73, 0, 1, 0, 1, 16, '2014-05-27 10:29:07', 0, '0000-00-00 00:00:00', 0),
(8, 40, 0, 75, 0, 1, 0, 1, 16, '2014-05-27 10:29:07', 0, '0000-00-00 00:00:00', 0),
(9, 42, 0, 77, 0, 1, 0, 1, 16, '2014-06-02 00:31:56', 0, '0000-00-00 00:00:00', 0),
(10, 42, 0, 78, 0, 1, 0, 1, 16, '2014-06-02 00:31:56', 0, '0000-00-00 00:00:00', 0),
(11, 42, 0, 79, 0, 1, 2, 1, 16, '2014-06-02 00:31:56', 0, '0000-00-00 00:00:00', 0),
(12, 42, 0, 80, 0, 1, 0, 1, 16, '2014-06-02 00:31:56', 0, '0000-00-00 00:00:00', 0),
(13, 43, 0, 82, 0, 1, 0, 1, 16, '2014-06-02 00:49:53', 0, '0000-00-00 00:00:00', 0),
(14, 43, 0, 83, 0, 1, 0, 1, 16, '2014-06-02 00:49:53', 0, '0000-00-00 00:00:00', 0),
(15, 43, 0, 84, 0, 1, 0, 1, 16, '2014-06-02 00:49:53', 0, '0000-00-00 00:00:00', 0),
(16, 44, 0, 82, 0, 0, 0, 1, 16, '2014-06-02 01:13:51', 0, '0000-00-00 00:00:00', 0),
(17, 44, 0, 83, 0, 0, 0, 1, 16, '2014-06-02 01:13:51', 0, '0000-00-00 00:00:00', 0),
(18, 44, 0, 84, 0, 0, 0, 1, 16, '2014-06-02 01:13:51', 0, '0000-00-00 00:00:00', 0),
(19, 45, 0, 82, 0, -1, 0, 1, 16, '2014-06-02 01:16:54', 0, '0000-00-00 00:00:00', 0),
(20, 45, 0, 83, 0, -1, 0, 1, 16, '2014-06-02 01:16:54', 0, '0000-00-00 00:00:00', 0),
(21, 45, 0, 84, 0, -1, 0, 1, 16, '2014-06-02 01:16:54', 0, '0000-00-00 00:00:00', 0),
(22, 46, 0, 82, 0, -2, 0, 1, 16, '2014-06-02 01:18:05', 0, '0000-00-00 00:00:00', 0),
(23, 46, 0, 83, 0, -2, 0, 1, 16, '2014-06-02 01:18:05', 0, '0000-00-00 00:00:00', 0),
(24, 46, 0, 84, 0, -2, 0, 1, 16, '2014-06-02 01:18:05', 0, '0000-00-00 00:00:00', 0),
(25, 47, 0, 82, 0, -3, 0, 1, 16, '2014-06-02 01:18:38', 0, '0000-00-00 00:00:00', 0),
(26, 47, 0, 83, 0, -3, 0, 1, 16, '2014-06-02 01:18:38', 0, '0000-00-00 00:00:00', 0),
(27, 47, 0, 84, 0, -3, 0, 1, 16, '2014-06-02 01:18:38', 0, '0000-00-00 00:00:00', 0),
(28, 48, 0, 81, 0, 1, 0, 1, 16, '2014-06-02 01:38:43', 0, '0000-00-00 00:00:00', 0),
(29, 49, 0, 81, 0, 0, 0, 1, 16, '2014-06-02 01:40:39', 0, '0000-00-00 00:00:00', 0),
(30, 50, 0, 81, 0, -1, 0, 1, 16, '2014-06-02 01:41:18', 0, '0000-00-00 00:00:00', 0),
(31, 51, 0, 81, 0, -2, 0, 1, 16, '2014-06-02 01:42:53', 0, '0000-00-00 00:00:00', 0),
(32, 52, 0, 72, 0, 0, 0, 1, 16, '2014-06-02 01:45:41', 0, '0000-00-00 00:00:00', 0),
(33, 52, 0, 73, 0, 0, 0, 1, 16, '2014-06-02 01:45:41', 0, '0000-00-00 00:00:00', 0),
(34, 53, 0, 71, 0, -299, 0, 1, 16, '2014-06-02 01:46:26', 0, '0000-00-00 00:00:00', 0),
(35, 53, 0, 75, 0, 0, 0, 1, 16, '2014-06-02 01:46:26', 0, '0000-00-00 00:00:00', 0),
(36, 54, 0, 77, 0, 0, 0, 1, 16, '2014-06-02 01:49:07', 0, '0000-00-00 00:00:00', 0),
(37, 54, 0, 78, 0, 0, 0, 1, 16, '2014-06-02 01:49:07', 0, '0000-00-00 00:00:00', 0),
(38, 54, 0, 79, 0, 0, 0, 1, 16, '2014-06-02 01:49:07', 0, '0000-00-00 00:00:00', 0),
(39, 56, 0, 80, 0, 0, 0, 1, 16, '2014-06-02 01:59:32', 0, '0000-00-00 00:00:00', 0),
(40, 58, 0, 80, 0, -1, 0, 1, 16, '2014-06-02 02:10:04', 0, '0000-00-00 00:00:00', 0),
(41, 59, 0, 80, 0, -2, 0, 1, 16, '2014-06-02 02:13:49', 0, '0000-00-00 00:00:00', 0),
(42, 60, 0, 80, 0, -3, 0, 1, 16, '2014-06-02 02:18:49', 0, '0000-00-00 00:00:00', 0),
(43, 61, 0, 80, 0, -3, 0, 1, 16, '2014-06-02 02:19:29', 0, '0000-00-00 00:00:00', 0),
(44, 61, 0, 81, 0, -3, 0, 1, 16, '2014-06-02 02:19:29', 0, '0000-00-00 00:00:00', 0),
(45, 61, 0, 82, 0, -4, 0, 1, 16, '2014-06-02 02:19:29', 0, '0000-00-00 00:00:00', 0),
(46, 62, 0, 82, 100700, 100695, 1, 1, 16, '2014-06-02 02:37:14', 0, '0000-00-00 00:00:00', 0),
(47, 63, 0, 82, 100700, 100694, 1, 1, 16, '2014-06-02 02:51:46', 0, '0000-00-00 00:00:00', 0),
(48, 64, 0, 82, 100700, 100691, 1, 1, 16, '2014-06-02 02:55:12', 0, '0000-00-00 00:00:00', 0),
(49, 65, 0, 82, 100700, 100689, 2, 2, 16, '2014-06-02 03:13:43', 0, '0000-00-00 00:00:00', 0),
(50, 66, 0, 74, 0, 1000, 1, 10, 16, '2014-06-02 03:41:13', 0, '0000-00-00 00:00:00', 0),
(51, 67, 0, 74, 0, -11, 1, 10, 16, '2014-06-02 03:46:20', 0, '0000-00-00 00:00:00', 0),
(52, 68, 0, 82, 100700, 100685, 1, 9, 16, '2014-06-02 04:20:27', 0, '0000-00-00 00:00:00', 0),
(53, 69, 0, 82, 100700, 100675, 1, 1, 16, '2014-06-02 04:29:45', 0, '0000-00-00 00:00:00', 0),
(54, 70, 0, 82, 100700, 100673, 1, 1, 16, '2014-06-02 04:31:38', 0, '0000-00-00 00:00:00', 0),
(55, 71, 0, 82, 100700, 100671, 2, 1, 16, '2014-06-02 04:33:52', 0, '0000-00-00 00:00:00', 0),
(56, 72, 0, 82, 100700, 100668, 2, 1, 16, '2014-06-02 04:44:30', 0, '0000-00-00 00:00:00', 0);

-- --------------------------------------------------------

--
-- Table structure for table `comp_payment_others`
--

CREATE TABLE IF NOT EXISTS `comp_payment_others` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `otherPaymentType` smallint(6) NOT NULL COMMENT '0=with item. 1=without item',
  `companyID` int(11) NOT NULL,
  `payTo` text NOT NULL,
  `projectID` int(11) NOT NULL,
  `amountPaid` double NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `paymentDate` date NOT NULL,
  `updateAble` smallint(1) NOT NULL DEFAULT '1',
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `addressID` int(11) NOT NULL,
  `locationID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `totalDiscount` double NOT NULL,
  `bankCharges` double NOT NULL,
  `totalOtherCharge` double NOT NULL,
  `totalPaid` double NOT NULL,
  `totalApplied` double NOT NULL,
  `outOfBalance` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `accountDescription` varchar(128) NOT NULL,
  `paymentID` int(11) NOT NULL,
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;

--
-- Dumping data for table `comp_payment_others`
--

INSERT INTO `comp_payment_others` (`ID`, `otherPaymentType`, `companyID`, `payTo`, `projectID`, `amountPaid`, `paymentMethodID`, `referenceNo`, `accountID`, `formNo`, `paymentDate`, `updateAble`, `currencyID`, `exchangeRate`, `addressID`, `locationID`, `memo`, `totalDiscount`, `bankCharges`, `totalOtherCharge`, `totalPaid`, `totalApplied`, `outOfBalance`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `accountDescription`, `paymentID`, `journalNo`) VALUES
(11, 0, 1, 'Me', 2, 1030, 68, 3, 101, 'OPN', '2014-05-14', 1, 0, 0, 0, 2, 'Yup', 0, 0, 0, 0, 0, 0, 0, '2014-06-03 09:55:44', 0, '2014-06-11 10:40:24', 0, 'aaw', 0, ''),
(12, 1, 1, '12', 1, 121, 68, 3, 101, 'OPN', '2014-06-12', 1, 0, 0, 0, 2, 'sds', 0, 0, 0, 0, 0, 0, 0, '2014-06-03 10:23:30', 0, '2014-06-11 11:22:37', 0, '', 0, ''),
(18, 1, 16, 'sd', 2, 12, 68, 4, 101, 'OPN', '2014-06-04', 1, 0, 0, 0, 1, 'dsd', 0, 0, 0, 0, 0, 0, 16, '2014-06-04 10:35:05', 0, '2014-06-18 04:19:22', 0, 'sds', 0, ''),
(19, 0, 16, 'wew', 2, 11, 68, 5, 99, 'OPN', '2014-06-08', 1, 0, 0, 0, 1, 'sds', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 04:50:00', 0, '2014-06-20 02:44:30', 0, 'aad', 0, 'AP20140600000002'),
(20, 0, 16, '12s', 2, 12, 69, 5, 101, 'OPN', '2014-06-20', 1, 0, 0, 0, 2, 'qwqd', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 05:11:06', 0, '2014-06-20 02:44:29', 0, 'weeqw', 0, 'AP20140600000003'),
(21, 0, 16, 'ewqe', 1, 12, 69, 5, 102, 'OPN', '2014-06-05', 1, 0, 0, 0, 2, 'dqwd', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 05:13:29', 0, '2014-06-18 04:19:38', 0, 'qwq', 0, ''),
(22, 0, 16, 'sds', 1, 112, 68, 5, 100, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 06:48:21', 0, '0000-00-00 00:00:00', 0, 'ae', 0, ''),
(23, 1, 16, 'rtr', 1, 45, 68, 5, 99, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 10:15:02', 0, '0000-00-00 00:00:00', 0, 'fd', 0, ''),
(24, 1, 16, 'asa', 10, 12, 69, 5, 34, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, 'aq sasxw', 0, 0, 0, 0, 0, 0, 16, '2014-06-05 10:22:19', 0, '0000-00-00 00:00:00', 0, 'wqw', 0, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_payment_others_without_item`
--

CREATE TABLE IF NOT EXISTS `comp_payment_others_without_item` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `otherPaymentID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `itemdescription` text NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

--
-- Dumping data for table `comp_payment_others_without_item`
--

INSERT INTO `comp_payment_others_without_item` (`ID`, `otherPaymentID`, `lineNo`, `accountID`, `itemdescription`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(12, 18, 1, 102, 'sd', 2, 1, 6, 2.12, 2.12, 16, '2014-06-04 10:35:05', 0, '2014-06-20 02:45:33'),
(13, 18, 2, 101, 'xcx', 21, 7, 0, 21, 21, 16, '2014-06-04 10:37:24', 0, '2014-06-20 02:45:38'),
(14, 23, 1, 101, 'ytyt', 45, 1, 6, 47.7, 47.7, 16, '2014-06-05 10:15:02', 0, '2014-06-20 02:45:42'),
(15, 23, 2, 102, '34', 3, 1, 6, 3.18, 3.18, 16, '2014-06-05 10:20:27', 0, '2014-06-20 02:45:46'),
(16, 24, 1, 100, 'qwqw', 12, 14, 6, 0.72, 12.72, 16, '2014-06-05 10:22:19', 0, '2014-06-20 02:45:52'),
(17, 24, 2, 85, 'wew', 1, 15, 6, 0.06, 1.06, 16, '2014-06-05 10:22:36', 0, '2014-06-20 02:45:55'),
(18, 24, 3, 84, 'wewe', 1, 17, 0, 0, 1, 16, '2014-06-05 10:22:55', 16, '2014-06-20 02:45:59');

-- --------------------------------------------------------

--
-- Table structure for table `comp_payment_others_with_item`
--

CREATE TABLE IF NOT EXISTS `comp_payment_others_with_item` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `otherPaymentID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=33 ;

--
-- Dumping data for table `comp_payment_others_with_item`
--

INSERT INTO `comp_payment_others_with_item` (`ID`, `otherPaymentID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(21, 11, 1, 2, 'Steel chair for outdoor', '100300100', 1, 500, 1, 1, 6, 30, 530, 13, 0, '2014-06-20 02:46:17', 0, '0000-00-00 00:00:00', 0),
(22, 11, 2, 1, 'Teak wooden chair with natural finish', '321000100', 100, 50, 1, 0, 0, 0, 500, 14, 0, '2014-06-20 02:46:38', 0, '0000-00-00 00:00:00', 0),
(23, 12, 1, 2, 'Steel chair for outdoor', '100300100', 1, 1, 1, 1, 6, 0, 0, 0, 0, '2014-06-20 02:46:28', 0, '0000-00-00 00:00:00', 0),
(24, 19, 1, 2, '100300100', 'Steel chair for outdoor', 1, 11, 11, 1, 6, 0, 0, 0, 16, '2014-06-20 02:46:44', 0, '0000-00-00 00:00:00', 0),
(25, 19, 2, 7, '331000200', 'Plastic Chair - Red', 12, 12, 144, 12, 5, 0, 0, 0, 16, '2014-06-20 02:46:48', 0, '0000-00-00 00:00:00', 0),
(26, 20, 1, 2, 'B13 Steel Chair', 'Steel chair for outdoor', 12, 1, 12, 1, 6, 0, 0, 0, 16, '2014-06-20 02:46:52', 0, '0000-00-00 00:00:00', 0),
(27, 20, 2, 4, 'A23 Plastic Chair', 'Plastic Chair - Blue', 1, 12, 12, 1, 6, 0, 0, 0, 16, '2014-06-20 02:46:59', 0, '0000-00-00 00:00:00', 0),
(28, 21, 1, 2, 'B13 Steel Chair', 'Steel chair for outdoor', 2, 12, 24, 1, 6, 0, 0, 0, 16, '2014-06-20 02:47:03', 0, '0000-00-00 00:00:00', 0),
(29, 21, 2, 9, 'Nasi Goreng', 'Nasi Goreng Ayam', 12, 21, 252, 26, 12, 0, 0, 0, 16, '2014-06-20 02:47:07', 0, '0000-00-00 00:00:00', 0),
(30, 21, 3, 7, 'A24 Plastic Chair', 'Plastic Chair - Red', 1, 1, 1, 0, 0, 0, 0, 0, 16, '2014-06-20 02:47:17', 0, '0000-00-00 00:00:00', 0),
(31, 22, 1, 2, 'B13 Steel Chair', 'Steel chair for outdoor', 1, 12, 12, 1, 6, 0.72, 12.72, 0, 16, '2014-06-20 02:47:20', 0, '0000-00-00 00:00:00', 0),
(32, 22, 2, 0, 'A12 Wooden Chair', 'Teak wooden chair with natural finish', 1, 12, 12, 1, 6, 0.72, 12.72, 0, 16, '2014-06-20 02:47:24', 16, '0000-00-00 00:00:00', 0);

-- --------------------------------------------------------

--
-- Table structure for table `comp_project`
--

CREATE TABLE IF NOT EXISTS `comp_project` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `project_name` varchar(128) NOT NULL,
  `projectManagerID` int(11) NOT NULL,
  `totalBudget` double NOT NULL,
  `remarks` text NOT NULL,
  `createdID` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

--
-- Dumping data for table `comp_project`
--

INSERT INTO `comp_project` (`ID`, `companyID`, `project_name`, `projectManagerID`, `totalBudget`, `remarks`, `createdID`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 'cuci servicesa', 1, 20, 'ntaha', 0, '2014-05-09 02:23:25', 0, '2014-06-02 11:05:38', 0),
(2, 1, 'cuci', 0, 0, 'dfdfd', 0, '2014-05-14 11:12:08', 0, '2014-05-14 11:23:41', 0),
(10, 1, 'software development', 0, 0, 'tender', 0, '2014-06-02 08:56:28', 0, '0000-00-00 00:00:00', 0),
(15, 1, 'clean', 0, 12, 'project baru', 0, '2014-06-02 10:55:12', 0, '0000-00-00 00:00:00', 0),
(16, 1, 'clean', 0, 20, 'project baru', 0, '2014-06-02 11:04:25', 0, '2014-06-24 09:56:53', 1),
(17, 1, 'project management', 0, 0, 'deposit', 0, '2014-06-03 01:16:15', 0, '0000-00-00 00:00:00', 0),
(18, 27, 'project management', 0, 0, 'depositdeposit', 0, '2014-06-06 09:30:03', 0, '2014-06-06 09:30:17', 0),
(19, 15, 'project A', 8, 100000, 'remarks projek A', 0, '2014-06-10 12:08:51', 0, '2014-06-10 12:11:43', 0);

-- --------------------------------------------------------

--
-- Table structure for table `comp_purchase_order`
--

CREATE TABLE IF NOT EXISTS `comp_purchase_order` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `purchaserID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `purchaseOrderNo` varchar(32) NOT NULL,
  `salesAgentName` varchar(64) NOT NULL,
  `formNo` varchar(16) NOT NULL,
  `poDate` date NOT NULL,
  `exchangeRate` double NOT NULL,
  `termAndConditionID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updateAble` tinyint(4) NOT NULL DEFAULT '1',
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `memo` varchar(255) NOT NULL,
  `is_delete` int(11) NOT NULL DEFAULT '0',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

--
-- Dumping data for table `comp_purchase_order`
--

INSERT INTO `comp_purchase_order` (`ID`, `companyID`, `purchaserID`, `supplierID`, `purchaseOrderNo`, `salesAgentName`, `formNo`, `poDate`, `exchangeRate`, `termAndConditionID`, `currencyID`, `createdBy`, `createdTS`, `updatedBy`, `updateAble`, `updatedTS`, `memo`, `is_delete`, `journalNo`) VALUES
(1, 1, 0, 20, '', '', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 03:07:21', 0, 1, '2014-05-26 04:06:57', '', 0, ''),
(2, 1, 0, 1, '', '', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 04:13:24', 0, 1, '0000-00-00 00:00:00', '', 0, ''),
(3, 1, 0, 1, '', '', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:31:08', 0, 1, '0000-00-00 00:00:00', '', 0, ''),
(4, 1, 0, 1, '', '', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:34:12', 0, 1, '0000-00-00 00:00:00', '', 0, ''),
(5, 1, 7, 20, '', '', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 04:44:44', 0, 1, '0000-00-00 00:00:00', 'sds', 0, ''),
(6, 1, 7, 1, '', '', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:45:32', 0, 1, '0000-00-00 00:00:00', 'asa', 0, ''),
(7, 1, 6, 23, '', '', 'PI2014nasi goren', '2014-05-26', 3.6, 5, 0, 0, '2014-05-26 04:48:50', 0, 1, '2014-05-26 10:45:04', 'sdwew', 0, ''),
(8, 1, 7, 20, '', '', 'PI2014nasi goren', '2014-05-26', 1, 7, 0, 16, '2014-05-26 04:59:47', 0, 0, '2014-06-16 08:32:07', 'sdsd', 0, ''),
(9, 1, 7, 1, '123', 'fadhirul', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 16, '2014-05-26 05:07:29', 0, 0, '2014-06-16 08:32:07', 'dss', 0, ''),
(10, 1, 7, 20, '', '', 'PI2014nasi goren', '2014-06-02', 1, 5, 0, 1, '2014-06-02 05:47:20', 0, 0, '2014-06-16 08:32:07', '', 0, ''),
(11, 15, 9, 26, '', '', 'PI2014', '2014-06-11', 0, 5, 0, 16, '2014-06-11 04:09:12', 0, 0, '2014-06-16 08:32:08', '', 0, ''),
(12, 15, 8, 27, '', '', 'PI2014', '2014-06-12', 0, 5, 0, 16, '2014-06-12 02:14:41', 0, 0, '2014-06-16 08:32:08', '', 0, ''),
(13, 1, 7, 1, '', '', 'PI2014', '2014-06-12', 1, 5, 0, 16, '2014-06-12 04:56:18', 0, 0, '2014-06-13 02:11:09', 'ww', 0, ''),
(14, 1, 6, 1, '', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:24:58', 0, 1, '0000-00-00 00:00:00', 'qw', 0, ''),
(15, 1, 6, 1, '', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:25:00', 0, 1, '0000-00-00 00:00:00', 'qw', 0, ''),
(16, 1, 6, 1, '', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:25:10', 0, 1, '0000-00-00 00:00:00', 'qw', 0, ''),
(17, 1, 6, 1, '', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:27:45', 0, 1, '0000-00-00 00:00:00', 'qw', 0, ''),
(18, 1, 7, 1, '', '', 'PI2014', '2014-06-20', 23, 1, 1, 16, '2014-06-20 01:12:13', 0, 0, '2014-06-20 03:23:39', 'ASA', 0, ''),
(19, 1, 7, 1, '', '', 'PI2014', '2014-06-20', 12, 6, 1, 16, '2014-06-20 01:15:57', 0, 1, '0000-00-00 00:00:00', 'ewq', 0, ''),
(20, 15, 8, 26, '', '', 'PI2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:28:06', 0, 0, '2014-06-21 03:36:55', '', 0, ''),
(21, 15, 12, 27, '', '', 'PO2014', '2014-06-21', 1, 5, 1, 16, '2014-06-21 03:37:57', 0, 1, '2014-06-21 04:00:07', '', 0, ''),
(22, 15, 12, 26, '', '', 'PO2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:47:24', 0, 1, '2014-06-21 04:00:14', '', 0, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_purchase_order_detail`
--

CREATE TABLE IF NOT EXISTS `comp_purchase_order_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `purchaseOrderID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemCode` varchar(16) NOT NULL,
  `itemName` varchar(128) NOT NULL,
  `description` text,
  `unitPrice` double NOT NULL,
  `quantityOrder` int(11) NOT NULL,
  `quantityReceivedTotal` int(11) NOT NULL DEFAULT '0',
  `amount` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;

--
-- Dumping data for table `comp_purchase_order_detail`
--

INSERT INTO `comp_purchase_order_detail` (`ID`, `purchaseOrderID`, `lineNo`, `itemID`, `itemCode`, `itemName`, `description`, `unitPrice`, `quantityOrder`, `quantityReceivedTotal`, `amount`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(2, 2, 0, 2, '', 'kelapa muda hijau', 'kelapa', 1, 11, 11, 0, 0, '2014-05-26 04:13:24', 0, '2014-06-24 08:25:19'),
(3, 2, 0, 4, '', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 12, 0, 0, '2014-05-26 04:13:52', 0, '2014-06-25 02:15:13'),
(4, 2, 0, 7, '', 'jackfruit', 'Buah', 1, 11, 11, 0, 0, '2014-05-26 04:28:35', 0, '2014-06-24 09:31:20'),
(5, 0, 0, 2, '', 'Steel chair for outdoor', 'B13 Steel Chair', 1, 11, 5, 0, 0, '2014-05-26 04:31:08', 16, '2014-06-12 06:12:33'),
(6, 0, 0, 1, '', 'SDSFSF', '1212', 1, 1, 0, 0, 0, '2014-05-26 04:34:13', 16, '2014-06-12 06:13:04'),
(8, 6, 0, 2, '', 'kelapa muda hijau', 'kelapa', 1, 22, 0, 0, 0, '2014-05-26 04:45:32', 0, '0000-00-00 00:00:00'),
(9, 7, 0, 2, '', 'kelapa muda hijau', 'kelapa', 1, 12, 3, 0, 0, '2014-05-26 04:48:50', 0, '2014-06-25 06:03:17'),
(10, 7, 0, 0, '', 'S', 'S', 1, 1, 1, 0, 0, '2014-05-26 04:51:55', 0, '2014-06-25 06:03:09'),
(12, 8, 0, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 22, 22, 2, 0, 0, '2014-05-26 05:00:03', 16, '2014-06-24 10:01:02'),
(13, 10, 0, 0, '', 'Nasi Lemak', 'fad', 12, 5, 1, 0, 0, '2014-06-02 05:47:20', 0, '2014-06-25 03:05:20'),
(14, 11, 0, 11, '', 'saiz 10. warna gold', 'Meja makan bulat', 125, 5, 5, 0, 0, '2014-06-11 04:09:12', 0, '2014-06-11 05:10:38'),
(15, 11, 0, 11, '', 'saiz 10. warna gold', 'Meja makan bulat', 100, 1, 1, 0, 0, '2014-06-11 04:13:51', 0, '2014-06-11 05:10:47'),
(16, 11, 0, 12, '', 'saiz 10. warna hitam', 'Meja makan lonjong', 250, 1, 1, 0, 0, '2014-06-11 04:14:08', 0, '2014-06-11 05:10:48'),
(17, 12, 0, 11, '', 'saiz 10. warna gold', 'Meja makan bulat', 100, 5, 5, 0, 0, '2014-06-12 02:14:41', 0, '2014-06-12 09:43:40'),
(18, 12, 0, 12, '', 'saiz 10. warna hitam', 'Meja makan lonjong', 125, 1, 1, 0, 0, '2014-06-12 02:14:57', 0, '2014-06-12 09:43:50'),
(19, 0, 0, 2, '', 'Steel chair for outdoor', 'B13 Steel Chair', 111, 2, 0, 0, 0, '2014-06-12 04:56:18', 16, '2014-06-12 05:21:29'),
(20, 0, 0, 4, '', 'Plastic Chair - Blue', 'A23 Plastic Chair', 11111, 1, 0, 0, 0, '2014-06-12 04:56:32', 16, '2014-06-12 05:21:07'),
(21, 0, 0, 2, '', 'Steel chair for outdoor', 'B13 Steel Chair', 1, 2, 0, 0, 0, '2014-06-12 05:14:47', 0, '0000-00-00 00:00:00'),
(22, 14, 1, 1, '', '', 'Teak wooden chair with natural finish', 1, 12, 1, 12, 16, '2014-06-19 10:24:58', 0, '2014-06-25 00:43:14'),
(23, 15, 1, 1, '', '', 'Teak wooden chair with natural finish', 1, 12, 1, 12, 16, '2014-06-19 10:25:00', 0, '2014-06-25 05:24:09'),
(24, 16, 1, 1, '', '', 'Teak wooden chair with natural finish', 1, 12, 0, 12, 16, '2014-06-19 10:25:10', 0, '0000-00-00 00:00:00'),
(25, 17, 1, 10, '', '', 'Teak wooden chair with natural finish', 1, 1, 1, 12, 16, '2014-06-19 10:27:45', 16, '2014-06-25 05:21:54'),
(26, 17, 2, 8, '', '', 'Plastic Chair - White', 1, 1, 0, 144, 16, '2014-06-19 10:28:10', 16, '2014-06-21 00:58:56'),
(28, 18, 1, 1, '', '', 'Teak wooden chair with natural finish', 12, 12, 12, 144, 16, '2014-06-20 01:12:13', 0, '2014-06-24 06:45:36'),
(29, 19, 1, 4, '', '', 'Plastic Chair - Blue', 1212, 12, 5, 14, 16, '2014-06-20 01:15:57', 0, '2014-06-25 06:14:02'),
(30, 19, 2, 10, '', '', 'Bola Tampar Buaya', 111, 12, 5, 1, 16, '2014-06-20 01:16:59', 0, '2014-06-25 06:14:16'),
(31, 20, 1, 11, '', '', 'saiz 10. warna gold', 2, 10, 0, 22, 16, '2014-06-21 03:28:07', 0, '0000-00-00 00:00:00'),
(32, 20, 2, 12, '', '', 'saiz 10. warna merah', 3, 5, 0, 16, 16, '2014-06-21 03:33:12', 0, '0000-00-00 00:00:00'),
(33, 21, 1, 11, '', '', 'saiz 10. warna gold', 2, 2, 0, 4, 16, '2014-06-21 03:37:57', 0, '0000-00-00 00:00:00'),
(34, 21, 2, 12, '', '', 'saiz 10. warna hitam', 3, 1, 0, 3, 16, '2014-06-21 03:38:11', 0, '0000-00-00 00:00:00'),
(35, 22, 1, 11, '', '', 'saiz 10. warna gold', 12, 1, 0, 12, 16, '2014-06-21 03:47:24', 0, '0000-00-00 00:00:00'),
(36, 22, 2, 12, '', '', 'saiz 10. warna merah', 1, 2, 0, 2, 16, '2014-06-21 03:47:56', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_purchase_price`
--

CREATE TABLE IF NOT EXISTS `comp_purchase_price` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `price` double NOT NULL,
  `updatedBy` varchar(50) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `comp_purchase_price`
--

INSERT INTO `comp_purchase_price` (`ID`, `companyID`, `itemID`, `supplierID`, `price`, `updatedBy`, `updatedTS`) VALUES
(17, 1, 1, 1, 567, 'akmal', '2014-06-05 04:50:09'),
(19, 1, 9, 24, 768, 'akmal', '2014-06-05 04:50:39'),
(20, 1, 7, 1, 8769, 'akmal', '2014-06-05 04:50:52');

-- --------------------------------------------------------

--
-- Table structure for table `comp_quotation`
--

CREATE TABLE IF NOT EXISTS `comp_quotation` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `quotationCode` varchar(32) NOT NULL,
  `salesAgentID` int(11) NOT NULL,
  `employeeID` int(11) unsigned NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `quotationDate` date NOT NULL,
  `deliverToID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `supplierID` text NOT NULL,
  `memo` varchar(128) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `exchangeRate` double NOT NULL,
  `totalReceivable` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

--
-- Dumping data for table `comp_quotation`
--

INSERT INTO `comp_quotation` (`ID`, `companyID`, `customerID`, `quotationCode`, `salesAgentID`, `employeeID`, `formNo`, `quotationDate`, `deliverToID`, `currencyID`, `supplierID`, `memo`, `totalTaxAmount`, `exchangeRate`, `totalReceivable`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 12, '', 0, 6, 'AQ12343242', '2014-06-06', 7, 1, '', 'test memo', 28980, 1, 0, 1, '2014-06-06 02:21:02', 0, '0000-00-00 00:00:00'),
(3, 1, 12, '', 0, 7, 'SA1213434', '2014-06-06', 7, 1, '', 'testttt', 5040, 1, 0, 1, '2014-06-06 02:26:19', 0, '0000-00-00 00:00:00'),
(4, 1, 12, '', 0, 6, 'saasda', '2014-06-06', 8, 1, '', 'dasd', 3780, 1, 0, 1, '2014-06-06 02:28:04', 0, '0000-00-00 00:00:00'),
(5, 1, 12, '', 0, 6, 'SQN2014-00000005', '2014-06-06', 7, 1, '', 'dfsd', 1260, 1, 0, 1, '2014-06-06 04:12:32', 0, '2014-06-06 04:12:32'),
(6, 1, 12, '', 0, 6, 'SQN2014-00000006', '2014-06-06', 7, 1, '', 'afs', 44100, 1, 0, 1, '2014-06-06 04:22:54', 1, '2014-06-06 04:23:03'),
(7, 1, 12, '', 0, 6, 'SQN2014-00000007', '2014-06-06', 7, 1, '', 'dsfs', 15120, 1, 0, 1, '2014-06-06 07:09:39', 1, '2014-06-06 07:09:53'),
(8, 1, 12, '', 0, 6, 'SQN2014-00000007-00000008', '2014-06-06', 7, 1, '', 'dsfs', 15498, 1, 0, 1, '2014-06-06 07:10:06', 0, '2014-06-06 07:10:06'),
(9, 1, 12, '', 0, 6, 'SQN2014-00000009', '2014-06-06', 7, 1, '', 'dsfds', 1764, 1, 0, 1, '2014-06-06 07:14:44', 1, '2014-06-06 07:14:54'),
(10, 1, 12, '', 0, 6, 'SQN2014-00000009-00000010', '2014-06-06', 7, 1, '', 'dsfds', 4662, 1, 0, 1, '2014-06-06 07:15:02', 0, '2014-06-06 07:15:02'),
(11, 1, 12, '', 0, 6, 'SQN2014-00000011', '2014-06-06', 8, 1, '', 'hgh', 14616, 1, 0, 1, '2014-06-06 07:17:50', 1, '2014-06-06 07:17:58'),
(12, 1, 12, '', 0, 6, 'SQN2014-00000011-00000012', '2014-06-06', 8, 1, '', 'hgh', 15246, 1, 0, 1, '2014-06-06 07:18:08', 0, '2014-06-06 07:18:08'),
(13, 1, 12, '', 0, 6, 'SQN2014-00000013', '2014-06-06', 8, 1, '', 'fgdfg', 4914, 1, 0, 1, '2014-06-06 07:19:07', 1, '2014-06-06 07:19:17'),
(14, 1, 12, '', 0, 6, 'SQN2014-00000013-00000014', '2014-06-06', 8, 1, '', 'fgdfg', 20286, 1, 0, 1, '2014-06-06 07:19:27', 0, '2014-06-06 07:19:27');

-- --------------------------------------------------------

--
-- Table structure for table `comp_quotation_detail`
--

CREATE TABLE IF NOT EXISTS `comp_quotation_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `quotationID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `description` varchar(200) NOT NULL,
  `unitOfPrice` double NOT NULL,
  `quantityOrder` int(11) NOT NULL,
  `amountExcludeTax` double DEFAULT NULL,
  `taxID` int(11) NOT NULL,
  `umID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncudeTax` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `comp_quotation_detail`
--

INSERT INTO `comp_quotation_detail` (`ID`, `quotationID`, `lineNo`, `itemID`, `description`, `unitOfPrice`, `quantityOrder`, `amountExcludeTax`, `taxID`, `umID`, `taxRate`, `taxAmount`, `amountIncudeTax`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 0, 1, 'Teak wooden chair with natural finish', 120, 230, 27600, 12, 2, 5, 1380, 28980, 1, '2014-06-06 02:21:02', 0, '0000-00-00 00:00:00'),
(4, 3, 0, 1, 'Teak wooden chair with natural finish', 120, 40, 4800, 12, 2, 5, 240, 5040, 1, '2014-06-06 02:26:19', 0, '0000-00-00 00:00:00'),
(5, 4, 0, 1, 'Teak wooden chair with natural finish', 120, 30, 3600, 12, 2, 5, 180, 3780, 1, '2014-06-06 02:28:04', 0, '0000-00-00 00:00:00'),
(7, 6, 0, 1, 'Teak wooden chair with natural finish', 120, 20, 2400, 12, 2, 5, 120, 2520, 1, '2014-06-06 04:22:54', 0, '0000-00-00 00:00:00'),
(8, 6, 0, 1, 'Teak wooden chair with natural finish', 120, 330, 39600, 12, 2, 5, 1980, 41580, 1, '2014-06-06 04:23:03', 0, '0000-00-00 00:00:00'),
(9, 7, 0, 1, 'Teak wooden chair with natural finish', 120, 10, 1200, 12, 2, 5, 60, 1260, 1, '2014-06-06 07:09:39', 0, '0000-00-00 00:00:00'),
(10, 7, 0, 1, 'Teak wooden chair with natural finish', 120, 110, 13200, 12, 2, 5, 660, 13860, 1, '2014-06-06 07:09:53', 0, '0000-00-00 00:00:00'),
(11, 8, 0, 1, 'Teak wooden chair with natural finish', 120, 3, 360, 12, 2, 5, 18, 378, 1, '2014-06-06 07:10:06', 0, '0000-00-00 00:00:00'),
(12, 9, 0, 1, 'Teak wooden chair with natural finish', 120, 10, 1200, 12, 2, 5, 60, 1260, 1, '2014-06-06 07:14:44', 0, '0000-00-00 00:00:00'),
(13, 9, 0, 1, 'Teak wooden chair with natural finish', 120, 4, 480, 12, 2, 5, 24, 504, 1, '2014-06-06 07:14:54', 0, '0000-00-00 00:00:00'),
(14, 10, 0, 1, 'Teak wooden chair with natural finish', 120, 23, 2760, 12, 2, 5, 138, 2898, 1, '2014-06-06 07:15:02', 0, '0000-00-00 00:00:00'),
(15, 11, 0, 1, 'Teak wooden chair with natural finish', 120, 4, 480, 12, 2, 5, 24, 504, 1, '2014-06-06 07:17:50', 0, '0000-00-00 00:00:00'),
(16, 11, 0, 1, 'Teak wooden chair with natural finish', 120, 112, 13440, 12, 2, 5, 672, 14112, 1, '2014-06-06 07:17:58', 0, '0000-00-00 00:00:00'),
(17, 12, 0, 1, 'Teak wooden chair with natural finish', 120, 5, 600, 12, 2, 5, 30, 630, 1, '2014-06-06 07:18:08', 0, '0000-00-00 00:00:00'),
(18, 13, 0, 1, 'Teak wooden chair with natural finish', 120, 34, 4080, 12, 2, 5, 204, 4284, 1, '2014-06-06 07:19:07', 0, '0000-00-00 00:00:00'),
(19, 13, 0, 1, 'Teak wooden chair with natural finish', 120, 5, 600, 12, 2, 5, 30, 630, 1, '2014-06-06 07:19:17', 0, '0000-00-00 00:00:00'),
(20, 14, 0, 1, 'Teak wooden chair with natural finish', 120, 122, 14640, 12, 2, 5, 732, 15372, 1, '2014-06-06 07:19:27', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_receive_item`
--

CREATE TABLE IF NOT EXISTS `comp_receive_item` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierDoNo` varchar(32) NOT NULL,
  `purchaseOrderID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `deliveryDate` date NOT NULL,
  `locationID` int(11) NOT NULL,
  `deliverToID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` float NOT NULL,
  `employeeID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `updateAble` smallint(6) NOT NULL DEFAULT '1',
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=59 ;

--
-- Dumping data for table `comp_receive_item`
--

INSERT INTO `comp_receive_item` (`ID`, `companyID`, `supplierDoNo`, `purchaseOrderID`, `supplierID`, `formNo`, `deliveryDate`, `locationID`, `deliverToID`, `currencyID`, `exchangeRate`, `employeeID`, `memo`, `shippingMethodID`, `totalAmount`, `totalPayable`, `updateAble`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(8, 1, 'fds', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 04:51:53', 0, '2014-06-13 10:47:37'),
(9, 1, 'd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 04:58:34', 0, '2014-05-29 10:54:31'),
(10, 1, 's', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 05:00:14', 0, '2014-05-29 10:54:31'),
(11, 1, 'ada', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 05:03:29', 0, '2014-05-29 10:54:31'),
(12, 1, 's', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 05:04:35', 0, '2014-05-29 10:54:31'),
(13, 1, 'GU', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 06:09:27', 0, '2014-05-29 10:54:31'),
(14, 1, 'sd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '                                  \n                             ', 0, 0, 0, 1, 0, '2014-05-28 07:33:16', 0, '2014-05-29 10:54:31'),
(15, 1, 'as', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '                                  \n                             ', 0, 0, 0, 1, 0, '2014-05-28 07:35:37', 0, '2014-05-29 10:54:31'),
(16, 1, 'as', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 07:52:13', 0, '2014-05-29 10:54:31'),
(17, 1, 'bnvb', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:05:33', 0, '2014-05-29 10:54:31'),
(18, 1, 'sds', 2, 1, 'GRN', '2014-05-13', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:19:27', 0, '2014-05-29 10:54:31'),
(19, 1, 'ds', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:21:06', 0, '2014-05-29 10:54:31'),
(20, 1, 'dfd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:21:40', 0, '2014-05-29 10:54:31'),
(21, 1, 'sd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:24:02', 0, '2014-05-29 10:54:31'),
(22, 1, 'd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:31:14', 0, '2014-05-29 10:54:31'),
(23, 1, 'dfd', 2, 1, 'GRN', '2014-05-28', 1, 0, 0, 0, 6, 'xasa', 0, 0, 0, 1, 0, '2014-05-28 08:32:30', 0, '2014-05-29 10:54:31'),
(24, 1, '', 2, 1, 'GRN', '2014-05-28', 2, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-28 08:33:14', 0, '2014-06-19 07:00:06'),
(25, 1, 'ds', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 6, 'sdsd', 0, 0, 0, 1, 0, '2014-05-29 07:14:24', 0, '2014-05-29 10:54:31'),
(26, 1, 'bvgmj', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 6, '', 0, 0, 0, 1, 0, '2014-05-29 07:23:51', 0, '2014-05-29 10:54:31'),
(27, 1, 'as', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 6, 'dsd', 0, 0, 0, 1, 0, '2014-05-29 08:04:01', 0, '2014-05-29 10:54:31'),
(28, 1, 'as', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 6, 'sds', 0, 0, 0, 1, 0, '2014-05-29 08:06:57', 0, '2014-05-29 10:54:31'),
(29, 1, 'sds', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 0, 'ada', 0, 0, 0, 1, 0, '2014-05-29 10:57:01', 0, '0000-00-00 00:00:00'),
(30, 1, 'asa', 2, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 7, 'ad', 0, 0, 0, 1, 0, '2014-05-29 11:06:33', 0, '0000-00-00 00:00:00'),
(31, 1, 'sd', 3, 1, 'GRN', '2014-05-29', 1, 0, 0, 0, 7, 'dsd', 3, 0, 0, 1, 0, '2014-05-29 11:12:57', 0, '0000-00-00 00:00:00'),
(32, 15, 'supplier do no', 11, 26, 'GRN2014', '2014-06-11', 1, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-11 05:10:38', 0, '2014-06-13 10:46:16'),
(33, 15, 'hk', 12, 27, 'GRN2014', '2014-06-12', 2, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-12 09:43:40', 0, '0000-00-00 00:00:00'),
(34, 1, '0', 0, 0, '0', '1970-01-01', 0, 0, 0, 0, 0, '0', 0, 0, 0, 1, 0, '2014-06-16 07:20:43', 0, '0000-00-00 00:00:00'),
(35, 1, '0', 0, 0, '0', '1970-01-01', 0, 0, 0, 0, 0, '0', 0, 0, 0, 1, 0, '2014-06-16 07:20:58', 0, '0000-00-00 00:00:00'),
(36, 1, '0', 0, 0, '0', '1970-01-01', 0, 0, 0, 0, 0, '0', 0, 0, 0, 1, 0, '2014-06-16 07:22:21', 0, '0000-00-00 00:00:00'),
(37, 1, 'wew', 18, 1, 'GRN', '2014-06-24', 1, 0, 0, 0, 7, 'ew', 0, 0, 0, 1, 0, '2014-06-24 06:45:36', 0, '0000-00-00 00:00:00'),
(38, 1, 'as', 2, 1, 'GRN', '2014-06-24', 1, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-24 08:25:19', 0, '0000-00-00 00:00:00'),
(39, 1, 'sds', 2, 1, 'GRN', '2014-06-24', 0, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-24 09:23:56', 0, '0000-00-00 00:00:00'),
(40, 1, 'qwq', 2, 1, 'GRN', '2014-06-24', 2, 0, 0, 0, 6, 'assasas', 74, 0, 0, 1, 0, '2014-06-24 09:31:20', 0, '0000-00-00 00:00:00'),
(41, 1, 'asa', 8, 20, 'GRN', '2014-06-24', 1, 0, 0, 0, 0, 'qwq', 0, 0, 0, 1, 0, '2014-06-24 09:41:19', 0, '0000-00-00 00:00:00'),
(42, 1, 'wqw', 8, 20, 'GRN', '2014-06-24', 1, 0, 0, 0, 7, 'qw', 74, 0, 0, 1, 0, '2014-06-24 10:01:02', 0, '0000-00-00 00:00:00'),
(43, 1, 'asa', 7, 23, 'GRN', '2014-06-24', 2, 0, 0, 0, 7, 'asa', 5, 0, 0, 1, 0, '2014-06-24 11:47:22', 0, '0000-00-00 00:00:00'),
(44, 1, 'qwq', 14, 1, 'GRN', '2014-06-25', 2, 0, 0, 0, 6, 'wq wqewx weq wdqe', 74, 0, 0, 1, 0, '2014-06-25 00:43:14', 0, '0000-00-00 00:00:00'),
(45, 1, 'sdw', 10, 20, 'GRN', '2014-06-25', 1, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 00:48:52', 0, '0000-00-00 00:00:00'),
(46, 1, 'SDSAD', 7, 23, 'GRN', '2014-06-25', 1, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 02:03:10', 0, '0000-00-00 00:00:00'),
(47, 1, 'WE', 19, 1, 'GRN', '2014-06-25', 1, 0, 0, 0, 7, 'SD SDS', 73, 0, 0, 1, 0, '2014-06-25 02:04:01', 0, '0000-00-00 00:00:00'),
(48, 1, 'SDW', 2, 1, 'GRN', '2014-06-25', 1, 0, 0, 0, 7, 'SDW', 73, 0, 0, 1, 0, '2014-06-25 02:15:12', 0, '0000-00-00 00:00:00'),
(49, 1, 'EWE', 14, 1, 'GRN', '2014-06-25', 2, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 02:26:18', 0, '0000-00-00 00:00:00'),
(50, 1, 'SDA', 19, 1, 'GRN', '2014-06-25', 1, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 05:09:57', 0, '0000-00-00 00:00:00'),
(51, 1, 'qwq', 19, 1, 'GRN', '2014-06-25', 2, 0, 0, 0, 7, 'wqwq', 8, 0, 0, 1, 0, '2014-06-25 05:16:08', 0, '0000-00-00 00:00:00'),
(52, 1, '12', 17, 1, 'GRN', '2014-06-25', 2, 0, 0, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 05:21:54', 0, '0000-00-00 00:00:00'),
(53, 1, 'ewe', 15, 1, 'GRN', '2014-06-25', 1, 0, 0, 0, 7, 'wewewe', 8, 0, 0, 1, 0, '2014-06-25 05:24:09', 0, '0000-00-00 00:00:00'),
(54, 1, 'DWQ', 7, 23, 'GRN', '2014-06-25', 1, 0, 2, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 06:03:09', 0, '0000-00-00 00:00:00'),
(55, 1, '23', -1, 1, 'GRN', '2014-06-25', 2, 0, 1, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 06:04:49', 0, '0000-00-00 00:00:00'),
(56, 1, 'WE', 19, 1, 'GRN', '2014-06-25', 1, 0, 1, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 06:06:09', 0, '0000-00-00 00:00:00'),
(57, 1, '', 19, 1, 'GRN', '2014-06-25', 0, 0, 1, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 06:10:38', 0, '0000-00-00 00:00:00'),
(58, 1, 'QWQ', 19, 1, 'GRN', '2014-06-25', 2, 0, 1, 0, 0, '', 0, 0, 0, 1, 0, '2014-06-25 06:14:02', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_receive_item_detail`
--

CREATE TABLE IF NOT EXISTS `comp_receive_item_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `receiveID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `poDetailID` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemCode` varchar(16) NOT NULL,
  `itemName` varchar(128) NOT NULL,
  `description` text,
  `unitPrice` double NOT NULL,
  `quantityOrder` int(11) NOT NULL,
  `quantityReceived` int(11) NOT NULL DEFAULT '0',
  `amount` double NOT NULL,
  `balanceItem` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=103 ;

--
-- Dumping data for table `comp_receive_item_detail`
--

INSERT INTO `comp_receive_item_detail` (`ID`, `receiveID`, `lineNo`, `poDetailID`, `itemID`, `itemCode`, `itemName`, `description`, `unitPrice`, `quantityOrder`, `quantityReceived`, `amount`, `balanceItem`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(7, 8, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 0, 16, '2014-05-28 04:51:53', 0, '2014-06-19 10:51:58'),
(8, 8, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 2, 12, 0, 16, '2014-05-28 04:52:16', 0, '0000-00-00 00:00:00'),
(9, 9, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 0, 16, '2014-05-28 04:58:34', 0, '2014-06-19 10:51:58'),
(10, 9, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 0, 16, '2014-05-28 04:58:48', 0, '0000-00-00 00:00:00'),
(11, 10, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 4, 16, '2014-05-28 05:00:14', 0, '2014-06-19 10:51:58'),
(12, 10, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 5, 11, 5, 16, '2014-05-28 05:00:19', 0, '2014-06-12 06:50:41'),
(13, 11, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-28 05:03:29', 0, '2014-06-12 06:58:35'),
(14, 11, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 0, 16, '2014-05-28 05:03:33', 0, '0000-00-00 00:00:00'),
(15, 12, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-28 05:04:35', 0, '2014-06-12 06:58:35'),
(16, 13, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-28 06:09:27', 0, '2014-06-12 06:57:56'),
(17, 14, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 5, 11, 5, 16, '2014-05-28 07:33:16', 0, '2014-06-12 06:50:41'),
(18, 15, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 0, 16, '2014-05-28 07:35:37', 0, '0000-00-00 00:00:00'),
(19, 16, 0, -1, 1, 'aaa', 'SDSFSF', 'AAA', 1, 0, 1, 1, 0, 16, '2014-05-28 07:52:13', 0, '0000-00-00 00:00:00'),
(20, 16, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 5, 12, 0, 16, '2014-05-28 07:52:55', 0, '0000-00-00 00:00:00'),
(21, 17, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 5, 11, 5, 16, '2014-05-28 08:05:33', 0, '2014-06-12 06:50:41'),
(22, 18, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-28 08:19:27', 0, '2014-06-12 06:57:56'),
(23, 19, 0, -1, 0, 'dsd', 'sds', 'sds', 1, 0, 1, 1, 0, 16, '2014-05-28 08:21:06', 0, '0000-00-00 00:00:00'),
(24, 20, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 0, 16, '2014-05-28 08:21:40', 0, '0000-00-00 00:00:00'),
(25, 21, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 5, 11, 5, 16, '2014-05-28 08:24:02', 0, '2014-06-12 06:50:41'),
(26, 21, 0, -1, 1, 'AAA', 'SDSFSF', 'AAA', 1, 0, 12, 12, 0, 16, '2014-05-28 08:24:16', 0, '0000-00-00 00:00:00'),
(27, 22, 0, -1, 1, 'aaa', 'SDSFSF', 'AAA', 1, 0, 11, 11, 0, 16, '2014-05-28 08:31:14', 0, '0000-00-00 00:00:00'),
(28, 23, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-28 08:32:30', 0, '2014-06-12 06:57:56'),
(29, 24, 0, -1, 0, 'as', 'asa', 'ada', 1, 0, 1, 1, 0, 16, '2014-05-28 08:33:14', 0, '0000-00-00 00:00:00'),
(30, 24, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 1, 16, '2014-05-28 08:33:22', 0, '2014-06-23 01:53:41'),
(31, 25, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 11, 5, 16, '2014-05-29 07:14:24', 0, '2014-06-12 06:57:44'),
(32, 25, 0, -1, 9, 'NGA', 'sadd', 'NGA', 12, 0, 122, 1464, 0, 16, '2014-05-29 07:15:04', 16, '2014-05-29 10:23:37'),
(33, 26, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 1, 16, '2014-05-29 07:23:51', 0, '2014-06-23 01:53:41'),
(34, 26, 0, -1, 1, 'aaa', 'SDSFSF', 'AAA', 1, 0, 1, 1, 0, 16, '2014-05-29 07:24:19', 0, '0000-00-00 00:00:00'),
(35, 27, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 1, 11, 1, 16, '2014-05-29 08:04:01', 0, '2014-06-23 01:53:41'),
(36, 28, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 1, 11, 1, 16, '2014-05-29 08:06:57', 0, '2014-06-23 01:53:41'),
(37, 28, 0, 2, 2, 'kelapa', 'kelapa muda hijau', 'kelapa', 1, 11, 1, 11, 1, 16, '2014-05-29 08:07:09', 0, '2014-06-12 06:54:48'),
(38, 0, 0, -1, 0, 'as', 'sa', 'asa', 1, 0, 11, 11, 0, 16, '2014-05-29 08:07:26', 0, '0000-00-00 00:00:00'),
(39, 29, 0, 4, 7, 'Buah', 'jackfruit', 'Buah', 1, 11, 1, 11, 1, 16, '2014-05-29 10:57:01', 0, '2014-06-23 01:53:41'),
(40, 29, 0, -1, 1, 'AAA', 'SDSFSF', 'AAA', 12, 0, 21, 252, 6, 16, '2014-05-29 10:57:27', 0, '2014-06-23 01:53:41'),
(41, 30, 0, 3, 4, 'loo kok ilang', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 1, 12, 1, 12, 1, 16, '2014-05-29 11:06:33', 0, '2014-06-23 01:53:41'),
(42, 31, 0, 5, 0, '', 'sa', 'as', 1, 11, 1, 11, 0, 16, '2014-05-29 11:12:57', 16, '2014-05-29 12:54:47'),
(43, 31, 0, -1, 0, 'asa', 'asa', 'asa', 1, 0, 1, 1, 0, 16, '2014-05-29 11:14:56', 0, '0000-00-00 00:00:00'),
(44, 32, 0, 14, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 125, 5, 5, 625, 0, 16, '2014-06-11 05:10:38', 0, '0000-00-00 00:00:00'),
(45, 32, 0, 15, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 100, 1, 1, 100, 0, 16, '2014-06-11 05:10:47', 0, '0000-00-00 00:00:00'),
(46, 0, 0, 16, 12, 'M002', 'saiz 10. warna hitam', 'Meja makan lonjong', 250, 1, 1, 250, 0, 16, '2014-06-11 05:10:48', 0, '0000-00-00 00:00:00'),
(47, 33, 0, 17, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 100, 5, 5, 500, 0, 16, '2014-06-12 09:43:40', 0, '0000-00-00 00:00:00'),
(48, 33, 0, 18, 12, 'M002', 'saiz 10. warna hitam', 'Meja makan lonjong', 125, 1, 1, 125, 0, 16, '2014-06-12 09:43:50', 0, '0000-00-00 00:00:00'),
(49, 34, 0, 0, 0, '0', '0', '0', 0, 0, 0, 0, 0, 1, '2014-06-16 07:20:43', 0, '0000-00-00 00:00:00'),
(50, 35, 0, 0, 0, '0', '0', '0', 0, 0, 0, 0, 0, 1, '2014-06-16 07:20:58', 0, '0000-00-00 00:00:00'),
(51, 36, 0, 0, 0, '0', '0', '0', 0, 0, 0, 0, 0, 1, '2014-06-16 07:22:21', 0, '0000-00-00 00:00:00'),
(52, 37, 0, 28, 1, '321000100', '', 'Teak wooden chair with natural finish', 12, 12, 12, 144, 0, 16, '2014-06-24 06:45:36', 0, '0000-00-00 00:00:00'),
(53, 38, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 1, 11, 0, 16, '2014-06-24 08:25:19', 0, '0000-00-00 00:00:00'),
(54, 39, 1, -1, 7, '0', '0', 'Plastic Chair - Red', 2345, 0, 12, 28140, 0, 16, '2014-06-24 09:23:56', 0, '0000-00-00 00:00:00'),
(55, 40, 0, 4, 0, '331000200', 'jackfruit', 'Buah', 1, 11, 1, 11, 0, 16, '2014-06-24 09:31:20', 0, '0000-00-00 00:00:00'),
(56, 40, 0, -1, 0, '0', '0', 'Plastic Chair - Blue', 12, 0, 1, 14544, 0, 16, '2014-06-24 09:31:53', 0, '0000-00-00 00:00:00'),
(57, 41, 1, -1, 4, '0', '0', 'Plastic Chair - Blue', 12, 0, 2, 24, 0, 16, '2014-06-24 09:41:19', 0, '0000-00-00 00:00:00'),
(58, 41, 0, -1, 0, '0', '0', 'Plastic Chair - Blue', 1, 0, 22, 22, 0, 16, '2014-06-24 09:42:03', 0, '0000-00-00 00:00:00'),
(59, 0, 0, -1, 0, '0', '0', 'Bola Tampar Buaya', 111, 0, 1, 111, 0, 16, '2014-06-24 09:47:35', 0, '0000-00-00 00:00:00'),
(60, 0, 0, 12, 4, '331000100', 'labu sayong dibuat daripada tanah liat', 'loo kok ilang', 22, 22, 1, 484, 0, 16, '2014-06-24 09:48:04', 0, '0000-00-00 00:00:00'),
(61, 42, 0, 12, 0, '0', 'A23 Plastic Chair[331000100]', 'loo kok ilang', 22, 22, 1, 484, 0, 16, '2014-06-24 10:01:02', 0, '0000-00-00 00:00:00'),
(62, 43, 1, 9, 0, '0', '0', 'kelapa', 1, 12, 1, 12, 0, 16, '2014-06-24 11:47:22', 0, '0000-00-00 00:00:00'),
(63, 44, 1, 22, 0, '0', '0', 'Teak wooden chair with natural finish', 1, 12, 1, 12, 0, 16, '2014-06-25 00:43:14', 0, '0000-00-00 00:00:00'),
(64, 45, 1, 13, 0, '0', '0', 'fad', 12, 1, 1, 12, 0, 16, '2014-06-25 00:48:52', 0, '0000-00-00 00:00:00'),
(65, 45, 0, -1, 0, '0', '0', 'Nasi Goreng Ayam', 12, 0, 12, 144, 0, 16, '2014-06-25 00:49:14', 0, '0000-00-00 00:00:00'),
(66, 46, 1, 9, 0, '0', '0', 'kelapa', 1, 12, 1, 12, 0, 16, '2014-06-25 02:03:10', 0, '0000-00-00 00:00:00'),
(67, 47, 1, 29, 0, '0', '0', 'Plastic Chair - Blue', 1212, 12, 1, 14544, 0, 16, '2014-06-25 02:04:01', 0, '0000-00-00 00:00:00'),
(68, 47, 0, 30, 0, '2', 'Bola[801010001]', 'Bola Tampar Buaya', 111, 12, 1, 1332, 0, 16, '2014-06-25 02:04:05', 0, '0000-00-00 00:00:00'),
(69, 0, 0, -1, 0, '0', '0', 'Plastic Chair - Red', 2345, 0, 12, 28140, 0, 16, '2014-06-25 02:04:29', 0, '0000-00-00 00:00:00'),
(70, 48, 1, 3, 0, '0', '0', 'loo kok ilang', 1, 12, 1, 12, 0, 16, '2014-06-25 02:15:13', 0, '0000-00-00 00:00:00'),
(71, 48, 0, -1, 0, '0', '0', 'Plastic Chair - Blue', 12, 0, 3, 36, 0, 16, '2014-06-25 02:24:21', 0, '0000-00-00 00:00:00'),
(72, 0, 0, -1, 0, '0', '0', 'Plastic Chair - Red', 2345, 0, 2, 4690, 0, 16, '2014-06-25 02:24:31', 0, '0000-00-00 00:00:00'),
(73, 49, 1, -1, 4, '0', '0', 'Plastic Chair - Blue', 12, 0, 2, 24, 0, 16, '2014-06-25 02:26:19', 0, '0000-00-00 00:00:00'),
(74, 49, 0, -1, 0, '0', '0', 'Plastic Chair - Red', 2345, 0, 12, 28140, 0, 16, '2014-06-25 02:26:29', 0, '0000-00-00 00:00:00'),
(75, 50, 1, 29, 0, '0', '0', 'Plastic Chair - Blue', 1212, 12, 1, 14544, 0, 16, '2014-06-25 05:09:57', 0, '0000-00-00 00:00:00'),
(76, 50, 0, 30, 0, '', '', 'Bola Tampar Buaya', 111, 12, 1, 1332, 0, 16, '2014-06-25 05:10:06', 0, '0000-00-00 00:00:00'),
(77, 51, 1, 29, 0, '0', '0', 'Plastic Chair - Blue', 1212, 12, 1, 14544, 0, 16, '2014-06-25 05:16:08', 0, '0000-00-00 00:00:00'),
(78, 52, 1, 25, 10, '0', '0', 'Teak wooden chair with natural finish', 1, 1, 1, 1, 0, 16, '2014-06-25 05:21:54', 0, '0000-00-00 00:00:00'),
(79, 52, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 05:22:24', 0, '0000-00-00 00:00:00'),
(80, 52, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 05:22:26', 0, '0000-00-00 00:00:00'),
(81, 52, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 05:23:08', 0, '0000-00-00 00:00:00'),
(82, 53, 1, 23, 1, '0', '0', 'Teak wooden chair with natural finish', 1, 12, 1, 12, 0, 16, '2014-06-25 05:24:09', 16, '2014-06-25 05:26:16'),
(83, 53, 0, -1, 8, '', '', 'Plastic Chair - White', 12, 0, 2, 24, 0, 16, '2014-06-25 05:27:03', 0, '0000-00-00 00:00:00'),
(84, 54, 1, 10, 0, '0', '0', 'S', 1, 1, 1, 1, 0, 16, '2014-06-25 06:03:09', 0, '0000-00-00 00:00:00'),
(85, 54, 0, 9, 2, '', '', 'kelapa', 1, 12, 1, 12, 0, 16, '2014-06-25 06:03:17', 0, '0000-00-00 00:00:00'),
(86, 0, 0, -1, 1, '', '', 'Teak wooden chair with natural finish', 12, 0, 12, 144, 0, 16, '2014-06-25 06:03:30', 0, '0000-00-00 00:00:00'),
(87, 0, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:03:38', 0, '0000-00-00 00:00:00'),
(88, 0, 0, -1, 4, '', '', 'Plastic Chair - Blue', 12, 0, 2, 24, 0, 16, '2014-06-25 06:04:15', 0, '0000-00-00 00:00:00'),
(89, 55, 1, -1, 7, '0', '0', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:04:50', 0, '0000-00-00 00:00:00'),
(90, 56, 1, 29, 4, '0', '0', 'Plastic Chair - Blue', 1212, 12, 1, 14544, 0, 16, '2014-06-25 06:06:09', 0, '0000-00-00 00:00:00'),
(91, 56, 0, 30, 10, '', '', 'Bola Tampar Buaya', 111, 12, 1, 1332, 0, 16, '2014-06-25 06:06:13', 0, '0000-00-00 00:00:00'),
(92, 0, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:06:39', 0, '0000-00-00 00:00:00'),
(93, 0, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:06:52', 0, '0000-00-00 00:00:00'),
(94, 0, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:09:43', 0, '0000-00-00 00:00:00'),
(95, 57, 1, -1, 4, '0', '0', 'Plastic Chair - Blue', 1, 0, 1, 1, 0, 16, '2014-06-25 06:10:38', 0, '0000-00-00 00:00:00'),
(96, 57, 0, -1, 4, '', '', 'Plastic Chair - Blue', 1, 0, 1, 1, 0, 16, '2014-06-25 06:11:27', 0, '0000-00-00 00:00:00'),
(97, 57, 0, 30, 10, '', '', 'Bola Tampar Buaya', 111, 12, 1, 1332, 0, 16, '2014-06-25 06:11:43', 0, '0000-00-00 00:00:00'),
(98, 0, 0, -1, 4, '', '', 'Plastic Chair - Blue', 1, 0, 1, 1, 0, 16, '2014-06-25 06:12:32', 0, '0000-00-00 00:00:00'),
(99, 58, 1, 29, 4, '0', '0', 'Plastic Chair - Blue', 1212, 12, 1, 14544, 0, 16, '2014-06-25 06:14:02', 0, '0000-00-00 00:00:00'),
(100, 58, 0, -1, 7, '', '', 'Plastic Chair - Red', 2345, 0, 1, 2345, 0, 16, '2014-06-25 06:14:11', 0, '0000-00-00 00:00:00'),
(101, 58, 0, 30, 10, '', '', 'Bola Tampar Buaya', 111, 12, 1, 1332, 0, 16, '2014-06-25 06:14:16', 0, '0000-00-00 00:00:00'),
(102, 58, 0, -1, 4, '', '', 'Plastic Chair - Blue', 1, 0, 1, 1, 0, 16, '2014-06-25 06:14:25', 0, '0000-00-00 00:00:00');

--
-- Triggers `comp_receive_item_detail`
--
DROP TRIGGER IF EXISTS `updateBalanceItem`;
DELIMITER //
CREATE TRIGGER `updateBalanceItem` BEFORE INSERT ON `comp_receive_item_detail`
 FOR EACH ROW if new.balanceitem is null then
set new.balanceItem = new.quantityReceived;
end if
//
DELIMITER ;

-- --------------------------------------------------------

--
-- Table structure for table `comp_receive_payment`
--

CREATE TABLE IF NOT EXISTS `comp_receive_payment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `receivePaymentDate` date NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `addressID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `totalDiscount` double NOT NULL,
  `bankCharges` double NOT NULL,
  `totalOtherCharge` double NOT NULL,
  `totalReceived` double NOT NULL,
  `totalApplied` double NOT NULL,
  `outOfBalance` double NOT NULL,
  `updateAble` smallint(1) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(6) NOT NULL DEFAULT '0',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;

--
-- Dumping data for table `comp_receive_payment`
--

INSERT INTO `comp_receive_payment` (`ID`, `companyID`, `customerID`, `projectID`, `paymentMethodID`, `referenceNo`, `accountID`, `formNo`, `receivePaymentDate`, `currencyID`, `exchangeRate`, `addressID`, `memo`, `totalDiscount`, `bankCharges`, `totalOtherCharge`, `totalReceived`, `totalApplied`, `outOfBalance`, `updateAble`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `journalNo`) VALUES
(8, 16, 12, 17, 69, 121, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 242, 21, -221, 0, 20000, 12101433, 0, 16, '2014-06-17 10:50:32', 0, '2014-06-17 11:31:34', 0, ''),
(9, 1, 12, 17, 69, 121, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 242, 21, -221, 0, 20000, 12101433, 1, 16, '2014-06-17 10:56:34', 0, '2014-06-17 12:21:02', 0, ''),
(10, 1, 12, 1, 69, 212, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 0, 16, '2014-06-17 12:10:23', 0, '0000-00-00 00:00:00', 0, ''),
(11, 1, 12, 1, 69, 212, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 0, 16, '2014-06-17 12:10:28', 0, '0000-00-00 00:00:00', 0, ''),
(12, 1, 12, 1, 69, 212, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 0, 16, '2014-06-17 12:10:29', 0, '0000-00-00 00:00:00', 0, ''),
(13, 1, 12, 1, 69, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 0, 16, '2014-06-17 12:13:35', 0, '0000-00-00 00:00:00', 0, ''),
(14, 1, 12, 1, 69, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 0, 16, '2014-06-17 12:13:42', 0, '0000-00-00 00:00:00', 0, ''),
(15, 1, 12, 1, 69, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 0, 16, '2014-06-17 12:13:44', 0, '0000-00-00 00:00:00', 0, ''),
(16, 1, 12, 1, 69, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 0, 16, '2014-06-17 12:13:47', 0, '0000-00-00 00:00:00', 0, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_receive_payment_detail`
--

CREATE TABLE IF NOT EXISTS `comp_receive_payment_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `receivePaymentID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `invoiceID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `ARBalance` double NOT NULL,
  `discount` double NOT NULL,
  `amountApplied` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `comp_receive_payment_detail`
--

INSERT INTO `comp_receive_payment_detail` (`ID`, `receivePaymentID`, `lineNo`, `invoiceID`, `totalAmount`, `ARBalance`, `discount`, `amountApplied`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 7, 0, 0, 0, 0, 121, 10000, 0, '2014-06-17 10:18:53', 0, '0000-00-00 00:00:00'),
(2, 7, 0, 0, 0, 0, 121, 10000, 0, '2014-06-17 10:18:53', 0, '0000-00-00 00:00:00'),
(3, 10, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:23', 0, '0000-00-00 00:00:00'),
(4, 10, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:23', 0, '0000-00-00 00:00:00'),
(5, 11, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:28', 0, '0000-00-00 00:00:00'),
(6, 11, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:28', 0, '0000-00-00 00:00:00'),
(7, 12, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:29', 0, '0000-00-00 00:00:00'),
(8, 12, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:10:29', 0, '0000-00-00 00:00:00'),
(9, 13, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:13:35', 0, '0000-00-00 00:00:00'),
(10, 14, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:13:42', 0, '0000-00-00 00:00:00'),
(11, 15, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:13:44', 0, '0000-00-00 00:00:00'),
(12, 16, 0, 0, 0, 0, 0, 10000, 0, '2014-06-17 12:13:48', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_agent`
--

CREATE TABLE IF NOT EXISTS `comp_sales_agent` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `agentName` varchar(128) NOT NULL,
  `position` varchar(32) NOT NULL,
  `telOffice` varchar(32) NOT NULL,
  `telHp` varchar(32) NOT NULL,
  `email` varchar(64) NOT NULL,
  `commisionRate` double NOT NULL,
  `remarks` text NOT NULL,
  `createdID` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `comp_sales_agent`
--

INSERT INTO `comp_sales_agent` (`ID`, `companyID`, `agentName`, `position`, `telOffice`, `telHp`, `email`, `commisionRate`, `remarks`, `createdID`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'sdsd', 'sdsd', 'sds', '', '', 0, '', 0, '2014-06-09 07:15:56', 0, '0000-00-00 00:00:00'),
(2, 27, 'farhana', 'agent01', '', '', 'bee@gmail.com', 10, '', 0, '2014-06-10 02:15:27', 0, '2014-06-10 04:46:12'),
(5, 27, 'Aizat Jamil', 'Executive', '012 61778564', '012 61778564', 'aizat@salihin.com.my', 10, 'new agent', 0, '2014-06-10 07:02:36', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_creditnote`
--

CREATE TABLE IF NOT EXISTS `comp_sales_creditnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `creditNoteDate` date NOT NULL,
  `salesInvoiceID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` decimal(10,0) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `total` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `comp_sales_creditnote`
--

INSERT INTO `comp_sales_creditnote` (`ID`, `companyID`, `customerID`, `formNo`, `creditNoteDate`, `salesInvoiceID`, `projectID`, `termsID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalAmount`, `amountPaid`, `totalTaxAmount`, `totalPayable`, `total`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(1, 1, 12, 'CRN', '2014-06-04', 18, 0, 0, 1, 1, 0, '', 0, 0, 10000, '0', 600, 0, 0, 0, '2014-06-24 01:39:38', 0, '2014-06-24 01:41:34', 0, 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_creditnote_charges`
--

CREATE TABLE IF NOT EXISTS `comp_sales_creditnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `chargeDescription` text NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=38 ;

--
-- Dumping data for table `comp_sales_creditnote_charges`
--

INSERT INTO `comp_sales_creditnote_charges` (`ID`, `creditNoteID`, `lineNo`, `accountNoID`, `chargeDescription`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(37, 18, 1, 86, 'delivery charges', 0, 9, 0, 0, 1212, 0, 0, 0, 0, 16, '2014-06-18 02:19:53', 0, '2014-06-18 04:06:10');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_creditnote_detail`
--

CREATE TABLE IF NOT EXISTS `comp_sales_creditnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditnoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `comp_sales_creditnote_detail`
--

INSERT INTO `comp_sales_creditnote_detail` (`ID`, `creditnoteID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, 8, 'A25 Plastic Chair', 'Plastic Chair - White', 10, 200, 2000, 1, 6, 120, 2120, 0, 0, '2014-06-24 02:16:19', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_debitnote`
--

CREATE TABLE IF NOT EXISTS `comp_sales_debitnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `debitNoteDate` date NOT NULL,
  `salesInvoiceID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` decimal(10,0) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `total` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `comp_sales_debitnote`
--

INSERT INTO `comp_sales_debitnote` (`ID`, `companyID`, `customerID`, `formNo`, `debitNoteDate`, `salesInvoiceID`, `projectID`, `termsID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalAmount`, `amountPaid`, `totalTaxAmount`, `totalPayable`, `total`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(5, 1, 12, 'SDN', '2014-06-12', 17, 1, 0, 0, 1, 0, 'ewe', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-12 09:52:06', 0, '2014-06-23 02:39:10', 0, 1, 'AR20140600000004'),
(6, 1, 12, 'SDN', '2014-06-20', 18, 2, 0, 0, 1, 0, '', 0, 0, 0, '0', 0, 0, 0, 1, '2014-06-20 03:57:55', 0, '2014-06-20 04:32:04', 0, 1, 'AR20140600000002'),
(7, 1, 12, 'SDN', '2014-06-23', 18, 2, 0, 0, 1, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 09:52:58', 0, '2014-06-24 01:01:34', 0, 0, 'AR20140600000008');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_debitnote_charges`
--

CREATE TABLE IF NOT EXISTS `comp_sales_debitnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `chargeDescription` text NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=38 ;

--
-- Dumping data for table `comp_sales_debitnote_charges`
--

INSERT INTO `comp_sales_debitnote_charges` (`ID`, `debitNoteID`, `lineNo`, `accountNoID`, `chargeDescription`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(37, 6, 1, 86, 'delivery charges', 1212, 9, 0, 0, 1212, 0, 0, 0, 0, 16, '2014-06-18 02:19:53', 0, '2014-06-24 01:01:05');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_debitnote_detail`
--

CREATE TABLE IF NOT EXISTS `comp_sales_debitnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitnoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- Dumping data for table `comp_sales_debitnote_detail`
--

INSERT INTO `comp_sales_debitnote_detail` (`ID`, `debitnoteID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(6, 5, 1, 2, 'Steel chair for outdoor', 'B13 Steel Chair', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-06-18 04:06:39', 0, '0000-00-00 00:00:00'),
(7, 6, 1, 1, 'Teak wooden chair with natural finish', 'A12 Wooden Chair', 1, 120, 120, 10, 6, 7.2, 127.2, 0, 1, '2014-06-20 03:59:35', 0, '0000-00-00 00:00:00'),
(8, 6, 2, 8, 'Plastic Chair - White', 'A25 Plastic Chair', 1, 10, 10, 28, 10, 1, 11, 0, 1, '2014-06-20 03:59:36', 0, '0000-00-00 00:00:00'),
(9, 7, 1, 2, 'Steel chair for outdoor', 'B13 Steel Chair', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-06-24 00:50:01', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_detail`
--

CREATE TABLE IF NOT EXISTS `comp_sales_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `salesID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `description` varchar(200) DEFAULT NULL,
  `unitPrice` double DEFAULT NULL,
  `unitmeasure` int(11) DEFAULT NULL,
  `quantityOrder` double DEFAULT NULL,
  `quantityShip` double DEFAULT '0',
  `amount` double DEFAULT NULL,
  `requiredDate` date DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `comp_sales_detail`
--

INSERT INTO `comp_sales_detail` (`ID`, `salesID`, `lineNo`, `itemID`, `description`, `unitPrice`, `unitmeasure`, `quantityOrder`, `quantityShip`, `amount`, `requiredDate`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 0, 1, 'Teak wooden chair with natural finish', 120, 2, 120, 83, 14400, '2014-06-11', 1, '2014-06-11 07:24:02', 1, '2014-06-11 07:24:02'),
(2, 1, 0, 7, 'Plastic Chair - Red', 15, 2, 1000, 500, 15000, '2014-06-11', 1, '2014-06-11 07:24:16', 1, '2014-06-11 07:24:16'),
(3, 1, 0, 2, 'Steel chair for outdoor', 90, 2, 250, 0, 22500, '2014-06-11', 1, '2014-06-11 07:24:37', NULL, '2014-06-11 07:24:37'),
(4, 2, 0, 1, 'Teak wooden chair with natural finish', 30, 2, 1200, 400, 36000, '2014-06-11', 1, '2014-06-11 07:25:26', 1, '2014-06-11 07:25:26'),
(5, 2, 0, 8, 'Plastic Chair - White', 122, 2, 120, 50, 14640, '2014-06-11', 1, '2014-06-11 07:25:39', 1, '2014-06-11 07:25:39'),
(6, 2, 0, 10, 'Bola Tampar Buaya', 30, 2, 20, 0, 600, '2014-06-11', 1, '2014-06-11 07:25:52', NULL, '2014-06-11 07:25:52'),
(7, 3, 0, 1, 'Teak wooden chair with natural finish', 120, 2, 10, 0, 1200, '2014-06-18', 1, '2014-06-18 01:45:07', NULL, '2014-06-18 01:45:07'),
(8, 3, 0, 2, 'Steel chair for outdoor', 230, 2, 2300, 0, 529000, '2014-06-18', 1, '2014-06-18 01:45:21', NULL, '2014-06-18 01:45:21'),
(9, 2, 0, 7, 'Plastic Chair - Red', 10, 2, 1234, 0, 12340, '2014-06-18', 1, '2014-06-18 01:45:35', NULL, '2014-06-18 01:45:35'),
(10, 4, 0, 8, 'Plastic Chair - White', 1000, 2, 1000, 0, 1000000, '2014-06-18', 1, '2014-06-18 03:49:20', NULL, '2014-06-18 03:49:20'),
(11, 5, 0, 10, 'Bola Tampar Buaya', 35, 2, 1000, 0, 35000, '2014-06-18', 1, '2014-06-18 03:49:52', NULL, '2014-06-18 03:49:52');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_invoice`
--

CREATE TABLE IF NOT EXISTS `comp_sales_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `invoiceCodeID` int(11) NOT NULL,
  `salesID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `salesInvoiceDate` date NOT NULL,
  `customerPoNo` varchar(32) NOT NULL,
  `locationID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `shipToID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalReceivable` double NOT NULL,
  `totalamount` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(6) NOT NULL DEFAULT '0',
  `updateAble` smallint(6) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

--
-- Dumping data for table `comp_sales_invoice`
--

INSERT INTO `comp_sales_invoice` (`ID`, `companyID`, `invoiceCodeID`, `salesID`, `customerID`, `formNo`, `salesInvoiceDate`, `customerPoNo`, `locationID`, `projectID`, `termsID`, `shipToID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalTaxAmount`, `totalReceivable`, `totalamount`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(18, 1, 0, 0, 12, 'SON20140618', '2014-06-18', 'aaw', 1, 1, 5, 1, 1, 1, 1, 'sdadc', 7, 3, 0, 2509.44, 2509.44, 16, '2014-06-18 02:11:17', 0, '2014-06-24 02:49:11', 0, 1, 'AR20140600000005');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_invoice_charges`
--

CREATE TABLE IF NOT EXISTS `comp_sales_invoice_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `chargeDescription` text NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=38 ;

--
-- Dumping data for table `comp_sales_invoice_charges`
--

INSERT INTO `comp_sales_invoice_charges` (`ID`, `invoiceID`, `lineNo`, `accountNoID`, `chargeDescription`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(37, 18, 1, 86, 'delivery charges', 1212, 9, 0, 0, 1212, 0, 0, 0, 0, 16, '2014-06-18 02:19:53', 0, '2014-06-24 00:42:54');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_invoice_detail`
--

CREATE TABLE IF NOT EXISTS `comp_sales_invoice_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

--
-- Dumping data for table `comp_sales_invoice_detail`
--

INSERT INTO `comp_sales_invoice_detail` (`ID`, `invoiceID`, `lineNo`, `itemID`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(21, 18, 1, 4, 1, 1212, 1212, 1, 6, 72.72, 1284.72, 0, 16, '2014-06-18 03:52:29', 0, '0000-00-00 00:00:00'),
(22, 18, 2, 1, 1, 12, 12, 1, 6, 0.72, 12.72, 0, 16, '2014-06-18 03:52:34', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_order`
--

CREATE TABLE IF NOT EXISTS `comp_sales_order` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) DEFAULT NULL,
  `OrderNo` varchar(32) DEFAULT NULL,
  `formNo` varchar(32) DEFAULT NULL,
  `currencyID` int(11) DEFAULT NULL,
  `exchangeRate` double DEFAULT '1',
  `salesOrderDate` date DEFAULT NULL,
  `dateRequired` date DEFAULT NULL,
  `deliveryToID` int(11) DEFAULT NULL,
  `salesPerson` int(11) DEFAULT NULL,
  `memo` varchar(128) DEFAULT NULL,
  `supplierID` int(11) DEFAULT NULL,
  `totalAmount` double DEFAULT NULL,
  `totalReceivable` double DEFAULT NULL,
  `status` tinyint(1) DEFAULT '1',
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `comp_sales_order`
--

INSERT INTO `comp_sales_order` (`ID`, `companyID`, `customerID`, `OrderNo`, `formNo`, `currencyID`, `exchangeRate`, `salesOrderDate`, `dateRequired`, `deliveryToID`, `salesPerson`, `memo`, `supplierID`, `totalAmount`, `totalReceivable`, `status`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 12, 'SON20140611-00000001', NULL, 1, 1, '2014-06-11', NULL, 8, 6, 'test memo', NULL, 29400, NULL, 1, 1, '2014-06-11 07:24:16', 1, '0000-00-00 00:00:00'),
(2, 1, 15, 'SON20140618-00000003', NULL, 2, 1, '2014-06-18', NULL, 7, 0, '', NULL, 542540, NULL, 1, 1, '2014-06-18 01:58:01', 1, '0000-00-00 00:00:00'),
(3, 1, 12, 'SON20140618-00000003', NULL, 1, 1, '2014-06-18', NULL, 7, 0, '', NULL, 530200, NULL, 1, 1, '2014-06-18 01:45:20', 1, '0000-00-00 00:00:00'),
(4, 1, 16, 'SON20140618-00000004', NULL, 1, 1, '2014-06-18', NULL, 0, 0, '', NULL, 1000000, NULL, 1, 1, '2014-06-18 03:49:20', 0, '0000-00-00 00:00:00'),
(5, 1, 20, 'SON20140618-00000005', NULL, 1, 1, '2014-06-18', NULL, 0, 0, '', NULL, 35000, NULL, 1, 1, '2014-06-18 03:49:52', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_sales_price`
--

CREATE TABLE IF NOT EXISTS `comp_sales_price` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `umID` int(11) NOT NULL,
  `startDate` date NOT NULL,
  `endDate` date NOT NULL,
  `price` double NOT NULL,
  `updatedBy` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `comp_sales_price`
--

INSERT INTO `comp_sales_price` (`ID`, `companyID`, `customerID`, `itemID`, `currencyID`, `umID`, `startDate`, `endDate`, `price`, `updatedBy`, `createdBy`, `createdTS`, `updatedTS`) VALUES
(1, 1, 12, 1, 1, 2, '2014-06-05', '2014-12-31', 120, 0, 1, '2014-06-05 08:56:27', '2014-06-05 10:58:00'),
(2, 1, 15, 4, 2, 2, '2014-06-05', '2014-10-21', 50, 1, 1, '2014-06-05 08:59:21', '2014-06-05 09:48:21'),
(3, 1, 15, 8, 2, 2, '2014-06-05', '2014-06-24', 122, 0, 1, '2014-06-05 09:14:48', '2014-06-05 09:14:48');

-- --------------------------------------------------------

--
-- Table structure for table `comp_so_seq`
--

CREATE TABLE IF NOT EXISTS `comp_so_seq` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `compID` int(11) DEFAULT NULL,
  `moduleID` int(11) DEFAULT NULL,
  `initial` varchar(2) CHARACTER SET utf8 DEFAULT NULL,
  `year` year(4) DEFAULT NULL,
  `period` int(2) DEFAULT NULL,
  `seqNo` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_closing`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_closing` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `yearMonth` varchar(6) NOT NULL,
  `openBalance` double NOT NULL,
  `totalDr` double NOT NULL,
  `totalCr` double NOT NULL,
  `balance` double NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`,`supplierID`,`yearMonth`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_closing_daily`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_closing_daily` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `transDate` date NOT NULL,
  `openBalance` double NOT NULL,
  `totalDr` double NOT NULL,
  `totalCr` double NOT NULL,
  `balance` double NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `comp_supplier_closing_daily`
--

INSERT INTO `comp_supplier_closing_daily` (`ID`, `companyID`, `supplierID`, `transDate`, `openBalance`, `totalDr`, `totalCr`, `balance`) VALUES
(1, 1, 1, '2014-06-11', 0, 0, 0, 0),
(2, 1, 1, '2014-06-11', 0, 0, 0, 0),
(3, 1, 20, '2014-06-12', 0, 0, 0, 0),
(4, 1, 1, '2014-06-16', 0, 0, 0, 0),
(5, 1, 20, '2014-06-16', 0, 0, 0, 0),
(6, 1, 1, '2014-06-19', 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_creditnote`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_creditnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `creditNoteDate` date NOT NULL,
  `supplierInvoiceID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` decimal(10,0) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `total` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `comp_supplier_creditnote`
--

INSERT INTO `comp_supplier_creditnote` (`ID`, `companyID`, `supplierID`, `formNo`, `creditNoteDate`, `supplierInvoiceID`, `projectID`, `termsID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalAmount`, `amountPaid`, `totalTaxAmount`, `totalPayable`, `total`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(1, 1, 20, 'PCN', '2014-06-16', 76, 15, 0, 1, 1, 0, '', 0, 0, 0, '0', 1, 0, 0, 1, '2014-06-16 01:54:00', 0, '2014-06-16 07:55:49', 0, 0, ''),
(2, 1, 1, 'PCN', '2014-06-16', 77, 1, 0, 1, 1, 0, '', 0, 0, 12, '0', 0.72, 12.72, 0, 1, '2014-06-16 03:16:12', 0, '2014-06-23 08:49:57', 0, 0, ''),
(3, 1, 1, 'PCN', '2014-06-16', 82, 10, 0, 1, 1, 0, '', 0, 0, 0, '0', 1, 0, 0, 1, '2014-06-16 03:17:20', 0, '2014-06-16 07:55:49', 0, 0, ''),
(4, 1, 1, 'PCN', '2014-06-23', 71, 2, 0, 0, 1, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 05:06:24', 0, '0000-00-00 00:00:00', 0, 1, ''),
(5, 1, 1, 'PCN', '2014-06-23', 71, 15, 0, 0, 1, 0, 'asa', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 07:36:57', 0, '0000-00-00 00:00:00', 0, 1, ''),
(6, 1, 1, 'PCN', '2014-06-23', 71, 1, 0, 0, 23, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 07:51:34', 0, '0000-00-00 00:00:00', 0, 1, ''),
(7, 1, 1, 'PCN', '2014-06-23', 71, 15, 0, 0, 1, 0, 'zdaq', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 08:00:38', 0, '0000-00-00 00:00:00', 0, 1, ''),
(8, 1, 1, 'PCN', '2014-06-23', 71, 17, 0, 0, 1, 0, 'asa', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 08:02:28', 0, '0000-00-00 00:00:00', 0, 1, ''),
(9, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 08:41:22', 0, '0000-00-00 00:00:00', 0, 1, ''),
(10, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, 'asa as', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 08:46:39', 0, '0000-00-00 00:00:00', 0, 1, ''),
(11, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 08:58:43', 0, '0000-00-00 00:00:00', 0, 1, ''),
(12, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 09:03:08', 0, '0000-00-00 00:00:00', 0, 1, ''),
(13, 1, 1, 'PCN', '2014-06-23', 71, 16, 0, 0, 1, 0, 'ASA', 0, 0, 2357, '0', 0.72, 2357.72, 0, 16, '2014-06-23 11:03:40', 0, '2014-06-23 11:04:08', 0, 1, ''),
(14, 1, 1, 'PCN', '2014-06-23', 71, 2, 0, 0, 1, 0, 'QWEQ', 0, 0, 133, '0', 1.32, 134, 0, 16, '2014-06-23 11:15:20', 0, '2014-06-23 11:16:07', 0, 1, ''),
(15, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, 'sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 11:24:43', 0, '0000-00-00 00:00:00', 0, 1, ''),
(16, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-23 11:26:05', 0, '0000-00-00 00:00:00', 0, 1, ''),
(17, 1, 1, 'PCN', '2014-06-23', 71, 0, 0, 0, 0, 0, 'da', 0, 0, 48, '0', 0.24, 48, 0, 16, '2014-06-23 11:28:30', 0, '2014-06-23 11:59:16', 0, 1, ''),
(18, 1, 1, 'PCN', '2014-06-24', 73, 16, 0, 0, 12, 0, '', 0, 0, 28176, '0', 5910.84, 34087, 0, 16, '2014-06-24 01:18:33', 0, '2014-06-24 01:20:25', 0, 1, ''),
(19, 1, 1, 'PCN', '2014-06-24', 72, 17, 0, 0, 1, 0, 'sds', 0, 0, 13, '0', 0.72, 13.72, 0, 16, '2014-06-24 01:26:34', 0, '2014-06-24 01:26:57', 0, 1, ''),
(20, 1, 1, 'PCN', '2014-06-24', 72, 16, 0, 0, 1, 0, 'sds', 0, 0, 24, '0', 13.319999999999999, 25.12, 0, 16, '2014-06-24 01:28:45', 0, '2014-06-24 01:29:26', 0, 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_creditnote_charges`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_creditnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

--
-- Dumping data for table `comp_supplier_creditnote_charges`
--

INSERT INTO `comp_supplier_creditnote_charges` (`ID`, `creditNoteID`, `lineNo`, `accountNoID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 9, 1, 100, '', 'sds', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 08:41:22', 0, '0000-00-00 00:00:00'),
(2, 10, 1, 102, '', 'asa', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 0, '2014-06-23 08:46:39', 0, '0000-00-00 00:00:00'),
(3, 2, 2, 98, '', 'qwwwwwwwwwwwwwwwww', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 08:49:57', 0, '0000-00-00 00:00:00'),
(4, 11, 1, 100, '', 'sddddddddddda', 0, 0, 12, 5, 0, 122, 12, 0, 0, 0, 0, 0, '2014-06-23 08:58:43', 0, '0000-00-00 00:00:00'),
(5, 12, 1, 100, '', 'asa', 0, 0, 12, 5, 0, 0, 12, 0, 0, 0, 0, 0, '2014-06-23 09:03:08', 0, '0000-00-00 00:00:00'),
(6, 27, 1, 101, '', 'DAS', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 16, '2014-06-23 10:39:20', 0, '0000-00-00 00:00:00'),
(7, 0, 2, 102, '', 'FEWEQW', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 10:39:34', 0, '0000-00-00 00:00:00'),
(8, 0, 3, 98, '', 'ASA', 0, 0, 12, 6, 0, 12, 12, 0, 0, 0, 0, 16, '2014-06-23 10:40:00', 0, '0000-00-00 00:00:00'),
(9, 28, 1, 100, '', 'AS', 0, 0, 12, 5, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 10:49:52', 0, '0000-00-00 00:00:00'),
(10, 13, 1, 101, '', '12', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 16, '2014-06-23 11:04:08', 0, '0000-00-00 00:00:00'),
(11, 0, 2, 101, '', 'SDS', 0, 0, 12, 3, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:13:28', 0, '0000-00-00 00:00:00'),
(12, 14, 1, 100, '', 'ASQ', 0, 0, 1, 4, 0, 0, 1, 0, 0, 0, 0, 16, '2014-06-23 11:16:07', 0, '0000-00-00 00:00:00'),
(13, 0, 2, 101, '', 'sds', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:20:57', 0, '0000-00-00 00:00:00'),
(14, 15, 1, 100, '', 'sds', 0, 0, 12, 5, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:24:43', 0, '0000-00-00 00:00:00'),
(15, 16, 1, 102, '', 'asa', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:26:05', 0, '0000-00-00 00:00:00'),
(16, 17, 1, 100, '', 'wq', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:28:30', 0, '0000-00-00 00:00:00'),
(17, 17, 2, 97, '', 'dasda', 0, 0, 12, 2, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 11:59:16', 0, '0000-00-00 00:00:00'),
(18, 18, 1, 102, '', 'sda', 0, 0, 12, 3, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-24 01:20:25', 0, '0000-00-00 00:00:00'),
(19, 0, 2, 98, '', 'weac', 0, 0, 12, 16, 0, 0.72, 12.72, 0, 0, 0, 0, 16, '2014-06-24 01:20:48', 0, '0000-00-00 00:00:00'),
(20, 19, 1, 101, '', 'wew', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 16, '2014-06-24 01:26:57', 0, '0000-00-00 00:00:00'),
(21, 20, 1, 102, '', 'qwqwqwqwqwq', 0, 0, 12, 4, 0, 12, 12, 0, 0, 0, 0, 16, '2014-06-24 01:28:59', 16, '2014-06-24 02:16:44'),
(22, 20, 2, 2, '', 'qwq', 0, 0, 2, 1, 0, 0.12, 2.12, 0, 0, 0, 0, 16, '2014-06-24 01:29:26', 16, '2014-06-24 03:04:04');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_creditnote_detail`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_creditnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditnoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=27 ;

--
-- Dumping data for table `comp_supplier_creditnote_detail`
--

INSERT INTO `comp_supplier_creditnote_detail` (`ID`, `creditnoteID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, 4, 'Plastic Chair - Blue', '331000100', 2, 120, 240, 1, 6, 14.4, 254.4, 0, 1, '2014-06-17 05:35:04', 0, '0000-00-00 00:00:00'),
(2, 1, 2, 7, 'Plastic Chair - Red', '331000200', 5, 12, 60, 18, 6, 3.6, 63.6, 0, 1, '2014-06-17 05:35:06', 0, '0000-00-00 00:00:00'),
(3, 2, 1, 8, 'Plastic Chair - White', '331000300', 100, 34, 3400, 28, 10, 340, 3740, 0, 1, '2014-06-17 05:35:07', 0, '0000-00-00 00:00:00'),
(4, 2, 2, 9, 'Nasi Goreng Ayam', '501012000', 25, 23, 575, 10, 6, 34.5, 609.5, 0, 1, '2014-06-17 05:35:09', 0, '0000-00-00 00:00:00'),
(5, 3, 1, 2, 'Steel chair for outdoor', '100300100', 200, 300, 60000, 1, 6, 3600, 63600, 0, 1, '2014-06-17 05:35:10', 0, '0000-00-00 00:00:00'),
(6, 3, 2, 2, 'Steel chair for outdoor', '100300100', 5, 290, 1450, 1, 6, 87, 1537, 0, 1, '2014-06-17 05:35:12', 0, '0000-00-00 00:00:00'),
(7, 4, 0, 0, '0', 'Teak wooden chair with natural finish', 2, 10, 20, 0, 6, 1.2, 21.2, 0, 16, '2014-06-23 05:06:24', 0, '0000-00-00 00:00:00'),
(8, 5, 0, 1, '0', 'Teak wooden chair with natural finish', 12, 12, 144, 0, 6, 8.64, 152.64, 0, 16, '2014-06-23 07:36:57', 0, '0000-00-00 00:00:00'),
(9, 5, 0, 0, '0', 'Teak wooden chair with natural finish', 12, 12, 144, 0, 6, 8.64, 152.64, 0, 16, '2014-06-23 07:38:23', 0, '0000-00-00 00:00:00'),
(10, 6, 0, 7, '0', 'Plastic Chair - Red', 12, 2, 28, 5, 12, 3376.8, 31516.8, 0, 16, '2014-06-23 07:51:34', 0, '0000-00-00 00:00:00'),
(11, 6, 0, 0, '0', 'Teak wooden chair with natural finish', 12, 12, 144, 0, 6, 8.64, 152.64, 0, 16, '2014-06-23 07:51:57', 0, '0000-00-00 00:00:00'),
(12, 7, 0, 1, '0', 'Teak wooden chair with natural finish', 1, 0.12, 0, 0, 6, 0.0072, 0.1272, 0, 16, '2014-06-23 08:00:38', 0, '0000-00-00 00:00:00'),
(13, 7, 0, 0, '0', 'Plastic Chair - Red', 12, 2, 28, 0, 1, 281.4, 28421.4, 0, 16, '2014-06-23 08:00:54', 0, '0000-00-00 00:00:00'),
(14, 8, 0, 1, '0', 'Teak wooden chair with natural finish', 12, 12, 144, 0, 6, 8.64, 152.64, 0, 16, '2014-06-23 08:02:28', 0, '0000-00-00 00:00:00'),
(15, 8, 0, 0, '0', 'Plastic Chair - Red', 1, 2, 2, 0, 0, 0, 2345, 0, 16, '2014-06-23 08:02:39', 0, '0000-00-00 00:00:00'),
(16, 13, 0, 7, '0', 'Plastic Chair - Red', 1, 2, 2, 0, 0, 0, 2345, 0, 16, '2014-06-23 11:03:41', 0, '0000-00-00 00:00:00'),
(17, 0, 0, 4, '', 'Plastic Chair - Blue', 1, 0.12, 0, 1, 0, 0, 0.12, 0, 16, '2014-06-23 11:09:19', 0, '0000-00-00 00:00:00'),
(18, 14, 0, 4, '0', 'Plastic Chair - Blue', 1, 120, 120, 4, 1, 1.2, 121.2, 0, 16, '2014-06-23 11:15:20', 0, '0000-00-00 00:00:00'),
(19, 14, 0, 4, '', 'Plastic Chair - Blue', 1, 12, 12, 1, 1, 0.12, 12.12, 0, 16, '2014-06-23 11:15:42', 0, '0000-00-00 00:00:00'),
(20, 17, 0, 4, '', 'Plastic Chair - Blue', 12, 0, 0, 1, 0, 0, 0, 0, 16, '2014-06-23 11:29:21', 0, '0000-00-00 00:00:00'),
(21, 17, 0, 4, '', 'Plastic Chair - Blue', 2, 12, 24, 6, 1, 0.24, 24.24, 0, 16, '2014-06-23 11:30:03', 0, '0000-00-00 00:00:00'),
(22, 18, 1, 1, '0', 'Teak wooden chair with natural finish', 2, 12, 24, 13, 6, 1.44, 25.44, 0, 16, '2014-06-24 01:18:33', 0, '0000-00-00 00:00:00'),
(23, 18, 2, 7, '', 'Plastic Chair - Red', 12, 2, 28, 0, 21, 5909.4, 34049.4, 0, 16, '2014-06-24 01:19:41', 0, '0000-00-00 00:00:00'),
(24, 19, 1, 4, '0', 'Plastic Chair - Blue', 1, 1, 1, 1, 0, 0, 1, 0, 16, '2014-06-24 01:26:34', 0, '0000-00-00 00:00:00'),
(25, 20, 1, 4, '0', 'Plastic Chair - Blue', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-06-24 02:55:48', 16, '0000-00-00 00:00:00'),
(26, 20, 2, 7, '', 'Plastic Chair - Red', 12, 2, 28, 0, 1, 281.4, 28421.4, 0, 16, '2014-06-24 01:30:15', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_debitnote`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_debitnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `debitNoteDate` date NOT NULL,
  `supplierInvoiceID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` decimal(10,0) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `total` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ;

--
-- Dumping data for table `comp_supplier_debitnote`
--

INSERT INTO `comp_supplier_debitnote` (`ID`, `companyID`, `supplierID`, `formNo`, `debitNoteDate`, `supplierInvoiceID`, `projectID`, `termsID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalAmount`, `amountPaid`, `totalTaxAmount`, `totalPayable`, `total`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(1, 1, 20, 'PDN', '2014-06-02', 74, 1, 0, 1, 1, 0, 'fdv dfd', 0, 0, 0, '0', 0, 0, 0, 0, '2014-06-02 04:20:32', 0, '2014-06-17 11:22:11', 0, 1, ''),
(2, 1, 1, 'PDN', '2014-06-03', 73, 1, 0, 1, 1, 0, 'fdv dfd', 0, 0, 0, '0', 0, 0, 0, 0, '2014-06-03 03:36:57', 0, '2014-06-17 11:22:13', 0, 1, ''),
(3, 1, 1, 'PDN', '2014-06-11', 71, 1, 0, 1, 1, 0, 'fdv dfd', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-11 08:47:00', 0, '2014-06-17 11:22:17', 0, 0, ''),
(4, 1, 20, 'PDN', '2014-06-12', 74, 10, 0, 1, 1, 0, 'fdv dfd', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-12 01:05:39', 0, '2014-06-17 11:22:18', 0, 0, ''),
(5, 1, 20, 'PDN', '2014-06-16', 74, 10, 0, 2, 2, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-06-16 06:46:52', 0, '2014-06-20 04:28:10', 0, 0, 'AP20140600000013'),
(6, 1, 1, 'PDN', '2014-06-21', 71, 10, 0, 1, 1, 0, 'sdsdca', 0, 0, 28140, '0', 1688.4, 29828.4, 0, 16, '2014-06-21 04:32:45', 0, '0000-00-00 00:00:00', 0, 1, ''),
(7, 1, 1, 'PDN', '2014-06-21', 71, 10, 0, 1, 2, 0, 'sa adED AE', 0, 0, 144, '0', 8.64, 152.64, 0, 16, '2014-06-21 05:08:45', 0, '0000-00-00 00:00:00', 0, 1, ''),
(8, 1, 1, 'PDN', '2014-06-21', 72, 1, 0, 1, 2, 0, 'sdsds', 0, 0, 144, '0', 8.64, 152.64, 0, 16, '2014-06-21 05:17:14', 0, '0000-00-00 00:00:00', 0, 1, ''),
(9, 1, 1, 'PDN', '2014-06-21', 71, 1, 0, 1, 1, 0, 'sds', 0, 0, 1200, '0', 72, 1272, 0, 16, '2014-06-21 05:43:08', 0, '0000-00-00 00:00:00', 0, 1, ''),
(10, 1, 1, 'PDN', '2014-06-21', 71, 1, 0, 1, 1, 0, 'as', 0, 0, 0, '0', 0, 2, 0, 16, '2014-06-21 07:06:53', 0, '2014-06-21 07:07:53', 0, 1, ''),
(11, 1, 20, 'PDN', '2014-06-21', 76, 10, 0, 1, 1, 0, 'as', 0, 0, 2345, '0', 281.4, 2626.4, 0, 16, '2014-06-21 07:23:44', 0, '0000-00-00 00:00:00', 0, 1, ''),
(12, 1, 1, 'PDN', '2014-06-21', 71, 16, 0, 1, 2, 0, 'sds', 0, 0, 28140, '0', 281.4, 28421.4, 0, 16, '2014-06-21 07:41:36', 0, '0000-00-00 00:00:00', 0, 1, ''),
(13, 1, 20, 'PDN', '2014-06-21', 74, 2, 0, 1, 1, 0, 'asa', 0, 0, 12, '0', 0, 144, 0, 16, '2014-06-21 07:49:30', 0, '2014-06-21 08:10:23', 0, 1, ''),
(14, 1, 1, 'PDN', '2014-06-21', 72, 17, 0, 1, 1, 0, 'qwq', 0, 0, 2, '0', 0.12, 2.12, 0, 16, '2014-06-21 08:21:50', 0, '0000-00-00 00:00:00', 0, 1, ''),
(15, 1, 1, 'PDN', '2014-06-21', 71, 17, 0, 1, 2, 0, 'asasdad', 0, 0, 144, '0', 8.64, 0, 0, 16, '2014-06-21 08:50:38', 0, '2014-06-21 08:51:07', 0, 1, ''),
(16, 1, 20, 'PDN', '2014-06-23', 74, 16, 0, 1, 1, 0, 'dsd', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 03:33:39', 0, '0000-00-00 00:00:00', 0, 1, ''),
(17, 1, 20, 'PDN', '2014-06-23', 74, 16, 0, 1, 1, 0, 'dsd', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 03:35:57', 0, '0000-00-00 00:00:00', 0, 1, ''),
(18, 1, 20, 'PDN', '2014-06-23', 74, 16, 0, 1, 1, 0, 'dsd', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 03:37:06', 0, '0000-00-00 00:00:00', 0, 1, ''),
(19, 1, 20, 'PDN', '2014-06-23', 74, 16, 0, 1, 1, 0, 'dsd', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 03:38:33', 0, '0000-00-00 00:00:00', 0, 1, ''),
(20, 1, 20, 'PDN', '2014-06-23', 74, 16, 0, 1, 1, 0, 'dsd', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 03:39:30', 0, '0000-00-00 00:00:00', 0, 1, ''),
(21, 1, 1, 'PDN', '2014-06-23', 71, 1, 0, 1, 1, 0, '', 0, 0, 12, '0', 0, 12, 0, 16, '2014-06-23 03:50:34', 0, '0000-00-00 00:00:00', 0, 1, ''),
(22, 1, 1, 'PDN', '2014-06-23', 71, 1, 0, 1, 1, 0, 'ccxc', 0, 0, 156, '0', 0.72, 156.72, 0, 16, '2014-06-23 04:20:21', 0, '2014-06-23 04:20:39', 0, 1, ''),
(23, 1, 1, 'PDN', '2014-06-23', 71, 1, 0, 1, 1, 0, '', 0, 0, 265, '0', 24.54, 289.53999999999996, 0, 16, '2014-06-23 04:25:24', 0, '2014-06-23 04:25:38', 0, 1, ''),
(24, 1, 20, 'PDN', '2014-06-23', 74, 15, 0, 1, 1, 0, 'fac sfa', 0, 0, 12, '0', 0.72, 12.72, 0, 16, '2014-06-23 09:47:53', 0, '0000-00-00 00:00:00', 0, 1, ''),
(25, 1, 1, 'PDN', '2014-06-23', 71, 16, 0, 1, 1, 0, '', 0, 0, 1, '0', 0.06, 1.06, 0, 16, '2014-06-23 09:50:16', 0, '0000-00-00 00:00:00', 0, 1, ''),
(26, 1, 1, 'PDN', '2014-06-23', 71, 10, 0, 1, 1, 0, 'sa DEc', 0, 0, 1596, '0', 72, 1668, 0, 16, '2014-06-23 10:35:58', 0, '2014-06-23 10:36:38', 0, 1, ''),
(27, 1, 23, 'PCN', '2014-06-23', 93, 2, 0, 0, 3.6, 0, '', 0, 0, 144, '0', 0, 0, 0, 16, '2014-06-23 10:38:49', 0, '2014-06-23 10:38:59', 0, 1, ''),
(28, 1, 1, 'PCN', '2014-06-23', 71, 1, 0, 0, 1, 0, 'SDSD', 0, 0, 144, '0', 8.64, 0, 0, 16, '2014-06-23 10:48:49', 0, '2014-06-23 10:49:09', 0, 1, ''),
(29, 1, 1, 'PCN', '2014-06-23', 71, 16, 0, 0, 1, 0, 'SSDS', 0, 0, 2345, '0', 0, 2345, 0, 16, '2014-06-23 10:56:46', 0, '0000-00-00 00:00:00', 0, 1, ''),
(30, 1, 1, 'PDN', '2014-06-24', 71, 1, 0, 0, 0, 0, '', 0, 0, 24, '0', 1.44, 25.44, 0, 16, '2014-06-24 04:21:28', 0, '2014-06-24 04:35:41', 0, 1, ''),
(31, 1, 1, 'PDN', '2014-06-24', 71, 17, 0, 0, 12, 0, 'wdee', 0, 0, 125, '0', 7.32, 0, 0, 16, '2014-06-24 04:53:19', 0, '2014-06-24 04:54:10', 0, 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_debitnote_charges`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_debitnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=41 ;

--
-- Dumping data for table `comp_supplier_debitnote_charges`
--

INSERT INTO `comp_supplier_debitnote_charges` (`ID`, `debitNoteID`, `lineNo`, `accountNoID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(26, 19, 1, 102, '', 'qwq', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 03:38:33', 0, '0000-00-00 00:00:00'),
(27, 20, 1, 102, '', 'qwq', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 03:39:30', 0, '0000-00-00 00:00:00'),
(28, 27, 1, 102, '', 'qwq', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 03:39:47', 0, '0000-00-00 00:00:00'),
(29, 21, 1, 100, '', 'sd', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 0, '2014-06-23 03:50:34', 0, '0000-00-00 00:00:00'),
(30, 22, 1, 101, '', 'sdsd', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 04:20:39', 0, '0000-00-00 00:00:00'),
(31, 0, 2, 102, '', 'aasa', 0, 0, 12, 18, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 04:21:37', 0, '0000-00-00 00:00:00'),
(32, 23, 1, 101, '', '121as', 0, 0, 121, 1, 0, 7.26, 128.26, 0, 0, 0, 0, 0, '2014-06-23 04:25:38', 0, '0000-00-00 00:00:00'),
(33, 24, 1, 102, '', '12sds', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-23 09:47:53', 0, '0000-00-00 00:00:00'),
(34, 25, 1, 102, '', 'asa', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 0, '2014-06-23 09:50:16', 0, '0000-00-00 00:00:00'),
(35, 26, 1, 102, '', 'ASA', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-06-23 10:36:38', 0, '0000-00-00 00:00:00'),
(36, 0, 2, 102, '', 'ASA', 0, 0, 1, 12, 0, 0.05, 1.05, 0, 0, 0, 0, 16, '2014-06-23 10:36:55', 0, '0000-00-00 00:00:00'),
(37, 30, 1, 101, '', '1sdas', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 16, '2014-06-24 04:35:41', 0, '0000-00-00 00:00:00'),
(38, 0, 2, 97, '', 'xad', 0, 0, 1, 3, 0, 0, 1, 0, 0, 0, 0, 16, '2014-06-24 04:49:56', 0, '0000-00-00 00:00:00'),
(39, 31, 1, 99, '', 'sdaqw', 0, 0, 2, 14, 0, 7.32, 129.32, 0, 0, 0, 0, 16, '2014-06-24 04:53:20', 16, '2014-06-24 06:19:19'),
(40, 31, 2, 85, '', '2323211', 0, 0, 122, 13, 0, 12, 3, 0, 0, 0, 0, 16, '2014-06-24 04:53:42', 16, '2014-06-24 06:35:37');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_debitnote_detail`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_debitnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitnoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;

--
-- Dumping data for table `comp_supplier_debitnote_detail`
--

INSERT INTO `comp_supplier_debitnote_detail` (`ID`, `debitnoteID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, 4, 'Plastic Chair - Blue', '331000100', 1, 300, 300, 1, 6, 18, 318, 0, 0, '2014-06-17 11:21:33', 0, '0000-00-00 00:00:00'),
(2, 1, 2, 8, 'Plastic Chair - White', '331000300', 1, 450, 450, 28, 10, 45, 495, 0, 0, '2014-06-17 11:21:35', 0, '0000-00-00 00:00:00'),
(3, 2, 1, 10, 'Bola Tampar Buaya', 'B01', 3, 10, 30, 0, 0, 0, 30, 0, 0, '2014-06-17 11:21:37', 0, '0000-00-00 00:00:00'),
(4, 3, 1, 2, 'Steel chair for outdoor', 'B13 Steel Chair', 2, 1, 2, 1, 6, 0.12, 2.12, 0, 16, '2014-06-17 11:21:38', 0, '0000-00-00 00:00:00'),
(5, 4, 1, 2, 'Steel chair for outdoor', 'B13 Steel Chair', 2, 12, 24, 1, 6, 1.44, 25.44, 0, 16, '2014-06-17 11:21:40', 0, '0000-00-00 00:00:00'),
(6, 4, 2, 1, 'Teak wooden chair with natural finish', 'A12 Wooden Chair', 1, 1, 1, 0, 1, 0.01, 1.01, 0, 16, '2014-06-17 11:21:41', 0, '0000-00-00 00:00:00'),
(7, 5, 1, 4, 'Plastic Chair - Blue', 'A23 Plastic Chair', 3, 3, 9, 1, 6, 0.54, 9.54, 0, 16, '2014-06-17 11:21:43', 0, '0000-00-00 00:00:00'),
(8, 7, 0, 4, '', 'Plastic Chair - Blue', 12, 12, 0, 1, 6, 0, 0, 0, 16, '2014-06-21 05:08:45', 0, '0000-00-00 00:00:00'),
(9, 8, 0, 1, '', 'Teak wooden chair with natural finish', 12, 12, 0, 1, 6, 0, 0, 0, 16, '2014-06-21 05:17:14', 0, '0000-00-00 00:00:00'),
(10, 8, 0, 1, '', 'Teak wooden chair with natural finish', 12, 12, 0, 14, 6, 0, 0, 0, 16, '2014-06-21 05:17:42', 0, '0000-00-00 00:00:00'),
(11, 9, 0, 1, '', 'Teak wooden chair with natural finish', 1, 1200, 0, 1, 6, 0, 0, 0, 16, '2014-06-21 05:43:08', 0, '0000-00-00 00:00:00'),
(12, 10, 0, 1, '', 'Teak wooden chair with natural finish', 12, 0, 0, 3, 0, 0, 0, 0, 16, '2014-06-21 07:06:53', 0, '0000-00-00 00:00:00'),
(13, 10, 0, 1, '', 'Teak wooden chair with natural finish', 1, 12, 0, 6, 0, 0, 0, 0, 16, '2014-06-21 07:07:12', 0, '0000-00-00 00:00:00'),
(14, 10, 0, 8, '', 'Plastic Chair - White', 2, 0, 0, 3, 0, 0, 0, 0, 16, '2014-06-21 07:07:53', 0, '0000-00-00 00:00:00'),
(15, 11, 0, 7, '', 'Plastic Chair - Red', 1, 2345, 0, 0, 12, 0, 0, 0, 16, '2014-06-21 07:23:44', 0, '0000-00-00 00:00:00'),
(16, 12, 0, 7, '', 'Plastic Chair - Red', 12, 2345, 28140, 0, 1, 281.4, 28421.4, 0, 16, '2014-06-21 07:41:36', 0, '0000-00-00 00:00:00'),
(17, 13, 0, 8, '', 'Plastic Chair - White', 12, 1, 12, 28, 0, 0, 12, 0, 16, '2014-06-21 07:49:31', 0, '0000-00-00 00:00:00'),
(18, 13, 0, 9, '', 'Nasi Goreng Ayam', 21, 1, 0, 26, 2, 0, 0, 0, 16, '2014-06-21 07:49:54', 0, '0000-00-00 00:00:00'),
(19, 13, 0, 8, '', 'Plastic Chair - White', 12, 12, 0, 28, 0, 0, 0, 0, 16, '2014-06-21 08:10:23', 0, '0000-00-00 00:00:00'),
(20, 14, 0, 1, '', 'Teak wooden chair with natural finish', 2, 1, 2, 0, 6, 0.12, 2.12, 0, 16, '2014-06-21 08:21:50', 0, '0000-00-00 00:00:00'),
(21, 15, 1, 1, '0', 'Teak wooden chair with natural finish', 12, 12, 144, 13, 6, 8.64, 152.64, 0, 16, '2014-06-23 01:57:22', 16, '0000-00-00 00:00:00'),
(22, 15, 2, 8, '0', 'Plastic Chair - White', 12, 3244, 38928, 28, 1, 389.28, 39317.28, 0, 16, '2014-06-23 01:57:30', 16, '0000-00-00 00:00:00'),
(23, 15, 3, 10, '0', 'Bola Tampar Buaya', 22, 12, 264, 13, 1, 2.64, 266.64, 0, 16, '2014-06-23 01:57:39', 16, '0000-00-00 00:00:00'),
(24, 15, 4, 8, '', 'Plastic Chair - White', 23, 12, 276, 28, 12, 33.12, 309.12, 0, 16, '2014-06-21 08:59:54', 0, '0000-00-00 00:00:00'),
(25, 29, 1, 7, '', 'Plastic Chair - Red', 1, 2345, 2345, 0, 0, 0, 2345, 0, 16, '2014-06-23 03:51:06', 0, '0000-00-00 00:00:00'),
(26, 22, 1, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 4, 0, 0, 144, 0, 16, '2014-06-23 04:20:21', 0, '0000-00-00 00:00:00'),
(27, 23, 1, 1, '', 'Teak wooden chair with natural finish', 12, 12, 144, 7, 12, 17.28, 161.28, 0, 16, '2014-06-23 04:25:24', 0, '0000-00-00 00:00:00'),
(28, 0, 1, 7, '', 'Plastic Chair - Red', 9, 2345, 21105, 0, 0, 0, 21105, 0, 16, '2014-06-23 08:51:32', 0, '0000-00-00 00:00:00'),
(29, 26, 1, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 3, 0, 0, 144, 0, 16, '2014-06-23 10:35:58', 0, '0000-00-00 00:00:00'),
(30, 26, 2, 1, '', 'Teak wooden chair with natural finish', 12, 120, 1440, 12, 5, 72, 1512, 0, 16, '2014-06-23 10:36:24', 0, '0000-00-00 00:00:00'),
(31, 27, 1, 1, '', 'Teak wooden chair with natural finish', 12, 12, 144, 3, 0, 0, 144, 0, 16, '2014-06-23 10:38:49', 0, '0000-00-00 00:00:00'),
(32, 27, 2, 10, '', 'Bola Tampar Buaya', 1, 111, 111, 0, 6, 6.66, 117.66, 0, 16, '2014-06-23 10:38:59', 0, '0000-00-00 00:00:00'),
(33, 0, 3, 2, '', 'Steel chair for outdoor', 12, 3244, 38928, 1, 0, 0, 38928, 0, 16, '2014-06-23 10:41:59', 0, '0000-00-00 00:00:00'),
(34, 28, 1, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 13, 6, 8.64, 152.64, 0, 16, '2014-06-23 10:48:49', 0, '0000-00-00 00:00:00'),
(35, 28, 2, 7, '', 'Plastic Chair - Red', 1, 2345, 2345, 0, 0, 0, 2345, 0, 16, '2014-06-23 10:49:09', 0, '0000-00-00 00:00:00'),
(36, 29, 1, 7, '', 'Plastic Chair - Red', 1, 2345, 2345, 0, 0, 0, 2345, 0, 16, '2014-06-23 10:56:46', 0, '0000-00-00 00:00:00'),
(37, 30, 1, 4, '', 'Plastic Chair - Blue', 1, 0, 12, 1, 0, 0.72, 12.72, 0, 16, '2014-06-24 04:29:02', 16, '0000-00-00 00:00:00'),
(38, 31, 1, 7, '', 'Plastic Chair - Red', 1, 2345, 2345, 0, 12, 281.4, 2626.4, 0, 16, '2014-06-24 04:54:10', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_invoice`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `purchaseInvoiceCodeID` int(11) NOT NULL COMMENT '1=puchase inv, 2=direct purch inv, 3=debit note, 4=credit note',
  `purchaserID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `invoiceDate` date NOT NULL,
  `supplierInvoiceNo` varchar(32) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `shipToID` int(11) NOT NULL,
  `locationID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` decimal(10,0) NOT NULL,
  `totalTaxAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `total` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ;

--
-- Dumping data for table `comp_supplier_invoice`
--

INSERT INTO `comp_supplier_invoice` (`ID`, `companyID`, `purchaseInvoiceCodeID`, `purchaserID`, `supplierID`, `formNo`, `invoiceDate`, `supplierInvoiceNo`, `projectID`, `termsID`, `shipToID`, `locationID`, `currencyID`, `exchangeRate`, `agentID`, `memo`, `employeeID`, `shippingMethodID`, `totalAmount`, `amountPaid`, `totalTaxAmount`, `totalPayable`, `total`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `updateAble`, `journalNo`) VALUES
(71, 1, 1, 0, 1, 'PI2014 - invoice', '2013-04-22', 'apr 2013', 2, 7, 1, 1, 1, 1, 0, '', 0, 0, 0, '301', 0, -301, 0, 0, '2014-05-22 03:06:36', 0, '2014-06-17 10:20:43', 0, 1, ''),
(72, 1, 1, 0, 1, 'PI2014nasi goreng', '2013-05-22', 'may 2013', 1, 5, 1, 1, 1, 1, 0, '', 0, 0, 0, '2', 0, -2, 0, 0, '2014-05-22 03:09:47', 0, '2014-06-17 10:20:49', 0, 1, ''),
(73, 1, 2, 0, 1, 'sds', '2013-06-22', 'jun 2013', 2, 5, 1, 1, 1, 1, 0, '', 0, 0, 0, '2', 0, -2, 0, 0, '2014-05-22 03:23:12', 0, '2014-06-17 10:23:17', 0, 1, ''),
(74, 1, 2, 0, 20, 'PI2tr14nasi goreng', '2013-07-22', 'jul 2013', 2, 6, 1, 1, 1, 1, 0, '', 0, 0, 0, '22', 0, -22, 0, 0, '2014-05-22 03:31:55', 0, '2014-06-17 10:23:19', 0, 1, ''),
(75, 1, 2, 0, 1, 'A', '2013-08-22', 'aug 2013', 1, 6, 1, 1, 1, 1, 0, '', 0, 0, 0, '2', 0, -2, 0, 0, '2014-05-22 03:42:36', 0, '2014-06-17 10:23:20', 0, 1, ''),
(76, 1, 2, 0, 20, 'PI2014nasi goreng', '2013-09-22', 'sept 2013', 1, 5, 1, 1, 1, 1, 0, '', 0, 0, 0, '0', 0, 25580, 0, 0, '2014-05-22 03:51:54', 0, '2014-06-17 10:23:20', 0, 1, ''),
(77, 1, 2, 0, 1, 'PI2014nasi goreng', '2013-10-22', 'oct 2013', 1, 5, 1, 1, 1, 1, 0, '', 0, 0, 0, '2', 0, -2, 0, 0, '2014-05-22 03:58:24', 0, '2014-06-17 10:23:21', 0, 1, ''),
(78, 1, 2, 0, 1, 'df', '2013-11-22', 'nov 2013', 1, 5, 1, 0, 1, 1, 0, '', 0, 0, 0, '2', 0, 11.66, 0, 0, '2014-05-22 04:01:44', 0, '2014-06-17 10:23:21', 0, 1, ''),
(79, 1, 2, 0, 1, 'PI2014nasi goreng', '2013-12-22', 'dec 2013', 1, 5, 1, 0, 1, 1, 0, '', 0, 0, 0, '2', 0, -2, 0, 0, '2014-05-22 04:15:09', 0, '2014-06-17 10:23:22', 0, 1, ''),
(80, 1, 2, 0, 1, 'PI2014nasi goreng', '2014-01-22', ' jan 2014.', 2, 6, 1, 2, 1, 1, 0, '', 0, 0, 0, '5', 0, -4, 0, 0, '2014-05-22 11:17:23', 0, '2014-06-17 10:23:23', 0, 1, ''),
(81, 1, 2, 0, 1, 'as', '2014-02-13', 'feb 2014', 1, 5, 1, 1, 1, 1, 0, '', 0, 0, 0, '5', 0, -4, 0, 0, '2014-05-23 07:34:21', 0, '2014-06-17 10:23:24', 0, 1, ''),
(82, 1, 2, 0, 1, 'PI2014-82', '2014-03-07', 'mac 2014', 2, 5, 1, 1, 1, 1, 0, 'xcxx', 0, 0, 100700, '35', 0, 100665, 0, 0, '2014-05-29 01:25:00', 0, '2014-06-17 10:23:24', 0, 1, ''),
(83, 1, 2, 0, 1, 'PI2014nasi goreng', '2014-04-29', 'apr 2014', 1, 5, 1, 1, 1, 1, 0, 'sdsdsd', 0, 0, 0, '5', 0, 100000, 0, 0, '2014-05-29 01:27:20', 0, '2014-06-17 10:23:25', 0, 1, ''),
(84, 1, 2, 7, 1, 'PI2014nasi goreng', '2014-05-29', 'fd', 1, 5, 1, 1, 1, 1, 0, 'dfsger', 0, 73, 0, '5', 0, 100000, 0, 0, '2014-05-29 01:33:15', 0, '2014-06-17 10:23:25', 0, 1, ''),
(85, 1, 2, 6, 1, 'PI2014nasi goreng', '2014-06-03', '006', 1, 5, 1, 1, 1, 1, 0, '', 0, 7, 0, '0', 0, 6100, 0, 0, '2014-06-03 03:30:34', 0, '2014-06-17 10:23:26', 0, 1, ''),
(86, 1, 2, 9, 1, 'PI2014nasi goreng', '2014-06-03', 'supplier invoice no 00000011111', 2, 5, 3, 1, 1, 1, 0, '', 0, 6, 0, '0', 0, 473.82, 0, 0, '2014-06-03 10:38:31', 0, '2014-06-17 10:23:26', 0, 1, ''),
(87, 1, 2, 9, 1, 'PI2014', '2014-06-04', '34ssss', 2, 6, 4, 1, 1, 1, 0, '', 0, 4, 0, '0', 0, 154, 0, 0, '2014-06-04 11:06:46', 0, '2014-06-17 10:23:27', 0, 1, ''),
(88, 1, 2, 7, 1, 'PI2014', '2014-06-11', 'wew', 1, 5, 2, 1, 1, 1, 0, 'sds', 0, 3, 0, '0', 0, 13.780000000000001, 0, 0, '2014-06-11 12:13:17', 0, '2014-06-17 11:02:53', 0, 1, ''),
(89, 1, 2, 6, 1, 'PI2014', '2014-06-18', 'sd', 1, 5, 1, 1, 0, 2, 0, 'dsds', 0, 73, 0, '0', 0, 0, 0, 0, '2014-06-18 09:09:02', 0, '0000-00-00 00:00:00', 0, 1, ''),
(90, 1, 2, 6, 20, 'PI2014', '2014-06-18', '.,mjl;l', 1, 5, 1, 1, 0, 1, 0, 'uiuop', 0, 5, 0, '0', 0, 0, 0, 0, '2014-06-18 09:40:46', 0, '0000-00-00 00:00:00', 0, 1, ''),
(91, 1, 2, 6, 1, 'PI2014', '2014-06-18', 'da', 1, 6, 3, 1, 0, 1, 0, 'asaaa', 0, 73, 0, '0', 0, 0, 0, 0, '2014-06-18 10:11:37', 0, '0000-00-00 00:00:00', 0, 1, ''),
(92, 1, 2, 7, 1, 'PI2014', '2014-06-18', 'da', 1, 5, 1, 1, 0, 1, 0, 'asa', 0, 74, 0, '0', 0, 0, 0, 0, '2014-06-18 10:27:37', 0, '0000-00-00 00:00:00', 0, 1, ''),
(93, 1, 2, 7, 1, 'PI2014', '2014-06-19', 'qeq', 10, 6, 5, 1, 0, 1, 0, 'acw weqwq', 0, 73, 0, '0', 0, 133.72, 0, 0, '2014-06-19 01:02:31', 0, '2014-06-19 01:03:37', 0, 1, ''),
(94, 1, 2, 7, 1, 'PI2014', '2014-06-19', 'qwq', 16, 7, 1, 1, 0, 1, 0, 'adwe', 0, 5, 0, '0', 0, 0, 0, 0, '2014-06-19 01:09:11', 0, '0000-00-00 00:00:00', 0, 1, ''),
(95, 1, 2, 7, 1, 'PI2014', '2014-06-19', 'asq', 1, 5, 1, 1, 0, 1, 0, 'sdq', 0, 73, 0, '0', 0, 12.72, 0, 0, '2014-06-19 01:27:02', 0, '2014-06-19 01:28:57', 0, 1, ''),
(96, 1, 2, 6, 1, 'PI2014', '2014-06-19', 'wqw', 1, 5, 1, 1, 0, 1, 0, 'weqwq', 0, 5, 0, '0', 0, 12, 0, 0, '2014-06-19 01:37:31', 0, '2014-06-19 01:38:49', 0, 1, ''),
(97, 1, 2, 7, 1, 'PI2014', '2014-06-19', 'dwe', 10, 5, 1, 1, 0, 1, 0, '21da', 0, 74, 0, '0', 0, 62, 0, 0, '2014-06-19 01:59:53', 0, '2014-06-21 00:56:12', 0, 1, ''),
(98, 1, 2, 7, 1, 'PI2014', '2014-06-20', '90', 1, 5, 3, 1, 0, 1, 0, 'kjl;', 0, 6, 0, '0', 0, 839.52, 0, 0, '2014-06-20 09:36:39', 0, '2014-06-20 09:36:39', 0, 1, ''),
(99, 1, 2, 6, 1, 'PI2014', '2014-06-23', 'jklk', 16, 6, 1, 1, 0, 1, 0, 'lkl', 0, 5, 0, '0', 0, 0, 0, 0, '2014-06-23 03:21:52', 0, '0000-00-00 00:00:00', 0, 1, ''),
(100, 1, 2, 7, 1, 'PI2014', '2014-06-24', '234234', 1, 6, 2, 1, 0, 0, 0, '', 0, 73, 0, '0', 0, 103180, 0, 16, '2014-06-24 08:19:17', 16, '2014-06-24 08:20:48', 0, 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_invoice_charges`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_invoice_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `drAccountID` int(11) NOT NULL,
  `crAccountID` int(11) NOT NULL,
  `drTaxAccountID` int(11) NOT NULL,
  `crTaxAccountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;

--
-- Dumping data for table `comp_supplier_invoice_charges`
--

INSERT INTO `comp_supplier_invoice_charges` (`ID`, `invoiceID`, `lineNo`, `accountNoID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `drAccountID`, `crAccountID`, `drTaxAccountID`, `crTaxAccountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(19, 88, 1, 101, '', 'sds', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-11 12:13:28', 0, '2014-06-18 02:00:50'),
(20, 93, 1, 101, '', 'qwqwq', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-19 01:03:13', 0, '0000-00-00 00:00:00'),
(21, 93, 2, 100, '', '1213 weq', 0, 0, 121, 5, 0, 0, 121, 0, 0, 0, 0, 0, '2014-06-19 01:03:36', 0, '0000-00-00 00:00:00'),
(22, 95, 1, 101, '', 'qwq', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-19 01:28:57', 0, '0000-00-00 00:00:00'),
(23, 96, 1, 102, '', 'qwq', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 0, '2014-06-19 01:38:49', 0, '0000-00-00 00:00:00'),
(24, 97, 1, 101, '', 'gcfdzhsKL;ASKJV', 0, 0, 12, 1, 0, 0.72, 12.72, 0, 0, 0, 0, 0, '2014-06-19 02:14:49', 0, '2014-06-19 05:31:57'),
(25, 97, 2, 101, '', 'FVFBSG', 0, 0, 12313, 1, 0, 738.78, 13051.78, 0, 0, 0, 0, 0, '2014-06-19 06:13:18', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_invoice_detail`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_invoice_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitPrice` double NOT NULL,
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `amountIncludedTax` double NOT NULL,
  `accountID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=177 ;

--
-- Dumping data for table `comp_supplier_invoice_detail`
--

INSERT INTO `comp_supplier_invoice_detail` (`ID`, `invoiceID`, `lineNo`, `itemID`, `itemname`, `itemdescription`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(146, 88, 1, 2, '100300100', 'Steel chair for outdoor', 1, 1, 1, 1, 6, 0, 0, 0, 0, '2014-06-18 01:57:50', 0, '0000-00-00 00:00:00'),
(147, 89, 1, 0, '', 'Teak wooden chair with natural finish', 123, 0, 0, 0, 6, 0, 0, 0, 0, '2014-06-18 09:09:02', 0, '0000-00-00 00:00:00'),
(148, 90, 1, 0, '', 'Plastic Chair - White', 1, 0, 0, 28, 0, 0, 0, 0, 0, '2014-06-18 09:40:46', 0, '0000-00-00 00:00:00'),
(149, 90, 2, 0, '', 'Plastic Chair - Blue', 54, 1112, 60048, 1, 0, 0, 0, 0, 0, '2014-06-18 09:41:12', 0, '0000-00-00 00:00:00'),
(150, 91, 1, 0, '', 'Plastic Chair - Red', 12, 2345, 28140, 0, 0, 0, 0, 0, 0, '2014-06-18 10:11:37', 0, '0000-00-00 00:00:00'),
(151, 91, 2, 0, '', 'Plastic Chair - Red', 1, 2345, 2345, 0, 12, 0, 0, 0, 0, '2014-06-18 10:12:23', 0, '0000-00-00 00:00:00'),
(152, 92, 1, 0, '', 'Teak wooden chair with natural finish', 21, 120, 2520, 0, 6, 0, 0, 0, 0, '2014-06-18 10:27:37', 0, '0000-00-00 00:00:00'),
(153, 93, 1, 1, '', 'Teak wooden chair with natural finish', 12, 122, 1464, 0, 6, 0, 0, 0, 0, '2014-06-19 01:02:31', 0, '0000-00-00 00:00:00'),
(154, 93, 2, 0, '', 'Plastic Chair - Blue', 123, 0.12, 14.76, 1, 0, 0, 0, 0, 0, '2014-06-19 01:02:58', 0, '0000-00-00 00:00:00'),
(155, 93, 3, 0, '', 'Teak wooden chair with natural finish', 212, 12, 2544, 0, 6, 0, 0, 0, 0, '2014-06-19 01:04:20', 0, '0000-00-00 00:00:00'),
(156, 93, 4, 0, '', 'Steel chair for outdoor', 12, 3244, 38928, 1, 0, 0, 0, 0, 0, '2014-06-19 01:07:38', 0, '0000-00-00 00:00:00'),
(157, 94, 1, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 1, 0, 0, 0, 0, 0, '2014-06-19 01:09:11', 0, '0000-00-00 00:00:00'),
(158, 94, 2, 0, '', 'Plastic Chair - Red', 12, 2345, 28140, 1, 6, 0, 0, 0, 0, '2014-06-19 01:09:53', 0, '0000-00-00 00:00:00'),
(159, 94, 3, 0, '', 'Plastic Chair - Blue', 12, 12, 144, 1, 0, 0, 0, 0, 0, '2014-06-19 01:10:41', 0, '0000-00-00 00:00:00'),
(160, 94, 4, 0, '', 'Plastic Chair - Blue', 2, 12, 24, 1, 0, 0, 0, 0, 0, '2014-06-19 01:12:34', 0, '0000-00-00 00:00:00'),
(161, 95, 1, 7, '', 'Plastic Chair - Red', 12, 2, 144, 0, 0, 0, 0, 0, 0, '2014-06-21 00:55:47', 0, '0000-00-00 00:00:00'),
(162, 95, 2, 7, '', 'Plastic Chair - Red', 2, 2, 24, 0, 0, 0, 0, 0, 0, '2014-06-21 00:55:38', 0, '0000-00-00 00:00:00'),
(163, 95, 3, 1, '', 'Teak wooden chair with natural finish', 12, 0, 38, 0, 6, 0, 0, 0, 0, '2014-06-21 00:55:24', 0, '0000-00-00 00:00:00'),
(164, 96, 1, 1, '', 'Teak wooden chair with natural finish', 12, 12, 144, 0, 6, 0, 0, 0, 0, '2014-06-19 01:37:31', 0, '0000-00-00 00:00:00'),
(165, 96, 2, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 10, 6, 0, 0, 0, 0, '2014-06-19 01:38:11', 0, '0000-00-00 00:00:00'),
(166, 96, 3, 10, '', 'Bola Tampar Buaya', 12, 111, 1332, 0, 6, 0, 0, 0, 0, '2014-06-19 01:54:18', 0, '0000-00-00 00:00:00'),
(167, 97, 1, 1, '', 'Teak wooden chair with natural finish', 2, 12, 24, 0, 6, 1.44, 0, 0, 0, '2014-06-19 01:59:53', 0, '0000-00-00 00:00:00'),
(168, 97, 2, 4, '', 'Plastic Chair - Blue', 12, 12, 144, 1, 12, 17.28, 161.28, 0, 0, '2014-06-19 04:33:34', 0, '0000-00-00 00:00:00'),
(169, 97, 3, 9, '', 'Nasi Goreng Ayam', 1, 12, 12, 26, 0, 0, 12, 0, 0, '2014-06-21 02:01:28', 0, '0000-00-00 00:00:00'),
(170, 97, 4, 7, '', 'Plastic Chair - Red', 21, 2345, 49245, 0, 0, 0, 49245, 0, 0, '2014-06-19 02:03:17', 0, '0000-00-00 00:00:00'),
(171, 97, 5, 10, '', 'Bola Tampar Buaya', 1, 111, 111, 0, 1, 1.11, 112.11, 0, 0, '2014-06-21 02:01:18', 0, '0000-00-00 00:00:00'),
(172, 97, 6, 4, '', 'Plastic Chair - Blue', 1, 12, 12, 1, 1, 0.12, 12.12, 0, 0, '2014-06-19 04:40:37', 0, '0000-00-00 00:00:00'),
(173, 98, 1, 1, '', 'Teak wooden chair with natural finish', 8, 99, 792, 0, 6, 47.52, 839.52, 0, 0, '2014-06-20 09:36:39', 0, '0000-00-00 00:00:00'),
(174, 99, 1, 1, '', 'Teak wooden chair with natural finish', 0, 0, 0, 0, 6, 0, 0, 0, 0, '2014-06-23 03:21:52', 0, '0000-00-00 00:00:00'),
(175, 100, 1, 1, '', 'Teak wooden chair with natural finish', 34, 0, 0, 0, 6, 0, 0, 0, 16, '2014-06-24 08:19:17', 0, '0000-00-00 00:00:00'),
(176, 100, 2, 7, '', 'Plastic Chair - Red', 44, 2345, 103180, 0, 0, 0, 103180, 0, 16, '2014-06-24 08:20:47', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `comp_supplier_statement`
--

CREATE TABLE IF NOT EXISTS `comp_supplier_statement` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debit` double NOT NULL,
  `credit` double NOT NULL,
  `balance` double NOT NULL,
  `supplierCode` int(11) NOT NULL,
  `supplierName` varchar(16) NOT NULL,
  `description` varchar(255) NOT NULL,
  `referenceNo` varchar(5) NOT NULL,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `customer`
--

CREATE TABLE IF NOT EXISTS `customer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerName` varchar(128) NOT NULL,
  `accountCode` varchar(8) NOT NULL,
  `customerCompanyNo` varchar(32) NOT NULL,
  `line1` varchar(128) NOT NULL,
  `line2` varchar(128) NOT NULL,
  `line3` varchar(128) NOT NULL,
  `city` varchar(128) NOT NULL,
  `customerPostCode` varchar(8) NOT NULL,
  `customerStateID` int(11) NOT NULL,
  `customerCountryID` int(11) NOT NULL,
  `attention` varchar(16) NOT NULL,
  `website` varchar(32) NOT NULL,
  `phoneNumber1` varchar(50) NOT NULL,
  `phoneNumber2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `generalNote` varchar(255) NOT NULL,
  `gstRegNo` varchar(16) NOT NULL,
  `termsID` int(11) NOT NULL,
  `creditLimit` int(8) NOT NULL,
  `creditLimitAlert` tinyint(1) NOT NULL,
  `linkedAPAccountID` varchar(11) NOT NULL,
  `createdDate` date NOT NULL,
  `currencyID` int(11) NOT NULL,
  `email` varchar(32) NOT NULL,
  `termstatus` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` int(16) NOT NULL,
  `position` varchar(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` (`ID`, `companyID`, `customerName`, `accountCode`, `customerCompanyNo`, `line1`, `line2`, `line3`, `city`, `customerPostCode`, `customerStateID`, `customerCountryID`, `attention`, `website`, `phoneNumber1`, `phoneNumber2`, `fax`, `generalNote`, `gstRegNo`, `termsID`, `creditLimit`, `creditLimitAlert`, `linkedAPAccountID`, `createdDate`, `currencyID`, `email`, `termstatus`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `position`) VALUES
(12, 1, 'Telekom Malaysia', '20', '', '555, JALAN SAMUDRA UTARA 1', 'TAMAN SAMUDRA', '', 'GOMBAK', '68100', 1933, 458, '0', '0', '603 61881213', '', '603 61881214', '', '', 0, 0, 0, '20', '0000-00-00', 1, 'account@salihin.com.my', 0, 0, '2014-05-21 04:52:14', 0, '2014-06-23 02:45:13', 0, '0'),
(15, 1, 'Celcom', '20', '', 'no.23, jalan rampai,', 'taman seri rampai', '', 'wilayah persekutuan', '68100', 1933, 458, '0', '0', '603 61881213', '', '603 61881213', '', '', 0, 0, 0, '20', '0000-00-00', 2, 'qaqa@yahoo.com.my', 0, 0, '2014-05-21 10:57:46', 0, '2014-06-23 02:45:38', 0, 'reseller'),
(16, 1, 'Maxis', '20', '', '23,jalan jalan', 'cari makan', '', 'gombak', '68100', 1933, 458, '0', '0', '603 61881213', '', '603 61881213', '', '', 0, 0, 0, '20', '0000-00-00', 1, 'qaqa@yahoo.com', 0, 0, '2014-05-22 11:18:09', 0, '2014-06-23 02:45:55', 0, 'HELPER'),
(17, 15, 'AXBN', '243', '', 'customer 1, jalan 1, taman 1/1', '', '', 'batu 1', '11111', 1933, 458, '0', '0', '111', '', '111', '', '', 0, 0, 0, '0', '0000-00-00', 1, 'accounts1@salihi', 0, 0, '2014-05-29 02:56:48', 0, '2014-06-21 04:25:26', 0, 'Manager 1'),
(18, 15, 'Malakoff Utilities', '228', '', 'No 2, jalan 2, taman 2/2', '', '', 'Batu 2', '22222', 1922, 458, '0', '0', '603-88371234', '', '603-88891999', '', '', 0, 0, 0, '0', '0000-00-00', 2, 'accounts2@salihin.com.my', 0, 0, '2014-05-29 03:03:13', 0, '2014-06-21 04:43:35', 0, 'Manager 2'),
(19, 15, 'Permata Hijrah', '3333', '', 'No 3, Jalan 3, Taman 3/3', '', '', 'Batu 3', '33333', 1921, 458, 'Ali Abi Talib', '0', '333', '333', '333', '', '', 0, 0, 0, '0', '0000-00-00', 1, 'accounts3@salihi', 0, 0, '2014-05-29 03:06:10', 0, '2014-06-18 02:25:18', 0, 'Manager 3'),
(20, 1, 'ABC Enterprise', '20', '', '', '', '', '', '', 1933, 458, '0', '0', '', '', '', '', '', 0, 0, 0, '20', '0000-00-00', 1, '', 0, 0, '2014-05-29 09:55:13', 0, '2014-06-23 02:46:09', 0, ''),
(21, 27, 'qa', 'qa12', '', '555, JALAN SAMUDRA UTARA 1', 'TAMAN SAMUDRA', '', 'GOMBAK', '68100', 1933, 458, '0', '0', '603 61854646', '', '603 61856767', '', '', 0, 0, 0, '0', '0000-00-00', 0, 'bee@gmail.com', 0, 0, '2014-06-06 09:25:49', 0, '2014-06-06 09:26:01', 0, 'test1'),
(26, 1, 'qa', '0', '', '', '', '', '', '', 0, 458, '0', '0', '', '', '', '', '', 0, 0, 0, '20', '0000-00-00', 0, '', 0, 0, '2014-06-23 02:40:13', 0, '0000-00-00 00:00:00', 0, ''),
(27, 1, 'FARHANA', '20', '', '555, JALAN SAMUDRA UTARA 1', 'TAMAN SAMUDRA', '', 'GOMBAK', '68100', 1921, 458, '0', '0', '603 6178987', '012 3121312', '603 6176756', '', '', 0, 0, 0, '20', '0000-00-00', 0, 'ateeq@webfulcreations.com', 0, 0, '2014-06-23 02:41:34', 0, '2014-06-24 04:23:06', 0, 'tester');

-- --------------------------------------------------------

--
-- Table structure for table `customer_address`
--

CREATE TABLE IF NOT EXISTS `customer_address` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `addressCode` varchar(50) NOT NULL,
  `addressName` varchar(128) NOT NULL,
  `line1` varchar(128) NOT NULL,
  `line2` varchar(128) NOT NULL,
  `line3` varchar(128) NOT NULL,
  `city` varchar(128) NOT NULL,
  `postCode` varchar(8) NOT NULL,
  `stateID` int(11) NOT NULL,
  `countryID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` tinyint(1) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `customer_address`
--

INSERT INTO `customer_address` (`ID`, `companyID`, `customerID`, `addressCode`, `addressName`, `line1`, `line2`, `line3`, `city`, `postCode`, `stateID`, `countryID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 1, '', '', '', '', '', '', '', 0, 0, 0, '2014-05-14 08:45:58', 0, '2014-06-03 10:05:20', 0),
(2, 1, 2, '', '', '', '', '', '', '', 0, 0, 0, '2014-05-14 09:00:46', 0, '2014-06-03 10:05:21', 0),
(3, 1, 5, '', '', '', '', '', '', '', 0, 0, 0, '2014-05-14 09:06:45', 0, '2014-05-19 07:16:29', 0),
(4, 0, 1, '3234', '', 'fad', 'fad', 'fad', '2323', '32222', 1929, 458, 0, '2014-05-19 22:46:16', 0, '2014-05-20 05:06:51', 0),
(5, 0, 17, '1', 'Apartment 1', 'Apartment 1', '', '', 'Batu 1.1', '11111', 1923, 458, 0, '2014-05-28 21:13:50', 0, '2014-06-03 10:18:39', 0),
(6, 0, 17, '12344', 'Condo 1', 'Condo 1', '', '', 'Batu 1.1.1', '11111', 1932, 458, 0, '2014-05-28 21:29:09', 0, '2014-06-03 10:18:46', 0),
(7, 0, 12, '31888', 'Apartment 1', 'Apartment 1', '', '', 'Batu 1.1', '11111', 1923, 458, 0, '2014-05-28 21:13:50', 0, '2014-06-03 10:18:44', 0),
(8, 0, 12, '12312', 'Condo 1', 'Condo 1', '', '', 'Batu 1.1.1', '11111', 1932, 458, 0, '2014-05-28 21:29:09', 0, '2014-06-03 10:18:50', 0);

-- --------------------------------------------------------

--
-- Table structure for table `customer_contact`
--

CREATE TABLE IF NOT EXISTS `customer_contact` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `customerID` int(11) NOT NULL,
  `customer_contact_name` varchar(128) NOT NULL,
  `position` varchar(32) NOT NULL,
  `telOffice` varchar(32) NOT NULL,
  `telHp` varchar(32) NOT NULL,
  `email` varchar(64) NOT NULL,
  `remaks` text NOT NULL,
  `createdID` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `gl_setup`
--

CREATE TABLE IF NOT EXISTS `gl_setup` (
  `ID` int(11) NOT NULL,
  `companyID` int(11) NOT NULL,
  `accountTypeID` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `item`
--

CREATE TABLE IF NOT EXISTS `item` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `itemCode` varchar(16) NOT NULL,
  `name` varchar(64) NOT NULL,
  `description` text NOT NULL,
  `itemCategoryID` int(11) NOT NULL,
  `itemTypeID` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `unitOfMeasureID` int(11) NOT NULL,
  `editDescription` tinyint(1) NOT NULL,
  `imageFile` varchar(64) NOT NULL,
  `itemStatusID` int(11) NOT NULL,
  `reorderLevel` int(11) NOT NULL,
  `incomeID` int(11) NOT NULL,
  `cogsID` int(11) NOT NULL,
  `inventoriesID` int(11) NOT NULL,
  `inputTaxID` int(11) NOT NULL,
  `outputTaxID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `locationID` int(11) NOT NULL,
  `is_delete` smallint(6) NOT NULL,
  `updateable` smallint(6) NOT NULL,
  `totalAmount` double NOT NULL,
  `totalPayable` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `supplierPrice` double NOT NULL,
  `salesPrice` double NOT NULL,
  `currencyID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `item`
--

INSERT INTO `item` (`ID`, `companyID`, `itemCode`, `name`, `description`, `itemCategoryID`, `itemTypeID`, `quantity`, `unitOfMeasureID`, `editDescription`, `imageFile`, `itemStatusID`, `reorderLevel`, `incomeID`, `cogsID`, `inventoriesID`, `inputTaxID`, `outputTaxID`, `supplierID`, `memo`, `locationID`, `is_delete`, `updateable`, `totalAmount`, `totalPayable`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `supplierPrice`, `salesPrice`, `currencyID`) VALUES
(1, 1, '321000100', 'A12 Wooden Chair', 'Teak wooden chair with natural finish', 30, 22, 10, 2, 0, '', 1, 0, 0, 0, 79, 0, 12, 0, '', 1, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:11', 0, 321, 1),
(2, 1, '100300100', 'B13 Steel Chair', 'Steel chair for outdoor', 30, 22, 31, 2, 0, '', 1, 23, 1, 2, 79, 1, 2, 23, '', 1, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:15', 3244, 231, 2),
(4, 1, '331000100', 'A23 Plastic Chair', 'Plastic Chair - Blue', 30, 22, 10, 2, 0, '', 1, 0, 2, 0, 79, 1, 0, 0, '', 1, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:15', 0, 0, 0),
(7, 1, '331000200', 'A24 Plastic Chair', 'Plastic Chair - Red', 30, 22, 10, 2, 0, '', 1, 0, 0, 0, 79, 0, 0, 20, '', 1, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:16', 2345, 0, 0),
(8, 1, '331000300', 'A25 Plastic Chair', 'Plastic Chair - White', 21, 23, 10, 2, 0, '', 1, 12, 18, 15, 79, 28, 10, 0, '', 2, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:16', 0, 0, 0),
(9, 1, '501012000', 'Nasi Goreng', 'Nasi Goreng Ayam', 21, 23, 10, 2, 0, '', 1, 0, 15, 17, 79, 26, 5, 0, '', 2, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:17', 0, 652, 2),
(10, 1, '801010001', 'Bola', 'Bola Tampar Buaya', 30, 22, 10, 2, 0, '', 1, 0, 0, 0, 79, 0, 0, 0, '', 2, 0, 0, 0, 0, 0, '2014-06-09 09:14:28', 0, '2014-06-19 08:25:17', 111, 0, 0),
(11, 15, 'M001', 'Meja makan bulat', 'saiz 10. warna gold', 30, 22, 0, 2, 0, '', 2, 5, 0, 280, 79, 15, 1, 0, '', 0, 0, 0, 0, 0, 0, '2014-06-11 00:41:50', 0, '2014-06-19 08:25:18', 2222, 0, 0),
(12, 15, 'M002', 'Meja makan lonjong', 'saiz 10. warna hitam', 30, 22, 0, 2, 0, '', 1, 2, 276, 280, 79, 15, 1, 0, '', 0, 0, 0, 0, 0, 0, '2014-06-11 02:09:30', 0, '2014-06-19 08:25:18', 3333, 0, 0);

--
-- Triggers `item`
--
DROP TRIGGER IF EXISTS `trigger_before_insert_item`;
DELIMITER //
CREATE TRIGGER `trigger_before_insert_item` BEFORE INSERT ON `item`
 FOR EACH ROW begin
if new.incomeID = 0 or new.incomeID is null then 
set new.incomeID = (select accountID from comp_control_acct_setup where ID > 0 and companyID = new.companyID and accountCode='saleacct'); 
end if;
if new.cogsID = 0 or new.cogsID is null then 
set new.cogsID = (select accountID from comp_control_acct_setup where id>0 and companyID = new.companyID and accountCode = 'saleacct');
end if;

end
//
DELIMITER ;

-- --------------------------------------------------------

--
-- Table structure for table `item_adjustment`
--

CREATE TABLE IF NOT EXISTS `item_adjustment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `locationID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `updateAble` smallint(11) NOT NULL DEFAULT '1',
  `adjustmentDate` date NOT NULL,
  `createdBy` varchar(50) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

--
-- Dumping data for table `item_adjustment`
--

INSERT INTO `item_adjustment` (`ID`, `companyID`, `locationID`, `formNo`, `updateAble`, `adjustmentDate`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(18, 1, 1, 'IA', 0, '2014-06-20', '', '2014-06-20 04:29:17', 0, '2014-06-23 01:53:41'),
(19, 1, 2, 'IA', 1, '2014-06-24', '16', '2014-06-24 02:20:36', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `item_adjustment_detail`
--

CREATE TABLE IF NOT EXISTS `item_adjustment_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `adjustmentID` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `unitOfMeasureID` int(11) NOT NULL,
  `qtyOnHand` double NOT NULL COMMENT 'The number of items on the time of Adjustment',
  `counted` double NOT NULL COMMENT 'The actual number of items on the time of adjustment',
  `onDatePrice` double NOT NULL,
  `updateAble` smallint(11) NOT NULL DEFAULT '1',
  `adjustmentDate` date NOT NULL,
  `createdBy` varchar(50) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;

--
-- Dumping data for table `item_adjustment_detail`
--

INSERT INTO `item_adjustment_detail` (`ID`, `adjustmentID`, `itemID`, `lineNo`, `unitOfMeasureID`, `qtyOnHand`, `counted`, `onDatePrice`, `updateAble`, `adjustmentDate`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(18, 18, 1, 1, 2, 0, 6, 0, 1, '2014-06-20', '', '2014-06-20 04:29:17', 0, '2014-06-20 08:53:06'),
(19, 18, 4, 2, 2, 0, 3, 0, 1, '2014-06-20', '', '2014-06-20 04:29:17', 0, '2014-06-20 08:53:11'),
(20, 18, 7, 3, 2, 0, 6, 0, 1, '2014-06-20', '', '2014-06-20 04:29:17', 0, '0000-00-00 00:00:00'),
(21, 19, 1, 1, 2, 10, 5, 0, 1, '2014-06-24', '', '2014-06-24 02:20:36', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `item_details`
--

CREATE TABLE IF NOT EXISTS `item_details` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) DEFAULT NULL,
  `itemID` int(11) DEFAULT NULL,
  `locationID` int(11) DEFAULT NULL,
  `onHandQty` double DEFAULT NULL,
  `umID` int(11) DEFAULT NULL,
  `acctID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `is_delete` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`ID`),
  KEY `Index 2` (`companyID`,`acctID`,`locationID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=15 ;

--
-- Dumping data for table `item_details`
--

INSERT INTO `item_details` (`ID`, `companyID`, `itemID`, `locationID`, `onHandQty`, `umID`, `acctID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 1, 1, 7, 2, 79, NULL, '2014-06-19 01:13:12', NULL, '2014-06-19 01:13:12', NULL),
(2, 1, 1, 2, 9, 2, 79, NULL, '2014-06-19 04:39:31', NULL, '2014-06-19 04:39:31', NULL),
(3, 1, 4, 1, 3, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(4, 1, 7, 1, 6, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(5, 1, 8, 2, 8, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(7, 1, 10, 2, 10, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(8, 15, 11, 0, 0, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(9, 15, 12, 0, 0, 2, 79, 1, '2014-06-19 06:56:42', NULL, '2014-06-19 06:56:42', NULL),
(10, 1, 4, 2, 7, NULL, NULL, NULL, '2014-06-19 10:44:52', NULL, '2014-06-19 10:44:52', NULL),
(12, 1, 7, 2, 162, NULL, NULL, NULL, '2014-06-20 02:19:41', NULL, '2014-06-20 02:19:41', NULL),
(13, 1, 9, 2, 678, NULL, NULL, NULL, '2014-06-20 02:19:50', NULL, '2014-06-20 02:19:50', NULL),
(14, 1, 8, 1, 2, NULL, NULL, NULL, '2014-06-24 02:21:50', NULL, '2014-06-24 02:21:50', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `master`
--

CREATE TABLE IF NOT EXISTS `master` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `description` varchar(128) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;

--
-- Dumping data for table `master`
--

INSERT INTO `master` (`ID`, `name`, `description`, `updatedby`, `updatedTS`) VALUES
(1, 'Status', 'status active or inactive', 0, '0000-00-00 00:00:00'),
(2, 'Shipping Method', '', 0, '2014-04-24 05:01:05'),
(3, 'State', 'State', 0, '2014-04-21 09:34:26'),
(4, 'Module', 'Application module', 0, '2014-04-22 02:23:56'),
(5, 'Gender', 'Gender Male or Female', 0, '2014-04-22 02:23:56'),
(6, 'Bank', 'List of bank', 0, '2014-04-22 02:24:46'),
(7, 'Payment Method', 'List of payment method', 0, '2014-04-22 02:24:46'),
(8, 'Item Category', 'List of item category', 0, '2014-04-22 02:25:36'),
(9, 'Item Type', 'List of item type - product or service', 0, '2014-04-22 02:57:33'),
(10, 'Language', 'Language selection English or Bahasa Malasyia', 0, '2014-04-22 02:28:04'),
(11, 'Accounting Method', 'Accounting Closing/Opening method monthly or yearly', 0, '2014-04-22 02:28:04'),
(12, 'Unit of Measure', 'Unit of measurement such as kg, feet, meter, cubic', 0, '2014-04-22 02:30:31'),
(13, 'Account Type', 'Account type for chart of accounts', 0, '2014-04-22 03:05:08'),
(14, 'Business Type', 'Business type based on industry selected', 0, '2014-04-22 02:58:05'),
(15, 'Industry', 'List of industry classification - retail, manufacturing, service, others', 0, '2014-04-22 03:02:12'),
(16, 'Invoice Purchase Code', '', 1, '2014-05-07 01:56:18'),
(17, 'Invoice Sales Code', '', 1, '2014-05-07 02:16:56'),
(18, 'System Form', '', 1, '2014-05-07 03:12:14'),
(19, 'Address', 'List of address type', 0, '2014-05-16 10:47:17'),
(20, 'Movement Type', 'List of inventory movement type', 1, '2014-05-28 01:40:05'),
(21, 'General Setup', 'General Setup Parameters', 1, '2014-06-03 03:20:03');

-- --------------------------------------------------------

--
-- Table structure for table `master_code`
--

CREATE TABLE IF NOT EXISTS `master_code` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `masterID` int(11) NOT NULL,
  `parentFilterID` int(11) DEFAULT NULL,
  `code` varchar(4) NOT NULL,
  `name` varchar(64) NOT NULL,
  `shortName` varchar(8) NOT NULL,
  `description` varchar(128) NOT NULL,
  `orderNo` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updateBy` int(11) NOT NULL,
  `updateTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(6) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=108 ;

--
-- Dumping data for table `master_code`
--

INSERT INTO `master_code` (`ID`, `masterID`, `parentFilterID`, `code`, `name`, `shortName`, `description`, `orderNo`, `createdBy`, `createdTS`, `updateBy`, `updateTS`, `is_delete`) VALUES
(1, 1, NULL, '0', 'Active', 'Active', '', 1, 0, '2014-05-07 10:01:04', 0, '2014-05-15 10:17:57', 1),
(2, 1, NULL, '1', 'Inactive', 'Inactive', '', 2, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(3, 2, NULL, 'FR', 'Freight', 'Freight', '', 1, 0, '2014-05-07 10:01:04', 0, '2014-04-24 05:05:19', 0),
(4, 2, 4, 'FE', 'FedEx', 'FE', 'farhana', 2, 0, '2014-05-07 10:01:04', 0, '2014-05-15 03:25:38', 0),
(5, 2, NULL, 'UPS', 'UPS', 'UPS', '', 3, 0, '2014-05-07 10:01:04', 0, '2014-04-24 05:05:19', 0),
(6, 2, NULL, 'CLNK', 'CityLink', 'CLNK', '', 2, 0, '2014-05-07 10:01:04', 0, '2014-04-24 05:05:19', 0),
(7, 2, NULL, 'PL', 'Pos Laju', 'PL', '', 5, 0, '2014-05-07 10:01:04', 0, '2014-04-24 05:05:19', 0),
(8, 2, NULL, 'DHL', 'DHL', 'DHL', '', 4, 0, '2014-05-07 10:01:04', 0, '2014-04-24 05:05:19', 0),
(9, 5, NULL, 'M', 'Male', 'Male', '', 1, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(10, 5, NULL, 'F', 'Female', '', '', 2, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(11, 15, NULL, 'MFC', 'Manufacturing', 'MFC', '', 1, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(12, 15, NULL, 'RT', 'Retail', 'RT', '', 2, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(13, 15, NULL, 'SERV', 'Service', 'SERV', '', 3, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(14, 15, NULL, 'OTH', 'Others', 'OTH', '', 4, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(15, 10, NULL, 'ENG', 'English', 'ENG', '', 1, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(16, 10, NULL, 'BM', 'Bahasa Malaysia', 'BM', '', 2, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(17, 11, NULL, 'MTH', 'Monthly', 'MTH', '', 0, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(18, 11, NULL, 'YR', 'Yearly', 'YR', '', 0, 0, '2014-05-07 10:01:04', 0, '2014-04-22 03:18:53', 0),
(19, 8, NULL, 'E', 'Electrical Appliance', 'EA', '', 5, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(20, 8, NULL, 'S', 'Stationary', 'ST', '', 10, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(21, 8, NULL, 'I', 'IT', 'IT', '', 15, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(22, 9, NULL, 'P', 'Product', 'Product', 'Physical product range', 1, 0, '2014-05-07 10:01:04', 0, '2014-05-26 00:33:45', 0),
(23, 9, NULL, 'S', 'Services', 'Services', 'Services product range', 5, 0, '2014-05-07 10:01:04', 0, '2014-05-26 00:34:04', 0),
(30, 8, NULL, 'F', 'Furniture', 'FR', '', 1, 0, '2014-05-07 10:01:04', 0, '0000-00-00 00:00:00', 0),
(31, 16, NULL, '1', 'Purchase Invoice', '', '', 10, 0, '2014-05-07 10:01:04', 1, '0000-00-00 00:00:00', 0),
(32, 16, NULL, '2', 'Direct Purchase Invcoice', '', '', 20, 0, '2014-05-07 10:01:04', 1, '0000-00-00 00:00:00', 0),
(33, 16, NULL, '3', 'Debit Note', '', 'Purchase Invoice Debit Note (Adjustment)', 30, 0, '2014-05-07 10:01:04', 1, '0000-00-00 00:00:00', 0),
(34, 16, NULL, '4', 'Credit Note', '', 'Purchase Invoice Credit Note (Adjustment)', 40, 0, '2014-05-07 10:01:04', 1, '0000-00-00 00:00:00', 0),
(35, 17, NULL, '1', 'Sales Invoice', '', '', 10, 0, '2014-05-07 10:01:04', 0, '2014-05-07 02:23:53', 0),
(36, 17, NULL, '2', 'Direct Sales Invcoice', '', '', 20, 0, '2014-05-07 10:01:04', 0, '2014-05-07 02:23:58', 0),
(37, 17, NULL, '3', 'Debit Note', '', 'Sales Invoice Debit Note (Adjustment)', 30, 0, '2014-05-07 10:01:04', 0, '2014-05-07 02:24:02', 0),
(38, 17, NULL, '4', 'Credit Note', '', 'Sales Invoice Credit Note (Adjustment)', 40, 0, '2014-05-07 10:01:04', 0, '2014-05-07 02:24:07', 0),
(39, 18, NULL, 'PR', 'Purchase Request', 'PR', 'Purchase Request Form', 90, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(40, 18, NULL, 'PO', 'Purchase Order', 'PO', 'Purchase Order Form', 100, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(41, 18, NULL, 'PI', 'Purchase Invoice', 'PURINV', 'Form Purchase Invoice', 110, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(42, 18, NULL, 'PDN', 'Purchase Debit Note', 'PDN', 'Purchase Debit Note Form', 120, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(43, 18, NULL, 'PCN', 'Purchase Credit Note', 'PCN', 'Purchase Credit Note Form', 140, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(44, 18, NULL, 'PP', 'Purchase Payment', 'PP', 'Purchase Payment Form', 150, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(45, 18, NULL, 'GRN', 'Good Received Note', 'PP', 'Godd Received Note Form', 160, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(46, 18, NULL, 'LT', 'Inventory Movement', 'LT', 'Inventory Movement Form', 170, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(47, 18, NULL, 'SQN', 'Sales Quotation', 'SQN', 'Sales Quotation Form', 180, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(48, 18, NULL, 'SON', 'Sales Order', 'SON', 'Sales Order Form', 190, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(49, 18, NULL, 'SDN', 'Delivery Order', 'SDN', 'Delivery Order Form', 200, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(50, 18, NULL, 'INV', 'Invoice', 'INV', 'Invoice Form', 210, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(51, 18, NULL, 'SDN', 'Sales Debit Note', 'PDN', 'Sales Debit Note Form', 230, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(52, 18, NULL, 'SCN', 'Sales Credit Note', 'PCN', 'Sales Credit Note Form', 240, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(53, 18, NULL, 'RP', 'Receive Payment', 'RP', 'Receive Payment Form', 250, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(54, 18, NULL, 'GRN', 'General Transaction', 'PP', 'General Transaction Form', 260, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(55, 18, NULL, 'OPN', 'Others Payment', 'OPN', 'Others Payment Form', 270, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(56, 18, NULL, 'ORI', 'Others Receive', 'ORI', 'Others Receive Form', 280, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(57, 18, NULL, 'SLR', 'Sales Return', 'SLR', 'Sales Return Form', 290, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(58, 18, NULL, 'IA', 'Item Adjustment', 'IA', 'Item Adjustment Form', 300, 1, '2014-05-07 10:01:25', 0, '0000-00-00 00:00:00', 0),
(59, 12, NULL, 'KG', 'Kilogram', '', '', 10, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(60, 12, NULL, 'G', 'gram', '', '', 20, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(61, 12, NULL, 'l', 'liter', '', '', 30, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(62, 12, NULL, 'Tonn', 'tonne', '', '', 40, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(63, 12, NULL, 'Unit', 'unit', '', '', 50, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(64, 12, NULL, 'ml', 'mili liter', '', '', 60, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(65, 12, NULL, 'm', 'meter', '', '', 70, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(66, 12, NULL, 'cm', 'centimeter', '', '', 80, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(67, 12, NULL, 'cc', 'cubic cm', '', '', 90, 1, '2014-05-09 11:30:04', 0, '0000-00-00 00:00:00', 0),
(68, 7, NULL, '', 'Cash', '', '', 0, 0, '2014-05-14 08:59:32', 0, '2014-05-16 02:52:25', 0),
(69, 7, NULL, '', 'Cheque', '', '', 0, 0, '2014-05-14 08:59:32', 0, '0000-00-00 00:00:00', 0),
(70, 0, NULL, '3333', 'fad', 'fad', 'fad', 0, 0, '2014-05-14 09:12:00', 0, '0000-00-00 00:00:00', 0),
(71, 10, NULL, 'ARB', 'Arabic', 'AR', 'Bahasa Ar', 3, 0, '2014-05-15 01:46:45', 0, '2014-05-16 02:52:26', 0),
(72, 18, 0, 'ZK', 'ZAKAT', 'sy', 'desc', 7, 0, '2014-05-15 01:59:07', 0, '2014-06-05 03:51:49', 0),
(73, 2, 4, 'FE', 'FedEx', 'FE', 'fad', 2, 0, '2014-05-15 03:03:42', 0, '0000-00-00 00:00:00', 0),
(74, 2, 0, 'FE', 'FedEx', 'FE', 'akmal', 2, 0, '2014-05-15 03:17:14', 0, '2014-05-26 01:27:52', 0),
(75, 19, 0, '1', 'Billing Address', '', '', 10, 0, '2014-05-16 04:48:35', 0, '2014-05-16 10:51:41', 0),
(76, 19, 0, '2', 'HQ', '', 'Main Addr', 10, 0, '2014-05-16 04:52:07', 0, '0000-00-00 00:00:00', 0),
(77, 19, 0, '3', 'Ship to', '', 'Ship to', 30, 0, '2014-05-16 04:53:25', 0, '0000-00-00 00:00:00', 0),
(78, 20, NULL, 'B', 'Bulk', 'Bulk', '', 10, 0, '2014-05-28 01:32:05', 0, '0000-00-00 00:00:00', 0),
(79, 20, NULL, 'S', 'Small', 'Small', '', 20, 0, '2014-05-28 01:32:05', 0, '0000-00-00 00:00:00', 0),
(80, 21, NULL, '', 'retainedEarnings', '', 'Retained Earnings', 1, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:50', 0),
(81, 21, NULL, '', 'profitlostYear', '', 'Profit/Loss Year', 10, 1, '2014-06-03 09:33:20', 0, '0000-00-00 00:00:00', 0),
(82, 21, NULL, '', 'exchangeVariances', '', 'Exchange Variances Account', 20, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(83, 21, NULL, '', 'bankchargesAccount', '', 'Bank Charges Account', 30, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(84, 21, NULL, '', 'rcvacct', '', 'Receivable Account', 40, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(85, 21, NULL, '', 'saleacct', '', 'Sales Account', 50, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(86, 21, NULL, '', 'saledisacct', '', 'Sales Discount Account', 60, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(87, 21, NULL, '', 'promptpaydisacct', '', 'Prompt Payment Discount Account', 70, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(88, 21, NULL, '', 'commissionexp', '', 'Commission Expense', 80, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(89, 21, NULL, '', 'commisionpay', '', 'Commission Payable', 90, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(90, 21, NULL, '', 'freightcharges', '', 'Freight Charges', 100, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(91, 21, NULL, '', 'exchangediff', '', 'Exchange Difference', 110, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(92, 21, NULL, '', 'payAcct', '', 'Payable Account', 120, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(93, 21, NULL, '', 'payDisc', '', 'Payable Discount', 130, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(94, 21, NULL, '', 'invAcct', '', 'Inventory Account', 140, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(95, 21, NULL, '', 'cogs', '', 'C.O.G.S Account', 150, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(96, 21, NULL, '', 'invAdjAcct', '', 'Inventory Adjustment Account', 160, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(97, 21, NULL, '', 'gstInputTax', '', 'GST-Input Tax', 170, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(98, 21, NULL, '', 'gstOutTax', '', 'GST-Output Tax', 180, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(99, 21, NULL, '', 'susgstInTax', '', 'Suspense-GST Input Tax', 190, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(100, 21, NULL, '', 'susgstOuTax', '', 'Suspense-GST Output Tax', 200, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(101, 21, NULL, '', 'gstnoclaim', '', 'GST Not Claimable', 210, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(102, 21, NULL, '', 'imdutypay', '', 'Import Duty Payable', 220, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(103, 21, NULL, '', 'saletaxpay', '', 'Sale Tax Payable', 230, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(104, 21, NULL, '', 'servtaxpay', '', 'Service Tax Payable', 240, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(105, 21, NULL, '', 'zakat', '', 'Zakat Expenses', 250, 1, '2014-06-03 09:33:20', 0, '2014-06-25 04:33:21', 0),
(106, 1, 2, 'APPO', 'test2', 'test22', 'testing', 0, 0, '2014-06-06 03:28:56', 0, '0000-00-00 00:00:00', 0),
(107, 21, NULL, '', 'bank', '', 'Banking Account', 35, 0, '2014-06-25 03:25:00', 0, '2014-06-25 04:34:55', 0);

-- --------------------------------------------------------

--
-- Table structure for table `module`
--

CREATE TABLE IF NOT EXISTS `module` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `parentModuleID` int(11) NOT NULL,
  `moduleName` varchar(64) NOT NULL,
  `description` varchar(254) NOT NULL,
  `orderNo` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `module`
--

INSERT INTO `module` (`ID`, `parentModuleID`, `moduleName`, `description`, `orderNo`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 0, 'GL', 'General Ledger', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(2, 0, 'AR', 'Account Receivables', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(3, 0, 'AP', 'Account Payables', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(4, 0, 'IC', 'Inventory Control', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(5, 0, 'SO', 'Sales Order', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(6, 0, 'GST', 'Goods & Services Tax', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(7, 0, 'ZKT', 'Zakat', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(8, 0, 'PUR', 'Purchasing', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(9, 0, 'ADM', 'Admin', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00'),
(10, 0, 'STP', 'Setup', 0, 0, '2014-05-02 00:36:58', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `person`
--

CREATE TABLE IF NOT EXISTS `person` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `name` int(11) NOT NULL,
  `position` varchar(64) NOT NULL,
  `employeeCode` varchar(16) NOT NULL,
  `genderID` int(11) NOT NULL,
  `dateOfBirth` date NOT NULL,
  `dateOfJoint` date NOT NULL,
  `remaks` text NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `person_contact`
--

CREATE TABLE IF NOT EXISTS `person_contact` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `personID` int(11) NOT NULL,
  `companyID` int(11) NOT NULL,
  `contactType` varchar(32) NOT NULL,
  `contact` tinytext NOT NULL,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `supplier`
--

CREATE TABLE IF NOT EXISTS `supplier` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierName` varchar(128) NOT NULL,
  `supplierCode` varchar(8) NOT NULL,
  `supplierCompanyNo` varchar(32) NOT NULL,
  `line1` varchar(128) NOT NULL,
  `line2` varchar(128) NOT NULL,
  `line3` varchar(128) NOT NULL,
  `city` varchar(128) NOT NULL,
  `supplierPostCode` varchar(8) NOT NULL,
  `supplierStateID` int(11) NOT NULL,
  `supplierCountryID` int(11) NOT NULL,
  `attention` varchar(100) NOT NULL,
  `website` varchar(32) NOT NULL,
  `phoneNumber1` varchar(50) NOT NULL,
  `phoneNumber2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `generalNote` varchar(255) NOT NULL,
  `gstRegNo` varchar(16) NOT NULL,
  `termsID` int(11) NOT NULL,
  `creditLimit` int(8) NOT NULL,
  `creditLimitAlert` tinyint(1) NOT NULL,
  `linkedAPAccountID` int(11) NOT NULL,
  `createdDate` date NOT NULL,
  `currencyID` int(11) NOT NULL,
  `email` varchar(32) NOT NULL,
  `termstatus` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `ID` (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;

--
-- Dumping data for table `supplier`
--

INSERT INTO `supplier` (`ID`, `companyID`, `supplierName`, `supplierCode`, `supplierCompanyNo`, `line1`, `line2`, `line3`, `city`, `supplierPostCode`, `supplierStateID`, `supplierCountryID`, `attention`, `website`, `phoneNumber1`, `phoneNumber2`, `fax`, `generalNote`, `gstRegNo`, `termsID`, `creditLimit`, `creditLimitAlert`, `linkedAPAccountID`, `createdDate`, `currencyID`, `email`, `termstatus`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 'ahmad albab sdn bhd', '0', '12345-D', 'no 6 jalan melor,', 'taman melor antarabangsa,', 'simpang pulai,', 'gombak,', '68100,', 1931, 458, 'Ms Christina Lim', '0', '603-88891999', '', '603-88891999', '0', '0', 0, 0, 0, 13, '1970-01-01', 1, 'fana@yahoo.com', 0, 0, '2014-06-05 02:12:30', 0, '2014-06-17 11:05:24', 0),
(20, 1, 'Syarikat Kontena Nasional', '23100', '1234568-A', 'alamat 1', 'alamat 2', 'alamat 3', '', '', 1931, 458, 'Puan Aminah', 'website', '1244444', '', '3243242', 'general note', 'gst', 0, 0, 0, 0, '1970-01-01', 1, 'sss.aaa@hhh.my', 0, 0, '2014-06-05 02:12:30', 0, '2014-06-17 11:05:35', 0),
(23, 1, 'Microsoft', '12388', '67382-D', 'add1', 'add2', 'add3', '', '', 1925, 458, 'Datuk Asri Jamaludin', 'eee.ee.ee', '453534', '', '34534', 'general note', '45345', 0, 0, 0, 0, '2014-05-14', 2, 'sss.aaa@hhh.my', 0, 0, '2014-06-05 02:12:30', 0, '2014-06-17 11:05:46', 0),
(24, 1, 'huhu', '00', '00', '', '', '', '', '', 0, 458, '', '', '', '', '', '', '', 0, 0, 0, 0, '2014-05-14', 0, '', 0, 0, '2014-06-05 02:12:30', 0, '2014-06-24 09:56:02', 1),
(25, 27, 'Farhana ', 'A123', 'A20141', '555, JALAN SAMUDRA UTARA 1', 'TAMAN SAMUDRA', '', '', '68100', 1933, 458, '', 'www.bee.com.my', '603 61778989', '', '603 61778787', 'tet', '', 0, 0, 0, 0, '0000-00-00', 1, 'bee@gmail.com', 0, 0, '2014-06-06 10:13:09', 0, '0000-00-00 00:00:00', 0),
(26, 15, 'awan biru sdn bhd', 'SUPP1', '1234-v-0088', 'jalan awan 1', 'taman biru 2', 'kg awan biru', '', '43000', 0, 458, '', '', '', '', '', '', '', 0, 0, 0, 0, '0000-00-00', 2, '', 0, 0, '2014-06-10 09:36:09', 0, '2014-06-21 03:19:58', 0),
(27, 15, 'awan hitam sdn bhd', 'SUPP2', '12345-oo-00o--99', 'jalan awan 2', 'taman hitam 1', 'kg awan biru', '', '43000', 0, 458, '', '', '', '', '', '', '', 0, 0, 0, 258, '0000-00-00', 1, '', 0, 0, '2014-06-10 09:38:50', 0, '2014-06-21 03:20:48', 0),
(28, 15, 'asas', 'SA', 'a', 'sasas', 'asas', '', '', '', 0, 458, '', '', '', '', '', '', '', 0, 0, 0, 243, '0000-00-00', 0, '', 0, 0, '2014-06-23 02:30:58', 0, '0000-00-00 00:00:00', 0);

--
-- Triggers `supplier`
--
DROP TRIGGER IF EXISTS `trigger_default_created_date`;
DELIMITER //
CREATE TRIGGER `trigger_default_created_date` BEFORE INSERT ON `supplier`
 FOR EACH ROW if ( isnull(new.createddate) ) then
 set new.createddate=curdate();
end if
//
DELIMITER ;

-- --------------------------------------------------------

--
-- Table structure for table `supplier_address`
--

CREATE TABLE IF NOT EXISTS `supplier_address` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `addressCode` varchar(50) DEFAULT NULL,
  `addressName` varchar(128) DEFAULT NULL,
  `line1` varchar(128) DEFAULT NULL,
  `line2` varchar(128) DEFAULT NULL,
  `line3` varchar(128) DEFAULT NULL,
  `city` varchar(128) DEFAULT NULL,
  `postCode` varchar(8) DEFAULT NULL,
  `stateID` int(11) DEFAULT NULL,
  `countryID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `is_delete` smallint(16) DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;

--
-- Dumping data for table `supplier_address`
--

INSERT INTO `supplier_address` (`ID`, `companyID`, `supplierID`, `addressCode`, `addressName`, `line1`, `line2`, `line3`, `city`, `postCode`, `stateID`, `countryID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(17, 1, 24, NULL, 'billing address', 'TAMAN SAMUDERA,', '0', '', 'gombak', '68100', 0, 0, 0, '2014-05-06 02:44:24', 0, '2014-05-09 10:27:27', 0),
(18, 1, 1, NULL, 'alamt kilang', 'TAMAN SAMUDERA,', '0', '', 'gombak', '68100', 0, 0, 0, '2014-05-06 02:48:04', 0, '2014-05-08 07:11:43', 0),
(19, 1, 1, NULL, 'cawangan', 'no jalan', '0', '', 'gombak', '68100', 0, 0, 0, '2014-05-06 02:51:00', 0, '2014-05-08 07:11:57', 0),
(20, 1, 1, NULL, 'hq', 'TAMAN SAMUDERA,', '0', '', 'GOMBAK', '68100', 0, 0, 0, '2014-05-06 02:54:04', 0, '2014-05-08 07:12:01', 0),
(21, 1, 1, NULL, 'gudang', 'TAMAN SAMUDERA,', '', '', 'gombak', '68100', 0, 0, 0, '2014-05-06 03:13:15', 0, '2014-05-08 07:12:11', 0),
(22, 1, 23, NULL, '0', 'TAMAN SAMUDERA,', '0', '0', 'gombak', '68100', 0, 0, 0, '2014-05-14 02:45:26', 0, '2014-05-14 02:45:26', 0),
(23, 1, 20, '553777', NULL, 'line1', 'line2', 'line2', 'pj', '77889', 1923, 458, 0, '2014-05-14 02:28:24', 0, '2014-05-14 08:28:27', 0),
(24, 1, 1, NULL, '0', 'FAD', 'FSDGJD', 'FSDGJD', 'SSDAS', 'SDSD', 0, 0, 0, '2014-05-19 03:33:46', 0, '2014-05-19 03:33:46', 0),
(25, 0, 1, '13221', NULL, 'fad', '', '', 'fad', '21212', 1926, 458, 0, '2014-06-01 20:21:58', NULL, '2014-06-02 02:22:14', 0);

-- --------------------------------------------------------

--
-- Table structure for table `supplier_contact`
--

CREATE TABLE IF NOT EXISTS `supplier_contact` (
  `ID` int(11) NOT NULL DEFAULT '0',
  `supplierID` int(11) NOT NULL,
  `personID` int(11) NOT NULL,
  `position` varchar(32) NOT NULL,
  `is_delete` smallint(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `supplier_contact`
--

INSERT INTO `supplier_contact` (`ID`, `supplierID`, `personID`, `position`, `is_delete`) VALUES
(0, 0, 0, 'SECRETARY', 1),
(0, 0, 0, 'SECRETARY', 1),
(0, 0, 0, 'SECRETARY', 1),
(0, 0, 0, 'HELPER', 0),
(0, 0, 0, 'SECRETARY', 0);

-- --------------------------------------------------------

--
-- Table structure for table `tax_class`
--

CREATE TABLE IF NOT EXISTS `tax_class` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `shortName` varchar(10) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `taxAccount` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `tax_class`
--

INSERT INTO `tax_class` (`ID`, `code`, `shortName`, `description`, `taxAccount`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 'GST', 'GST', 'Goods And Services Tax', NULL, NULL, '2014-05-09 11:04:42', NULL, '2014-05-11 01:24:32'),
(2, 'OTH', 'OTHER TAX', 'Other Tax', NULL, NULL, '2014-05-09 11:05:22', NULL, '2014-05-09 11:05:55');

-- --------------------------------------------------------

--
-- Table structure for table `tax_group`
--

CREATE TABLE IF NOT EXISTS `tax_group` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `taxAccount` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=3 ;

--
-- Dumping data for table `tax_group`
--

INSERT INTO `tax_group` (`ID`, `code`, `description`, `taxAccount`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 'PI', 'PURCHASE/INPUT', NULL, NULL, '2014-05-09 11:06:33', NULL, '2014-05-21 08:38:43'),
(2, 'SO', 'SALES/OUTPUT', NULL, NULL, '2014-05-09 11:06:50', NULL, '2014-05-09 11:06:50');

-- --------------------------------------------------------

--
-- Table structure for table `tax_master`
--

CREATE TABLE IF NOT EXISTS `tax_master` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) DEFAULT NULL,
  `code` varchar(10) DEFAULT NULL,
  `name` varchar(128) DEFAULT NULL,
  `taxType` int(11) DEFAULT NULL,
  `taxPercentage` double DEFAULT NULL,
  `taxClass` int(11) DEFAULT NULL,
  `taxGroup` int(11) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `taxAccount` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT '0',
  `createdBy` int(11) DEFAULT '0',
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`),
  KEY `FK_tax_master_tax_class` (`taxClass`),
  KEY `FK_tax_master_tax_group` (`taxGroup`),
  KEY `FK_tax_master_tax_type` (`taxType`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;

--
-- Dumping data for table `tax_master`
--

INSERT INTO `tax_master` (`ID`, `companyID`, `code`, `name`, `taxType`, `taxPercentage`, `taxClass`, `taxGroup`, `description`, `taxAccount`, `status`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'SR', 'STANDARD RATED SUPPLIES WITH GST CHARGED', 1, 6, 1, 2, 'STANDARD RATED SUPPLIES WITH GST CHARGED', 38, 0, 0, '2014-05-10 23:56:37', NULL, '2014-05-21 08:39:47'),
(2, 1, 'DS', 'DEEMED SUPPLIES', 1, 0, 1, 2, 'DEEMED SUPPLIES', 38, 0, 0, '2014-05-10 23:56:37', NULL, '2014-05-21 08:39:48'),
(3, 1, 'ZRL', 'ZERO RATED SUPPLIES-LOCAL', 2, 0, 1, 2, 'ZERO RATED SUPPLIES-LOCAL', 224, 0, 0, '2014-05-10 23:56:37', NULL, '2014-05-21 08:39:48'),
(4, 1, 'ZRE', 'EXPORTED GOOD SUPPLIES', 3, 0, 1, 2, 'EXPORTED GOOD SUPPLIES', 38, 0, 0, '2014-05-10 19:02:03', NULL, '2014-05-21 08:39:48'),
(5, 1, 'ES43', 'INCIDENTAL EXEMPT SUPPLIES', 4, 0, 1, 2, 'INCIDENTAL EXEMPT SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:49'),
(6, 1, 'ES', 'EXEMPT SUPPLIES UNDER GST', 4, 0, 1, 2, 'EXEMPT SUPPLIES UNDER GST', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:50'),
(7, 1, 'OS', 'OUT-OF-SCOPE SUPPLIES', 5, 0, 1, 2, 'OUT-OF-SCOPE SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:50'),
(8, 1, 'RS', 'RELIEF SUPPLIES UNDER GST', 6, 0, 1, 2, 'RELIEF SUPPLIES UNDER GST', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:50'),
(9, 1, 'GS', 'DISREGARDED SUPPLIES', 7, 0, 1, 2, 'DISREGARDED SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:51'),
(10, 1, 'AJS', 'ANY ADJUSTMENT MADE TO OUTPUT TAX', 8, 6, 1, 2, 'ANY ADJUSTMENT MADE TO OUTPUT TAX', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:51'),
(11, 1, 'ST-MF', 'SALES TAX FOR GOODS MANUFACTURING ', 9, 10, 2, 2, 'SALES TAX FOR GOODS MANUFACTURING ', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:52'),
(12, 1, 'ST', 'SALES TAX FOR GENERAL', 9, 5, 2, 2, 'SALES TAX FOR GENERAL', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:52'),
(13, 1, 'SERT', 'SERVICE TAX FOR GENERAL', 10, 6, 2, 2, 'SERVICE TAX FOR GENERAL', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:53'),
(14, 1, 'TX', 'PURCHASE WITH GST INCURRED AT 6% AND DIRECTLY ATTRIBUTABLE TO TAXABLE SUPPLIES', 11, 6, 1, 2, 'PURCHASE WITH GST INCURRED AT 6% AND DIRECTLY ATTRIBUTABLE TO TAXABLE SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:53'),
(15, 1, 'IM', 'GST INCURRED FOR IMPORT OF GOODS', 11, 6, 1, 1, 'GST INCURRED FOR IMPORT OF GOODS', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:57'),
(16, 1, 'IMS', 'GST INCURRED FOR IMPORT OF SERVICES (REVERSED MECHANISM)', 11, 6, 1, 1, 'GST INCURRED FOR IMPORT OF SERVICES (REVERSED MECHANISM)', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:39:59'),
(17, 1, 'IS', 'IMPORTED UNDER SPECIAL SCHEME WITH NO GST INCURRED', 12, 0, 1, 1, 'IMPORTED UNDER SPECIAL SCHEME WITH NO GST INCURRED', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:00'),
(18, 1, 'BL', 'PURCHASE WITH GST INCURRED BUT NOT CLAIMBLE', 13, 6, 1, 1, 'PURCHASE WITH GST INCURRED BUT NOT CLAIMBLE', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:00'),
(19, 1, 'NR', 'PURCHASE FROM NON GST-REGISTERED SUPPLIER WITH NO GST INCURRED', 14, 0, 1, 1, 'PURCHASE FROM NON GST-REGISTERED SUPPLIER WITH NO GST INCURRED', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:01'),
(20, 1, 'ZP', 'PURCHASE FROM GST-REGISTERED SUPPLIER WITH NO GST INCURRED', 15, 0, 1, 1, 'PURCHASE FROM GST-REGISTERED SUPPLIER WITH NO GST INCURRED', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:01'),
(21, 1, 'EP', 'PURCHASE EXEMPTED FROM GST', 16, 0, 1, 1, 'PURCHASE EXEMPTED FROM GST', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:02'),
(22, 1, 'OP', 'PURCHASE TRANSACTIONS WHICH IS OUT OF THE SCOPE OF GST LEGISLATION', 5, 0, 1, 1, 'PURCHASE TRANSACTIONS WHICH IS OUT OF THE SCOPE', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:02'),
(23, 1, 'TX-E43', 'GST INCURRED DIRECTLY ATTRIBUTABLE TO INCIDENTAL EXEMPT SUPPLIES', 11, 6, 1, 1, 'GST INCURRED DIRECTLY ATTRIBUTABLE TO INCIDENTAL EXEMPT SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:02'),
(24, 1, 'TX-N43', 'GST  INCURRED DIRECTLY ATTRIBUTABLE TO NON-INCIDENTAL EXEMPT SUPPLIES', 11, 6, 1, 1, 'GST  INCURRED DIRECTLY ATTRIBUTABLE TO NON-INCIDENTAL EXEMPT SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:03'),
(25, 1, 'TX-RE', 'GST INCURRED THAT IS NOT DIRECTLY ATTRIBUTABLE TO TAXABLE OR EXEMPT SUPPLIES', 11, 6, 1, 1, 'GST INCURRED THAT IS NOT DIRECTLY ATTRIBUTABLE TO TAXABLE OR EXEMPT SUPPLIES', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:04'),
(26, 1, 'GP', 'PURCHASE TRANSACTION WHICH LEGISLATION', 12, 0, 1, 1, 'PURCHASE TRANSACTION WHICH LEGISLATION', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:05'),
(27, 1, 'AJP', 'ANY ADJUSTMENT MADE TO INPUT TAX', 19, 6, 1, 1, 'ANY ADJUSTMENT MADE TO INPUT TAX', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:06'),
(28, 1, 'ST-1', 'SALES TAX FOR GOODS MANUFACTURING ', 9, 10, 2, 1, 'SALES TAX FOR GOODS MANUFACTURING ', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:07'),
(29, 1, 'ST-2', 'SALES TAX FOR GENERAL', 9, 10, 2, 1, 'SALES TAX FOR GENERAL', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:08'),
(30, 1, 'SERT-1', 'SERVICE TAX FOR GENERAL', 10, 6, 2, 1, 'SERVICE TAX FOR GENERAL', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:08'),
(31, 1, 'IMPD-1', 'IMPORT DUTY FOR CUSTOMS IMPORTED GOODS', 17, 0, 2, 1, 'IMPORT DUTY FOR CUSTOMS IMPORTED GOODS', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:09'),
(32, 1, 'IMPD-2', 'IMPORT DUTY FOR CUSTOMS OPEN AP', 17, 0, 2, 1, 'IMPORT DUTY FOR CUSTOMS OPEN AP', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:10'),
(33, 1, 'IMPD-3', 'IMPORT DUTY FOR CUTOMS FRANCHAISE AP', 17, 0, 2, 1, 'IMPORT DUTY FOR CUTOMS FRANCHAISE AP', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:10'),
(34, 1, 'EXD', 'EXCISE DUTY CUSTOMS', 18, 0, 2, 1, 'EXCISE DUTY CUSTOMS', 38, 0, 0, '2014-05-12 01:36:01', NULL, '2014-05-21 08:40:11');

-- --------------------------------------------------------

--
-- Table structure for table `tax_type`
--

CREATE TABLE IF NOT EXISTS `tax_type` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `taxGroupID` int(11) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `taxAccount` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=19 ;

--
-- Dumping data for table `tax_type`
--

INSERT INTO `tax_type` (`ID`, `code`, `taxGroupID`, `description`, `taxAccount`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 'STD', 2, 'STANDARD RATED', NULL, NULL, '2014-05-09 11:04:42', NULL, '2014-05-21 10:58:02'),
(2, 'ZRS', 2, 'ZERO RATED SUPPLIES', NULL, NULL, '2014-05-09 11:05:22', NULL, '2014-05-21 10:58:06'),
(3, 'EGS', 2, 'EXPORTED GOOD SUPPLIES', NULL, NULL, '2014-05-09 11:10:04', NULL, '2014-05-21 10:58:07'),
(4, 'ESS', 2, 'EXEMPT SUPPLIES', NULL, NULL, '2014-05-09 11:10:18', NULL, '2014-05-21 10:58:09'),
(5, 'OOS', 2, 'OUT OF SCOPE', NULL, NULL, '2014-05-09 11:10:52', NULL, '2014-05-21 10:58:10'),
(6, 'RES', 2, 'RELIEF SUPPLIES', NULL, NULL, '2014-05-09 11:11:12', NULL, '2014-05-21 10:58:11'),
(7, 'DRS', 2, 'DISREGARDED SUPPLIES', NULL, NULL, '2014-05-09 11:11:47', NULL, '2014-05-21 10:58:12'),
(8, 'OTD', 2, 'OUTPUT TAX ADJUSTMENT', NULL, NULL, '2014-05-09 11:11:58', NULL, '2014-05-21 10:58:13'),
(9, 'SLT', 2, 'SALES TAX', NULL, NULL, '2014-05-09 11:12:53', NULL, '2014-05-21 10:58:15'),
(10, 'SVT', 2, 'SERVICE TAX', NULL, NULL, '2014-05-09 11:13:11', NULL, '2014-05-21 10:58:16'),
(11, 'SRA', 1, 'STANDARD RATED ACQUISITION', NULL, NULL, '2014-05-09 11:13:33', NULL, '2014-05-21 10:57:49'),
(12, 'SPS', 1, 'SPECIAL SCHEME', NULL, NULL, '2014-05-09 11:13:51', NULL, '2014-05-21 10:57:50'),
(13, 'BIT', 1, 'BLOCK INPUT TAX', NULL, NULL, '2014-05-09 11:14:09', NULL, '2014-05-21 10:57:51'),
(14, 'NGR', 1, 'NON GST REGISTERED', NULL, NULL, '2014-05-09 11:14:24', NULL, '2014-05-21 10:57:53'),
(15, 'ZRA', 1, 'ZERO RATED ACQUISITION', NULL, NULL, '2014-05-09 11:14:49', NULL, '2014-05-21 10:57:54'),
(16, 'EXA', 1, 'EXEMPT ACQUISITION', NULL, NULL, '2014-05-09 11:15:06', NULL, '2014-05-21 10:57:55'),
(17, 'IMD', 1, 'IMPORT DUTY', NULL, NULL, '2014-05-09 11:15:42', NULL, '2014-05-21 10:57:59'),
(18, 'EXD', 1, 'EXCISE DUTY', NULL, NULL, '2014-05-09 11:15:58', NULL, '2014-05-21 10:58:00');

-- --------------------------------------------------------

--
-- Table structure for table `tax_work_footer`
--

CREATE TABLE IF NOT EXISTS `tax_work_footer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `recordID` varchar(1) DEFAULT NULL COMMENT 'Must be a single character corresponding to record type. Must be ‘F’',
  `purchaseCount` int(11) DEFAULT NULL COMMENT 'Number of P records',
  `purchaseAmount` double DEFAULT NULL COMMENT 'Debit Amount',
  `purchaseAmountGST` double DEFAULT NULL COMMENT 'Purchase GST Amount GST',
  `supplyCount` int(11) DEFAULT NULL COMMENT 'Supply Count',
  `supplyAmountSum` double DEFAULT NULL COMMENT 'Sum of all supplies',
  `supplyAmountSumGst` double DEFAULT NULL COMMENT 'Sum of GST on all supplies',
  `ledgerCount` int(11) DEFAULT NULL COMMENT 'Number of L records',
  `debitSum` double DEFAULT NULL COMMENT 'Debit Sum',
  `creditSum` double DEFAULT NULL COMMENT 'Credit Sum',
  `balanceSum` double DEFAULT NULL COMMENT 'Balance Sum',
  `status` smallint(1) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tax_work_gl`
--

CREATE TABLE IF NOT EXISTS `tax_work_gl` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `recordID` varchar(1) DEFAULT NULL COMMENT 'Must be a single character corresponding to record type.Must be ‘L’',
  `transactionDate` date DEFAULT NULL COMMENT 'Format: dd/MM/yyyy',
  `Account ID` int(11) DEFAULT NULL COMMENT 'General Ledger Code for individual account',
  `Account Name` varchar(3) DEFAULT NULL COMMENT 'Name of individual General Ledger account',
  `description` varchar(128) DEFAULT NULL COMMENT 'Transaction Description',
  `name` varchar(128) DEFAULT NULL COMMENT 'Name of entity involved (if applicable)',
  `journalID` varchar(128) DEFAULT NULL COMMENT 'A unique number that can group related double entries',
  `documentID` varchar(128) DEFAULT NULL COMMENT 'Source document number to which line relates (For example, cheque number, invoice number, credit note number, trust receipt number) ',
  `type` varchar(128) DEFAULT NULL COMMENT 'Refers to type of transaction such as AR. Refers to the type of transaction such as AR, AP, Inventory, Sales, Purchases, Cash Disbursement, Cash Receipt, General Journal etc.',
  `amount_dr` double DEFAULT NULL COMMENT 'Debit Amount',
  `amount_cr` double DEFAULT NULL COMMENT 'Credit amount',
  `Balance` double DEFAULT NULL COMMENT 'Balance Amount',
  `status` smallint(1) DEFAULT NULL,
  `gafID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tax_work_header`
--

CREATE TABLE IF NOT EXISTS `tax_work_header` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `recordID` varchar(1) DEFAULT NULL COMMENT 'Must be a single character corresponding to record type. Must be ‘C’',
  `name` varchar(128) DEFAULT NULL COMMENT 'The name of the company for which this file is reporting on.',
  `BRN` varchar(128) DEFAULT NULL COMMENT 'Business registration number for company',
  `gstNo` varchar(128) DEFAULT NULL COMMENT 'Company GST number',
  `periodStart` date DEFAULT NULL COMMENT 'Filing Period Start Date Must be in format dd/MM/yyyy example: 01/12/2014’',
  `periodEnd` date DEFAULT NULL COMMENT 'Filing Period End Date Must be in format dd/MM/yyyy example: 31/12/2014’',
  `version` varchar(128) DEFAULT NULL COMMENT 'Accounting software name and version Example: XYB Accountsoft v.2.0',
  `GAFversion` varchar(128) DEFAULT NULL COMMENT 'GST Audit File (GAF) version number',
  `status` smallint(1) DEFAULT NULL,
  `gafID` smallint(1) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tax_work_purchase`
--

CREATE TABLE IF NOT EXISTS `tax_work_purchase` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `recordID` varchar(1) DEFAULT NULL COMMENT 'Must be a single character corresponding to record type. Must be ‘P’',
  `name` varchar(128) DEFAULT NULL COMMENT 'AN Name for supplier.',
  `BRN` varchar(128) DEFAULT NULL COMMENT 'BRN for company from which purchase was made.',
  `invoiceDate` date DEFAULT NULL COMMENT 'Invoice Date Format dd/MM/yyyy',
  `invoiceNo` varchar(128) DEFAULT NULL COMMENT 'Invoice Number',
  `importDeclare` varchar(128) DEFAULT NULL COMMENT 'Import Declaration Number. (e.g. Customs Form No. 1 reference',
  `invoiceLine` varchar(3) DEFAULT NULL COMMENT 'Number of Invoice Line',
  `description` varchar(128) DEFAULT NULL COMMENT 'Description for what was purchased',
  `amount` double DEFAULT NULL COMMENT 'Value of purchase excluding GST in Malaysia Ringgit.',
  `taxAmount` double DEFAULT NULL COMMENT 'Value of GST in Malaysia Ringgit.',
  `taxID` int(11) DEFAULT NULL,
  `taxCode` varchar(128) DEFAULT NULL COMMENT 'Tax code for lookup in tables. Please refer to Appendix',
  `currencyID` int(11) DEFAULT NULL,
  `currencyCode` varchar(128) DEFAULT NULL COMMENT 'ISO’s currency codes (3-letter alphabetical code) of foreign Currency. Example: USD',
  `currencyAmount` double DEFAULT NULL COMMENT 'Value of purchase excluding GST in Foreign Currency (If applicable).',
  `taxCurrencyAmount` double DEFAULT NULL COMMENT 'Value of GST in Foreign Currency (If applicable)',
  `status` smallint(2) DEFAULT NULL,
  `gafID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tax_work_sales`
--

CREATE TABLE IF NOT EXISTS `tax_work_sales` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `recordID` varchar(1) DEFAULT NULL COMMENT 'Must be a single character corresponding to record type. Must be ‘S’',
  `name` varchar(128) DEFAULT NULL COMMENT 'Name of customer.',
  `BRN` varchar(128) DEFAULT NULL COMMENT 'BRN for supplier.',
  `invoiceDate` date DEFAULT NULL COMMENT 'Invoice Date Format dd/MM/yyyy',
  `invoiceNo` varchar(128) DEFAULT NULL COMMENT 'Invoice Number',
  `invoiceLine` varchar(3) DEFAULT NULL COMMENT 'Number of Invoice Line',
  `description` varchar(128) DEFAULT NULL COMMENT 'Description for what was sold',
  `amount` double DEFAULT NULL COMMENT 'Value of supply excluding GST in Malaysia Ringgit',
  `taxAmount` double DEFAULT NULL COMMENT 'Value of GST in Malaysia Ringgit',
  `taxID` int(11) DEFAULT NULL,
  `taxCode` varchar(128) DEFAULT NULL COMMENT 'Tax code for lookup in tables. Please refer to Appendix 2Example: SR',
  `countryID` int(11) DEFAULT NULL COMMENT 'Destination of goods being exported. Example: KOREA',
  `currencyID` int(11) DEFAULT NULL,
  `currencyCode` varchar(128) DEFAULT NULL COMMENT 'ISO’s currency codes (3-letter alphabetical code) of foreign Currency. Example: USD',
  `currencyAmount` double DEFAULT NULL COMMENT 'Value of purchase excluding GST in Foreign Currency (If applicable).',
  `taxCurrencyAmount` double DEFAULT NULL COMMENT 'Value of GST in Foreign Currency (If applicable)',
  `status` smallint(1) DEFAULT NULL,
  `gafID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `tbl_department`
--

CREATE TABLE IF NOT EXISTS `tbl_department` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(18) DEFAULT NULL,
  `description` varchar(100) DEFAULT NULL,
  `dept_head` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=6 ;

--
-- Dumping data for table `tbl_department`
--

INSERT INTO `tbl_department` (`fldid`, `code`, `description`, `dept_head`) VALUES
(1, 'IS', 'Information System', 'yahaya'),
(2, 'FIN', 'Finance', NULL),
(3, 'HR', 'Human Resources', NULL),
(5, 'PUR', 'Purchasing Department', 'yahaya');

-- --------------------------------------------------------

--
-- Table structure for table `tbl_location`
--

CREATE TABLE IF NOT EXISTS `tbl_location` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `code` varchar(20) DEFAULT NULL,
  `desc` varchar(100) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `postcode` varchar(10) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `state` int(10) DEFAULT NULL,
  `country` int(10) DEFAULT NULL,
  `phone_no` varchar(25) DEFAULT NULL,
  `fax_no` varchar(25) DEFAULT NULL,
  `create_by` varchar(50) DEFAULT NULL,
  `create_date` date DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `tbl_location`
--

INSERT INTO `tbl_location` (`fldid`, `companyID`, `code`, `desc`, `address`, `postcode`, `city`, `state`, `country`, `phone_no`, `fax_no`, `create_by`, `create_date`) VALUES
(1, 1, 'MAIN OFFICE', 'MAIN OFFICE 1', 'Lot 10, Jalan Terang', '42610', 'JENJAROM', 1931, 458, '+6013555777', '+6034462889', 'yahaya', '2014-05-19'),
(2, 1, 'MAIN OFFICE 2', 'MAIN OFFICE 2', 'jalan kg air manis\r\nkg air manis\r\n', '42610', 'JENJAROM', 1931, 458, '+6013555777', '+6034462889', 'akmal', '2014-06-12'),
(3, 15, 'HQ', 'HQ MAIN OFFICE', 'no 1 persiaran utama\r\njalan merbau sempak\r\nsg buluh', '', 'PAYA JARAS', 1931, 458, '03-32136284', '', 'akmal', '2014-06-13'),
(4, 15, 'SH1', 'SHOW ROOM 1', 'no 1 jalan 1\r\noff persiaran 5\r\nkg baru', '56000', 'KUALA LUMP[UR', 1931, 458, '03-55662489', '', 'akmal', '2014-06-13'),
(5, 15, 'W1', 'WAREHOUSE 1', 'jalan setia maju 1\r\nkg maju bersama', '43000', 'SG BULUH', 0, 458, '03-998857788', '', 'akmal', '2014-06-13');

-- --------------------------------------------------------

--
-- Table structure for table `tbl_section`
--

CREATE TABLE IF NOT EXISTS `tbl_section` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(18) DEFAULT NULL,
  `department` varchar(18) DEFAULT NULL,
  `description` varchar(100) DEFAULT NULL,
  `section_head` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=4 ;

--
-- Dumping data for table `tbl_section`
--

INSERT INTO `tbl_section` (`fldid`, `code`, `department`, `description`, `section_head`) VALUES
(3, 'DC', 'IS', 'Data Center', 'yahaya');

-- --------------------------------------------------------

--
-- Table structure for table `terms`
--

CREATE TABLE IF NOT EXISTS `terms` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `termName` varchar(64) NOT NULL,
  `termDescription` varchar(255) NOT NULL,
  `dueDays` int(11) NOT NULL,
  `termStatusID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;

--
-- Dumping data for table `terms`
--

INSERT INTO `terms` (`ID`, `termName`, `termDescription`, `dueDays`, `termStatusID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(5, '30 Days', 'Payment has to be made within 30 days or late payment charge may apply', 30, 1, 1, '2014-05-09 03:02:51', 0, '2014-05-16 09:50:36', 0),
(6, '60 Days', 'Payment due in 60', 60, 0, 1, '2014-05-09 03:02:51', 0, '2014-05-09 03:25:38', 0),
(7, 'FAD', 'SDDD', 0, 1, 0, '2014-05-16 07:58:20', 0, '2014-05-16 09:51:01', 0),
(8, 'FADDDDD', 'SDDD', 0, 1, 0, '2014-05-16 10:12:44', 0, '2014-06-06 09:30:30', 0),
(9, 'FAD', 'SDDD', 0, 1, 0, '2014-05-16 10:13:09', 0, '2014-05-16 11:35:55', 1),
(10, 'FADD', 'SDDD', 0, 1, 0, '2014-05-16 10:22:02', 0, '2014-05-16 11:35:49', 1),
(11, 'FADDD', 'SDDD', 0, 1, 0, '2014-05-16 10:24:10', 0, '2014-05-16 11:33:30', 1),
(12, 'HEHEHE', 'SDDD', 0, 1, 0, '2014-05-16 10:29:48', 0, '2014-05-16 10:49:01', 1),
(13, 'SSA', 'SDDD', 0, 1, 0, '2014-05-16 10:30:59', 0, '2014-05-16 10:47:32', 1),
(14, 'SSAF', 'SDDD', 0, 1, 0, '2014-05-16 10:31:12', 0, '2014-05-16 10:47:28', 1),
(15, 'FSFAS', 'SDDD', 0, 1, 0, '2014-05-16 10:35:54', 0, '2014-05-16 11:33:23', 1),
(16, 'DDSFSAF', 'SDDD', 0, 1, 0, '2014-05-16 10:37:05', 0, '2014-05-16 11:13:37', 1);

-- --------------------------------------------------------

--
-- Table structure for table `user_module_access`
--

CREATE TABLE IF NOT EXISTS `user_module_access` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `userID` int(11) NOT NULL,
  `moduleID` int(11) NOT NULL,
  `transaction` smallint(2) NOT NULL DEFAULT '0',
  `reports` smallint(2) NOT NULL DEFAULT '0',
  `setup` smallint(2) NOT NULL DEFAULT '0',
  `accessRight` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `user_module_access`
--

INSERT INTO `user_module_access` (`ID`, `userID`, `moduleID`, `transaction`, `reports`, `setup`, `accessRight`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-02 01:33:50'),
(2, 1, 2, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-22 09:30:44'),
(3, 1, 3, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-04-30 06:56:13'),
(4, 1, 4, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-02 03:41:53'),
(5, 1, 5, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-01 02:09:24'),
(6, 1, 6, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-09 11:38:29'),
(7, 1, 7, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-06-24 04:22:30'),
(8, 1, 8, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-16 04:18:06'),
(9, 1, 9, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-02 09:49:12'),
(10, 1, 10, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-02 04:57:50'),
(11, 16, 1, 1, 1, 1, 0, 0, '2014-05-02 03:02:45', 0, '0000-00-00 00:00:00'),
(12, 16, 2, 1, 1, 1, 0, 0, '2014-05-02 03:02:59', 0, '0000-00-00 00:00:00'),
(13, 16, 3, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-04-30 06:56:13'),
(14, 16, 4, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-06 10:04:47'),
(15, 16, 5, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-01 02:09:24'),
(16, 16, 6, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-06 09:48:10'),
(17, 16, 7, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-06 10:05:03'),
(18, 16, 8, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-08 07:55:27'),
(19, 16, 9, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-06 10:07:12'),
(20, 16, 10, 1, 1, 1, 0, 0, '2014-05-02 01:30:17', 0, '2014-05-02 04:56:38');

-- --------------------------------------------------------

--
-- Stand-in structure for view `view_customer_aging`
--
CREATE TABLE IF NOT EXISTS `view_customer_aging` (
`customerID` int(11)
,`current` double
,`month1` double
,`month2` double
,`month3` double
,`month4` double
,`month5` double
,`month6` double
,`month7` double
,`month8` double
,`month9` double
,`month10` double
,`month11` double
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_customer_statement`
--
CREATE TABLE IF NOT EXISTS `view_customer_statement` (
`ID` int(11)
,`parent` int(11)
,`companyID` int(11)
,`customerID` int(11)
,`transType` varchar(10)
,`transDate` date
,`refNo` varchar(32)
,`formNo` varchar(42)
,`dr` double
,`cr` double
,`seq` bigint(20)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_gaf`
--
CREATE TABLE IF NOT EXISTS `view_gaf` (
`companyID` int(11)
,`col1` varchar(1)
,`col2` varchar(128)
,`col3` varchar(32)
,`col4` varchar(10)
,`col5` varchar(42)
,`col6` varchar(25)
,`col7` text
,`col8` text
,`col9` double
,`col10` varchar(22)
,`col11` varchar(45)
,`col12` varchar(5)
,`col13` double
,`col14` double
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_inventory_statement`
--
CREATE TABLE IF NOT EXISTS `view_inventory_statement` (
`companyID` int(11)
,`transactionDate` date
,`itemID` int(11)
,`name` varchar(64)
,`supplierCustomer` varchar(128)
,`transactionCode` bigint(20)
,`transactionType` varchar(15)
,`formNo` varchar(42)
,`locationID` int(11)
,`location` varchar(100)
,`unitOfMeasure` varchar(50)
,`quantityIn` double
,`quantityOut` double
,`updateable` int(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_supplier_aging`
--
CREATE TABLE IF NOT EXISTS `view_supplier_aging` (
`supplierID` int(11)
,`current` double
,`month1` double
,`month2` double
,`month3` double
,`month4` double
,`month5` double
,`month6` double
,`month7` double
,`month8` double
,`month9` double
,`month10` double
,`month11` double
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_supplier_statement`
--
CREATE TABLE IF NOT EXISTS `view_supplier_statement` (
`ID` int(11)
,`parent` int(11)
,`companyID` int(11)
,`supplierID` int(11)
,`transDate` date
,`refNo` varchar(32)
,`formNo` varchar(42)
,`dr` double
,`cr` double
,`seq` bigint(20)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ap_creditnote`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ap_creditnote` (
`creditnoteID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`supplierID` int(11)
,`ID` int(11)
,`supplierInvoiceNo` varchar(32)
,`itemID` int(11)
,`itemName` varchar(82)
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` bigint(11)
,`crAccountID` bigint(11)
,`drTaxAccountID` bigint(11)
,`crTaxAccountID` bigint(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ap_debitnote`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ap_debitnote` (
`debitnoteID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`supplierID` int(11)
,`ID` int(11)
,`supplierInvoiceNo` varchar(32)
,`itemID` int(11)
,`itemName` varchar(82)
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` bigint(11)
,`crAccountID` bigint(11)
,`drTaxAccountID` bigint(11)
,`crTaxAccountID` bigint(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ap_invoice`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ap_invoice` (
`invoiceID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`supplierID` int(11)
,`lineNo` bigint(20)
,`itemID` int(11)
,`itemName` varchar(82)
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` int(11)
,`crAccountID` int(11)
,`drTaxAccountID` int(11)
,`crTaxAccountID` int(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ar_creditnote`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ar_creditnote` (
`salesinvoiceID` int(11)
,`creditnoteID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`customerID` int(11)
,`salesInvoiceNo` varchar(42)
,`lineNo` int(11)
,`itemID` int(11)
,`itemName` varchar(82)
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` varchar(11)
,`crAccountID` bigint(11)
,`drTaxAccountID` varchar(11)
,`crTaxAccountID` bigint(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ar_debitnote`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ar_debitnote` (
`salesinvoiceID` int(11)
,`debitnoteID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`customerID` int(11)
,`salesInvoiceNo` varchar(42)
,`lineNo` int(11)
,`itemID` int(11)
,`itemName` varchar(82)
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` varchar(11)
,`crAccountID` bigint(11)
,`drTaxAccountID` varchar(11)
,`crTaxAccountID` bigint(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ar_invoice`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ar_invoice` (
`invoiceID` int(11)
,`formNo` varchar(42)
,`lineNo` int(11)
,`companyID` int(11)
,`customerID` int(11)
,`itemID` int(11)
,`itemName` mediumtext
,`amountExcludedtax` double
,`taxid` int(11)
,`taxamount` double
,`drAccountID` int(11)
,`crAccountID` varchar(11)
,`drTaxAccountID` int(11)
,`crTaxAccountID` varchar(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_ar_payment`
--
CREATE TABLE IF NOT EXISTS `view_unpost_ar_payment` (
`paymentID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`customerID` int(11)
,`referenceNo` int(11)
,`paymentDetailID` int(11)
,`salesInvoiceNo` varchar(42)
,`amtPaid_amtAppl` double
,`discount_bankCharges` double
,`drAccountID` varchar(11)
,`crAccountID` binary(0)
,`drDiscountAccountID` varchar(11)
,`crDiscountAccountID` bigint(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_other_payment`
--
CREATE TABLE IF NOT EXISTS `view_unpost_other_payment` (
`paymentID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`supplierID` binary(0)
,`purchaseInvoiceID` binary(0)
,`paymentDetailID` int(11)
,`supplierInvoiceNo` binary(0)
,`lineNo` int(11)
,`itemdescription` text
,`amtPaid_amtAppl` double
,`discount_bankCharges` binary(0)
,`drAccountID` int(11)
,`crAccountID` int(11)
,`drDiscountAccountID` int(11)
,`crDiscountAccountID` int(11)
);
-- --------------------------------------------------------

--
-- Stand-in structure for view `view_unpost_payment`
--
CREATE TABLE IF NOT EXISTS `view_unpost_payment` (
`paymentID` int(11)
,`formNo` varchar(42)
,`companyID` int(11)
,`supplierID` int(11)
,`purchaseInvoiceID` int(11)
,`paymentDetailID` int(11)
,`supplierInvoiceNo` varchar(32)
,`amtPaid_amtAppl` double
,`discount_bankCharges` double
,`drAccountID` int(11)
,`crAccountID` int(11)
,`drDiscountAccountID` int(11)
,`crDiscountAccountID` int(11)
);
-- --------------------------------------------------------

--
-- Table structure for table `zakat_center`
--

CREATE TABLE IF NOT EXISTS `zakat_center` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `shortName` varchar(12) NOT NULL DEFAULT '0',
  `name` varchar(128) NOT NULL,
  `line1` varchar(128) NOT NULL,
  `line2` varchar(128) NOT NULL,
  `line3` varchar(128) NOT NULL,
  `city` varchar(64) NOT NULL,
  `postCode` varchar(8) NOT NULL,
  `stateID` int(11) NOT NULL,
  `countryID` int(11) NOT NULL,
  `noTel` varchar(50) NOT NULL,
  `noFax` varchar(50) NOT NULL,
  `email` varchar(128) NOT NULL,
  `website` varchar(128) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `createdBy` int(11) NOT NULL,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT AUTO_INCREMENT=3 ;

--
-- Dumping data for table `zakat_center`
--

INSERT INTO `zakat_center` (`ID`, `shortName`, `name`, `line1`, `line2`, `line3`, `city`, `postCode`, `stateID`, `countryID`, `noTel`, `noFax`, `email`, `website`, `createdTS`, `createdBy`, `updatedBy`, `updatedTS`) VALUES
(1, 'LZS', 'Lembaga Zakat Selangor', '3-01-1, Presint ALAMi,', 'Pusat Perniagaan Worldwide 2, ', 'Persiaran Akuatik, Seksyen 13, ', 'Shah Alam', '40100', 1931, 458, '03-5522 7700', '03-5522 7722', '', 'http://www.e-zakat.com.my', '2014-06-25 01:40:07', 1, 0, '2014-06-25 01:40:07'),
(2, 'PPZ', 'Pusat Pungutan Zakat, Majlis Agama Islam Wilayah Persekutuan', 'xx', '', '', 'Kuala Lumpur', '12345678', 1933, 458, '+603.9289.5757', '+603.9289.5758', 'info@zakat.com.my', 'http://www.zakat.com.my/', '2014-06-25 01:43:12', 1, 0, '2014-06-25 01:43:12');

-- --------------------------------------------------------

--
-- Table structure for table `zakat_details`
--

CREATE TABLE IF NOT EXISTS `zakat_details` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL DEFAULT '1',
  `groupID` int(11) DEFAULT NULL,
  `acctID` int(11) DEFAULT NULL,
  `year` varchar(4) DEFAULT NULL,
  `totalAmount` double DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `zakat_group`
--

CREATE TABLE IF NOT EXISTS `zakat_group` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL DEFAULT '1',
  `name` varchar(50) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `parentID` int(11) DEFAULT '0',
  `sequence` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=10 ;

--
-- Dumping data for table `zakat_group`
--

INSERT INTO `zakat_group` (`ID`, `companyID`, `name`, `description`, `parentID`, `sequence`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'Current Assets', 'Current Assets', 0, 1, 1, '2014-06-24 04:47:41', NULL, '2014-06-24 04:53:16'),
(2, 1, 'Current Liability', 'Current Liability', 0, 2, 1, '2014-06-24 04:48:46', NULL, '2014-06-24 04:53:17'),
(3, 1, 'Cash', 'Cash in hand & cash in bank', 1, 1, 1, '2014-06-24 04:49:39', NULL, '2014-06-24 04:50:54'),
(4, 1, 'Receivables', 'Account Receivables', 1, 2, 1, '2014-06-24 04:50:31', NULL, '2014-06-24 04:51:52'),
(5, 1, 'Inventory', 'Inventory', 1, 3, 1, '2014-06-24 04:51:09', NULL, '2014-06-24 04:51:30'),
(6, 1, 'Payables', 'Account Payables', 2, 1, 1, '2014-06-24 04:51:48', NULL, '2014-06-24 04:52:05'),
(7, 1, 'Accruals', 'Accruals', 2, 2, 1, '2014-06-24 04:52:26', NULL, '2014-06-24 04:52:37'),
(8, 1, 'IncomeTax', 'Income Tax Not Paid', 2, 3, 1, '2014-06-24 08:26:47', NULL, '2014-06-24 08:26:47');

-- --------------------------------------------------------

--
-- Table structure for table `zakat_group_details`
--

CREATE TABLE IF NOT EXISTS `zakat_group_details` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL DEFAULT '1',
  `groupID` int(11) DEFAULT NULL,
  `acctID` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=11 ;

--
-- Dumping data for table `zakat_group_details`
--

INSERT INTO `zakat_group_details` (`ID`, `companyID`, `groupID`, `acctID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(2, 1, 3, 23, 1, '2014-06-24 11:10:20', NULL, '2014-06-24 11:10:20'),
(3, 1, 3, 24, 1, '2014-06-24 11:11:08', NULL, '2014-06-24 11:11:08'),
(4, 1, 4, 20, 1, '2014-06-24 11:23:55', NULL, '2014-06-24 11:23:55'),
(5, 1, 4, 27, 1, '2014-06-24 11:24:03', NULL, '2014-06-24 11:24:03'),
(6, 1, 5, 25, 1, '2014-06-24 11:24:19', NULL, '2014-06-24 11:24:19'),
(7, 1, 6, 35, 1, '2014-06-24 11:24:31', NULL, '2014-06-24 11:24:31'),
(8, 1, 6, 36, 1, '2014-06-24 11:24:40', NULL, '2014-06-24 11:24:40'),
(9, 1, 7, 44, 1, '2014-06-24 11:25:00', NULL, '2014-06-24 11:25:00'),
(10, 1, 7, 43, 1, '2014-06-24 11:25:08', NULL, '2014-06-24 11:25:08');

-- --------------------------------------------------------

--
-- Table structure for table `zakat_nisab`
--

CREATE TABLE IF NOT EXISTS `zakat_nisab` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL DEFAULT '0',
  `centerID` int(11) DEFAULT NULL,
  `year` year(4) DEFAULT NULL,
  `nisab` double DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  `updatedTS` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=4 ;

--
-- Dumping data for table `zakat_nisab`
--

INSERT INTO `zakat_nisab` (`ID`, `companyID`, `centerID`, `year`, `nisab`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, 2014, 12223, 1, '2014-06-25 03:05:21', NULL, '2014-06-25 03:24:00'),
(2, 1, 1, 2013, 16548, 1, '2014-06-25 03:05:54', NULL, '2014-06-25 03:23:48');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_acct_group`
--

CREATE TABLE IF NOT EXISTS `_ref_acct_group` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `acctTypeID` int(11) NOT NULL,
  `acctGroupName` varchar(128) NOT NULL,
  `acctCode` char(9) NOT NULL,
  `orderNo` int(11) NOT NULL,
  `parentID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  KEY `ID` (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;

--
-- Dumping data for table `_ref_acct_group`
--

INSERT INTO `_ref_acct_group` (`ID`, `acctTypeID`, `acctGroupName`, `acctCode`, `orderNo`, `parentID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'CapitalRetainedEarnings', '', 45, 0, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(2, 1, 'FixedAssets', '', 10, 29, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(3, 1, 'CurrentAssets', '', 30, 29, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(4, 2, 'CurrentLiabilities', '', 40, 39, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(5, 2, 'OtherLiabilites', '', 20, 30, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(6, 2, 'LongTermLiabilities', '', 50, 30, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(7, 3, 'revenue', '', 110, 33, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(8, 3, 'COS', '', 120, 33, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(9, 3, 'othersincome', '', 200, 35, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(10, 4, 'operatingexpenses', '', 220, 35, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(11, 4, 'othersexpenses', '', 310, 35, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(12, 4, 'taxation', '', 400, 38, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(29, 1, 'Assets', '', 0, 39, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(30, 1, 'Liabilities', '', 50, 0, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(31, 1, 'OthersAssets', '', 20, 29, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(32, 4, 'othercomprehensiveincome', '', 500, 38, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(33, 3, 'grossprofit', '', 100, 34, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(34, 3, 'operatingprofit', '', 10, 37, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(35, 4, 'operatingincome', '', 0, 34, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(36, 4, 'financeincome', '', 20, 37, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(37, 4, 'profitNlossb4tax', '', 30, 38, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(38, 4, 'currentyear', '', 10, 0, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00'),
(39, 1, 'NetCurrent', '', 0, 0, 1, '2014-05-30 07:47:09', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_acct_group_bakup`
--

CREATE TABLE IF NOT EXISTS `_ref_acct_group_bakup` (
  `ID` int(11) NOT NULL DEFAULT '0',
  `acctTypeID` int(11) NOT NULL,
  `acctGroupName` varchar(128) NOT NULL,
  `acctCode` char(9) NOT NULL,
  `orderNo` int(11) NOT NULL,
  `parentID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `_ref_acct_group_bakup`
--

INSERT INTO `_ref_acct_group_bakup` (`ID`, `acctTypeID`, `acctGroupName`, `acctCode`, `orderNo`, `parentID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'Capital/Retained Earnings', '', 10, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(2, 1, 'Fixed Assets', '', 20, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(3, 1, 'Current Assets', '', 30, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(4, 2, 'Current Liabilities', '', 100, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(5, 2, 'Other Liabilites', '', 110, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(6, 2, 'Long-Term Liabilities', '', 120, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(7, 3, 'Revenue', '', 200, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(8, 3, 'Cost of Sales', '', 210, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(9, 3, 'Other Income', '', 220, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(10, 4, 'Expenses', '', 300, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(11, 4, 'Other Expenses', '', 310, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00'),
(12, 4, 'Taxation', '', 320, 0, 1, '2014-05-06 02:27:15', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_acct_type`
--

CREATE TABLE IF NOT EXISTS `_ref_acct_type` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `acctTypeName` varchar(128) NOT NULL,
  `acctClass` smallint(6) NOT NULL COMMENT '0=Balance Shit, 1=Profit and Lost',
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `_ref_acct_type`
--

INSERT INTO `_ref_acct_type` (`ID`, `acctTypeName`, `acctClass`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 'Assets', 0, 1, '2014-05-06 01:43:31', 0, '0000-00-00 00:00:00'),
(2, 'Liability', 0, 1, '2014-05-06 01:43:31', 0, '0000-00-00 00:00:00'),
(3, 'Income', 1, 1, '2014-05-06 01:43:31', 0, '0000-00-00 00:00:00'),
(4, 'Expences', 1, 1, '2014-05-06 01:43:31', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_business_type`
--

CREATE TABLE IF NOT EXISTS `_ref_business_type` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `industryID` int(11) NOT NULL,
  `name` varchar(128) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=27 ;

--
-- Dumping data for table `_ref_business_type`
--

INSERT INTO `_ref_business_type` (`ID`, `industryID`, `name`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'Manufacturing', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(2, 2, 'Audio Visual', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(3, 2, 'Bakery', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(4, 2, 'Cafe', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(5, 2, 'Car Dealer', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(6, 2, 'Furniture Dealer', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(7, 2, 'Gift Shop', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(8, 2, 'Hardware Store', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(9, 2, 'Restaurant', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(10, 2, 'Video Store', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(11, 3, 'Accounting Firm', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(12, 3, 'Advertising Agency', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(13, 3, 'Architect', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(14, 3, 'Banquet Facilty', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(15, 3, 'Beauty Salon', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(16, 3, 'Cleaning Services', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(17, 3, 'Construction Company', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(18, 3, 'Education Institution', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(19, 3, 'Financial Services', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(20, 3, 'Insurance Agency', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(21, 3, 'Legal Firm', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(22, 3, 'Non-profit Organization', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(23, 3, 'Travel Agency', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(24, 4, 'Partnership', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(25, 4, 'sole Proprietorship', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00'),
(26, 4, 'Wholesale Business', 1, '2014-05-06 01:32:56', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_chart_of_acct`
--

CREATE TABLE IF NOT EXISTS `_ref_chart_of_acct` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `businessTypeID` int(11) NOT NULL,
  `acctGroupID` int(11) NOT NULL,
  `acctCode` char(9) NOT NULL,
  `parentID` int(11) NOT NULL,
  `acctName` varchar(128) NOT NULL,
  `acctDescription` varchar(128) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=303 ;

--
-- Dumping data for table `_ref_chart_of_acct`
--

INSERT INTO `_ref_chart_of_acct` (`ID`, `businessTypeID`, `acctGroupID`, `acctCode`, `parentID`, `acctName`, `acctDescription`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 1, '100000000', 0, 'Owner''s/Shareholder''s capital', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(2, 1, 1, '120000000', 0, 'Retained Earnings-Prior Year', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(3, 1, 1, '130000000', 0, 'Current Year Earnings', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(4, 1, 2, '200000000', 0, 'Fixed Assets', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(5, 1, 2, '200010000', 4, 'Manufacturing Plant', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(6, 1, 2, '200010010', 5, 'Manufacturing Plant at Cost', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(7, 1, 2, '200010020', 5, 'Manufacturing Plant Accum Dep''n', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(8, 1, 2, '200020000', 4, 'Manufacturing Equipment', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(9, 1, 2, '200020010', 8, 'Manufacturing Equipment at Cost', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(10, 1, 2, '200020020', 8, 'Manufacturing Equipment Accum Dep''n', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(11, 1, 2, '200030000', 4, 'Furniture & Fixtures', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(12, 1, 2, '200030010', 11, 'Furn & Fixtures at Cost', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(13, 1, 2, '200030020', 11, 'Furn & Fixtures Accum Dep''n', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(14, 1, 2, '200040000', 4, 'Office Equipment', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(15, 1, 2, '200040010', 14, 'Office Equipment at Cost', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(16, 1, 2, '200040020', 14, 'Office Equipment Accum Dep''n', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(17, 1, 2, '200050000', 4, 'Motor Vehicles', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(18, 1, 2, '200050010', 17, 'Motor Vehicles at Cost', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(19, 1, 2, '200050020', 17, 'Motor Vehicles Accum Dep''n', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(20, 1, 3, '210000000', 0, 'Trade Receivable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(21, 1, 3, '220000000', 0, 'Cash and Bank Balances', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(22, 1, 3, '220010000', 21, 'Bank', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(23, 1, 3, '220020000', 21, 'Cash in Hand', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(24, 1, 3, '220030000', 21, 'Petty Cash''s', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(25, 1, 3, '230000000', 0, 'Inventories', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(26, 1, 3, '230010000', 25, 'Stock of Work in Progress', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(27, 1, 3, '240000000', 0, 'Other Receivables', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(28, 1, 3, '250000000', 0, 'Prepayments and Deposits', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(29, 1, 3, '250010000', 28, 'Prepayments', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(30, 1, 3, '250020000', 28, 'Deposits Paid', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(31, 1, 3, '260000000', 0, 'Tax Claimable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(32, 1, 3, '260010000', 31, 'GST Input Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(33, 1, 3, '260011000', 31, 'Provision for GST Non-Claimable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(34, 1, 3, '260020000', 31, 'Suspense GST - Input Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(35, 1, 4, '300000000', 0, 'Trade Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(36, 1, 4, '320000000', 0, 'Other Payables', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(37, 1, 4, '330000000', 0, 'Tax Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(38, 1, 4, '330010000', 37, 'GST Output Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(39, 1, 4, '330020000', 37, 'Suspense GST - Output Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(40, 1, 4, '330030000', 37, 'Import Duty Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(41, 1, 4, '330040000', 37, 'Sales Tax Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(42, 1, 4, '330050000', 37, 'Service Tax Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(43, 1, 4, '340000000', 0, 'Accruals', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(44, 1, 4, '340010000', 43, 'Accrued Payroll', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(45, 1, 4, '340020000', 43, 'Payroll Deductions', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(46, 1, 4, '340030000', 43, 'PAYE Tax Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(47, 1, 4, '340040000', 43, 'Commission Payable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(48, 1, 4, '350000000', 0, 'Client Deposits', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(49, 1, 5, '360000000', 0, 'Deffered Tax Liabilities', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(50, 1, 6, '370000000', 0, 'Borrowing', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(51, 1, 6, '370010000', 50, 'Bank Loan', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(52, 1, 6, '370080000', 50, 'Other Long-Term Liabilities', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(53, 1, 7, '400000000', 0, 'Sales', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(54, 1, 7, '400010000', 53, 'Sales-Baked Items', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(55, 1, 7, '400020000', 53, 'Sales-Novelty Items', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(56, 1, 7, '480000000', 0, 'Miscellaneous Income', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(57, 1, 8, '500000000', 0, 'Cost of Goods Sold', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(58, 1, 8, '500010000', 57, 'Baked Items', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(59, 1, 8, '500020000', 57, 'Novelty Items', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(60, 1, 8, '510000000', 0, 'Purchase Price Variance', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(61, 1, 8, '560000000', 0, 'Freight', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(62, 1, 8, '570000000', 0, 'Inventory Adjustment Account', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(63, 1, 8, '580000000', 0, 'Commission Expense', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(64, 1, 9, '710000000', 0, 'Discount Received', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(65, 1, 9, '711000000', 0, 'Interest Income', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(66, 1, 9, '712000000', 0, 'Late Fees Collected', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(67, 1, 9, '713000000', 0, 'Freight Collected', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(68, 1, 10, '810000000', 0, 'Administration Expenses', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(69, 1, 10, '810011100', 68, 'Accounting Fees', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(70, 1, 10, '810011200', 68, 'Legal Fees', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(71, 1, 10, '810014000', 68, 'Dues & Subscriptions', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(72, 1, 10, '810015000', 68, 'Office Supplies', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(73, 1, 10, '810016000', 68, 'Freight', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(74, 1, 10, '810017000', 68, 'Late Payment Charges', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(75, 1, 10, '810019000', 68, 'Advertising & Promotion Exp', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(76, 1, 10, '810019020', 75, 'In-store Promotions', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(77, 1, 10, '810020000', 68, 'Depreciation Expense', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(78, 1, 10, '810040000', 68, 'GST- Non Claimable', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(79, 1, 10, '810050000', 68, 'Service Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(80, 1, 10, '820000000', 0, 'Operation Expenses', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(81, 1, 10, '820011000', 80, 'Cleaning	Expenses', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(82, 1, 10, '820012000', 80, 'Postage & Delivery', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(83, 1, 10, '820013000', 80, 'Printing', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(84, 1, 10, '820014000', 80, 'Rent', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(85, 1, 10, '820015000', 80, 'Store Supplies', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(86, 1, 10, '820016000', 80, 'Telephone', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(87, 1, 10, '820017000', 80, 'Water', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(88, 1, 10, '820018000', 80, 'Shrinkage/Spoilage', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(89, 1, 10, '820019000', 80, 'Employment Expenses', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(90, 1, 10, '820019010', 80, 'Fringe Benefits Tax', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(91, 1, 10, '820019020', 80, 'Staff Amenities ', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(92, 1, 10, '820019030', 80, 'Wages & Salaries ', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(93, 1, 10, '820019040', 80, 'Workers'' Compensation', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(94, 1, 10, '820019050', 80, 'Other Employment Expenses', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(95, 1, 10, '820020000', 80, 'Uniforms & Laundry', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(96, 1, 10, '830000000', 0, 'Interest & Bank Charges', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(97, 1, 10, '840000000', 0, 'Discounts Given', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(98, 1, 10, '841000000', 0, 'Prompt Payment Discount', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(99, 1, 10, '850000000', 0, 'Zakat Expense', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(100, 1, 11, '860000000', 0, 'Bad Debt Expense', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(101, 1, 11, '870000000', 0, 'Exchange Difference', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(102, 1, 12, '860000000', 0, 'Income Tax Expense', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(103, 1, 10, '810019010', 75, 'Advertising', '', 1, '2014-05-06 04:22:45', 0, '0000-00-00 00:00:00'),
(104, 2, 1, '120000000', 0, 'Retained Earnings-Prior Year', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(105, 2, 1, '130000000', 0, 'Current Year Earnings', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(106, 2, 2, '200000000', 0, 'Fixed Assets', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(107, 2, 2, '200010000', 106, 'Buildings & Improvements', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(108, 2, 2, '200010010', 107, 'Bldgs & Imprv at Cost', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(109, 2, 2, '200010020', 107, 'Bldgs & Imprv Accum Dep''n', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(110, 2, 2, '200020000', 106, 'Production Equipment', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(111, 2, 2, '200020010', 110, 'Production Equipment at Cost', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(112, 2, 2, '200020020', 110, 'Production Equipment Accum Dep''n', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(113, 2, 2, '200030000', 106, 'Furniture and Fixtures', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(114, 2, 2, '200030010', 113, 'Furniture & Fixtures at Cost', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(115, 2, 2, '200030020', 113, 'Furniture & Fixtures Accum Dep''n', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(116, 2, 2, '200040000', 106, 'Motor Vehicles', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(117, 2, 2, '200040010', 116, 'Motor Vehicles at Cost', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(118, 2, 2, '200040020', 116, 'Motor Vehicles Accum Dep''n', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(119, 2, 2, '200050000', 106, 'Leasehold Improvements', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(120, 2, 2, '200050010', 119, 'Improvements at Cost', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(121, 2, 2, '200050020', 119, 'Improvements Amortisation', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(122, 2, 3, '210000000', 0, 'Trade Receivable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(123, 2, 3, '220000000', 0, 'Cash and Bank Balances', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(124, 2, 3, '220010000', 123, 'Bank', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(125, 2, 3, '220020000', 123, 'Cash in Hand', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(126, 2, 3, '220030000', 123, 'Petty Cash', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(127, 2, 3, '230000000', 0, 'Inventories', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(128, 2, 3, '230010000', 128, 'Stock of Work in Progress', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(129, 2, 3, '240000000', 0, 'Other Receivables', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(130, 2, 3, '250000000', 0, 'Prepayments and Deposits', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(131, 2, 3, '250010000', 130, 'Prepayments', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(132, 2, 3, '250020000', 130, 'Deposits Paid', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(133, 2, 3, '260000000', 0, 'Tax Claimable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(134, 2, 3, '260010000', 133, 'GST Input Tax', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(135, 2, 3, '260011000', 133, 'Provision for GST Non-Claimable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(136, 2, 3, '260020000', 133, 'Suspense GST - Input Tax', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(137, 2, 4, '300000000', 0, 'Trade Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(138, 2, 4, '320000000', 0, 'Other Payables', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(139, 2, 4, '330000000', 0, 'Tax Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(140, 2, 4, '330010000', 139, 'GST Output Tax', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(141, 2, 4, '330020000', 139, 'Suspense GST - Output Tax', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(142, 2, 4, '330030000', 139, 'Import Duty Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(143, 2, 4, '330040000', 139, 'Sales Tax Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(144, 2, 4, '330050000', 139, 'Service Tax Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(145, 2, 4, '340000000', 0, 'Accruals', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(146, 2, 4, '340010000', 145, 'Accrued Payroll', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(147, 2, 4, '340020000', 145, 'Payroll Deductions Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(148, 2, 4, '340030000', 145, 'PAYE Tax Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(149, 2, 4, '340040000', 145, 'Commission Payable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(150, 2, 4, '350000000', 0, 'Client Deposits', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(151, 2, 5, '360000000', 0, 'Deffered Tax Liabilities', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(152, 2, 6, '370000000', 0, 'Borrowing', '', 1, '2014-05-06 07:07:01', 0, '2014-05-06 07:39:30'),
(153, 2, 6, '370010000', 152, 'Bank Loans', '', 1, '2014-05-06 07:07:01', 0, '2014-05-06 07:39:36'),
(154, 2, 6, '370080000', 152, 'Other Long-Term Liabilities', '', 1, '2014-05-06 07:07:01', 0, '2014-05-06 07:39:40'),
(155, 2, 7, '400000000', 0, 'Sales', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(156, 2, 7, '410000000', 0, 'Audio Equip Rental Income', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(157, 2, 7, '420000000', 0, 'Video Equip Rental Income', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(158, 2, 7, '430000000', 0, 'Other Service Fees', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(159, 2, 7, '460000000', 0, 'Miscellaneous Income', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(160, 2, 8, '500000000', 0, 'Cost of Goods Sold', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(161, 2, 8, '500010000', 160, 'Purchases - Audio Equip', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(162, 2, 8, '500020000', 160, 'Purchases - Video Equip', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(163, 2, 8, '510000000', 0, 'Purchase Price Variance', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(164, 2, 8, '560000000', 0, 'Freight', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(165, 2, 8, '570000000', 0, 'Inventory Adjustment Account', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(166, 2, 8, '580000000', 0, 'Commission Expense', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(167, 2, 9, '710000000', 0, 'Discount Received', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(168, 2, 9, '711000000', 0, 'Interest Income', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(169, 2, 9, '712000000', 0, 'Late Fees Collected', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(170, 2, 9, '713000000', 0, 'Freight Collected', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(171, 2, 10, '810000000', 0, 'Administration Expenses', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(172, 2, 10, '810010000', 171, 'Accounting Fees', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(173, 2, 10, '810011000', 171, 'Legal Fees', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(174, 2, 10, '810012000', 171, 'Postage & Delivery', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(175, 2, 10, '810013000', 171, 'Office Supplies', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(176, 2, 10, '810014000', 171, 'Dues & Subscriptions', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(177, 2, 10, '810015000', 171, 'Telephone', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(178, 2, 10, '810016000', 171, 'Advertising', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(179, 2, 10, '810017000', 171, 'Maintenance & Repairs', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(180, 2, 10, '810018000', 171, 'Freight', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(181, 2, 10, '810019000', 171, 'Late Payment Charges', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(182, 2, 10, '810020000', 171, 'Rent', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(183, 2, 10, '810021000', 171, 'Electricity', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(184, 2, 10, '810022000', 171, 'Depreciation Expense', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(185, 2, 10, '810040000', 171, 'GST- Non Claimable', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(186, 2, 10, '810050000', 171, 'Service Tax', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(187, 2, 10, '820000000', 0, 'Employment Expenses', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(188, 2, 10, '820010000', 187, 'Staff Amenities', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(189, 2, 10, '820030000', 187, 'Wages & Salaries', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(190, 2, 10, '820040000', 187, 'Workers'' Compensation', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(191, 2, 10, '820050000', 187, 'Other Employment Expenses', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(192, 2, 10, '830000000', 187, 'Interest & Bank Charges', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(193, 2, 10, '840000000', 0, 'Discounts Given', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(194, 2, 10, '841000000', 0, 'Prompt Payment Discount', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(195, 2, 10, '850000000', 0, 'Zakat Expense', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(196, 2, 11, '860000000', 0, 'Bad Debt Expense', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(197, 2, 11, '870000000', 0, 'Exchange Difference', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(198, 2, 12, '860000000', 0, 'Income Tax Expense', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(199, 2, 1, '110000000', 0, 'Share Capital', '', 1, '2014-05-06 07:07:01', 0, '0000-00-00 00:00:00'),
(200, 3, 1, '110000000', 0, 'Share Capital', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(201, 3, 1, '120000000', 0, 'Retained Earnings-Prior Year', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(202, 3, 1, '130000000', 0, 'Current Year Earnings', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(203, 3, 2, '200000000', 0, 'Fixed Assets', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(204, 3, 2, '200010000', 203, 'Kitchen Equipment', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(205, 3, 2, '200010010', 204, 'Kitchen Equip at Cost', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(206, 3, 2, '200010020', 204, 'Kitchen Equip Accum Depr''n', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(207, 3, 2, '200020000', 203, 'Store Equipment	', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(208, 3, 2, '200020010', 207, 'Store Equipment at Cost', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(209, 3, 2, '200020020', 207, 'Store Equipment Accum Dep''n', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(210, 3, 2, '200030000', 203, 'Building', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(211, 3, 2, '200030010', 210, 'Building at Cost', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(212, 3, 2, '200030020', 210, 'Building Accum Dep''n', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(213, 3, 2, '200050000', 203, 'Leasehold Improvements', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(214, 3, 2, '200050010', 213, 'Improvements at Cost', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(215, 3, 2, '200050020', 213, 'Improvements Amortisation', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(216, 3, 3, '210000000', 0, 'Trade Receivable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(217, 3, 3, '220000000', 0, 'Cash and Bank Balances', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(218, 3, 3, '220010000', 217, 'Bank', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(219, 3, 3, '220020000', 217, 'Cash in Hand', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(220, 3, 3, '220030000', 217, 'Petty Cash', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(221, 3, 3, '230000000', 0, 'Inventories', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(222, 3, 3, '230010000', 221, 'Stock of Work in Progress', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(223, 3, 3, '230020000', 221, 'Ingredients', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(224, 3, 3, '230030000', 221, 'Cake Boxes & Containers', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(225, 3, 3, '230040000', 221, 'Novelty Items', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(226, 3, 3, '240000000', 0, 'Other Receivables', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(227, 3, 3, '250000000', 0, 'Prepayments and Deposits', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(228, 3, 3, '250010000', 227, 'Prepayments', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(229, 3, 3, '250020000', 227, 'Deposits Paid', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(230, 3, 3, '260000000', 0, 'Tax Claimable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(231, 3, 3, '260010000', 230, 'GST Input Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(232, 3, 3, '260011000', 230, 'Provision for GST Non-Claimable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(233, 3, 3, '260020000', 230, 'Suspense GST - Input Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(234, 3, 4, '300000000', 0, 'Trade Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(235, 3, 4, '320000000', 0, 'Other Payables', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(236, 3, 4, '330000000', 0, 'Tax Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(237, 3, 4, '330010000', 236, 'GST Output Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(238, 3, 4, '330020000', 236, 'Suspense GST - Output Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(239, 3, 4, '330030000', 236, 'Import Duty Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(240, 3, 4, '330040000', 236, 'Sales Tax Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(241, 3, 4, '330050000', 236, 'Service Tax Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(242, 3, 4, '340000000', 0, 'Accruals', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(243, 3, 4, '340010000', 242, 'Accrued Payroll', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(244, 3, 4, '340020000', 242, 'Payroll Deductions Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(245, 3, 4, '340030000', 242, 'PAYE Tax Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(246, 3, 4, '340040000', 242, 'Commission Payable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(247, 3, 4, '350000000', 0, 'Client Deposits', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(248, 3, 5, '360000000', 0, 'Deffered Tax Liabilities', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(249, 3, 6, '370000000', 0, 'Borrowing', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(250, 3, 6, '370010000', 249, 'Bank Loans', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(251, 3, 6, '370080000', 249, 'Other Long-Term Liabilities', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(252, 3, 7, '400000000', 0, 'Sales', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(253, 3, 7, '400010000', 252, 'Sales-Baked Items', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(254, 3, 7, '400020000', 252, 'Sales-Novelty Items', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(255, 3, 7, '480000000', 0, 'Miscellaneous Income', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(256, 3, 8, '500000000', 0, 'Cost of Goods Sold', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(257, 3, 8, '500010000', 256, 'Baked Items', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(258, 3, 8, '500020000', 256, 'Novelty Items', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(259, 3, 8, '510000000', 0, 'Purchase Price Variance', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(260, 3, 8, '560000000', 0, 'Freight', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(261, 3, 8, '570000000', 0, 'Inventory Adjustment Account', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(262, 3, 8, '580000000', 0, 'Commission Expense', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(263, 3, 9, '710000000', 0, 'Discount Received', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(264, 3, 9, '711000000', 0, 'Interest Income', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(265, 3, 9, '712000000', 0, 'Late Fees Collected', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(266, 3, 9, '713000000', 0, 'Freight Collected', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(267, 3, 10, '810000000', 0, 'Administration Expenses', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(268, 3, 10, '810011100', 267, 'Accounting Fees', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(269, 3, 10, '810011200', 267, 'Legal Fees', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(270, 3, 10, '810014000', 267, 'Dues & Subscriptions', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(271, 3, 10, '810015000', 267, 'Office Supplies', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(272, 3, 10, '810016000', 267, 'Freight', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(273, 3, 10, '810017000', 267, 'Late Payment Charges', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(274, 3, 10, '810019000', 267, 'Advertising & Promotion Ex', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(275, 3, 10, '810019010', 274, 'Advertising', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(276, 3, 10, '810019020', 274, 'In-store Promotions', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(277, 3, 10, '810020000', 267, 'Depreciation Expense', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(278, 3, 10, '810040000', 267, 'GST- Non Claimable', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(279, 3, 10, '810050000', 267, 'Service Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(280, 3, 10, '820000000', 0, 'Operation Expenses', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(281, 3, 10, '820011000', 280, 'Cleaning', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(282, 3, 10, '820012000', 280, 'Postage & Delivery', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(283, 3, 10, '820013000', 280, 'Printing', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(284, 3, 10, '820014000', 280, 'Rent ', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(285, 3, 10, '820015000', 280, 'Store Supplies', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(286, 3, 10, '820016000', 280, 'Telephone', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(287, 3, 10, '820017000', 280, 'Water', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(288, 3, 10, '820018000', 280, 'Shrinkage/Spoilage', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(289, 3, 10, '820019000', 280, 'Employment Expenses', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(290, 3, 10, '820019010', 289, 'Fringe Benefits Tax', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(291, 3, 10, '820019020', 289, 'Staff Amenities ', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(292, 3, 10, '820019030', 289, 'Wages & Salaries ', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(293, 3, 10, '820019040', 289, 'Workers'' Compensation ', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(294, 3, 10, '820019050', 289, 'Other Employment Expenses ', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(295, 3, 10, '820020000', 280, 'Uniforms & Laundry', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(296, 3, 10, '830000000', 0, 'Interest & Bank Charges', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(297, 3, 10, '840000000', 0, 'Discounts Given', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(298, 3, 10, '841000000', 0, 'Prompt Payment Discount', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(299, 3, 10, '850000000', 0, 'Zakat Expense', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(300, 3, 11, '860000000', 0, 'Bad Debt Expense', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(301, 3, 11, '870000000', 0, 'Exchange Difference', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00'),
(302, 3, 12, '860000000', 0, 'Income Tax Expense', '', 1, '2014-05-06 09:16:10', 0, '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_country`
--

CREATE TABLE IF NOT EXISTS `_ref_country` (
  `fldid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fldcountry` varchar(45) DEFAULT NULL,
  `fldcontinent` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=895 ;

--
-- Dumping data for table `_ref_country`
--

INSERT INTO `_ref_country` (`fldid`, `fldcountry`, `fldcontinent`) VALUES
(4, 'AFGHANISTAN', 'AS'),
(8, 'ALBANIA', 'EU'),
(10, 'ANTARCTICA', 'AN'),
(12, 'ALGERIA', 'AF'),
(16, 'AMERICAN SAMOA', 'OC'),
(20, 'ANDORRA', 'EU'),
(24, 'ANGOLA', 'AF'),
(28, 'ANTIGUA AND BARBUDA', 'NA'),
(31, 'AZERBAIJAN', 'AS'),
(32, 'ARGENTINA', 'SA'),
(36, 'AUSTRALIA', 'OC'),
(40, 'AUSTRIA', 'EU'),
(44, 'BAHAMAS', 'NA'),
(48, 'BAHRAIN', 'AS'),
(50, 'BANGLADESH', 'AS'),
(51, 'ARMENIA', 'AS'),
(52, 'BARBADOS', 'NA'),
(56, 'BELGIUM', 'EU'),
(60, 'BERMUDA', 'NA'),
(64, 'BHUTAN', 'AS'),
(68, 'BOLIVIA', 'SA'),
(70, 'BOSNIA AND HERZEGOVINA', 'EU'),
(72, 'BOTSWANA', 'AF'),
(74, 'BOUVET ISLAND', 'AN'),
(76, 'BRAZIL', 'SA'),
(84, 'BELIZE', 'NA'),
(86, 'BRITISH INDIAN OCEAN TERRITORY', 'AS'),
(90, 'SOLOMON ISLANDS', 'OC'),
(92, 'BRITISH VIRGIN ISLANDS', 'NA'),
(96, 'BRUNEI', 'AS'),
(100, 'BULGARIA', 'EU'),
(104, 'MYANMAR', 'AS'),
(108, 'BURUNDI', 'AF'),
(112, 'BELARUS', 'EU'),
(116, 'CAMBODIA', 'AS'),
(120, 'CAMEROON', 'AF'),
(124, 'CANADA', 'NA'),
(132, 'CAPE VERDE', 'AF'),
(136, 'CAYMAN ISLANDS', 'NA'),
(140, 'CENTRAL AFRICAN REPUBLIC', 'AF'),
(144, 'SRI LANKA', 'AS'),
(148, 'CHAD', 'AF'),
(152, 'CHILE', 'SA'),
(156, 'CHINA', 'AS'),
(158, 'TAIWAN', 'AS'),
(162, 'CHRISTMAS ISLAND', 'AS'),
(166, 'COCOS ISLANDS', 'AS'),
(170, 'COLOMBIA', 'SA'),
(174, 'COMOROS', 'AF'),
(175, 'MAYOTTE', 'AF'),
(178, 'REPUBLIC OF THE CONGO', 'AF'),
(180, 'DEMOCRATIC REPUBLIC OF THE CONGO', 'AF'),
(184, 'COOK ISLANDS', 'OC'),
(188, 'COSTA RICA', 'NA'),
(191, 'CROATIA', 'EU'),
(192, 'CUBA', 'NA'),
(196, 'CYPRUS', 'EU'),
(203, 'CZECH REPUBLIC', 'EU'),
(204, 'BENIN', 'AF'),
(208, 'DENMARK', 'EU'),
(212, 'DOMINICA', 'NA'),
(214, 'DOMINICAN REPUBLIC', 'NA'),
(218, 'ECUADOR', 'SA'),
(222, 'EL SALVADOR', 'NA'),
(226, 'EQUATORIAL GUINEA', 'AF'),
(231, 'ETHIOPIA', 'AF'),
(232, 'ERITREA', 'AF'),
(233, 'ESTONIA', 'EU'),
(234, 'FAROE ISLANDS', 'EU'),
(238, 'FALKLAND ISLANDS', 'SA'),
(239, 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'AN'),
(242, 'FIJI', 'OC'),
(246, 'FINLAND', 'EU'),
(248, 'ALAND ISLANDS', 'EU'),
(250, 'FRANCE', 'EU'),
(254, 'FRENCH GUIANA', 'SA'),
(258, 'FRENCH POLYNESIA', 'OC'),
(260, 'FRENCH SOUTHERN TERRITORIES', 'AN'),
(262, 'DJIBOUTI', 'AF'),
(266, 'GABON', 'AF'),
(268, 'GEORGIA', 'AS'),
(270, 'GAMBIA', 'AF'),
(275, 'PALESTINIAN TERRITORY', 'AS'),
(276, 'GERMANY', 'EU'),
(288, 'GHANA', 'AF'),
(292, 'GIBRALTAR', 'EU'),
(296, 'KIRIBATI', 'OC'),
(300, 'GREECE', 'EU'),
(304, 'GREENLAND', 'NA'),
(308, 'GRENADA', 'NA'),
(312, 'GUADELOUPE', 'NA'),
(316, 'GUAM', 'OC'),
(320, 'GUATEMALA', 'NA'),
(324, 'GUINEA', 'AF'),
(328, 'GUYANA', 'SA'),
(332, 'HAITI', 'NA'),
(334, 'HEARD ISLAND AND MCDONALD ISLANDS', 'AN'),
(336, 'VATICAN', 'EU'),
(340, 'HONDURAS', 'NA'),
(344, 'HONG KONG', 'AS'),
(348, 'HUNGARY', 'EU'),
(352, 'ICELAND', 'EU'),
(356, 'INDIA', 'AS'),
(360, 'INDONESIA', 'AS'),
(364, 'IRAN', 'AS'),
(368, 'IRAQ', 'AS'),
(372, 'IRELAND', 'EU'),
(376, 'ISRAEL', 'AS'),
(380, 'ITALY', 'EU'),
(384, 'IVORY COAST', 'AF'),
(388, 'JAMAICA', 'NA'),
(392, 'JAPAN', 'AS'),
(398, 'KAZAKHSTAN', 'AS'),
(400, 'JORDAN', 'AS'),
(404, 'KENYA', 'AF'),
(408, 'NORTH KOREA', 'AS'),
(410, 'SOUTH KOREA', 'AS'),
(414, 'KUWAIT', 'AS'),
(417, 'KYRGYZSTAN', 'AS'),
(418, 'LAOS', 'AS'),
(422, 'LEBANON', 'AS'),
(426, 'LESOTHO', 'AF'),
(428, 'LATVIA', 'EU'),
(430, 'LIBERIA', 'AF'),
(434, 'LIBYA', 'AF'),
(438, 'LIECHTENSTEIN', 'EU'),
(440, 'LITHUANIA', 'EU'),
(442, 'LUXEMBOURG', 'EU'),
(446, 'MACAO', 'AS'),
(450, 'MADAGASCAR', 'AF'),
(454, 'MALAWI', 'AF'),
(458, 'MALAYSIA', 'AS'),
(462, 'MALDIVES', 'AS'),
(466, 'MALI', 'AF'),
(470, 'MALTA', 'EU'),
(474, 'MARTINIQUE', 'NA'),
(478, 'MAURITANIA', 'AF'),
(480, 'MAURITIUS', 'AF'),
(484, 'MEXICO', 'NA'),
(492, 'MONACO', 'EU'),
(496, 'MONGOLIA', 'AS'),
(498, 'MOLDOVA', 'EU'),
(499, 'MONTENEGRO', 'EU'),
(500, 'MONTSERRAT', 'NA'),
(504, 'MOROCCO', 'AF'),
(508, 'MOZAMBIQUE', 'AF'),
(512, 'OMAN', 'AS'),
(516, 'NAMIBIA', 'AF'),
(520, 'NAURU', 'OC'),
(524, 'NEPAL', 'AS'),
(528, 'NETHERLANDS', 'EU'),
(530, 'NETHERLANDS ANTILLES', 'NA'),
(533, 'ARUBA', 'NA'),
(540, 'NEW CALEDONIA', 'OC'),
(548, 'VANUATU', 'OC'),
(554, 'NEW ZEALAND', 'OC'),
(558, 'NICARAGUA', 'NA'),
(562, 'NIGER', 'AF'),
(566, 'NIGERIA', 'AF'),
(570, 'NIUE', 'OC'),
(574, 'NORFOLK ISLAND', 'OC'),
(578, 'NORWAY', 'EU'),
(580, 'NORTHERN MARIANA ISLANDS', 'OC'),
(581, 'UNITED STATES MINOR OUTLYING ISLANDS', 'OC'),
(583, 'MICRONESIA', 'OC'),
(584, 'MARSHALL ISLANDS', 'OC'),
(585, 'PALAU', 'OC'),
(586, 'PAKISTAN', 'AS'),
(591, 'PANAMA', 'NA'),
(598, 'PAPUA NEW GUINEA', 'OC'),
(600, 'PARAGUAY', 'SA'),
(604, 'PERU', 'SA'),
(608, 'PHILIPPINES', 'AS'),
(612, 'PITCAIRN', 'OC'),
(616, 'POLAND', 'EU'),
(620, 'PORTUGAL', 'EU'),
(624, 'GUINEA-BISSAU', 'AF'),
(626, 'EAST TIMOR', 'OC'),
(630, 'PUERTO RICO', 'NA'),
(634, 'QATAR', 'AS'),
(638, 'REUNION', 'AF'),
(642, 'ROMANIA', 'EU'),
(643, 'RUSSIA', 'EU'),
(646, 'RWANDA', 'AF'),
(652, 'SAINT BARTHÉLEMY', 'NA'),
(654, 'SAINT HELENA', 'AF'),
(659, 'SAINT KITTS AND NEVIS', 'NA'),
(660, 'ANGUILLA', 'NA'),
(662, 'SAINT LUCIA', 'NA'),
(663, 'SAINT MARTIN', 'NA'),
(666, 'SAINT PIERRE AND MIQUELON', 'NA'),
(670, 'SAINT VINCENT AND THE GRENADINES', 'NA'),
(674, 'SAN MARINO', 'EU'),
(678, 'SAO TOME AND PRINCIPE', 'AF'),
(682, 'SAUDI ARABIA', 'AS'),
(686, 'SENEGAL', 'AF'),
(688, 'SERBIA', 'EU'),
(690, 'SEYCHELLES', 'AF'),
(694, 'SIERRA LEONE', 'AF'),
(702, 'SINGAPORE', 'AS'),
(703, 'SLOVAKIA', 'EU'),
(704, 'VIETNAM', 'AS'),
(705, 'SLOVENIA', 'EU'),
(706, 'SOMALIA', 'AF'),
(710, 'SOUTH AFRICA', 'AF'),
(716, 'ZIMBABWE', 'AF'),
(724, 'SPAIN', 'EU'),
(732, 'WESTERN SAHARA', 'AF'),
(736, 'SUDAN', 'AF'),
(740, 'SURINAME', 'SA'),
(744, 'SVALBARD AND JAN MAYEN', 'EU'),
(748, 'SWAZILAND', 'AF'),
(752, 'SWEDEN', 'EU'),
(756, 'SWITZERLAND', 'EU'),
(760, 'SYRIA', 'AS'),
(762, 'TAJIKISTAN', 'AS'),
(764, 'THAILAND', 'AS'),
(768, 'TOGO', 'AF'),
(772, 'TOKELAU', 'OC'),
(776, 'TONGA', 'OC'),
(780, 'TRINIDAD AND TOBAGO', 'NA'),
(784, 'UNITED ARAB EMIRATES', 'AS'),
(788, 'TUNISIA', 'AF'),
(792, 'TURKEY', 'AS'),
(795, 'TURKMENISTAN', 'AS'),
(796, 'TURKS AND CAICOS ISLANDS', 'NA'),
(798, 'TUVALU', 'OC'),
(800, 'UGANDA', 'AF'),
(804, 'UKRAINE', 'EU'),
(807, 'MACEDONIA', 'EU'),
(818, 'EGYPT', 'AF'),
(826, 'UNITED KINGDOM', 'EU'),
(831, 'GUERNSEY', 'EU'),
(832, 'JERSEY', 'EU'),
(833, 'ISLE OF MAN', 'EU'),
(834, 'TANZANIA', 'AF'),
(840, 'UNITED STATES', 'NA'),
(850, 'U.S. VIRGIN ISLANDS', 'NA'),
(854, 'BURKINA FASO', 'AF'),
(855, 'KOSOVO', 'EU'),
(858, 'URUGUAY', 'SA'),
(860, 'UZBEKISTAN', 'AS'),
(862, 'VENEZUELA', 'SA'),
(876, 'WALLIS AND FUTUNA', 'OC'),
(882, 'SAMOA', 'OC'),
(887, 'YEMEN', 'AS'),
(891, 'SERBIA AND MONTENEGRO', 'EU'),
(894, 'ZAMBIA', 'AF');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_currency`
--

CREATE TABLE IF NOT EXISTS `_ref_currency` (
  `fldid` int(5) NOT NULL AUTO_INCREMENT,
  `fldcurr_code` varchar(5) DEFAULT NULL,
  `fldcurr_desc` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=13 ;

--
-- Dumping data for table `_ref_currency`
--

INSERT INTO `_ref_currency` (`fldid`, `fldcurr_code`, `fldcurr_desc`) VALUES
(1, 'MYR', 'Ringgit Malaysia'),
(2, 'USD', 'US Dollar'),
(3, 'RMB', 'China Remibi'),
(4, 'SGD', 'Singapore Dollar'),
(5, 'AUD', 'Australia Dollar'),
(6, 'JPY', 'Japanese Yen'),
(7, 'WON', 'Korea WON'),
(8, 'HKD', 'Hong Kong Dollar'),
(9, 'GBP', 'Great Britain Pound'),
(10, 'EUR', 'Euro'),
(11, 'CAD', 'Canadian Dollar'),
(12, 'THB', 'Thai Baht');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_industry`
--

CREATE TABLE IF NOT EXISTS `_ref_industry` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `_ref_industry`
--

INSERT INTO `_ref_industry` (`ID`, `name`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 'Manufacturing', 1, '2014-05-06 01:06:56', 0, '2014-05-06 01:32:24'),
(2, 'Retail', 1, '2014-05-06 01:06:56', 0, '2014-05-06 01:32:44'),
(3, 'Services', 1, '2014-05-06 01:08:14', 0, '2014-05-06 01:32:44'),
(4, 'Others', 1, '2014-05-06 01:08:14', 0, '2014-05-06 01:32:44');

-- --------------------------------------------------------

--
-- Table structure for table `_ref_state`
--

CREATE TABLE IF NOT EXISTS `_ref_state` (
  `fldid` int(10) NOT NULL AUTO_INCREMENT,
  `fldregion_id` int(10) unsigned DEFAULT NULL,
  `fldname` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`fldid`),
  KEY `subregion_region_id` (`fldregion_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=3880 ;

--
-- Dumping data for table `_ref_state`
--

INSERT INTO `_ref_state` (`fldid`, `fldregion_id`, `fldname`) VALUES
(1, 4, 'BADAKHSHAN'),
(2, 4, 'BADGHIS PROVINCE'),
(3, 4, 'BAGHLĀN'),
(4, 4, 'BĀMĪĀN'),
(5, 4, 'FARAH'),
(6, 4, 'FARYAB PROVINCE'),
(7, 4, 'GHAZNĪ'),
(8, 4, 'GHOWR'),
(9, 4, 'HELMAND PROVINCE'),
(10, 4, 'HERAT PROVINCE'),
(11, 4, 'KABUL'),
(12, 4, 'KĀPĪSĀ'),
(13, 4, 'LOWGAR'),
(14, 4, 'NANGARHĀR'),
(15, 4, 'NĪMRŪZ'),
(16, 4, 'ORŪZGĀN'),
(17, 4, 'KANDAHĀR'),
(18, 4, 'KUNDUZ PROVINCE'),
(19, 4, 'TAKHĀR'),
(20, 4, 'VARDAK'),
(21, 4, 'ZABUL PROVINCE'),
(22, 4, 'PAKTĪKĀ'),
(23, 4, 'BALKH'),
(24, 4, 'JOWZJĀN'),
(25, 4, 'SAMANGĀN'),
(26, 4, 'SAR-E POL'),
(27, 4, 'KONAR'),
(28, 4, 'LAGHMĀN'),
(29, 4, 'PAKTIA PROVINCE'),
(30, 4, 'KHOWST'),
(31, 4, 'NŪRESTĀN'),
(32, 4, 'PARVĀN'),
(33, 4, 'DĀYKONDĪ'),
(34, 4, 'PANJSHĪR'),
(35, 8, 'BERAT'),
(36, 8, 'DIBËR'),
(37, 8, 'DURRËS'),
(38, 8, 'ELBASAN'),
(39, 8, 'FIER'),
(40, 8, 'GJIROKASTËR'),
(41, 8, 'KORÇË'),
(42, 8, 'KUKËS'),
(43, 8, 'LEZHË'),
(44, 8, 'SHKODËR'),
(45, 8, 'TIRANË'),
(46, 8, 'VLORË'),
(47, 12, 'ALGER'),
(48, 12, 'BATNA'),
(49, 12, 'CONSTANTINE'),
(50, 12, 'MÉDÉA'),
(51, 12, 'MOSTAGANEM'),
(52, 12, 'ORAN'),
(53, 12, 'SAÃDA'),
(54, 12, 'SÉTIF'),
(55, 12, 'TIARET'),
(56, 12, 'TIZI OUZOU'),
(57, 12, 'TLEMCEN'),
(58, 12, 'BEJAÃA'),
(59, 12, 'BISKRA'),
(60, 12, 'BLIDA'),
(61, 12, 'BOUIRA'),
(62, 12, 'DJELFA'),
(63, 12, 'GUELMA'),
(64, 12, 'JIJEL'),
(65, 12, 'LAGHOUAT'),
(66, 12, 'MASCARA'),
(67, 12, 'MʼSILA'),
(68, 12, 'OUM EL BOUAGHI'),
(69, 12, 'SIDI BEL ABBÈS'),
(70, 12, 'SKIKDA'),
(71, 12, 'TÉBESSA'),
(72, 12, 'ADRAR'),
(73, 12, 'AÃN DEFLA'),
(74, 12, 'AÃN TEMOUCHENT'),
(75, 12, 'ANNABA'),
(76, 12, 'BÉCHAR'),
(77, 12, 'BORDJ BOU ARRÉRIDJ'),
(78, 12, 'BOUMERDES'),
(79, 12, 'CHLEF'),
(80, 12, 'EL BAYADH'),
(81, 12, 'EL OUED'),
(82, 12, 'EL TARF'),
(83, 12, 'GHARDAÃA'),
(84, 12, 'ILLIZI'),
(85, 12, 'KHENCHELA'),
(86, 12, 'MILA'),
(87, 12, 'NAAMA النعامة'),
(88, 12, 'OUARGLA'),
(89, 12, 'RELIZANE'),
(90, 12, 'SOUK AHRAS'),
(91, 12, 'TAMANGHASSET'),
(92, 12, 'TINDOUF'),
(93, 12, 'TIPAZA'),
(94, 12, 'TISSEMSILT'),
(95, 16, 'AMERICAN SAMOA'),
(96, 20, 'PARRÒQUIA DE CANILLO'),
(97, 20, 'PARRÒQUIA DʼENCAMP'),
(98, 20, 'PARRÒQUIA DE LA MASSANA'),
(99, 20, 'PARRÒQUIA DʼORDINO'),
(100, 20, 'PARRÒQUIA DE SANT JULIÀ DE LÒRIA'),
(101, 20, 'PARRÒQUIA DʼANDORRA LA VELLA'),
(102, 20, 'PARRÒQUIA DʼESCALDES-ENGORDANY'),
(103, 24, 'BENGUELA'),
(104, 24, 'BIÉ'),
(105, 24, 'CABINDA'),
(106, 24, 'CUANDO CUBANGO'),
(107, 24, 'CUANZA NORTE'),
(108, 24, 'CUANZA SUL'),
(109, 24, 'CUNENE'),
(110, 24, 'HUAMBO'),
(111, 24, 'HUÃLA'),
(112, 24, 'LUANDA'),
(113, 24, 'MALANJE'),
(114, 24, 'NAMIBE'),
(115, 24, 'MOXICO'),
(116, 24, 'UÃGE'),
(117, 24, 'ZAIRE'),
(118, 24, 'LUNDA NORTE'),
(119, 24, 'LUNDA SUL'),
(120, 24, 'BENGO'),
(121, 28, 'REDONDA'),
(122, 28, 'BARBUDA'),
(123, 28, 'SAINT GEORGE'),
(124, 28, 'SAINT JOHN'),
(125, 28, 'SAINT MARY'),
(126, 28, 'SAINT PAUL'),
(127, 28, 'SAINT PETER'),
(128, 28, 'SAINT PHILIP'),
(129, 31, 'ABŞERON'),
(130, 31, 'AĞCABƎDI'),
(131, 31, 'AĞDAM'),
(132, 31, 'AĞDAŞ'),
(133, 31, 'AĞSTAFA'),
(134, 31, 'AĞSU'),
(135, 31, 'ÆLI BAYRAMLI'),
(136, 31, 'ASTARA'),
(137, 31, 'BAKI'),
(138, 31, 'BALAKƎN'),
(139, 31, 'BƎRDƎ'),
(140, 31, 'BEYLƎQAN'),
(141, 31, 'BILƎSUVAR'),
(142, 31, 'CƎBRAYIL'),
(143, 31, 'CƎLILABAD'),
(144, 31, 'DAŞKƎSƎN'),
(145, 31, 'DƎVƎÇI'),
(146, 31, 'FÜZULI'),
(147, 31, 'GƎDƎBƎY'),
(148, 31, 'GƎNCƎ'),
(149, 31, 'GORANBOY'),
(150, 31, 'GÖYÇAY'),
(151, 31, 'HACIQABUL'),
(152, 31, 'İMIŞLI'),
(153, 31, 'İSMAYILLI'),
(154, 31, 'KƎLBƎCƎR'),
(155, 31, 'KÜRDƎMIR'),
(156, 31, 'LAÇIN'),
(157, 31, 'LƎNKƎRAN'),
(158, 31, 'LƎNKƎRAN ŞƎHƎRI'),
(159, 31, 'LERIK'),
(160, 31, 'MASALLI'),
(161, 31, 'MINGƎCEVIR'),
(162, 31, 'NAFTALAN'),
(163, 31, 'NAKHICHEVAN'),
(164, 31, 'NEFTÇALA'),
(165, 31, 'OĞUZ'),
(166, 31, 'QƎBƎLƎ'),
(167, 31, 'QƎX'),
(168, 31, 'QAZAX'),
(169, 31, 'QOBUSTAN'),
(170, 31, 'QUBA'),
(171, 31, 'QUBADLI'),
(172, 31, 'QUSAR'),
(173, 31, 'SAATLI'),
(174, 31, 'SABIRABAD'),
(175, 31, 'ŞƎKI'),
(176, 31, 'ŞƎKI'),
(177, 31, 'SALYAN'),
(178, 31, 'ŞAMAXI'),
(179, 31, 'ŞƎMKIR'),
(180, 31, 'SAMUX'),
(181, 31, 'SIYƎZƎN'),
(182, 31, 'SUMQAYIT'),
(183, 31, 'ŞUŞA'),
(184, 31, 'ŞUŞA ŞÆHÆRI'),
(185, 31, 'TƎRTƎR'),
(186, 31, 'TOVUZ'),
(187, 31, 'UCAR'),
(188, 31, 'XAÇMAZ'),
(189, 31, 'XANKƎNDI'),
(190, 31, 'XANLAR'),
(191, 31, 'XIZI'),
(192, 31, 'XOCALI'),
(193, 31, 'XOCAVƎND'),
(194, 31, 'YARDIMLI'),
(195, 31, 'YEVLAX'),
(196, 31, 'YEVLAX'),
(197, 31, 'ZƎNGILAN'),
(198, 31, 'ZAQATALA'),
(199, 31, 'ZƎRDAB'),
(200, 32, 'BUENOS AIRES'),
(201, 32, 'CATAMARCA'),
(202, 32, 'CHACO'),
(203, 32, 'CHUBUT'),
(204, 32, 'CÓRDOBA'),
(205, 32, 'CORRIENTES'),
(206, 32, 'DISTRITO FEDERAL'),
(207, 32, 'ENTRE RÃOS'),
(208, 32, 'FORMOSA'),
(209, 32, 'JUJUY'),
(210, 32, 'LA PAMPA'),
(211, 32, 'LA RIOJA'),
(212, 32, 'MENDOZA'),
(213, 32, 'MISIONES'),
(214, 32, 'NEUQUÉN'),
(215, 32, 'RÃO NEGRO'),
(216, 32, 'SALTA'),
(217, 32, 'SAN JUAN'),
(218, 32, 'SAN LUIS'),
(219, 32, 'SANTA CRUZ'),
(220, 32, 'SANTA FE'),
(221, 32, 'SANTIAGO DEL ESTERO'),
(222, 32, 'TIERRA DEL FUEGO, ANTÃRTIDA E ISLAS DEL ATLÃ'),
(223, 32, 'TUCUMÃN'),
(224, 36, 'AUSTRALIAN CAPITAL TERRITORY'),
(225, 36, 'NEW SOUTH WALES'),
(226, 36, 'NORTHERN TERRITORY'),
(227, 36, 'QUEENSLAND'),
(228, 36, 'SOUTH AUSTRALIA'),
(229, 36, 'TASMANIA'),
(230, 36, 'VICTORIA'),
(231, 36, 'WESTERN AUSTRALIA'),
(232, 40, 'BURGENLAND'),
(233, 40, 'CARINTHIA'),
(234, 40, 'LOWER AUSTRIA'),
(235, 40, 'UPPER AUSTRIA'),
(236, 40, 'SALZBURG'),
(237, 40, 'STYRIA'),
(238, 40, 'TYROL'),
(239, 40, 'VORARLBERG'),
(240, 40, 'VIENNA'),
(241, 44, 'BIMINI'),
(242, 44, 'CAT ISLAND'),
(243, 44, 'INAGUA'),
(244, 44, 'LONG ISLAND'),
(245, 44, 'MAYAGUANA'),
(246, 44, 'RAGGED ISLAND'),
(247, 44, 'HARBOUR ISLAND, ELEUTHERA'),
(248, 44, 'NORTH ABACO'),
(249, 44, 'ACKLINS'),
(250, 44, 'CITY OF FREEPORT, GRAND BAHAMA'),
(251, 44, 'SOUTH ANDROS'),
(252, 44, 'HOPE TOWN, ABACO'),
(253, 44, 'MANGROVE CAY, ANDROS'),
(254, 44, 'MOOREʼS ISLAND, ABACO'),
(255, 44, 'RUM CAY'),
(256, 44, 'NORTH ANDROS'),
(257, 44, 'NORTH ELEUTHERA'),
(258, 44, 'SOUTH ELEUTHERA'),
(259, 44, 'SOUTH ABACO'),
(260, 44, 'SAN SALVADOR'),
(261, 44, 'BERRY ISLANDS'),
(262, 44, 'BLACK POINT, EXUMA'),
(263, 44, 'CENTRAL ABACO'),
(264, 44, 'CENTRAL ANDROS'),
(265, 44, 'CENTRAL ELEUTHERA'),
(266, 44, 'CROOKED ISLAND'),
(267, 44, 'EAST GRAND BAHAMA'),
(268, 44, 'EXUMA'),
(269, 44, 'GRAND CAY, ABACO'),
(270, 44, 'SPANISH WELLS, ELEUTHERA'),
(271, 44, 'WEST GRAND BAHAMA'),
(272, 48, 'SOUTHERN GOVERNATE'),
(273, 48, 'NORTHERN GOVERNATE'),
(274, 48, 'CAPITAL GOVERNATE'),
(275, 48, 'CENTRAL GOVERNATE'),
(276, 48, 'MUHARRAQ GOVERNATE'),
(277, 50, 'BG80'),
(278, 50, 'DHAKA'),
(279, 50, 'KHULNA'),
(280, 50, 'RĀJSHĀHI'),
(281, 50, 'CHITTAGONG'),
(282, 50, 'BARISĀL'),
(283, 50, 'SYLHET'),
(284, 51, 'ARAGATSOTN'),
(285, 51, 'ARARAT'),
(286, 51, 'ARMAVIR'),
(287, 51, 'GEGHARKʼUNIKʼ'),
(288, 51, 'KOTAYKʼ'),
(289, 51, 'LORRI'),
(290, 51, 'SHIRAK'),
(291, 51, 'SYUNIKʼ'),
(292, 51, 'TAVUSH'),
(293, 51, 'VAYOTSʼ DZOR'),
(294, 51, 'YEREVAN'),
(295, 52, 'CHRIST CHURCH'),
(296, 52, 'SAINT ANDREW'),
(297, 52, 'SAINT GEORGE'),
(298, 52, 'SAINT JAMES'),
(299, 52, 'SAINT JOHN'),
(300, 52, 'SAINT JOSEPH'),
(301, 52, 'SAINT LUCY'),
(302, 52, 'SAINT MICHAEL'),
(303, 52, 'SAINT PETER'),
(304, 52, 'SAINT PHILIP'),
(305, 52, 'SAINT THOMAS'),
(306, 56, 'BRUXELLES-CAPITALE'),
(307, 56, 'FLANDERS'),
(308, 56, 'WALLONIA'),
(309, 60, 'DEVONSHIRE'),
(310, 60, 'HAMILTON (PARISH)'),
(311, 60, 'HAMILTON (CITY)'),
(312, 60, 'PAGET'),
(313, 60, 'PEMBROKE'),
(314, 60, 'SAINT GEORGEʼS (PARISH)'),
(315, 60, 'SAINT GEORGEʼS (CITY)'),
(316, 60, 'SANDYS'),
(317, 60, 'SMITHʼS'),
(318, 60, 'SOUTHAMPTON'),
(319, 60, 'WARWICK'),
(320, 64, 'BUMTHANG'),
(321, 64, 'CHHUKHA'),
(322, 64, 'CHIRANG'),
(323, 64, 'DAGA'),
(324, 64, 'GEYLEGPHUG'),
(325, 64, 'HA'),
(326, 64, 'LHUNTSHI'),
(327, 64, 'MONGAR'),
(328, 64, 'PARO DISTRICT'),
(329, 64, 'PEMAGATSEL'),
(330, 64, 'SAMCHI'),
(331, 64, 'SAMDRUP JONGKHAR DISTRICT'),
(332, 64, 'SHEMGANG'),
(333, 64, 'TASHIGANG'),
(334, 64, 'THIMPHU'),
(335, 64, 'TONGSA'),
(336, 64, 'WANGDI PHODRANG'),
(337, 68, 'CHUQUISACA'),
(338, 68, 'COCHABAMBA'),
(339, 68, 'EL BENI'),
(340, 68, 'LA PAZ'),
(341, 68, 'ORURO'),
(342, 68, 'PANDO'),
(343, 68, 'POTOSÃ'),
(344, 68, 'SANTA CRUZ'),
(345, 68, 'TARIJA'),
(346, 70, 'FEDERATION OF BOSNIA AND HERZEGOVINA'),
(347, 70, 'REPUBLIKA SRPSKA'),
(348, 70, 'BRČKO'),
(349, 72, 'CENTRAL'),
(350, 72, 'CHOBE'),
(351, 72, 'GHANZI'),
(352, 72, 'KGALAGADI'),
(353, 72, 'KGATLENG'),
(354, 72, 'KWENENG'),
(355, 72, 'NGAMILAND'),
(356, 72, 'NORTH EAST'),
(357, 72, 'SOUTH EAST'),
(358, 72, 'SOUTHERN'),
(359, 72, 'NORTH WEST'),
(360, 76, 'ACRE'),
(361, 76, 'ALAGOAS'),
(362, 76, 'AMAPÃ'),
(363, 76, 'ESTADO DO AMAZONAS'),
(364, 76, 'BAHIA'),
(365, 76, 'CEARÃ'),
(366, 76, 'DISTRITO FEDERAL'),
(367, 76, 'ESPÃRITO SANTO'),
(368, 76, 'FERNANDO DE NORONHA'),
(369, 76, 'GOIAS'),
(370, 76, 'MATO GROSSO DO SUL'),
(371, 76, 'MARANHÃO'),
(372, 76, 'MATO GROSSO'),
(373, 76, 'MINAS GERAIS'),
(374, 76, 'PARÃ'),
(375, 76, 'PARAÃBA'),
(376, 76, 'PARANÃ'),
(377, 76, 'PERNAMBUCO'),
(378, 76, 'PIAUÃ'),
(379, 76, 'STATE OF RIO DE JANEIRO'),
(380, 76, 'RIO GRANDE DO NORTE'),
(381, 76, 'RIO GRANDE DO SUL'),
(382, 76, 'RONDÔNIA'),
(383, 76, 'RORAIMA'),
(384, 76, 'SANTA CATARINA'),
(385, 76, 'SÃO PAULO'),
(386, 76, 'SERGIPE'),
(387, 76, 'ESTADO DE GOIÃS'),
(388, 76, 'PERNAMBUCO'),
(389, 76, 'TOCANTINS'),
(390, 84, 'BELIZE'),
(391, 84, 'CAYO'),
(392, 84, 'COROZAL'),
(393, 84, 'ORANGE WALK'),
(394, 84, 'STANN CREEK'),
(395, 84, 'TOLEDO'),
(396, 86, 'BRITISH INDIAN OCEAN TERRITORY'),
(397, 90, 'MALAITA'),
(398, 90, 'WESTERN'),
(399, 90, 'CENTRAL'),
(400, 90, 'GUADALCANAL'),
(401, 90, 'ISABEL'),
(402, 90, 'MAKIRA'),
(403, 90, 'TEMOTU'),
(404, 90, 'CENTRAL PROVINCE'),
(405, 90, 'CHOISEUL'),
(406, 90, 'RENNELL AND BELLONA'),
(407, 90, 'RENNELL AND BELLONA'),
(408, 92, 'BRITISH VIRGIN ISLANDS'),
(409, 96, 'BELAIT'),
(410, 96, 'BRUNEI AND MUARA'),
(411, 96, 'TEMBURONG'),
(412, 96, 'TUTONG'),
(413, 100, 'BURGAS'),
(414, 100, 'GRAD'),
(415, 100, 'KHASKOVO'),
(416, 100, 'LOVECH'),
(417, 100, 'MIKHAYLOVGRAD'),
(418, 100, 'PLOVDIV'),
(419, 100, 'RAZGRAD'),
(420, 100, 'SOFIYA'),
(421, 100, 'VARNA'),
(422, 100, 'BLAGOEVGRAD'),
(423, 100, 'BURGAS'),
(424, 100, 'DOBRICH'),
(425, 100, 'GABROVO'),
(426, 100, 'OBLAST SOFIYA-GRAD'),
(427, 100, 'KHASKOVO'),
(428, 100, 'KŬRDZHALI'),
(429, 100, 'KYUSTENDIL'),
(430, 100, 'LOVECH'),
(431, 100, 'MONTANA'),
(432, 100, 'PAZARDZHIT'),
(433, 100, 'PERNIK'),
(434, 100, 'PLEVEN'),
(435, 100, 'PLOVDIV'),
(436, 100, 'RAZGRAD'),
(437, 100, 'RUSE'),
(438, 100, 'SHUMEN'),
(439, 100, 'SILISTRA'),
(440, 100, 'SLIVEN'),
(441, 100, 'SMOLYAN'),
(442, 100, 'SOFIYA'),
(443, 100, 'STARA ZAGORA'),
(444, 100, 'TŬRGOVISHTE'),
(445, 100, 'VARNA'),
(446, 100, 'VELIKO TŬRNOVO'),
(447, 100, 'VIDIN'),
(448, 100, 'VRATSA'),
(449, 100, 'YAMBOL'),
(450, 104, 'RAKHINE STATE'),
(451, 104, 'CHIN STATE'),
(452, 104, 'AYEYARWADY'),
(453, 104, 'KACHIN STATE'),
(454, 104, 'KAYIN STATE'),
(455, 104, 'KAYAH STATE'),
(456, 104, 'MAGWE'),
(457, 104, 'MANDALAY'),
(458, 104, 'PEGU'),
(459, 104, 'SAGAIN'),
(460, 104, 'SHAN STATE'),
(461, 104, 'TANINTHARYI'),
(462, 104, 'MON STATE'),
(463, 104, 'RANGOON'),
(464, 104, 'MAGWAY'),
(465, 104, 'BAGO'),
(466, 104, 'YANGON'),
(467, 108, 'BUJUMBURA'),
(468, 108, 'BUBANZA'),
(469, 108, 'BURURI'),
(470, 108, 'CANKUZO'),
(471, 108, 'CIBITOKE'),
(472, 108, 'GITEGA'),
(473, 108, 'KARUZI'),
(474, 108, 'KAYANZA'),
(475, 108, 'KIRUNDO'),
(476, 108, 'MAKAMBA'),
(477, 108, 'MUYINGA'),
(478, 108, 'NGOZI'),
(479, 108, 'RUTANA'),
(480, 108, 'RUYIGI'),
(481, 108, 'MURAMVYA'),
(482, 108, 'MWARO'),
(483, 112, 'BRESTSKAYA VOBLASTSʼ'),
(484, 112, 'HOMYELʼSKAYA VOBLASTSʼ'),
(485, 112, 'HRODZYENSKAYA VOBLASTSʼ'),
(486, 112, 'MAHILYOWSKAYA VOBLASTSʼ'),
(487, 112, 'HORAD MINSK'),
(488, 112, 'MINSKAYA VOBLASTSʼ'),
(489, 112, 'VITSYEBSKAYA VOBLASTSʼ'),
(490, 116, 'KRŎNG PREĂH SEIHÂNŬ'),
(491, 116, 'KÂMPÓNG CHAM'),
(492, 116, 'KÂMPÓNG CHHNĂNG'),
(493, 116, 'KHÉTT KÂMPÓNG SPŒ'),
(494, 116, 'KÂMPÓNG THUM'),
(495, 116, 'KÂNDAL'),
(496, 116, 'KAÔH KŎNG'),
(497, 116, 'KRÂCHÉH'),
(498, 116, 'MÔNDÓL KIRI'),
(499, 116, 'PHNUM PENH'),
(500, 116, 'POŬTHĬSĂT'),
(501, 116, 'PREĂH VIHÉAR'),
(502, 116, 'PREY VÊNG'),
(503, 116, 'STŒ̆NG TRÊNG'),
(504, 116, 'SVAY RIĔNG'),
(505, 116, 'TAKÊV'),
(506, 116, 'KÂMPÔT'),
(507, 116, 'PHNUM PÉNH'),
(508, 116, 'RÔTÂNĂH KIRI'),
(509, 116, 'SIĔM RÉAB'),
(510, 116, 'BANTÉAY MÉAN CHEĂY'),
(511, 116, 'KÊB'),
(512, 116, 'ŎTDÂR MÉAN CHEĂY'),
(513, 116, 'PREĂH SEIHÂNŬ'),
(514, 116, 'BĂTDÂMBÂNG'),
(515, 116, 'PALĬN'),
(516, 120, 'EST'),
(517, 120, 'LITTORAL'),
(518, 120, 'NORTH-WEST PROVINCE'),
(519, 120, 'OUEST'),
(520, 120, 'SOUTH-WEST PROVINCE'),
(521, 120, 'ADAMAOUA'),
(522, 120, 'CENTRE'),
(523, 120, 'EXTREME-NORD'),
(524, 120, 'NORTH PROVINCE'),
(525, 120, 'SOUTH PROVINCE'),
(526, 124, 'ALBERTA'),
(527, 124, 'BRITISH COLUMBIA'),
(528, 124, 'MANITOBA'),
(529, 124, 'NEW BRUNSWICK'),
(530, 124, 'NEWFOUNDLAND AND LABRADOR'),
(531, 124, 'NOVA SCOTIA'),
(532, 124, 'ONTARIO'),
(533, 124, 'PRINCE EDWARD ISLAND'),
(534, 124, 'QUEBEC'),
(535, 124, 'SASKATCHEWAN'),
(536, 124, 'YUKON'),
(537, 124, 'NORTHWEST TERRITORIES'),
(538, 124, 'NUNAVUT'),
(539, 132, 'BOA VISTA'),
(540, 132, 'BRAVA'),
(541, 132, 'MAIO'),
(542, 132, 'PAUL'),
(543, 132, 'PRAIA'),
(544, 132, 'RIBEIRA GRANDE'),
(545, 132, 'SAL'),
(546, 132, 'SANTA CATARINA   '),
(547, 132, 'SÃO NICOLAU'),
(548, 132, 'SÃO VICENTE'),
(549, 132, 'TARRAFAL '),
(550, 132, 'MOSTEIROS'),
(551, 132, 'PRAIA'),
(552, 132, 'SANTA CATARINA'),
(553, 132, 'SANTA CRUZ'),
(554, 132, 'SÃO DOMINGOS'),
(555, 132, 'SÃO FILIPE'),
(556, 132, 'SÃO MIGUEL'),
(557, 132, 'TARRAFAL'),
(558, 136, 'CREEK'),
(559, 136, 'EASTERN'),
(560, 136, 'MIDLAND'),
(561, 136, 'SOUTH TOWN'),
(562, 136, 'SPOT BAY'),
(563, 136, 'STAKE BAY'),
(564, 136, 'WEST END'),
(565, 136, 'WESTERN'),
(566, 140, 'BAMINGUI-BANGORAN'),
(567, 140, 'BASSE-KOTTO'),
(568, 140, 'HAUTE-KOTTO'),
(569, 140, 'MAMBÉRÉ-KADÉÃ'),
(570, 140, 'HAUT-MBOMOU'),
(571, 140, 'KÉMO'),
(572, 140, 'LOBAYE'),
(573, 140, 'MBOMOU'),
(574, 140, 'NANA-MAMBÉRÉ'),
(575, 140, 'OUAKA'),
(576, 140, 'OUHAM'),
(577, 140, 'OUHAM-PENDÉ'),
(578, 140, 'VAKAGA'),
(579, 140, 'NANA-GRÉBIZI'),
(580, 140, 'SANGHA-MBAÉRÉ'),
(581, 140, 'OMBELLA-MPOKO'),
(582, 140, 'BANGUI'),
(583, 144, 'CENTRAL'),
(584, 144, 'NORTH CENTRAL'),
(585, 144, 'NORTH EASTERN'),
(586, 144, 'NORTH WESTERN'),
(587, 144, 'SABARAGAMUWA'),
(588, 144, 'SOUTHERN'),
(589, 144, 'UVA'),
(590, 144, 'WESTERN'),
(591, 148, 'BATHA'),
(592, 148, 'BILTINE'),
(593, 148, 'BORKOU-ENNEDI-TIBESTI'),
(594, 148, 'CHARI-BAGUIRMI'),
(595, 148, 'GUÉRA'),
(596, 148, 'KANEM'),
(597, 148, 'LAC'),
(598, 148, 'LOGONE OCCIDENTAL'),
(599, 148, 'LOGONE ORIENTAL'),
(600, 148, 'MAYO-KÉBBI'),
(601, 148, 'MOYEN-CHARI'),
(602, 148, 'OUADDAÃ'),
(603, 148, 'SALAMAT'),
(604, 148, 'TANDJILÉ'),
(605, 152, 'VALPARAÃSO'),
(606, 152, 'AISÉN DEL GENERAL CARLOS IBÃÑEZ DEL CAMPO'),
(607, 152, 'ANTOFAGASTA'),
(608, 152, 'ARAUCANÃA'),
(609, 152, 'ATACAMA'),
(610, 152, 'BÃO-BÃO'),
(611, 152, 'COQUIMBO'),
(612, 152, 'LIBERTADOR GENERAL BERNARDO OʼHIGGINS'),
(613, 152, 'LOS LAGOS'),
(614, 152, 'MAGALLANES Y ANTÃRTICA CHILENA'),
(615, 152, 'MAULE'),
(616, 152, 'REGIÓN METROPOLITANA'),
(617, 152, 'TARAPACA'),
(618, 152, 'LOS LAGOS'),
(619, 152, 'TARAPACÃ'),
(620, 152, 'REGIÓN DE ARICA Y PARINACOTA'),
(621, 152, 'REGIÓN DE LOS RÃOS'),
(622, 156, 'ANHUI'),
(623, 156, 'ZHEJIANG'),
(624, 156, 'JIANGXI'),
(625, 156, 'JIANGSU'),
(626, 156, 'JILIN'),
(627, 156, 'QINGHAI'),
(628, 156, 'FUJIAN'),
(629, 156, 'HEILONGJIANG'),
(630, 156, 'HENAN'),
(631, 156, 'DISPUTED'),
(632, 156, 'HEBEI'),
(633, 156, 'HUNAN PROVINCE'),
(634, 156, 'HUBEI'),
(635, 156, 'XINJIANG'),
(636, 156, 'XIZANG'),
(637, 156, 'GANSU'),
(638, 156, 'GUANGXI'),
(639, 156, 'GUIZHOU'),
(640, 156, 'LIAONING PROVINCE'),
(641, 156, 'INNER MONGOLIA'),
(642, 156, 'NINGXIA'),
(643, 156, 'BEIJING'),
(644, 156, 'SHANGHAI'),
(645, 156, 'SHANXI'),
(646, 156, 'SHANDONG'),
(647, 156, 'SHAANXI'),
(648, 156, 'TIANJIN'),
(649, 156, 'YUNNAN PROVINCE'),
(650, 156, 'GUANGDONG'),
(651, 156, 'HAINAN PROVINCE'),
(652, 156, 'SICHUAN'),
(653, 156, 'CHONGQING'),
(654, 156, 'PF99'),
(655, 158, 'FUKIEN'),
(656, 158, 'KAOHSIUNG'),
(657, 158, 'TAIPEI'),
(658, 158, 'TAIWAN'),
(659, 162, 'CHRISTMAS ISLAND'),
(660, 166, 'COCOS (KEELING) ISLANDS'),
(661, 170, 'AMAZONAS'),
(662, 170, 'ANTIOQUIA'),
(663, 170, 'ARAUCA'),
(664, 170, 'ATLÃNTICO'),
(665, 170, 'BOLÃVAR'),
(666, 170, 'BOYACÃ'),
(667, 170, 'CALDAS'),
(668, 170, 'CAQUETÃ'),
(669, 170, 'CAUCA'),
(670, 170, 'CESAR'),
(671, 170, 'CHOCÓ'),
(672, 170, 'CÓRDOBA'),
(673, 170, 'GUAVIARE'),
(674, 170, 'GUAINÃA'),
(675, 170, 'HUILA'),
(676, 170, 'LA GUAJIRA'),
(677, 170, 'MAGDALENA'),
(678, 170, 'META'),
(679, 170, 'NARIÑO'),
(680, 170, 'NORTE DE SANTANDER'),
(681, 170, 'PUTUMAYO'),
(682, 170, 'QUINDÃO'),
(683, 170, 'RISARALDA'),
(684, 170, 'ARCHIPIÉLAGO DE SAN ANDRÉS, PROVIDENCIA Y S'),
(685, 170, 'SANTANDER'),
(686, 170, 'SUCRE'),
(687, 170, 'TOLIMA'),
(688, 170, 'VALLE DEL CAUCA'),
(689, 170, 'VAUPÉS'),
(690, 170, 'VICHADA'),
(691, 170, 'CASANARE'),
(692, 170, 'CUNDINAMARCA'),
(693, 170, 'BOGOTA D.C.'),
(694, 170, 'BOLÃVAR'),
(695, 170, 'BOYACÃ'),
(696, 170, 'CALDAS'),
(697, 170, 'MAGDALENA'),
(698, 174, 'ANJOUAN'),
(699, 174, 'GRANDE COMORE'),
(700, 174, 'MOHÉLI'),
(701, 175, 'MAYOTTE'),
(702, 178, 'BOUENZA'),
(703, 178, 'CF03'),
(704, 178, 'KOUILOU'),
(705, 178, 'LÉKOUMOU'),
(706, 178, 'LIKOUALA'),
(707, 178, 'NIARI'),
(708, 178, 'PLATEAUX'),
(709, 178, 'SANGHA'),
(710, 178, 'POOL'),
(711, 178, 'BRAZZAVILLE'),
(712, 178, 'CUVETTE'),
(713, 178, 'CUVETTE-OUEST'),
(714, 178, 'POINTE-NOIRE'),
(715, 180, 'BANDUNDU'),
(716, 180, 'ÉQUATEUR'),
(717, 180, 'KASAÃ-OCCIDENTAL'),
(718, 180, 'KASAÃ-ORIENTAL'),
(719, 180, 'KATANGA'),
(720, 180, 'KINSHASA'),
(721, 180, 'BAS-CONGO'),
(722, 180, 'ORIENTALE'),
(723, 180, 'MANIEMA'),
(724, 180, 'NORD-KIVU'),
(725, 180, 'SUD-KIVU'),
(726, 184, 'COOK ISLANDS'),
(727, 188, 'ALAJUELA'),
(728, 188, 'CARTAGO'),
(729, 188, 'GUANACASTE'),
(730, 188, 'HEREDIA'),
(731, 188, 'LIMÓN'),
(732, 188, 'PUNTARENAS'),
(733, 188, 'SAN JOSÉ'),
(734, 191, 'BJELOVARSKO-BILOGORSKA'),
(735, 191, 'BRODSKO-POSAVSKA'),
(736, 191, 'DUBROVAČKO-NERETVANSKA'),
(737, 191, 'ISTARSKA'),
(738, 191, 'KARLOVAČKA'),
(739, 191, 'KOPRIVNIČKO-KRIŽEVAČKA'),
(740, 191, 'KRAPINSKO-ZAGORSKA'),
(741, 191, 'LIČKO-SENJSKA'),
(742, 191, 'MEÄIMURSKA'),
(743, 191, 'OSJEČKO-BARANJSKA'),
(744, 191, 'POŽEŠKO-SLAVONSKA'),
(745, 191, 'PRIMORSKO-GORANSKA'),
(746, 191, 'ŠIBENSKO-KNINISKA'),
(747, 191, 'SISAČKO-MOSLAVAČKA'),
(748, 191, 'SPLITSKO-DALMATINSKA'),
(749, 191, 'VARAŽDINSKA'),
(750, 191, 'VIROVITIČK-PODRAVSKA'),
(751, 191, 'VUKOVARSKO-SRIJEMSKA'),
(752, 191, 'ZADARSKA'),
(753, 191, 'ZAGREBAČKA'),
(754, 191, 'GRAD ZAGREB'),
(755, 192, 'PINAR DEL RÃO'),
(756, 192, 'CIUDAD DE LA HABANA'),
(757, 192, 'MATANZAS'),
(758, 192, 'ISLA DE LA JUVENTUD'),
(759, 192, 'CAMAGÜEY'),
(760, 192, 'CIEGO DE ÃVILA'),
(761, 192, 'CIENFUEGOS'),
(762, 192, 'GRANMA'),
(763, 192, 'GUANTÃNAMO'),
(764, 192, 'LA HABANA'),
(765, 192, 'HOLGUÃN'),
(766, 192, 'LAS TUNAS'),
(767, 192, 'SANCTI SPÃRITUS'),
(768, 192, 'SANTIAGO DE CUBA'),
(769, 192, 'VILLA CLARA'),
(770, 196, 'FAMAGUSTA'),
(771, 196, 'KYRENIA'),
(772, 196, 'LARNACA'),
(773, 196, 'NICOSIA'),
(774, 196, 'LIMASSOL'),
(775, 196, 'PAPHOS'),
(776, 203, 'HRADEC KRALOVE'),
(777, 203, 'JABLONEC NAD NISOU'),
(778, 203, 'JIEIN'),
(779, 203, 'JIHLAVA'),
(780, 203, 'KOLIN'),
(781, 203, 'LIBEREC'),
(782, 203, 'MELNIK'),
(783, 203, 'MLADA BOLESLAV'),
(784, 203, 'NACHOD'),
(785, 203, 'NYMBURK'),
(786, 203, 'PARDUBICE'),
(787, 203, 'HLAVNÃ MESTO PRAHA'),
(788, 203, 'SEMILY'),
(789, 203, 'TRUTNOV'),
(790, 203, 'SOUTH MORAVIAN REGION'),
(791, 203, 'JIHOČESKÃ KRAJ'),
(792, 203, 'VYSOČINA'),
(793, 203, 'KARLOVARSKÃ KRAJ'),
(794, 203, 'KRÃLOVÉHRADECKÃ KRAJ'),
(795, 203, 'LIBERECKÃ KRAJ'),
(796, 203, 'OLOMOUCKÃ KRAJ'),
(797, 203, 'MORAVSKOSLEZSKÃ KRAJ'),
(798, 203, 'PARDUBICKÃ KRAJ'),
(799, 203, 'PLZEŇSKÃ KRAJ'),
(800, 203, 'STŘEDOČESKÃ KRAJ'),
(801, 203, 'ÚSTECKÃ KRAJ'),
(802, 203, 'ZLÃNSKÃ KRAJ'),
(803, 204, 'ATAKORA'),
(804, 204, 'ATLANTIQUE'),
(805, 204, 'ALIBORI'),
(806, 204, 'BORGOU'),
(807, 204, 'COLLINES'),
(808, 204, 'KOUFFO'),
(809, 204, 'DONGA'),
(810, 204, 'LITTORAL'),
(811, 204, 'MONO'),
(812, 204, 'OUÉMÉ'),
(813, 204, 'PLATEAU'),
(814, 204, 'ZOU'),
(815, 208, 'ÅRHUS'),
(816, 208, 'BORNHOLM'),
(817, 208, 'FREDERIKSBORG'),
(818, 208, 'FYN'),
(819, 208, 'COPENHAGEN CITY'),
(820, 208, 'KØBENHAVN'),
(821, 208, 'NORDJYLLAND'),
(822, 208, 'RIBE'),
(823, 208, 'RINGKØBING'),
(824, 208, 'ROSKILDE'),
(825, 208, 'SØNDERJYLLAND'),
(826, 208, 'STORSTRØM'),
(827, 208, 'VEJLE'),
(828, 208, 'VESTSJÆLLAND'),
(829, 208, 'VIBORG'),
(830, 208, 'FREDRIKSBERG'),
(831, 208, 'CAPITAL REGION'),
(832, 208, 'CENTRAL JUTLAND'),
(833, 208, 'NORTH JUTLAND'),
(834, 208, 'REGION ZEALAND'),
(835, 208, 'REGION SOUTH DENMARK'),
(836, 212, 'SAINT ANDREW'),
(837, 212, 'SAINT DAVID'),
(838, 212, 'SAINT GEORGE'),
(839, 212, 'SAINT JOHN'),
(840, 212, 'SAINT JOSEPH'),
(841, 212, 'SAINT LUKE'),
(842, 212, 'SAINT MARK'),
(843, 212, 'SAINT PATRICK'),
(844, 212, 'SAINT PAUL'),
(845, 212, 'SAINT PETER'),
(846, 214, 'AZUA'),
(847, 214, 'BAORUCO'),
(848, 214, 'BARAHONA'),
(849, 214, 'DAJABÓN'),
(850, 214, 'DUARTE'),
(851, 214, 'ESPAILLAT'),
(852, 214, 'INDEPENDENCIA'),
(853, 214, 'LA ALTAGRACIA'),
(854, 214, 'ELÃAS PIÑA'),
(855, 214, 'LA ROMANA'),
(856, 214, 'MARÃA TRINIDAD SÃNCHEZ'),
(857, 214, 'MONTE CRISTI'),
(858, 214, 'PEDERNALES'),
(859, 214, 'PUERTO PLATA'),
(860, 214, 'SALCEDO'),
(861, 214, 'SAMANÃ'),
(862, 214, 'SÃNCHEZ RAMÃREZ'),
(863, 214, 'SAN JUAN'),
(864, 214, 'SAN PEDRO DE MACORÃS'),
(865, 214, 'SANTIAGO'),
(866, 214, 'SANTIAGO RODRÃGUEZ'),
(867, 214, 'VALVERDE'),
(868, 214, 'EL SEÃBO'),
(869, 214, 'HATO MAYOR'),
(870, 214, 'LA VEGA'),
(871, 214, 'MONSEÑOR NOUEL'),
(872, 214, 'MONTE PLATA'),
(873, 214, 'SAN CRISTÓBAL'),
(874, 214, 'DISTRITO NACIONAL'),
(875, 214, 'PERAVIA'),
(876, 214, 'SAN JOSÉ DE OCOA'),
(877, 214, 'SANTO DOMINGO'),
(878, 218, 'GALÃPAGOS'),
(879, 218, 'AZUAY'),
(880, 218, 'BOLÃVAR'),
(881, 218, 'CAÑAR'),
(882, 218, 'CARCHI'),
(883, 218, 'CHIMBORAZO'),
(884, 218, 'COTOPAXI'),
(885, 218, 'EL ORO'),
(886, 218, 'ESMERALDAS'),
(887, 218, 'GUAYAS'),
(888, 218, 'IMBABURA'),
(889, 218, 'LOJA'),
(890, 218, 'LOS RÃOS'),
(891, 218, 'MANABÃ'),
(892, 218, 'MORONA-SANTIAGO'),
(893, 218, 'NAPO'),
(894, 218, 'PASTAZA'),
(895, 218, 'PICHINCHA'),
(896, 218, 'TUNGURAHUA'),
(897, 218, 'ZAMORA-CHINCHIPE'),
(898, 218, 'SUCUMBIOS'),
(899, 218, 'NAPO'),
(900, 218, 'ORELLANA'),
(901, 218, 'PROVINCIA DE SANTA ELENA'),
(902, 218, 'PROVINCIA DE SANTO DOMINGO DE LOS TSÃCHILAS'),
(903, 222, 'AHUACHAPÃN'),
(904, 222, 'CABAÑAS'),
(905, 222, 'CHALATENANGO'),
(906, 222, 'CUSCATLÃN'),
(907, 222, 'LA LIBERTAD'),
(908, 222, 'LA PAZ'),
(909, 222, 'LA UNIÓN'),
(910, 222, 'MORAZÃN'),
(911, 222, 'SAN MIGUEL'),
(912, 222, 'SAN SALVADOR'),
(913, 222, 'SANTA ANA'),
(914, 222, 'SAN VICENTE'),
(915, 222, 'SONSONATE'),
(916, 222, 'USULUTÃN'),
(917, 226, 'ANNOBÓN'),
(918, 226, 'BIOKO NORTE'),
(919, 226, 'BIOKO SUR'),
(920, 226, 'CENTRO SUR'),
(921, 226, 'KIÉ-NTEM'),
(922, 226, 'LITORAL'),
(923, 226, 'WELE-NZAS'),
(924, 231, 'ARSI'),
(925, 231, 'GONDER'),
(926, 231, 'BALE'),
(927, 231, 'ERITREA'),
(928, 231, 'GAMO GOFA'),
(929, 231, 'GOJAM'),
(930, 231, 'HARERGE'),
(931, 231, 'ILUBABOR'),
(932, 231, 'KEFA'),
(933, 231, 'ADDIS ABEBA'),
(934, 231, 'SIDAMO'),
(935, 231, 'TIGRAY'),
(936, 231, 'WELEGA KIFLE HAGER'),
(937, 231, 'WELO'),
(938, 231, 'ADIS ABEBA'),
(939, 231, 'ASOSA'),
(940, 231, 'BORENA '),
(941, 231, 'DEBUB GONDER'),
(942, 231, 'DEBUB SHEWA'),
(943, 231, 'DEBUB WELO'),
(944, 231, 'DIRE DAWA'),
(945, 231, 'GAMBELA'),
(946, 231, 'METEKEL'),
(947, 231, 'MIRAB GOJAM'),
(948, 231, 'MIRAB HARERGE'),
(949, 231, 'MIRAB SHEWA'),
(950, 231, 'MISRAK GOJAM'),
(951, 231, 'MISRAK HARERGE'),
(952, 231, 'NAZRET'),
(953, 231, 'OGADEN'),
(954, 231, 'OMO'),
(955, 231, 'SEMEN GONDER'),
(956, 231, 'SEMEN SHEWA'),
(957, 231, 'SEMEN WELO'),
(958, 231, 'TIGRAY'),
(959, 231, 'BALE'),
(960, 231, 'GAMO GOFA'),
(961, 231, 'ILUBABOR'),
(962, 231, 'KEFA'),
(963, 231, 'SIDAMO'),
(964, 231, 'WELEGA'),
(965, 231, 'ĀDĪS ĀBEBA'),
(966, 231, 'ĀFAR'),
(967, 231, 'ĀMARA'),
(968, 231, 'BĪNSHANGUL GUMUZ'),
(969, 231, 'DIRĒ DAWA'),
(970, 231, 'GAMBĒLA HIZBOCH'),
(971, 231, 'HĀRERĪ HIZB'),
(972, 231, 'OROMĪYA'),
(973, 231, 'SUMALĒ'),
(974, 231, 'TIGRAY'),
(975, 231, 'YEDEBUB BIHĒROCH BIHĒRESEBOCH NA HIZBOCH'),
(976, 232, 'ĀNSEBA'),
(977, 232, 'DEBUB'),
(978, 232, 'DEBUBAWĪ KʼEYIH BAHRĪ'),
(979, 232, 'GASH BARKA'),
(980, 232, 'MAʼĀKEL'),
(981, 232, 'SEMĒNAWĪ KʼEYIH BAHRĪ'),
(982, 233, 'HARJUMAA'),
(983, 233, 'HIIUMAA'),
(984, 233, 'IDA-VIRUMAA'),
(985, 233, 'JÄRVAMAA'),
(986, 233, 'JÕGEVAMAA'),
(987, 233, 'LÄÄNEMAA'),
(988, 233, 'LÄÄNE-VIRUMAA'),
(989, 233, 'PÄRNUMAA'),
(990, 233, 'PÕLVAMAA'),
(991, 233, 'RAPLAMAA'),
(992, 233, 'SAAREMAA'),
(993, 233, 'TARTUMAA'),
(994, 233, 'VALGAMAA'),
(995, 233, 'VILJANDIMAA'),
(996, 233, 'VÕRUMAA'),
(997, 234, 'NORÃOYAR REGION'),
(998, 234, 'EYSTUROY REGION'),
(999, 234, 'SANDOY REGION'),
(1000, 234, 'STREYMOY REGION'),
(1001, 234, 'SUÃUROY REGION'),
(1002, 234, 'VÃGAR REGION'),
(1003, 238, 'FALKLAND ISLANDS (ISLAS MALVINAS)'),
(1004, 239, 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS '),
(1005, 242, 'CENTRAL'),
(1006, 242, 'EASTERN'),
(1007, 242, 'NORTHERN'),
(1008, 242, 'ROTUMA'),
(1009, 242, 'WESTERN'),
(1010, 246, 'ÅLAND'),
(1011, 246, 'HAME'),
(1012, 246, 'KESKI-SUOMI'),
(1013, 246, 'KUOPIO'),
(1014, 246, 'KYMI'),
(1015, 246, 'LAPPONIA'),
(1016, 246, 'MIKKELI'),
(1017, 246, 'OULU'),
(1018, 246, 'POHJOIS-KARJALA'),
(1019, 246, 'TURKU JA PORI'),
(1020, 246, 'UUSIMAA'),
(1021, 246, 'VAASA'),
(1022, 246, 'SOUTHERN FINLAND'),
(1023, 246, 'EASTERN FINLAND'),
(1024, 246, 'WESTERN FINLAND'),
(1025, 250, 'AQUITAINE'),
(1026, 250, 'AUVERGNE'),
(1027, 250, 'BASSE-NORMANDIE'),
(1028, 250, 'BOURGOGNE'),
(1029, 250, 'BRITTANY'),
(1030, 250, 'CENTRE'),
(1031, 250, 'CHAMPAGNE-ARDENNE'),
(1032, 250, 'CORSICA'),
(1033, 250, 'FRANCHE-COMTÉ'),
(1034, 250, 'HAUTE-NORMANDIE'),
(1035, 250, 'ÎLE-DE-FRANCE'),
(1036, 250, 'LANGUEDOC-ROUSSILLON'),
(1037, 250, 'LIMOUSIN'),
(1038, 250, 'LORRAINE'),
(1039, 250, 'MIDI-PYRÉNÉES'),
(1040, 250, 'NORD-PAS-DE-CALAIS'),
(1041, 250, 'PAYS DE LA LOIRE'),
(1042, 250, 'PICARDIE'),
(1043, 250, 'POITOU-CHARENTES'),
(1044, 250, 'PROVENCE-ALPES-CÔTE DʼAZUR'),
(1045, 250, 'RHÔNE-ALPES'),
(1046, 250, 'ALSACE'),
(1047, 254, 'GUYANE'),
(1048, 260, 'SAINT-PAUL-ET-AMSTERDAM'),
(1049, 260, 'CROZET'),
(1050, 260, 'KERGUELEN'),
(1051, 260, 'TERRE ADÉLIE'),
(1052, 260, 'ÎLES ÉPARSES'),
(1053, 262, 'ALI SABIEH'),
(1054, 262, 'DIKHIL   '),
(1055, 262, 'DJIBOUTI  '),
(1056, 262, 'OBOCK'),
(1057, 262, 'TADJOURAH'),
(1058, 262, 'DIKHIL'),
(1059, 262, 'DJIBOUTI'),
(1060, 262, 'ARTA'),
(1061, 266, 'ESTUAIRE'),
(1062, 266, 'HAUT-OGOOUÉ'),
(1063, 266, 'MOYEN-OGOOUÉ'),
(1064, 266, 'NGOUNIÉ'),
(1065, 266, 'NYANGA'),
(1066, 266, 'OGOOUÉ-IVINDO'),
(1067, 266, 'OGOOUÉ-LOLO'),
(1068, 266, 'OGOOUÉ-MARITIME'),
(1069, 266, 'WOLEU-NTEM'),
(1070, 268, 'AJARIA'),
(1071, 268, 'TʼBILISI'),
(1072, 268, 'ABKHAZIA'),
(1073, 268, 'KVEMO KARTLI'),
(1074, 268, 'KAKHETI'),
(1075, 268, 'GURIA'),
(1076, 268, 'IMERETI'),
(1077, 268, 'SHIDA KARTLI'),
(1078, 268, 'MTSKHETA-MTIANETI'),
(1079, 268, 'RACHA-LECHKHUMI AND KVEMO SVANETI'),
(1080, 268, 'SAMEGRELO AND ZEMO SVANETI'),
(1081, 268, 'SAMTSKHE-JAVAKHETI'),
(1082, 270, 'BANJUL'),
(1083, 270, 'LOWER RIVER'),
(1084, 270, 'CENTRAL RIVER'),
(1085, 270, 'UPPER RIVER'),
(1086, 270, 'WESTERN'),
(1087, 270, 'NORTH BANK'),
(1088, 275, 'GAZA STRIP'),
(1089, 275, 'WEST BANK'),
(1090, 276, 'BADEN-WÜRTTEMBERG'),
(1091, 276, 'BAVARIA'),
(1092, 276, 'BREMEN'),
(1093, 276, 'HAMBURG'),
(1094, 276, 'HESSE'),
(1095, 276, 'LOWER SAXONY'),
(1096, 276, 'NORTH RHINE-WESTPHALIA'),
(1097, 276, 'RHINELAND-PALATINATE'),
(1098, 276, 'SAARLAND'),
(1099, 276, 'SCHLESWIG-HOLSTEIN'),
(1100, 276, 'BRANDENBURG'),
(1101, 276, 'MECKLENBURG-VORPOMMERN'),
(1102, 276, 'SAXONY'),
(1103, 276, 'SAXONY-ANHALT'),
(1104, 276, 'THURINGIA'),
(1105, 276, 'BERLIN'),
(1106, 288, 'GREATER ACCRA'),
(1107, 288, 'ASHANTI'),
(1108, 288, 'BRONG-AHAFO REGION'),
(1109, 288, 'CENTRAL'),
(1110, 288, 'EASTERN'),
(1111, 288, 'NORTHERN'),
(1112, 288, 'VOLTA'),
(1113, 288, 'WESTERN'),
(1114, 288, 'UPPER EAST'),
(1115, 288, 'UPPER WEST'),
(1116, 292, 'GIBRALTAR'),
(1117, 296, 'LINE ISLANDS'),
(1118, 296, 'GILBERT ISLANDS'),
(1119, 296, 'PHOENIX ISLANDS'),
(1120, 300, 'MOUNT ATHOS'),
(1121, 300, 'EAST MACEDONIA AND THRACE'),
(1122, 300, 'CENTRAL MACEDONIA'),
(1123, 300, 'WEST MACEDONIA'),
(1124, 300, 'THESSALY'),
(1125, 300, 'EPIRUS'),
(1126, 300, 'IONIAN ISLANDS'),
(1127, 300, 'WEST GREECE'),
(1128, 300, 'CENTRAL GREECE'),
(1129, 300, 'PELOPONNESE'),
(1130, 300, 'ATTICA'),
(1131, 300, 'NORTH AEGEAN'),
(1132, 300, 'SOUTH AEGEAN'),
(1133, 300, 'CRETE'),
(1134, 304, 'NORDGRØNLAND'),
(1135, 304, 'ØSTGRØNLAND'),
(1136, 304, 'VESTGRØNLAND'),
(1137, 308, 'SAINT ANDREW'),
(1138, 308, 'SAINT DAVID'),
(1139, 308, 'SAINT GEORGE'),
(1140, 308, 'SAINT JOHN'),
(1141, 308, 'SAINT MARK'),
(1142, 308, 'SAINT PATRICK'),
(1143, 312, 'GUADELOUPE'),
(1144, 316, 'GUAM'),
(1145, 320, 'ALTA VERAPAZ'),
(1146, 320, 'BAJA VERAPAZ'),
(1147, 320, 'CHIMALTENANGO'),
(1148, 320, 'CHIQUIMULA'),
(1149, 320, 'EL PROGRESO'),
(1150, 320, 'ESCUINTLA'),
(1151, 320, 'GUATEMALA'),
(1152, 320, 'HUEHUETENANGO'),
(1153, 320, 'IZABAL'),
(1154, 320, 'JALAPA'),
(1155, 320, 'JUTIAPA'),
(1156, 320, 'PETÉN'),
(1157, 320, 'QUETZALTENANGO'),
(1158, 320, 'QUICHÉ'),
(1159, 320, 'RETALHULEU'),
(1160, 320, 'SACATEPÉQUEZ'),
(1161, 320, 'SAN MARCOS'),
(1162, 320, 'SANTA ROSA'),
(1163, 320, 'SOLOLÃ'),
(1164, 320, 'SUCHITEPÉQUEZ'),
(1165, 320, 'TOTONICAPÃN'),
(1166, 320, 'ZACAPA'),
(1167, 324, 'BEYLA'),
(1168, 324, 'BOFFA'),
(1169, 324, 'BOKÉ'),
(1170, 324, 'CONAKRY'),
(1171, 324, 'DABOLA'),
(1172, 324, 'DALABA'),
(1173, 324, 'DINGUIRAYE'),
(1174, 324, 'FARANAH'),
(1175, 324, 'FORÉCARIAH'),
(1176, 324, 'FRIA'),
(1177, 324, 'GAOUAL'),
(1178, 324, 'GUÉCKÉDOU'),
(1179, 324, 'KANKAN'),
(1180, 324, 'KÉROUANÉ'),
(1181, 324, 'KINDIA'),
(1182, 324, 'KISSIDOUGOU'),
(1183, 324, 'KOUNDARA'),
(1184, 324, 'KOUROUSSA'),
(1185, 324, 'MACENTA'),
(1186, 324, 'MALI'),
(1187, 324, 'MAMOU'),
(1188, 324, 'PITA'),
(1189, 324, 'SIGUIRI'),
(1190, 324, 'TÉLIMÉLÉ'),
(1191, 324, 'TOUGUÉ'),
(1192, 324, 'YOMOU'),
(1193, 324, 'COYAH'),
(1194, 324, 'DUBRÉKA'),
(1195, 324, 'KANKAN'),
(1196, 324, 'KOUBIA'),
(1197, 324, 'LABÉ'),
(1198, 324, 'LÉLOUMA'),
(1199, 324, 'LOLA'),
(1200, 324, 'MANDIANA'),
(1201, 324, 'NZÉRÉKORÉ'),
(1202, 324, 'SIGUIRI'),
(1203, 328, 'BARIMA-WAINI'),
(1204, 328, 'CUYUNI-MAZARUNI'),
(1205, 328, 'DEMERARA-MAHAICA'),
(1206, 328, 'EAST BERBICE-CORENTYNE'),
(1207, 328, 'ESSEQUIBO ISLANDS-WEST DEMERARA'),
(1208, 328, 'MAHAICA-BERBICE'),
(1209, 328, 'POMEROON-SUPENAAM'),
(1210, 328, 'POTARO-SIPARUNI'),
(1211, 328, 'UPPER DEMERARA-BERBICE'),
(1212, 328, 'UPPER TAKUTU-UPPER ESSEQUIBO'),
(1213, 332, 'NORD-OUEST'),
(1214, 332, 'ARTIBONITE'),
(1215, 332, 'CENTRE'),
(1216, 332, 'NORD'),
(1217, 332, 'NORD-EST'),
(1218, 332, 'OUEST'),
(1219, 332, 'SUD'),
(1220, 332, 'SUD-EST'),
(1221, 332, 'GRANDʼANSE'),
(1222, 332, 'NIPPES'),
(1223, 336, 'VATICAN CITY'),
(1224, 340, 'ATLÃNTIDA'),
(1225, 340, 'CHOLUTECA'),
(1226, 340, 'COLÓN'),
(1227, 340, 'COMAYAGUA'),
(1228, 340, 'COPÃN'),
(1229, 340, 'CORTÉS'),
(1230, 340, 'EL PARAÃSO'),
(1231, 340, 'FRANCISCO MORAZÃN'),
(1232, 340, 'GRACIAS A DIOS'),
(1233, 340, 'INTIBUCÃ'),
(1234, 340, 'ISLAS DE LA BAHÃA'),
(1235, 340, 'LA PAZ'),
(1236, 340, 'LEMPIRA'),
(1237, 340, 'OCOTEPEQUE'),
(1238, 340, 'OLANCHO'),
(1239, 340, 'SANTA BÃRBARA'),
(1240, 340, 'VALLE'),
(1241, 340, 'YORO'),
(1242, 344, 'HONG KONG'),
(1243, 348, 'BÃCS-KISKUN'),
(1244, 348, 'BARANYA'),
(1245, 348, 'BÉKÉS'),
(1246, 348, 'BORSOD-ABAÚJ-ZEMPLÉN'),
(1247, 348, 'BUDAPEST'),
(1248, 348, 'CSONGRÃD'),
(1249, 348, 'FEJÉR'),
(1250, 348, 'GYÅR-MOSON-SOPRON'),
(1251, 348, 'HAJDÚ-BIHAR'),
(1252, 348, 'HEVES'),
(1253, 348, 'KOMÃROM-ESZTERGOM'),
(1254, 348, 'NÓGRÃD'),
(1255, 348, 'PEST'),
(1256, 348, 'SOMOGY'),
(1257, 348, 'SZABOLCS-SZATMÃR-BEREG'),
(1258, 348, 'JÃSZ-NAGYKUN-SZOLNOK'),
(1259, 348, 'TOLNA'),
(1260, 348, 'VAS'),
(1261, 348, 'VESZPRÉM'),
(1262, 348, 'ZALA'),
(1263, 352, 'BORGARFJARDARSYSLA'),
(1264, 352, 'DALASYSLA'),
(1265, 352, 'EYJAFJARDARSYSLA'),
(1266, 352, 'GULLBRINGUSYSLA'),
(1267, 352, 'HAFNARFJÖRDUR'),
(1268, 352, 'HUSAVIK'),
(1269, 352, 'ISAFJÖRDUR'),
(1270, 352, 'KEFLAVIK'),
(1271, 352, 'KJOSARSYSLA'),
(1272, 352, 'KOPAVOGUR'),
(1273, 352, 'MYRASYSLA'),
(1274, 352, 'NESKAUPSTADUR'),
(1275, 352, 'NORDUR-ISAFJARDARSYSLA'),
(1276, 352, 'NORDUR-MULASYSLA'),
(1277, 352, 'NORDUR-TINGEYJARSYSLA'),
(1278, 352, 'OLAFSFJÖRDUR'),
(1279, 352, 'RANGARVALLASYSLA'),
(1280, 352, 'REYKJAVÃK'),
(1281, 352, 'SAUDARKROKUR'),
(1282, 352, 'SEYDISFJORDUR'),
(1283, 352, 'SIGLUFJORDUR'),
(1284, 352, 'SKAGAFJARDARSYSLA'),
(1285, 352, 'SNAFELLSNES- OG HNAPPADALSSYSLA'),
(1286, 352, 'STRANDASYSLA'),
(1287, 352, 'SUDUR-MULASYSLA'),
(1288, 352, 'SUDUR-TINGEYJARSYSLA'),
(1289, 352, 'VESTMANNAEYJAR'),
(1290, 352, 'VESTUR-BARDASTRANDARSYSLA'),
(1291, 352, 'VESTUR-HUNAVATNSSYSLA'),
(1292, 352, 'VESTUR-ISAFJARDARSYSLA'),
(1293, 352, 'VESTUR-SKAFTAFELLSSYSLA'),
(1294, 352, 'EAST'),
(1295, 352, 'CAPITAL REGION'),
(1296, 352, 'NORTHEAST'),
(1297, 352, 'NORTHWEST'),
(1298, 352, 'SOUTH'),
(1299, 352, 'SOUTHERN PENINSULA'),
(1300, 352, 'WESTFJORDS'),
(1301, 352, 'WEST'),
(1302, 356, 'ANDAMAN AND NICOBAR ISLANDS'),
(1303, 356, 'ANDHRA PRADESH'),
(1304, 356, 'ASSAM'),
(1305, 356, 'BIHAR'),
(1306, 356, 'CHANDĪGARH'),
(1307, 356, 'DĀDRA AND NAGAR HAVELI'),
(1308, 356, 'NCT'),
(1309, 356, 'GUJARĀT'),
(1310, 356, 'HARYANA'),
(1311, 356, 'HIMĀCHAL PRADESH'),
(1312, 356, 'KASHMIR'),
(1313, 356, 'KERALA'),
(1314, 356, 'LACCADIVES'),
(1315, 356, 'MADHYA PRADESH '),
(1316, 356, 'MAHĀRĀSHTRA'),
(1317, 356, 'MANIPUR'),
(1318, 356, 'MEGHĀLAYA'),
(1319, 356, 'KARNĀTAKA'),
(1320, 356, 'NĀGĀLAND'),
(1321, 356, 'ORISSA'),
(1322, 356, 'PONDICHERRY'),
(1323, 356, 'PUNJAB'),
(1324, 356, 'STATE OF RĀJASTHĀN'),
(1325, 356, 'TAMIL NĀDU'),
(1326, 356, 'TRIPURA'),
(1327, 356, 'UTTAR PRADESH'),
(1328, 356, 'BENGAL'),
(1329, 356, 'SIKKIM'),
(1330, 356, 'ARUNĀCHAL PRADESH'),
(1331, 356, 'MIZORAM'),
(1332, 356, 'DAMAN AND DIU'),
(1333, 356, 'GOA'),
(1334, 356, 'BIHĀR'),
(1335, 356, 'MADHYA PRADESH'),
(1336, 356, 'UTTAR PRADESH'),
(1337, 356, 'CHHATTISGARH'),
(1338, 356, 'JHARKHAND'),
(1339, 356, 'UTTARAKHAND'),
(1340, 360, 'ACEH'),
(1341, 360, 'BALI'),
(1342, 360, 'BENGKULU'),
(1343, 360, 'JAKARTA RAYA'),
(1344, 360, 'JAMBI'),
(1345, 360, 'JAWA BARAT'),
(1346, 360, 'CENTRAL JAVA'),
(1347, 360, 'EAST JAVA'),
(1348, 360, 'YOGYAKARTA '),
(1349, 360, 'WEST KALIMANTAN'),
(1350, 360, 'SOUTH KALIMANTAN'),
(1351, 360, 'KALIMANTAN TENGAH'),
(1352, 360, 'EAST KALIMANTAN'),
(1353, 360, 'LAMPUNG'),
(1354, 360, 'NUSA TENGGARA BARAT'),
(1355, 360, 'EAST NUSA TENGGARA'),
(1356, 360, 'CENTRAL SULAWESI'),
(1357, 360, 'SULAWESI TENGGARA'),
(1358, 360, 'SULAWESI UTARA'),
(1359, 360, 'WEST SUMATRA'),
(1360, 360, 'SUMATERA SELATAN'),
(1361, 360, 'NORTH SUMATRA'),
(1362, 360, 'TIMOR TIMUR'),
(1363, 360, 'MALUKU '),
(1364, 360, 'MALUKU UTARA'),
(1365, 360, 'WEST JAVA'),
(1366, 360, 'NORTH SULAWESI'),
(1367, 360, 'SOUTH SUMATRA'),
(1368, 360, 'BANTEN'),
(1369, 360, 'GORONTALO'),
(1370, 360, 'BANGKA-BELITUNG'),
(1371, 360, 'PAPUA'),
(1372, 360, 'RIAU'),
(1373, 360, 'SOUTH SULAWESI'),
(1374, 360, 'IRIAN JAYA BARAT'),
(1375, 360, 'RIAU ISLANDS'),
(1376, 360, 'SULAWESI BARAT'),
(1377, 364, 'ĀZ̄ĀRBĀYJĀN-E GHARBĪ'),
(1378, 364, 'CHAHĀR MAḨĀLL VA BAKHTĪĀRĪ'),
(1379, 364, 'SĪSTĀN VA BALŪCHESTĀN'),
(1380, 364, 'KOHGĪLŪYEH VA BŪYER AḨMAD'),
(1381, 364, 'FĀRS PROVINCE'),
(1382, 364, 'GĪLĀN'),
(1383, 364, 'HAMADĀN'),
(1384, 364, 'ĪLĀM'),
(1385, 364, 'HORMOZGĀN PROVINCE'),
(1386, 364, 'KERMAN'),
(1387, 364, 'KERMĀNSHĀH'),
(1388, 364, 'KHŪZESTĀN'),
(1389, 364, 'KORDESTĀN'),
(1390, 364, 'MAZANDARAN'),
(1391, 364, 'MARKAZI'),
(1392, 364, 'ZANJAN'),
(1393, 364, 'BUSHEHR PROVINCE'),
(1394, 364, 'LORESTĀN'),
(1395, 364, 'MARKAZI'),
(1396, 364, 'SEMNĀN PROVINCE'),
(1397, 364, 'TEHRĀN'),
(1398, 364, 'ZANJAN'),
(1399, 364, 'EŞFAHĀN'),
(1400, 364, 'KERMĀN'),
(1401, 364, 'OSTAN-E KHORASAN-E RAZAVI'),
(1402, 364, 'YAZD'),
(1403, 364, 'ARDABĪL'),
(1404, 364, 'ĀZ̄ĀRBĀYJĀN-E SHARQĪ'),
(1405, 364, 'MARKAZI PROVINCE'),
(1406, 364, 'MĀZANDARĀN PROVINCE'),
(1407, 364, 'ZANJAN PROVINCE'),
(1408, 364, 'GOLESTĀN'),
(1409, 364, 'QAZVĪN'),
(1410, 364, 'QOM'),
(1411, 364, 'YAZD'),
(1412, 364, 'KHORĀSĀN-E JONŪBĪ'),
(1413, 364, 'RAZAVI KHORASAN PROVINCE'),
(1414, 364, 'KHORĀSĀN-E SHOMĀLĪ'),
(1415, 368, 'ANBAR'),
(1416, 368, 'AL BAŞRAH'),
(1417, 368, 'AL MUTHANNÃ'),
(1418, 368, 'AL QĀDISĪYAH'),
(1419, 368, 'AS SULAYMĀNĪYAH'),
(1420, 368, 'BĀBIL'),
(1421, 368, 'BAGHDĀD'),
(1422, 368, 'DAHŪK'),
(1423, 368, 'DHI QAR'),
(1424, 368, 'DIYALA'),
(1425, 368, 'ARBĪL'),
(1426, 368, 'KARBALĀʼ'),
(1427, 368, 'AT TAʼMĪM'),
(1428, 368, 'MAYSAN'),
(1429, 368, 'NĪNAWÃ'),
(1430, 368, 'WĀSIŢ'),
(1431, 368, 'AN NAJAF'),
(1432, 368, 'ŞALĀḨ AD DĪN'),
(1433, 372, 'CARLOW'),
(1434, 372, 'CAVAN'),
(1435, 372, 'COUNTY CLARE'),
(1436, 372, 'CORK'),
(1437, 372, 'DONEGAL'),
(1438, 372, 'GALWAY'),
(1439, 372, 'COUNTY KERRY'),
(1440, 372, 'COUNTY KILDARE'),
(1441, 372, 'COUNTY KILKENNY'),
(1442, 372, 'LEITRIM'),
(1443, 372, 'LAOIS'),
(1444, 372, 'LIMERICK'),
(1445, 372, 'COUNTY LONGFORD'),
(1446, 372, 'COUNTY LOUTH'),
(1447, 372, 'COUNTY MAYO'),
(1448, 372, 'COUNTY MEATH'),
(1449, 372, 'MONAGHAN'),
(1450, 372, 'COUNTY OFFALY'),
(1451, 372, 'COUNTY ROSCOMMON'),
(1452, 372, 'COUNTY SLIGO'),
(1453, 372, 'COUNTY WATERFORD'),
(1454, 372, 'COUNTY WESTMEATH'),
(1455, 372, 'COUNTY WEXFORD'),
(1456, 372, 'COUNTY WICKLOW'),
(1457, 372, 'DÚN LAOGHAIRE-RATHDOWN'),
(1458, 372, 'FINGAL COUNTY'),
(1459, 372, 'TIPPERARY NORTH RIDING'),
(1460, 372, 'SOUTH DUBLIN'),
(1461, 372, 'TIPPERARY SOUTH RIDING'),
(1462, 376, 'HADAROM'),
(1463, 376, 'HAMERKAZ'),
(1464, 376, 'NORTHERN DISTRICT'),
(1465, 376, 'H̱EFA'),
(1466, 376, 'TEL AVIV'),
(1467, 376, 'YERUSHALAYIM'),
(1468, 380, 'ABRUZZO'),
(1469, 380, 'BASILICATE'),
(1470, 380, 'CALABRIA'),
(1471, 380, 'CAMPANIA'),
(1472, 380, 'EMILIA-ROMAGNA'),
(1473, 380, 'FRIULI'),
(1474, 380, 'LAZIO'),
(1475, 380, 'LIGURIA'),
(1476, 380, 'LOMBARDY'),
(1477, 380, 'THE MARCHES'),
(1478, 380, 'MOLISE'),
(1479, 380, 'PIEDMONT'),
(1480, 380, 'APULIA'),
(1481, 380, 'SARDINIA'),
(1482, 380, 'SICILY'),
(1483, 380, 'TUSCANY'),
(1484, 380, 'TRENTINO-ALTO ADIGE'),
(1485, 380, 'UMBRIA'),
(1486, 380, 'AOSTA VALLEY'),
(1487, 380, 'VENETO'),
(1488, 384, 'VALPARAÃSO REGION'),
(1489, 384, 'ANTOFAGASTA REGION'),
(1490, 384, 'ARAUCANÃA REGION'),
(1491, 384, 'ATACAMA REGION'),
(1492, 384, 'BIOBÃO REGION'),
(1493, 384, 'COQUIMBO REGION'),
(1494, 384, 'MAULE REGION'),
(1495, 384, 'SANTIAGO METROPOLITAN REGION'),
(1496, 384, 'DANANE'),
(1497, 384, 'DIVO'),
(1498, 384, 'FERKESSEDOUGOU'),
(1499, 384, 'GAGNOA'),
(1500, 384, 'KATIOLA'),
(1501, 384, 'KORHOGO'),
(1502, 384, 'ODIENNE'),
(1503, 384, 'SEGUELA'),
(1504, 384, 'TOUBA'),
(1505, 384, 'BONGOUANOU'),
(1506, 384, 'ISSIA'),
(1507, 384, 'LAKOTA'),
(1508, 384, 'MANKONO'),
(1509, 384, 'OUME'),
(1510, 384, 'SOUBRE'),
(1511, 384, 'TINGRELA'),
(1512, 384, 'ZUENOULA'),
(1513, 384, 'BANGOLO'),
(1514, 384, 'BEOUMI'),
(1515, 384, 'BONDOUKOU'),
(1516, 384, 'BOUAFLE'),
(1517, 384, 'BOUAKE'),
(1518, 384, 'DALOA'),
(1519, 384, 'DAOUKRO'),
(1520, 384, 'DUEKOUE'),
(1521, 384, 'GRAND-LAHOU'),
(1522, 384, 'MAN'),
(1523, 384, 'MBAHIAKRO'),
(1524, 384, 'SAKASSOU'),
(1525, 384, 'SAN PEDRO'),
(1526, 384, 'SASSANDRA'),
(1527, 384, 'SINFRA'),
(1528, 384, 'TABOU'),
(1529, 384, 'TANDA'),
(1530, 384, 'TIASSALE'),
(1531, 384, 'TOUMODI'),
(1532, 384, 'VAVOUA'),
(1533, 384, 'ABIDJAN'),
(1534, 384, 'ABOISSO'),
(1535, 384, 'ADIAKE'),
(1536, 384, 'ALEPE'),
(1537, 384, 'BOCANDA'),
(1538, 384, 'DABOU'),
(1539, 384, 'DIMBOKRO'),
(1540, 384, 'GRAND-BASSAM'),
(1541, 384, 'GUIGLO'),
(1542, 384, 'JACQUEVILLE'),
(1543, 384, 'TIEBISSOU'),
(1544, 384, 'TOULEPLEU'),
(1545, 384, 'YAMOUSSOUKRO'),
(1546, 384, 'AGNÉBY'),
(1547, 384, 'BAFING'),
(1548, 384, 'BAS-SASSANDRA'),
(1549, 384, 'DENGUÉLÉ'),
(1550, 384, 'DIX-HUIT MONTAGNES'),
(1551, 384, 'FROMAGER'),
(1552, 384, 'HAUT-SASSANDRA'),
(1553, 384, 'LACS'),
(1554, 384, 'LAGUNES'),
(1555, 384, 'MARAHOUÉ'),
(1556, 384, 'MOYEN-CAVALLY'),
(1557, 384, 'MOYEN-COMOÉ'),
(1558, 384, 'NʼZI-COMOÉ'),
(1559, 384, 'SAVANES'),
(1560, 384, 'SUD-BANDAMA'),
(1561, 384, 'SUD-COMOÉ'),
(1562, 384, 'VALLÉE DU BANDAMA'),
(1563, 384, 'WORODOUGOU'),
(1564, 384, 'ZANZAN'),
(1565, 388, 'CLARENDON'),
(1566, 388, 'HANOVER PARISH'),
(1567, 388, 'MANCHESTER'),
(1568, 388, 'PORTLAND'),
(1569, 388, 'SAINT ANDREW'),
(1570, 388, 'SAINT ANN'),
(1571, 388, 'SAINT CATHERINE'),
(1572, 388, 'ST. ELIZABETH'),
(1573, 388, 'SAINT JAMES'),
(1574, 388, 'SAINT MARY'),
(1575, 388, 'SAINT THOMAS'),
(1576, 388, 'TRELAWNY'),
(1577, 388, 'WESTMORELAND'),
(1578, 388, 'KINGSTON'),
(1579, 392, 'AICHI'),
(1580, 392, 'AKITA'),
(1581, 392, 'AOMORI'),
(1582, 392, 'CHIBA'),
(1583, 392, 'EHIME'),
(1584, 392, 'FUKUI'),
(1585, 392, 'FUKUOKA'),
(1586, 392, 'FUKUSHIMA'),
(1587, 392, 'GIFU'),
(1588, 392, 'GUMMA'),
(1589, 392, 'HIROSHIMA'),
(1590, 392, 'HOKKAIDŌ'),
(1591, 392, 'HYŌGO'),
(1592, 392, 'IBARAKI'),
(1593, 392, 'ISHIKAWA'),
(1594, 392, 'IWATE'),
(1595, 392, 'KAGAWA'),
(1596, 392, 'KAGOSHIMA'),
(1597, 392, 'KANAGAWA'),
(1598, 392, 'KŌCHI'),
(1599, 392, 'KUMAMOTO'),
(1600, 392, 'KYŌTO'),
(1601, 392, 'MIE'),
(1602, 392, 'MIYAGI'),
(1603, 392, 'MIYAZAKI'),
(1604, 392, 'NAGANO'),
(1605, 392, 'NAGASAKI'),
(1606, 392, 'NARA'),
(1607, 392, 'NIIGATA'),
(1608, 392, 'ŌITA'),
(1609, 392, 'OKAYAMA'),
(1610, 392, 'ŌSAKA'),
(1611, 392, 'SAGA'),
(1612, 392, 'SAITAMA'),
(1613, 392, 'SHIGA'),
(1614, 392, 'SHIMANE'),
(1615, 392, 'SHIZUOKA'),
(1616, 392, 'TOCHIGI'),
(1617, 392, 'TOKUSHIMA'),
(1618, 392, 'TŌKYŌ'),
(1619, 392, 'TOTTORI'),
(1620, 392, 'TOYAMA'),
(1621, 392, 'WAKAYAMA'),
(1622, 392, 'YAMAGATA'),
(1623, 392, 'YAMAGUCHI'),
(1624, 392, 'YAMANASHI'),
(1625, 392, 'OKINAWA'),
(1626, 398, 'ALMATY'),
(1627, 398, 'ALMATY QALASY'),
(1628, 398, 'AQMOLA'),
(1629, 398, 'AQTÖBE'),
(1630, 398, 'ASTANA QALASY'),
(1631, 398, 'ATYRAŪ'),
(1632, 398, 'BATYS QAZAQSTAN'),
(1633, 398, 'BAYQONGYR QALASY'),
(1634, 398, 'MANGGHYSTAŪ'),
(1635, 398, 'ONGTÜSTIK QAZAQSTAN'),
(1636, 398, 'PAVLODAR'),
(1637, 398, 'QARAGHANDY'),
(1638, 398, 'QOSTANAY'),
(1639, 398, 'QYZYLORDA'),
(1640, 398, 'EAST KAZAKHSTAN'),
(1641, 398, 'SOLTÜSTIK QAZAQSTAN'),
(1642, 398, 'ZHAMBYL'),
(1643, 400, 'BALQA'),
(1644, 400, 'MA’AN'),
(1645, 400, 'KARAK'),
(1646, 400, 'AL MAFRAQ'),
(1647, 400, 'TAFIELAH'),
(1648, 400, 'AZ ZARQA'),
(1649, 400, 'IRBID'),
(1650, 400, 'MAFRAQ'),
(1651, 400, 'AMMAN'),
(1652, 400, 'ZARQA'),
(1653, 400, 'IRBID'),
(1654, 400, 'MA’AN'),
(1655, 400, 'AJLUN'),
(1656, 400, 'AQABA'),
(1657, 400, 'JERASH'),
(1658, 400, 'MADABA'),
(1659, 404, 'CENTRAL'),
(1660, 404, 'COAST'),
(1661, 404, 'EASTERN'),
(1662, 404, 'NAIROBI AREA'),
(1663, 404, 'NORTH-EASTERN'),
(1664, 404, 'NYANZA'),
(1665, 404, 'RIFT VALLEY'),
(1666, 404, 'WESTERN'),
(1667, 408, 'CHAGANG-DO'),
(1668, 408, 'HAMGYŎNG-NAMDO'),
(1669, 408, 'HWANGHAE-NAMDO'),
(1670, 408, 'HWANGHAE-BUKTO'),
(1671, 408, 'KAESŎNG-SI'),
(1672, 408, 'GANGWON'),
(1673, 408, 'PʼYŎNGAN-BUKTO'),
(1674, 408, 'PʼYŎNGYANG-SI'),
(1675, 408, 'YANGGANG-DO'),
(1676, 408, 'NAMPʼO-SI'),
(1677, 408, 'PʼYŎNGAN-NAMDO'),
(1678, 408, 'HAMGYŎNG-BUKTO'),
(1679, 408, 'NAJIN SŎNBONG-SI'),
(1680, 410, 'JEJU'),
(1681, 410, 'NORTH JEOLLA'),
(1682, 410, 'NORTH CHUNGCHEONG'),
(1683, 410, 'GANGWON'),
(1684, 410, 'BUSAN'),
(1685, 410, 'SEOUL'),
(1686, 410, 'INCHEON'),
(1687, 410, 'GYEONGGI'),
(1688, 410, 'NORTH GYEONGSANG'),
(1689, 410, 'DAEGU'),
(1690, 410, 'SOUTH JEOLLA'),
(1691, 410, 'SOUTH CHUNGCHEONG'),
(1692, 410, 'GWANGJU'),
(1693, 410, 'DAEJEON'),
(1694, 410, 'SOUTH GYEONGSANG'),
(1695, 410, 'ULSAN'),
(1696, 414, 'MUḨĀFAZ̧ATALWAFRAH'),
(1697, 414, 'AL ‘ĀŞIMAH'),
(1698, 414, 'AL AḨMADĪ'),
(1699, 414, 'AL JAHRĀʼ'),
(1700, 414, 'AL FARWANIYAH'),
(1701, 414, 'ḨAWALLĪ'),
(1702, 417, 'BISHKEK'),
(1703, 417, 'CHÜY'),
(1704, 417, 'JALAL-ABAD'),
(1705, 417, 'NARYN'),
(1706, 417, 'TALAS'),
(1707, 417, 'YSYK-KÖL'),
(1708, 417, 'OSH'),
(1709, 417, 'BATKEN'),
(1710, 418, 'ATTAPU'),
(1711, 418, 'CHAMPASAK'),
(1712, 418, 'HOUAPHAN'),
(1713, 418, 'KHAMMOUAN'),
(1714, 418, 'LOUANG NAMTHA'),
(1715, 418, 'LOUANGPHRABANG'),
(1716, 418, 'OUDÔMXAI'),
(1717, 418, 'PHONGSALI'),
(1718, 418, 'SARAVAN'),
(1719, 418, 'SAVANNAKHET'),
(1720, 418, 'VIENTIANE'),
(1721, 418, 'XIAGNABOULI'),
(1722, 418, 'XIANGKHOANG'),
(1723, 418, 'KHAMMOUAN'),
(1724, 418, 'LOUNGNAMTHA'),
(1725, 418, 'LOUANGPHABANG'),
(1726, 418, 'PHÔNGSALI'),
(1727, 418, 'SALAVAN'),
(1728, 418, 'SAVANNAHKHÉT'),
(1729, 418, 'BOKÈO'),
(1730, 418, 'BOLIKHAMXAI'),
(1731, 418, 'VIANGCHAN'),
(1732, 418, 'XÉKONG'),
(1733, 418, 'VIANGCHAN'),
(1734, 422, 'BÉQAA'),
(1735, 422, 'LIBAN-NORD'),
(1736, 422, 'BEYROUTH'),
(1737, 422, 'MONT-LIBAN'),
(1738, 422, 'LIBAN-SUD'),
(1739, 422, 'NABATÎYÉ'),
(1740, 422, 'BÉQAA'),
(1741, 422, 'LIBAN-NORD'),
(1742, 422, 'AAKKÂR'),
(1743, 422, 'BAALBEK-HERMEL'),
(1744, 426, 'BALZERS COMMUNE'),
(1745, 426, 'ESCHEN COMMUNE'),
(1746, 426, 'GAMPRIN COMMUNE'),
(1747, 426, 'MAUREN COMMUNE'),
(1748, 426, 'PLANKEN COMMUNE'),
(1749, 426, 'RUGGELL COMMUNE'),
(1750, 426, 'BEREA DISTRICT'),
(1751, 426, 'BUTHA-BUTHE DISTRICT'),
(1752, 426, 'LERIBE DISTRICT'),
(1753, 426, 'MAFETENG'),
(1754, 426, 'MASERU'),
(1755, 426, 'MOHALEʼS HOEK'),
(1756, 426, 'MOKHOTLONG'),
(1757, 426, 'QACHAʼS NEK'),
(1758, 426, 'QUTHING DISTRICT'),
(1759, 426, 'THABA-TSEKA DISTRICT'),
(1760, 428, 'DOBELES RAJONS'),
(1761, 428, 'AIZKRAUKLES RAJONS'),
(1762, 428, 'ALŪKSNES RAJONS'),
(1763, 428, 'BALVU RAJONS'),
(1764, 428, 'BAUSKAS RAJONS'),
(1765, 428, 'CĒSU RAJONS'),
(1766, 428, 'DAUGAVPILS'),
(1767, 428, 'DAUGAVPILS RAJONS'),
(1768, 428, 'DOBELES RAJONS'),
(1769, 428, 'GULBENES RAJONS'),
(1770, 428, 'JĒKABPILS RAJONS'),
(1771, 428, 'JELGAVA'),
(1772, 428, 'JELGAVAS RAJONS'),
(1773, 428, 'JŪRMALA'),
(1774, 428, 'KRĀSLAVAS RAJONS'),
(1775, 428, 'KULDĪGAS RAJONS'),
(1776, 428, 'LIEPĀJA'),
(1777, 428, 'LIEPĀJAS RAJONS'),
(1778, 428, 'LIMBAŽU RAJONS'),
(1779, 428, 'LUDZAS RAJONS'),
(1780, 428, 'MADONAS RAJONS'),
(1781, 428, 'OGRES RAJONS'),
(1782, 428, 'PREIĻU RAJONS'),
(1783, 428, 'RĒZEKNE'),
(1784, 428, 'RĒZEKNES RAJONS'),
(1785, 428, 'RĪGA'),
(1786, 428, 'RĪGAS RAJONS'),
(1787, 428, 'SALDUS RAJONS'),
(1788, 428, 'TALSU RAJONS'),
(1789, 428, 'TUKUMA RAJONS'),
(1790, 428, 'VALKAS RAJONS'),
(1791, 428, 'VALMIERAS RAJONS'),
(1792, 428, 'VENTSPILS'),
(1793, 428, 'VENTSPILS RAJONS'),
(1794, 430, 'BONG'),
(1795, 430, 'GRAND JIDE'),
(1796, 430, 'GRAND CAPE MOUNT'),
(1797, 430, 'LOFA'),
(1798, 430, 'NIMBA'),
(1799, 430, 'SINOE'),
(1800, 430, 'GRAND BASSA COUNTY'),
(1801, 430, 'GRAND CAPE MOUNT'),
(1802, 430, 'MARYLAND'),
(1803, 430, 'MONTSERRADO'),
(1804, 430, 'BOMI'),
(1805, 430, 'GRAND KRU'),
(1806, 430, 'MARGIBI'),
(1807, 430, 'RIVER CESS'),
(1808, 430, 'GRAND GEDEH'),
(1809, 430, 'LOFA'),
(1810, 430, 'GBARPOLU'),
(1811, 430, 'RIVER GEE'),
(1812, 434, 'AL ABYĀR'),
(1813, 434, 'AL ‘AZĪZĪYAH'),
(1814, 434, 'AL BAYá¸Ā’'),
(1815, 434, 'AL JUFRAH'),
(1816, 434, 'AL JUMAYL'),
(1817, 434, 'AL KUFRAH'),
(1818, 434, 'AL MARJ'),
(1819, 434, 'AL QARĀBŪLL'),
(1820, 434, 'AL QUBBAH'),
(1821, 434, 'AL AJAYLĀT'),
(1822, 434, 'ASH SHĀŢIʼ'),
(1823, 434, 'AZ ZAHRA’'),
(1824, 434, 'BANĪ WALĪD'),
(1825, 434, 'BIN JAWWĀD'),
(1826, 434, 'GHĀT'),
(1827, 434, 'JĀDŪ'),
(1828, 434, 'JĀLŪ'),
(1829, 434, 'JANZŪR'),
(1830, 434, 'MASALLATAH'),
(1831, 434, 'MIZDAH'),
(1832, 434, 'MURZUQ'),
(1833, 434, 'NĀLŪT'),
(1834, 434, 'QAMĪNIS'),
(1835, 434, 'QAŞR BIN GHASHĪR'),
(1836, 434, 'SABHĀ'),
(1837, 434, 'ŞABRĀTAH'),
(1838, 434, 'SHAḨḨĀT'),
(1839, 434, 'ŞURMĀN'),
(1840, 434, 'TAJURA’ '),
(1841, 434, 'TARHŪNAH'),
(1842, 434, 'ŢUBRUQ'),
(1843, 434, 'TŪKRAH'),
(1844, 434, 'ZLĪŢAN'),
(1845, 434, 'ZUWĀRAH'),
(1846, 434, 'AJDĀBIYĀ'),
(1847, 434, 'AL FĀTIḨ'),
(1848, 434, 'AL JABAL AL AKHá¸AR'),
(1849, 434, 'AL KHUMS'),
(1850, 434, 'AN NUQĀŢ AL KHAMS'),
(1851, 434, 'AWBĀRĪ'),
(1852, 434, 'AZ ZĀWIYAH'),
(1853, 434, 'BANGHĀZĪ'),
(1854, 434, 'DARNAH'),
(1855, 434, 'GHADĀMIS'),
(1856, 434, 'GHARYĀN'),
(1857, 434, 'MIŞRĀTAH'),
(1858, 434, 'SAWFAJJĪN'),
(1859, 434, 'SURT'),
(1860, 434, 'ŢARĀBULUS'),
(1861, 434, 'YAFRAN'),
(1862, 438, 'BALZERS'),
(1863, 438, 'ESCHEN'),
(1864, 438, 'GAMPRIN'),
(1865, 438, 'MAUREN'),
(1866, 438, 'PLANKEN'),
(1867, 438, 'RUGGELL'),
(1868, 438, 'SCHAAN'),
(1869, 438, 'SCHELLENBERG'),
(1870, 438, 'TRIESEN'),
(1871, 438, 'TRIESENBERG'),
(1872, 438, 'VADUZ'),
(1873, 440, 'ALYTAUS APSKRITIS'),
(1874, 440, 'KAUNO APSKRITIS'),
(1875, 440, 'KLAIPĖDOS APSKRITIS'),
(1876, 440, 'MARIJAMPOLĖS APSKRITIS'),
(1877, 440, 'PANEVĖŽIO APSKRITIS'),
(1878, 440, 'ŠIAULIŲ APSKRITIS'),
(1879, 440, 'TAURAGĖS APSKRITIS'),
(1880, 440, 'TELŠIŲ APSKRITIS'),
(1881, 440, 'UTENOS APSKRITIS'),
(1882, 440, 'VILNIAUS APSKRITIS'),
(1883, 442, 'DIEKIRCH'),
(1884, 442, 'GREVENMACHER'),
(1885, 442, 'LUXEMBOURG'),
(1886, 446, 'ILHAS'),
(1887, 446, 'MACAU'),
(1888, 450, 'ANTSIRANANA'),
(1889, 450, 'FIANARANTSOA'),
(1890, 450, 'MAHAJANGA'),
(1891, 450, 'TOAMASINA'),
(1892, 450, 'ANTANANARIVO'),
(1893, 450, 'TOLIARA'),
(1894, 454, 'CHIKWAWA'),
(1895, 454, 'CHIRADZULU'),
(1896, 454, 'CHITIPA'),
(1897, 454, 'THYOLO'),
(1898, 454, 'DEDZA'),
(1899, 454, 'DOWA'),
(1900, 454, 'KARONGA'),
(1901, 454, 'KASUNGU'),
(1902, 454, 'LILONGWE'),
(1903, 454, 'MANGOCHI'),
(1904, 454, 'MCHINJI'),
(1905, 454, 'MZIMBA'),
(1906, 454, 'NTCHEU'),
(1907, 454, 'NKHATA BAY'),
(1908, 454, 'NKHOTAKOTA'),
(1909, 454, 'NSANJE'),
(1910, 454, 'NTCHISI'),
(1911, 454, 'RUMPHI'),
(1912, 454, 'SALIMA'),
(1913, 454, 'ZOMBA'),
(1914, 454, 'BLANTYRE'),
(1915, 454, 'MWANZA'),
(1916, 454, 'BALAKA'),
(1917, 454, 'LIKOMA'),
(1918, 454, 'MACHINGA'),
(1919, 454, 'MULANJE'),
(1920, 454, 'PHALOMBE'),
(1921, 458, 'JOHOR'),
(1922, 458, 'KEDAH'),
(1923, 458, 'KELANTAN'),
(1924, 458, 'MELAKA'),
(1925, 458, 'NEGERI SEMBILAN'),
(1926, 458, 'PAHANG'),
(1927, 458, 'PERAK'),
(1928, 458, 'PERLIS'),
(1929, 458, 'PULAU PINANG'),
(1930, 458, 'SARAWAK'),
(1931, 458, 'SELANGOR'),
(1932, 458, 'TERENGGANU'),
(1933, 458, 'KUALA LUMPUR'),
(1934, 458, 'FEDERAL TERRITORY OF LABUAN'),
(1935, 458, 'SABAH'),
(1936, 458, 'PUTRAJAYA'),
(1937, 462, 'MAALE'),
(1938, 462, 'SEENU'),
(1939, 462, 'ALIFU ATHOLHU'),
(1940, 462, 'LHAVIYANI ATHOLHU'),
(1941, 462, 'VAAVU ATHOLHU'),
(1942, 462, 'LAAMU'),
(1943, 462, 'HAA ALIFU ATHOLHU'),
(1944, 462, 'THAA ATHOLHU'),
(1945, 462, 'MEEMU ATHOLHU'),
(1946, 462, 'RAA ATHOLHU'),
(1947, 462, 'FAAFU ATHOLHU'),
(1948, 462, 'DHAALU ATHOLHU'),
(1949, 462, 'BAA ATHOLHU'),
(1950, 462, 'HAA DHAALU ATHOLHU'),
(1951, 462, 'SHAVIYANI ATHOLHU'),
(1952, 462, 'NOONU ATHOLHU'),
(1953, 462, 'KAAFU ATHOLHU'),
(1954, 462, 'GAAFU ALIFU ATHOLHU'),
(1955, 462, 'GAAFU DHAALU ATHOLHU'),
(1956, 462, 'GNYAVIYANI ATOLL'),
(1957, 462, 'ALIFU'),
(1958, 462, 'BAA'),
(1959, 462, 'DHAALU'),
(1960, 462, 'FAAFU'),
(1961, 462, 'GAAFU ALIFU'),
(1962, 462, 'GAAFU DHAALU'),
(1963, 462, 'HAA ALIFU'),
(1964, 462, 'HAA DHAALU'),
(1965, 462, 'KAAFU');
INSERT INTO `_ref_state` (`fldid`, `fldregion_id`, `fldname`) VALUES
(1966, 462, 'LHAVIYANI'),
(1967, 462, 'MAALE'),
(1968, 462, 'MEEMU'),
(1969, 462, 'GNAVIYANI'),
(1970, 462, 'NOONU'),
(1971, 462, 'RAA'),
(1972, 462, 'SHAVIYANI'),
(1973, 462, 'THAA'),
(1974, 462, 'VAAVU'),
(1975, 466, 'BAMAKO'),
(1976, 466, 'GAO'),
(1977, 466, 'KAYES'),
(1978, 466, 'MOPTI'),
(1979, 466, 'SÉGOU'),
(1980, 466, 'SIKASSO'),
(1981, 466, 'KOULIKORO'),
(1982, 466, 'TOMBOUCTOU'),
(1983, 466, 'GAO'),
(1984, 466, 'KIDAL'),
(1985, 470, 'MALTA'),
(1986, 474, 'MARTINIQUE'),
(1987, 478, 'NOUAKCHOTT'),
(1988, 478, 'HODH ECH CHARGUI'),
(1989, 478, 'HODH EL GHARBI'),
(1990, 478, 'ASSABA'),
(1991, 478, 'GORGOL'),
(1992, 478, 'BRAKNA'),
(1993, 478, 'TRARZA'),
(1994, 478, 'ADRAR'),
(1995, 478, 'DAKHLET NOUADHIBOU'),
(1996, 478, 'TAGANT'),
(1997, 478, 'GUIDIMAKA'),
(1998, 478, 'TIRIS ZEMMOUR'),
(1999, 478, 'INCHIRI'),
(2000, 480, 'BLACK RIVER'),
(2001, 480, 'FLACQ'),
(2002, 480, 'GRAND PORT'),
(2003, 480, 'MOKA'),
(2004, 480, 'PAMPLEMOUSSES'),
(2005, 480, 'PLAINES WILHEMS'),
(2006, 480, 'PORT LOUIS'),
(2007, 480, 'RIVIÈRE DU REMPART'),
(2008, 480, 'SAVANNE'),
(2009, 480, 'AGALEGA ISLANDS'),
(2010, 480, 'CARGADOS CARAJOS'),
(2011, 480, 'RODRIGUES'),
(2012, 484, 'AGUASCALIENTES'),
(2013, 484, 'BAJA CALIFORNIA'),
(2014, 484, 'BAJA CALIFORNIA SUR'),
(2015, 484, 'CAMPECHE'),
(2016, 484, 'CHIAPAS'),
(2017, 484, 'CHIHUAHUA'),
(2018, 484, 'COAHUILA'),
(2019, 484, 'COLIMA'),
(2020, 484, 'THE FEDERAL DISTRICT'),
(2021, 484, 'DURANGO'),
(2022, 484, 'GUANAJUATO'),
(2023, 484, 'GUERRERO'),
(2024, 484, 'HIDALGO'),
(2025, 484, 'JALISCO'),
(2026, 484, 'MÉXICO'),
(2027, 484, 'MICHOACÃN'),
(2028, 484, 'MORELOS'),
(2029, 484, 'NAYARIT'),
(2030, 484, 'NUEVO LEÓN'),
(2031, 484, 'OAXACA'),
(2032, 484, 'PUEBLA'),
(2033, 484, 'QUERÉTARO'),
(2034, 484, 'QUINTANA ROO'),
(2035, 484, 'SAN LUIS POTOSÃ'),
(2036, 484, 'SINALOA'),
(2037, 484, 'SONORA'),
(2038, 484, 'TABASCO'),
(2039, 484, 'TAMAULIPAS'),
(2040, 484, 'TLAXCALA'),
(2041, 484, 'VERACRUZ-LLAVE'),
(2042, 484, 'YUCATÃN'),
(2043, 484, 'ZACATECAS'),
(2044, 492, 'MONACO'),
(2045, 496, 'ARHANGAY'),
(2046, 496, 'BAYANHONGOR'),
(2047, 496, 'BAYAN-ÖLGIY'),
(2048, 496, 'EAST AIMAK'),
(2049, 496, 'EAST GOBI AYMAG'),
(2050, 496, 'MIDDLE GOVĬ'),
(2051, 496, 'DZAVHAN'),
(2052, 496, 'GOVĬ-ALTAY'),
(2053, 496, 'HENTIY'),
(2054, 496, 'HOVD'),
(2055, 496, 'HÖVSGÖL'),
(2056, 496, 'SOUTH GOBI AIMAK'),
(2057, 496, 'SOUTH HANGAY'),
(2058, 496, 'SELENGE'),
(2059, 496, 'SÜHBAATAR'),
(2060, 496, 'CENTRAL AIMAK'),
(2061, 496, 'UVS'),
(2062, 496, 'ULAANBAATAR'),
(2063, 496, 'BULGAN'),
(2064, 496, 'DARHAN UUL'),
(2065, 496, 'GOVĬ-SUMBER'),
(2066, 496, 'ORHON'),
(2067, 498, 'UNGHENI JUDETUL'),
(2068, 498, 'BALTI'),
(2069, 498, 'CAHUL'),
(2070, 498, 'STINGA NISTRULUI'),
(2071, 498, 'EDINET'),
(2072, 498, 'GĂGĂUZIA'),
(2073, 498, 'LAPUSNA'),
(2074, 498, 'ORHEI'),
(2075, 498, 'SOROCA'),
(2076, 498, 'TIGHINA'),
(2077, 498, 'UNGHENI'),
(2078, 498, 'CHIŞINĂU'),
(2079, 498, 'STÎNGA NISTRULUI'),
(2080, 498, 'RAIONUL ANENII NOI'),
(2081, 498, 'BĂLŢI'),
(2082, 498, 'RAIONUL BASARABEASCA'),
(2083, 498, 'BENDER'),
(2084, 498, 'RAIONUL BRICENI'),
(2085, 498, 'RAIONUL CAHUL'),
(2086, 498, 'RAIONUL CANTEMIR'),
(2087, 498, 'CĂLĂRAŞI'),
(2088, 498, 'CĂUŞENI'),
(2089, 498, 'RAIONUL CIMIŞLIA'),
(2090, 498, 'RAIONUL CRIULENI'),
(2091, 498, 'RAIONUL DONDUŞENI'),
(2092, 498, 'RAIONUL DROCHIA'),
(2093, 498, 'DUBĂSARI'),
(2094, 498, 'RAIONUL EDINEŢ'),
(2095, 498, 'RAIONUL FĂLEŞTI'),
(2096, 498, 'RAIONUL FLOREŞTI'),
(2097, 498, 'RAIONUL GLODENI'),
(2098, 498, 'RAIONUL HÎNCEŞTI'),
(2099, 498, 'RAIONUL IALOVENI'),
(2100, 498, 'RAIONUL LEOVA'),
(2101, 498, 'RAIONUL NISPORENI'),
(2102, 498, 'RAIONUL OCNIŢA'),
(2103, 498, 'RAIONUL ORHEI'),
(2104, 498, 'RAIONUL REZINA'),
(2105, 498, 'RAIONUL RÎŞCANI'),
(2106, 498, 'RAIONUL SÎNGEREI'),
(2107, 498, 'RAIONUL ŞOLDĂNEŞTI'),
(2108, 498, 'RAIONUL SOROCA'),
(2109, 498, 'ŞTEFAN-VODĂ'),
(2110, 498, 'RAIONUL STRĂŞENI'),
(2111, 498, 'RAIONUL TARACLIA'),
(2112, 498, 'RAIONUL TELENEŞTI'),
(2113, 498, 'RAIONUL UNGHENI'),
(2114, 499, 'OPŠTINA ANDRIJEVICA'),
(2115, 499, 'OPŠTINA BAR'),
(2116, 499, 'OPŠTINA BERANE'),
(2117, 499, 'OPŠTINA BIJELO POLJE'),
(2118, 499, 'OPŠTINA BUDVA'),
(2119, 499, 'OPŠTINA CETINJE'),
(2120, 499, 'OPŠTINA DANILOVGRAD'),
(2121, 499, 'OPŠTINA HERCEG NOVI'),
(2122, 499, 'OPŠTINA KOLAŠIN'),
(2123, 499, 'OPŠTINA KOTOR'),
(2124, 499, 'OPŠTINA MOJKOVAC'),
(2125, 499, 'OPŠTINA NIKŠIĆ'),
(2126, 499, 'OPŠTINA PLAV'),
(2127, 499, 'OPŠTINA PLJEVLJA'),
(2128, 499, 'OPŠTINA PLUŽINE'),
(2129, 499, 'OPŠTINA PODGORICA'),
(2130, 499, 'OPŠTINA ROŽAJE'),
(2131, 499, 'OPŠTINA ŠAVNIK'),
(2132, 499, 'OPŠTINA TIVAT'),
(2133, 499, 'OPŠTINA ULCINJ'),
(2134, 499, 'OPŠTINA ŽABLJAK'),
(2135, 500, 'SAINT ANTHONY'),
(2136, 500, 'SAINT GEORGES'),
(2137, 500, 'SAINT PETER'),
(2138, 504, 'AGADIR'),
(2139, 504, 'AL HOCEÃMA'),
(2140, 504, 'AZIZAL'),
(2141, 504, 'BEN SLIMANE'),
(2142, 504, 'BENI MELLAL'),
(2143, 504, 'BOULEMANE'),
(2144, 504, 'CASABLANCA'),
(2145, 504, 'CHAOUEN'),
(2146, 504, 'EL JADIDA'),
(2147, 504, 'EL KELAA DES SRARHNA'),
(2148, 504, 'ER RACHIDIA'),
(2149, 504, 'ESSAOUIRA'),
(2150, 504, 'FES'),
(2151, 504, 'FIGUIG'),
(2152, 504, 'KENITRA'),
(2153, 504, 'KHEMISSET'),
(2154, 504, 'KHENIFRA'),
(2155, 504, 'KHOURIBGA'),
(2156, 504, 'MARRAKECH'),
(2157, 504, 'MEKNES'),
(2158, 504, 'NADOR'),
(2159, 504, 'OUARZAZATE'),
(2160, 504, 'OUJDA'),
(2161, 504, 'RABAT-SALE'),
(2162, 504, 'SAFI'),
(2163, 504, 'SETTAT'),
(2164, 504, 'TANGER'),
(2165, 504, 'TATA'),
(2166, 504, 'TAZA'),
(2167, 504, 'TIZNIT'),
(2168, 504, 'GUELMIM'),
(2169, 504, 'IFRANE'),
(2170, 504, 'LAAYOUNE'),
(2171, 504, 'TAN-TAN'),
(2172, 504, 'TAOUNATE'),
(2173, 504, 'SIDI KACEM'),
(2174, 504, 'TAROUDANNT'),
(2175, 504, 'TETOUAN'),
(2176, 504, 'LARACHE'),
(2177, 504, 'GRAND CASABLANCA'),
(2178, 504, 'FÈS-BOULEMANE'),
(2179, 504, 'MARRAKECH-TENSIFT-AL HAOUZ'),
(2180, 504, 'MEKNÈS-TAFILALET'),
(2181, 504, 'RABAT-SALÉ-ZEMMOUR-ZAËR'),
(2182, 504, 'CHAOUIA-OUARDIGHA'),
(2183, 504, 'DOUKKALA-ABDA'),
(2184, 504, 'GHARB-CHRARDA-BENI HSSEN'),
(2185, 504, 'GUELMIM-ES SMARA'),
(2186, 504, 'ORIENTAL'),
(2187, 504, 'SOUSS-MASSA-DRÂA'),
(2188, 504, 'TADLA-AZILAL'),
(2189, 504, 'TANGER-TÉTOUAN'),
(2190, 504, 'TAZA-AL HOCEIMA-TAOUNATE'),
(2191, 504, 'LAÂYOUNE-BOUJDOUR-SAKIA EL HAMRA'),
(2192, 508, 'CABO DELGADO'),
(2193, 508, 'GAZA'),
(2194, 508, 'INHAMBANE'),
(2195, 508, 'MAPUTO PROVINCE'),
(2196, 508, 'SOFALA'),
(2197, 508, 'NAMPULA'),
(2198, 508, 'NIASSA'),
(2199, 508, 'TETE'),
(2200, 508, 'ZAMBÉZIA'),
(2201, 508, 'MANICA'),
(2202, 508, 'MAPUTO'),
(2203, 512, 'AD DĀKHILĪYAH'),
(2204, 512, 'AL BĀŢINAH'),
(2205, 512, 'AL WUSŢÃ'),
(2206, 512, 'ASH SHARQĪYAH'),
(2207, 512, 'MASQAŢ'),
(2208, 512, 'MUSANDAM'),
(2209, 512, 'Z̧UFĀR'),
(2210, 512, 'AZ̧ Z̧ĀHIRAH'),
(2211, 512, 'MUḨĀFAZ̧AT AL BURAYMĪ'),
(2212, 516, 'BETHANIEN'),
(2213, 516, 'CAPRIVI OOS'),
(2214, 516, 'KAOKOLAND'),
(2215, 516, 'OTJIWARONGO'),
(2216, 516, 'OUTJO'),
(2217, 516, 'OWAMBO'),
(2218, 516, 'KHOMAS'),
(2219, 516, 'KAVANGO'),
(2220, 516, 'CAPRIVI'),
(2221, 516, 'ERONGO'),
(2222, 516, 'HARDAP'),
(2223, 516, 'KARAS'),
(2224, 516, 'KUNENE'),
(2225, 516, 'OHANGWENA'),
(2226, 516, 'OKAVANGO'),
(2227, 516, 'OMAHEKE'),
(2228, 516, 'OMUSATI'),
(2229, 516, 'OSHANA'),
(2230, 516, 'OSHIKOTO'),
(2231, 516, 'OTJOZONDJUPA'),
(2232, 520, 'AIWO'),
(2233, 520, 'ANABAR'),
(2234, 520, 'ANETAN'),
(2235, 520, 'ANIBARE'),
(2236, 520, 'BAITI'),
(2237, 520, 'BOE'),
(2238, 520, 'BUADA'),
(2239, 520, 'DENIGOMODU'),
(2240, 520, 'EWA'),
(2241, 520, 'IJUW'),
(2242, 520, 'MENENG'),
(2243, 520, 'NIBOK'),
(2244, 520, 'UABOE'),
(2245, 520, 'YAREN'),
(2246, 524, 'BĀGMATĪ'),
(2247, 524, 'BHERĪ'),
(2248, 524, 'DHAWALĀGIRI'),
(2249, 524, 'GANDAKĪ'),
(2250, 524, 'JANAKPUR'),
(2251, 524, 'KARNĀLĪ'),
(2252, 524, 'KOSĪ'),
(2253, 524, 'LUMBINĪ'),
(2254, 524, 'MAHĀKĀLĪ'),
(2255, 524, 'MECHĪ'),
(2256, 524, 'NĀRĀYANĪ'),
(2257, 524, 'RĀPTĪ'),
(2258, 524, 'SAGARMĀTHĀ'),
(2259, 524, 'SETĪ'),
(2260, 528, 'PROVINCIE DRENTHE'),
(2261, 528, 'PROVINCIE FRIESLAND'),
(2262, 528, 'GELDERLAND'),
(2263, 528, 'GRONINGEN'),
(2264, 528, 'LIMBURG'),
(2265, 528, 'NORTH BRABANT'),
(2266, 528, 'NORTH HOLLAND'),
(2267, 528, 'UTRECHT'),
(2268, 528, 'ZEELAND'),
(2269, 528, 'SOUTH HOLLAND'),
(2270, 528, 'OVERIJSSEL'),
(2271, 528, 'FLEVOLAND'),
(2272, 530, 'NETHERLANDS ANTILLES'),
(2273, 533, 'ARUBA'),
(2274, 548, 'AMBRYM'),
(2275, 548, 'AOBA/MAÉWO'),
(2276, 548, 'TORBA'),
(2277, 548, 'ÉFATÉ'),
(2278, 548, 'ÉPI'),
(2279, 548, 'MALAKULA'),
(2280, 548, 'PAAMA'),
(2281, 548, 'PENTECÔTE'),
(2282, 548, 'SANMA'),
(2283, 548, 'SHEPHERD'),
(2284, 548, 'TAFEA'),
(2285, 548, 'MALAMPA'),
(2286, 548, 'PENAMA'),
(2287, 548, 'SHEFA'),
(2288, 554, 'TASMAN'),
(2289, 554, 'AUCKLAND'),
(2290, 554, 'BAY OF PLENTY'),
(2291, 554, 'CANTERBURY'),
(2292, 554, 'GISBORNE'),
(2293, 554, 'HAWKEʼS BAY'),
(2294, 554, 'MANAWATU-WANGANUI'),
(2295, 554, 'MARLBOROUGH'),
(2296, 554, 'NELSON'),
(2297, 554, 'NORTHLAND'),
(2298, 554, 'OTAGO'),
(2299, 554, 'SOUTHLAND'),
(2300, 554, 'TARANAKI'),
(2301, 554, 'WAIKATO'),
(2302, 554, 'WELLINGTON'),
(2303, 554, 'WEST COAST'),
(2304, 558, 'BOACO'),
(2305, 558, 'CARAZO'),
(2306, 558, 'CHINANDEGA'),
(2307, 558, 'CHONTALES'),
(2308, 558, 'ESTELÃ'),
(2309, 558, 'GRANADA'),
(2310, 558, 'JINOTEGA'),
(2311, 558, 'LEÓN'),
(2312, 558, 'MADRIZ'),
(2313, 558, 'MANAGUA'),
(2314, 558, 'MASAYA'),
(2315, 558, 'MATAGALPA'),
(2316, 558, 'NUEVA SEGOVIA'),
(2317, 558, 'RÃO SAN JUAN'),
(2318, 558, 'RIVAS'),
(2319, 558, 'OGUN STATE'),
(2320, 558, 'ATLÃNTICO NORTE'),
(2321, 558, 'ATLÃNTICO SUR'),
(2322, 562, 'AGADEZ'),
(2323, 562, 'DIFFA'),
(2324, 562, 'DOSSO'),
(2325, 562, 'MARADI'),
(2326, 562, 'TAHOUA'),
(2327, 562, 'ZINDER'),
(2328, 562, 'NIAMEY'),
(2329, 562, 'TILLABÉRI'),
(2330, 566, 'LAGOS'),
(2331, 566, 'ABUJA FEDERAL CAPITAL TERRITORY'),
(2332, 566, 'OGUN'),
(2333, 566, 'AKWA IBOM'),
(2334, 566, 'CROSS RIVER'),
(2335, 566, 'KADUNA'),
(2336, 566, 'KATSINA'),
(2337, 566, 'ANAMBRA'),
(2338, 566, 'BENUE'),
(2339, 566, 'BORNO'),
(2340, 566, 'IMO'),
(2341, 566, 'KANO'),
(2342, 566, 'KWARA'),
(2343, 566, 'NIGER'),
(2344, 566, 'OYO'),
(2345, 566, 'ADAMAWA'),
(2346, 566, 'DELTA'),
(2347, 566, 'EDO'),
(2348, 566, 'JIGAWA'),
(2349, 566, 'KEBBI'),
(2350, 566, 'KOGI'),
(2351, 566, 'OSUN'),
(2352, 566, 'TARABA'),
(2353, 566, 'YOBE'),
(2354, 566, 'ABIA'),
(2355, 566, 'BAUCHI'),
(2356, 566, 'ENUGU'),
(2357, 566, 'ONDO'),
(2358, 566, 'PLATEAU'),
(2359, 566, 'RIVERS'),
(2360, 566, 'SOKOTO'),
(2361, 566, 'BAYELSA'),
(2362, 566, 'EBONYI'),
(2363, 566, 'EKITI'),
(2364, 566, 'GOMBE'),
(2365, 566, 'NASSARAWA'),
(2366, 566, 'ZAMFARA'),
(2367, 570, 'NIUE'),
(2368, 574, 'NORFOLK ISLAND'),
(2369, 578, 'SVALBARD'),
(2370, 578, 'AKERSHUS'),
(2371, 578, 'AUST-AGDER'),
(2372, 578, 'BUSKERUD'),
(2373, 578, 'FINNMARK'),
(2374, 578, 'HEDMARK'),
(2375, 578, 'HORDALAND'),
(2376, 578, 'MØRE OG ROMSDAL'),
(2377, 578, 'NORDLAND'),
(2378, 578, 'NORD-TRØNDELAG'),
(2379, 578, 'OPPLAND'),
(2380, 578, 'OSLO COUNTY'),
(2381, 578, 'ØSTFOLD'),
(2382, 578, 'ROGALAND'),
(2383, 578, 'SOGN OG FJORDANE'),
(2384, 578, 'SØR-TRØNDELAG'),
(2385, 578, 'TELEMARK'),
(2386, 578, 'TROMS'),
(2387, 578, 'VEST-AGDER'),
(2388, 578, 'VESTFOLD'),
(2389, 583, 'KOSRAE'),
(2390, 583, 'POHNPEI'),
(2391, 583, 'CHUUK'),
(2392, 583, 'YAP'),
(2393, 584, 'MARSHALL ISLANDS'),
(2394, 585, 'STATE OF NGEREMLENGUI'),
(2395, 586, 'FEDERALLY ADMINISTERED TRIBAL AREAS'),
(2396, 586, 'BALOCHISTĀN'),
(2397, 586, 'NORTH WEST FRONTIER PROVINCE'),
(2398, 586, 'PUNJAB'),
(2399, 586, 'SINDH'),
(2400, 586, 'AZAD KASHMIR'),
(2401, 586, 'GILGIT-BALTISTAN'),
(2402, 586, 'ISLĀMĀBĀD'),
(2403, 591, 'BOCAS DEL TORO'),
(2404, 591, 'CHIRIQUÃ'),
(2405, 591, 'COCLÉ'),
(2406, 591, 'COLÓN'),
(2407, 591, 'DARIÉN'),
(2408, 591, 'HERRERA'),
(2409, 591, 'LOS SANTOS'),
(2410, 591, 'PANAMÃ'),
(2411, 591, 'SAN BLAS'),
(2412, 591, 'VERAGUAS'),
(2413, 598, 'CENTRAL'),
(2414, 598, 'GULF'),
(2415, 598, 'MILNE BAY'),
(2416, 598, 'NORTHERN'),
(2417, 598, 'SOUTHERN HIGHLANDS'),
(2418, 598, 'WESTERN'),
(2419, 598, 'BOUGAINVILLE'),
(2420, 598, 'CHIMBU'),
(2421, 598, 'EASTERN HIGHLANDS'),
(2422, 598, 'EAST NEW BRITAIN'),
(2423, 598, 'EAST SEPIK'),
(2424, 598, 'MADANG'),
(2425, 598, 'MANUS'),
(2426, 598, 'MOROBE'),
(2427, 598, 'NEW IRELAND'),
(2428, 598, 'WESTERN HIGHLANDS'),
(2429, 598, 'WEST NEW BRITAIN'),
(2430, 598, 'SANDAUN'),
(2431, 598, 'ENGA'),
(2432, 598, 'NATIONAL CAPITAL'),
(2433, 600, 'ALTO PARANÃ'),
(2434, 600, 'AMAMBAY'),
(2435, 600, 'CAAGUAZÚ'),
(2436, 600, 'CAAZAPÃ'),
(2437, 600, 'CENTRAL'),
(2438, 600, 'CONCEPCIÓN'),
(2439, 600, 'CORDILLERA'),
(2440, 600, 'GUAIRÃ'),
(2441, 600, 'ITAPÚA'),
(2442, 600, 'MISIONES'),
(2443, 600, 'ÑEEMBUCÚ'),
(2444, 600, 'PARAGUARÃ'),
(2445, 600, 'PRESIDENTE HAYES'),
(2446, 600, 'SAN PEDRO'),
(2447, 600, 'CANINDEYÚ'),
(2448, 600, 'ASUNCIÓN'),
(2449, 600, 'DEPARTAMENTO DE ALTO PARAGUAY'),
(2450, 600, 'BOQUERÓN'),
(2451, 604, 'AMAZONAS'),
(2452, 604, 'ANCASH'),
(2453, 604, 'APURÃMAC'),
(2454, 604, 'AREQUIPA'),
(2455, 604, 'AYACUCHO'),
(2456, 604, 'CAJAMARCA'),
(2457, 604, 'CALLAO'),
(2458, 604, 'CUSCO'),
(2459, 604, 'HUANCAVELICA'),
(2460, 604, 'HUANUCO'),
(2461, 604, 'ICA'),
(2462, 604, 'JUNÃN'),
(2463, 604, 'LA LIBERTAD'),
(2464, 604, 'LAMBAYEQUE'),
(2465, 604, 'LIMA'),
(2466, 604, 'PROVINCIA DE LIMA'),
(2467, 604, 'LORETO'),
(2468, 604, 'MADRE DE DIOS'),
(2469, 604, 'MOQUEGUA'),
(2470, 604, 'PASCO'),
(2471, 604, 'PIURA'),
(2472, 604, 'PUNO'),
(2473, 604, 'SAN MARTÃN'),
(2474, 604, 'TACNA'),
(2475, 604, 'TUMBES'),
(2476, 604, 'UCAYALI'),
(2477, 608, 'ABRA'),
(2478, 608, 'AGUSAN DEL NORTE'),
(2479, 608, 'AGUSAN DEL SUR'),
(2480, 608, 'AKLAN'),
(2481, 608, 'ALBAY'),
(2482, 608, 'ANTIQUE'),
(2483, 608, 'BATAAN'),
(2484, 608, 'BATANES'),
(2485, 608, 'BATANGAS'),
(2486, 608, 'BENGUET'),
(2487, 608, 'BOHOL'),
(2488, 608, 'BUKIDNON'),
(2489, 608, 'BULACAN'),
(2490, 608, 'CAGAYAN'),
(2491, 608, 'CAMARINES NORTE'),
(2492, 608, 'CAMARINES SUR'),
(2493, 608, 'CAMIGUIN'),
(2494, 608, 'CAPIZ'),
(2495, 608, 'CATANDUANES'),
(2496, 608, 'CEBU'),
(2497, 608, 'BASILAN'),
(2498, 608, 'EASTERN SAMAR'),
(2499, 608, 'DAVAO DEL SUR'),
(2500, 608, 'DAVAO ORIENTAL'),
(2501, 608, 'IFUGAO'),
(2502, 608, 'ILOCOS NORTE'),
(2503, 608, 'ILOCOS SUR'),
(2504, 608, 'ILOILO'),
(2505, 608, 'ISABELA'),
(2506, 608, 'LAGUNA'),
(2507, 608, 'LANAO DEL SUR'),
(2508, 608, 'LA UNION'),
(2509, 608, 'LEYTE'),
(2510, 608, 'MARINDUQUE'),
(2511, 608, 'MASBATE'),
(2512, 608, 'OCCIDENTAL MINDORO'),
(2513, 608, 'ORIENTAL MINDORO'),
(2514, 608, 'MISAMIS ORIENTAL'),
(2515, 608, 'MOUNTAIN PROVINCE'),
(2516, 608, 'NEGROS ORIENTAL'),
(2517, 608, 'NUEVA ECIJA'),
(2518, 608, 'NUEVA VIZCAYA'),
(2519, 608, 'PALAWAN'),
(2520, 608, 'PAMPANGA'),
(2521, 608, 'PANGASINAN'),
(2522, 608, 'RIZAL'),
(2523, 608, 'ROMBLON'),
(2524, 608, 'SAMAR'),
(2525, 608, 'MAGUINDANAO'),
(2526, 608, 'COTABATO CITY'),
(2527, 608, 'SORSOGON'),
(2528, 608, 'SOUTHERN LEYTE'),
(2529, 608, 'SULU'),
(2530, 608, 'SURIGAO DEL NORTE'),
(2531, 608, 'SURIGAO DEL SUR'),
(2532, 608, 'TARLAC'),
(2533, 608, 'ZAMBALES'),
(2534, 608, 'ZAMBOANGA DEL NORTE'),
(2535, 608, 'ZAMBOANGA DEL SUR'),
(2536, 608, 'NORTHERN SAMAR'),
(2537, 608, 'QUIRINO'),
(2538, 608, 'SIQUIJOR'),
(2539, 608, 'SOUTH COTABATO'),
(2540, 608, 'SULTAN KUDARAT'),
(2541, 608, 'KALINGA'),
(2542, 608, 'APAYAO'),
(2543, 608, 'TAWI-TAWI'),
(2544, 608, 'ANGELES'),
(2545, 608, 'BACOLOD CITY'),
(2546, 608, 'COMPOSTELA VALLEY'),
(2547, 608, 'BAGUIO'),
(2548, 608, 'DAVAO DEL NORTE'),
(2549, 608, 'BUTUAN'),
(2550, 608, 'GUIMARAS'),
(2551, 608, 'LANAO DEL NORTE'),
(2552, 608, 'MISAMIS OCCIDENTAL'),
(2553, 608, 'CALOOCAN'),
(2554, 608, 'CAVITE'),
(2555, 608, 'CEBU CITY'),
(2556, 608, 'COTABATO'),
(2557, 608, 'DAGUPAN'),
(2558, 608, 'CAGAYAN DE ORO'),
(2559, 608, 'ILIGAN'),
(2560, 608, 'DAVAO'),
(2561, 608, 'LAS PIÑAS'),
(2562, 608, 'MALABON'),
(2563, 608, 'GENERAL SANTOS'),
(2564, 608, 'MUNTINLUPA'),
(2565, 608, 'ILOILO CITY'),
(2566, 608, 'NAVOTAS'),
(2567, 608, 'PARAÑAQUE'),
(2568, 608, 'QUEZON CITY'),
(2569, 608, 'LAPU-LAPU'),
(2570, 608, 'TAGUIG'),
(2571, 608, 'VALENZUELA'),
(2572, 608, 'LUCENA'),
(2573, 608, 'MANDAUE'),
(2574, 608, 'MANILA'),
(2575, 608, 'ZAMBOANGA SIBUGAY'),
(2576, 608, 'NAGA'),
(2577, 608, 'OLONGAPO'),
(2578, 608, 'ORMOC'),
(2579, 608, 'SANTIAGO'),
(2580, 608, 'PATEROS'),
(2581, 608, 'PASAY'),
(2582, 608, 'PUERTO PRINCESA'),
(2583, 608, 'QUEZON'),
(2584, 608, 'TACLOBAN'),
(2585, 608, 'ZAMBOANGA CITY'),
(2586, 608, 'AURORA'),
(2587, 608, 'NEGROS OCCIDENTAL'),
(2588, 608, 'BILIRAN'),
(2589, 608, 'MAKATI CITY'),
(2590, 608, 'SARANGANI'),
(2591, 608, 'MANDALUYONG CITY'),
(2592, 608, 'MARIKINA'),
(2593, 608, 'PASIG'),
(2594, 608, 'SAN JUAN'),
(2595, 612, 'PITCAIRN ISLANDS'),
(2596, 616, 'BIALA PODLASKA'),
(2597, 616, 'BIALYSTOK'),
(2598, 616, 'BIELSKO'),
(2599, 616, 'BYDGOSZCZ'),
(2600, 616, 'CHELM'),
(2601, 616, 'CIECHANOW'),
(2602, 616, 'CZESTOCHOWA'),
(2603, 616, 'ELBLAG'),
(2604, 616, 'GDANSK'),
(2605, 616, 'GORZOW'),
(2606, 616, 'JELENIA GORA'),
(2607, 616, 'KALISZ'),
(2608, 616, 'KATOWICE'),
(2609, 616, 'KIELCE'),
(2610, 616, 'KONIN'),
(2611, 616, 'KOSZALIN'),
(2612, 616, 'KRAKOW'),
(2613, 616, 'KROSNO'),
(2614, 616, 'LEGNICA'),
(2615, 616, 'LESZNO'),
(2616, 616, 'LODZ'),
(2617, 616, 'LOMZA'),
(2618, 616, 'LUBLIN'),
(2619, 616, 'NOWY SACZ'),
(2620, 616, 'OLSZTYN'),
(2621, 616, 'OPOLE'),
(2622, 616, 'OSTROLEKA'),
(2623, 616, 'PITA'),
(2624, 616, 'PIOTRKOW'),
(2625, 616, 'PLOCK'),
(2626, 616, 'POZNAN'),
(2627, 616, 'PRZEMYSL'),
(2628, 616, 'RADOM'),
(2629, 616, 'RZESZOW'),
(2630, 616, 'SIEDLCE'),
(2631, 616, 'SIERADZ'),
(2632, 616, 'SKIERNIEWICE'),
(2633, 616, 'SLUPSK'),
(2634, 616, 'SUWALKI'),
(2635, 616, 'SZCZECIN'),
(2636, 616, 'TARNOBRZEG'),
(2637, 616, 'TARNOW'),
(2638, 616, 'TORUFI'),
(2639, 616, 'WALBRZYCH'),
(2640, 616, 'WARSZAWA'),
(2641, 616, 'WLOCLAWEK'),
(2642, 616, 'WROCLAW'),
(2643, 616, 'ZAMOSC'),
(2644, 616, 'ZIELONA GORA'),
(2645, 616, 'LOWER SILESIAN VOIVODESHIP'),
(2646, 616, 'KUJAWSKO-POMORSKIE VOIVODSHIP'),
(2647, 616, 'ÅÓDŹ VOIVODESHIP'),
(2648, 616, 'LUBLIN VOIVODESHIP'),
(2649, 616, 'LUBUSZ VOIVODSHIP'),
(2650, 616, 'LESSER POLAND VOIVODESHIP'),
(2651, 616, 'MASOVIAN VOIVODESHIP'),
(2652, 616, 'OPOLE VOIVODESHIP'),
(2653, 616, 'SUBCARPATHIAN VOIVODESHIP'),
(2654, 616, 'PODLASIE VOIVODSHIP'),
(2655, 616, 'POMERANIAN VOIVODESHIP'),
(2656, 616, 'SILESIAN VOIVODESHIP'),
(2657, 616, 'ŚWIĘTOKRZYSKIE VOIVODSHIP'),
(2658, 616, 'WARMIAN-MASURIAN VOIVODESHIP'),
(2659, 616, 'GREATER POLAND VOIVODESHIP'),
(2660, 616, 'WEST POMERANIAN VOIVODESHIP'),
(2661, 620, 'AVEIRO'),
(2662, 620, 'BEJA'),
(2663, 620, 'BRAGA'),
(2664, 620, 'BRAGANÇA'),
(2665, 620, 'CASTELO BRANCO'),
(2666, 620, 'COIMBRA'),
(2667, 620, 'ÉVORA'),
(2668, 620, 'FARO'),
(2669, 620, 'MADEIRA'),
(2670, 620, 'GUARDA'),
(2671, 620, 'LEIRIA'),
(2672, 620, 'LISBON'),
(2673, 620, 'PORTALEGRE'),
(2674, 620, 'PORTO'),
(2675, 620, 'SANTARÉM'),
(2676, 620, 'SETÚBAL'),
(2677, 620, 'VIANA DO CASTELO'),
(2678, 620, 'VILA REAL'),
(2679, 620, 'VISEU'),
(2680, 620, 'AZORES'),
(2681, 624, 'BAFATÃ'),
(2682, 624, 'QUINARA'),
(2683, 624, 'OIO'),
(2684, 624, 'BOLAMA'),
(2685, 624, 'CACHEU'),
(2686, 624, 'TOMBALI'),
(2687, 624, 'GABÚ'),
(2688, 624, 'BISSAU'),
(2689, 624, 'BIOMBO'),
(2690, 626, 'BOBONARO'),
(2691, 630, 'PUERTO RICO'),
(2692, 634, 'AD DAWḨAH'),
(2693, 634, 'AL GHUWAYRĪYAH'),
(2694, 634, 'AL JUMAYLĪYAH'),
(2695, 634, 'AL KHAWR'),
(2696, 634, 'AL WAKRAH MUNICIPALITY'),
(2697, 634, 'AR RAYYĀN'),
(2698, 634, 'JARAYAN AL BATINAH'),
(2699, 634, 'MADĪNAT ASH SHAMĀL'),
(2700, 634, 'UMM ŞALĀL'),
(2701, 634, 'AL WAKRAH'),
(2702, 634, 'JARAYĀN AL BĀŢINAH'),
(2703, 634, 'UMM SA‘ĪD'),
(2704, 638, 'RÉUNION'),
(2705, 642, 'ALBA'),
(2706, 642, 'ARAD'),
(2707, 642, 'ARGEŞ'),
(2708, 642, 'BACĂU'),
(2709, 642, 'BIHOR'),
(2710, 642, 'BISTRIŢA-NĂSĂUD'),
(2711, 642, 'BOTOŞANI'),
(2712, 642, 'BRĂILA'),
(2713, 642, 'BRAŞOV'),
(2714, 642, 'BUCUREŞTI'),
(2715, 642, 'BUZĂU'),
(2716, 642, 'CARAŞ-SEVERIN'),
(2717, 642, 'CLUJ'),
(2718, 642, 'CONSTANŢA'),
(2719, 642, 'COVASNA'),
(2720, 642, 'DÂMBOVIŢA'),
(2721, 642, 'DOLJ'),
(2722, 642, 'GALAŢI'),
(2723, 642, 'GORJ'),
(2724, 642, 'HARGHITA'),
(2725, 642, 'HUNEDOARA'),
(2726, 642, 'IALOMIŢA'),
(2727, 642, 'IAŞI'),
(2728, 642, 'MARAMUREŞ'),
(2729, 642, 'MEHEDINŢI'),
(2730, 642, 'MUREŞ'),
(2731, 642, 'NEAMŢ'),
(2732, 642, 'OLT'),
(2733, 642, 'PRAHOVA'),
(2734, 642, 'SĂLAJ'),
(2735, 642, 'SATU MARE'),
(2736, 642, 'SIBIU'),
(2737, 642, 'SUCEAVA'),
(2738, 642, 'TELEORMAN'),
(2739, 642, 'TIMIŞ'),
(2740, 642, 'TULCEA'),
(2741, 642, 'VASLUI'),
(2742, 642, 'VÂLCEA'),
(2743, 642, 'JUDEŢUL VRANCEA'),
(2744, 642, 'CĂLĂRAŞI'),
(2745, 642, 'GIURGIU'),
(2746, 642, 'ILFOV'),
(2747, 643, 'ADYGEYA'),
(2748, 643, 'ALTAY'),
(2749, 643, 'ALTAYSKIY KRAY'),
(2750, 643, 'AMUR'),
(2751, 643, 'ARKHANGELSKAYA OBLAST'),
(2752, 643, 'ASTRAKHAN'),
(2753, 643, 'BASHKORTOSTAN'),
(2754, 643, 'BELGOROD'),
(2755, 643, 'BRJANSK'),
(2756, 643, 'BURYATIYA'),
(2757, 643, 'CHECHNYA'),
(2758, 643, 'TSJELJABINSK'),
(2759, 643, 'ZABAÃKALSKI KRAY'),
(2760, 643, 'CHUKOTSKIY AVTONOMNYY OKRUG'),
(2761, 643, 'CHUVASHIA'),
(2762, 643, 'DAGESTAN'),
(2763, 643, 'INGUSHETIYA'),
(2764, 643, 'IRKUTSK'),
(2765, 643, 'IVANOVO'),
(2766, 643, 'KABARDINO-BALKARIYA'),
(2767, 643, 'KALININGRAD'),
(2768, 643, 'KALMYKIYA'),
(2769, 643, 'KALUGA'),
(2770, 643, 'KARACHAYEVO-CHERKESIYA'),
(2771, 643, 'KARELIYA'),
(2772, 643, 'KEMEROVO'),
(2773, 643, 'KHABAROVSK KRAI'),
(2774, 643, 'KHAKASIYA'),
(2775, 643, 'KHANTY-MANSIYSKIY AVTONOMNYY OKRUG'),
(2776, 643, 'KIROV'),
(2777, 643, 'KOMI'),
(2778, 643, 'KOSTROMA'),
(2779, 643, 'KRASNODARSKIY KRAY'),
(2780, 643, 'KURGAN'),
(2781, 643, 'KURSK'),
(2782, 643, 'LENINGRADSKAYA OBLASTʼ'),
(2783, 643, 'LIPETSK'),
(2784, 643, 'MAGADAN'),
(2785, 643, 'MARIY-EL'),
(2786, 643, 'MORDOVIYA'),
(2787, 643, 'MOSKOVSKAYA OBLASTʼ'),
(2788, 643, 'MOSCOW'),
(2789, 643, 'MURMANSK OBLAST'),
(2790, 643, 'NENETSKIY AVTONOMNYY OKRUG'),
(2791, 643, 'NIZJNIJ NOVGOROD'),
(2792, 643, 'NOVGOROD'),
(2793, 643, 'NOVOSIBIRSK'),
(2794, 643, 'OMSK'),
(2795, 643, 'ORENBURG'),
(2796, 643, 'ORJOL'),
(2797, 643, 'PENZA'),
(2798, 643, 'PRIMORSKIY KRAY'),
(2799, 643, 'PSKOV'),
(2800, 643, 'ROSTOV'),
(2801, 643, 'RJAZAN'),
(2802, 643, 'SAKHA'),
(2803, 643, 'SAKHALIN'),
(2804, 643, 'SAMARA'),
(2805, 643, 'SANKT-PETERBURG'),
(2806, 643, 'SARATOV'),
(2807, 643, 'SEVERNAYA OSETIYA-ALANIYA'),
(2808, 643, 'SMOLENSK'),
(2809, 643, 'STAVROPOLʼSKIY KRAY'),
(2810, 643, 'SVERDLOVSK'),
(2811, 643, 'TAMBOV'),
(2812, 643, 'TATARSTAN'),
(2813, 643, 'TOMSK'),
(2814, 643, 'TULA'),
(2815, 643, 'TVERSKAYA OBLAST’'),
(2816, 643, 'TJUMEN'),
(2817, 643, 'TYVA'),
(2818, 643, 'UDMURTIYA'),
(2819, 643, 'ULJANOVSK'),
(2820, 643, 'VLADIMIR'),
(2821, 643, 'VOLGOGRAD'),
(2822, 643, 'VOLOGDA'),
(2823, 643, 'VORONEZJ'),
(2824, 643, 'YAMALO-NENETSKIY AVTONOMNYY OKRUG'),
(2825, 643, 'JAROSLAVL'),
(2826, 643, 'JEWISH AUTONOMOUS OBLAST'),
(2827, 643, 'PERM'),
(2828, 643, 'KRASNOYARSKIY KRAY'),
(2829, 643, 'KAMTSJATKA'),
(2830, 643, 'RSJA'),
(2831, 646, 'EASTERN PROVINCE'),
(2832, 646, 'KIGALI CITY'),
(2833, 646, 'NORTHERN PROVINCE'),
(2834, 646, 'WESTERN PROVINCE'),
(2835, 646, 'SOUTHERN PROVINCE'),
(2836, 654, 'ASCENSION'),
(2837, 654, 'SAINT HELENA'),
(2838, 654, 'TRISTAN DA CUNHA'),
(2839, 659, 'CHRIST CHURCH NICHOLA TOWN'),
(2840, 659, 'SAINT ANNE SANDY POINT'),
(2841, 659, 'SAINT GEORGE BASSETERRE'),
(2842, 659, 'SAINT GEORGE GINGERLAND'),
(2843, 659, 'SAINT JAMES WINDWA'),
(2844, 659, 'SAINT JOHN CAPESTERRE'),
(2845, 659, 'SAINT JOHN FIGTREE'),
(2846, 659, 'SAINT MARY CAYON'),
(2847, 659, 'SAINT PAUL CAPESTERRE'),
(2848, 659, 'SAINT PAUL CHARLESTOWN'),
(2849, 659, 'SAINT PETER BASSETERRE'),
(2850, 659, 'SAINT THOMAS LOWLAND'),
(2851, 659, 'SAINT THOMAS MIDDLE ISLAND'),
(2852, 659, 'TRINITY PALMETTO POINT'),
(2853, 660, 'ANGUILLA'),
(2854, 662, 'ANSE-LA-RAYE'),
(2855, 662, 'DAUPHIN'),
(2856, 662, 'CASTRIES'),
(2857, 662, 'CHOISEUL'),
(2858, 662, 'DENNERY'),
(2859, 662, 'GROS-ISLET'),
(2860, 662, 'LABORIE'),
(2861, 662, 'MICOUD'),
(2862, 662, 'SOUFRIÈRE'),
(2863, 662, 'VIEUX-FORT'),
(2864, 662, 'PRASLIN'),
(2865, 666, 'SAINT-PIERRE-ET-MIQUELON'),
(2866, 670, 'CHARLOTTE'),
(2867, 670, 'SAINT ANDREW'),
(2868, 670, 'SAINT DAVID'),
(2869, 670, 'SAINT GEORGE'),
(2870, 670, 'SAINT PATRICK'),
(2871, 670, 'GRENADINES'),
(2872, 674, 'ACQUAVIVA'),
(2873, 674, 'CHIESANUOVA'),
(2874, 674, 'DOMAGNANO'),
(2875, 674, 'FAETANO'),
(2876, 674, 'FIORENTINO'),
(2877, 674, 'BORGO MAGGIORE'),
(2878, 674, 'SAN MARINO'),
(2879, 674, 'MONTEGIARDINO'),
(2880, 674, 'SERRAVALLE'),
(2881, 678, 'PRÃNCIPE'),
(2882, 678, 'PRÃNCIPE'),
(2883, 678, 'SÃO TOMÉ'),
(2884, 682, 'AL BĀḨAH'),
(2885, 682, 'AL MADĪNAH'),
(2886, 682, 'ASH SHARQĪYAH'),
(2887, 682, 'AL QAŞĪM'),
(2888, 682, 'AR RIYĀá¸'),
(2889, 682, '‘ASĪR'),
(2890, 682, 'ḨĀʼIL'),
(2891, 682, 'MAKKAH'),
(2892, 682, 'NORTHERN BORDERS REGION'),
(2893, 682, 'NAJRĀN'),
(2894, 682, 'JĪZĀN'),
(2895, 682, 'TABŪK'),
(2896, 682, 'AL JAWF'),
(2897, 686, 'DAKAR'),
(2898, 686, 'DIOURBEL'),
(2899, 686, 'SAINT-LOUIS'),
(2900, 686, 'TAMBACOUNDA'),
(2901, 686, 'THIÈS'),
(2902, 686, 'LOUGA'),
(2903, 686, 'FATICK'),
(2904, 686, 'KAOLACK'),
(2905, 686, 'KOLDA REGION'),
(2906, 686, 'ZIGUINCHOR'),
(2907, 686, 'LOUGA'),
(2908, 686, 'SAINT-LOUIS'),
(2909, 686, 'MATAM'),
(2910, 688, 'AUTONOMNA POKRAJINA VOJVODINA'),
(2911, 690, 'ANSE AUX PINS'),
(2912, 690, 'ANSE BOILEAU'),
(2913, 690, 'ANSE ETOILE'),
(2914, 690, 'ANSE LOUIS'),
(2915, 690, 'ANSE ROYALE'),
(2916, 690, 'BAIE LAZARE'),
(2917, 690, 'BAIE SAINTE ANNE'),
(2918, 690, 'BEAU VALLON'),
(2919, 690, 'BEL AIR'),
(2920, 690, 'BEL OMBRE'),
(2921, 690, 'CASCADE'),
(2922, 690, 'GLACIS'),
(2923, 690, 'SAINT THOMAS MIDDLE ISLAND PARISH'),
(2924, 690, 'GRAND ANSE PRASLIN'),
(2925, 690, 'TRINITY PALMETTO POINT PARISH'),
(2926, 690, 'LA RIVIERE ANGLAISE'),
(2927, 690, 'MONT BUXTON'),
(2928, 690, 'MONT FLEURI'),
(2929, 690, 'PLAISANCE'),
(2930, 690, 'POINTE LARUE'),
(2931, 690, 'PORT GLAUD'),
(2932, 690, 'SAINT LOUIS'),
(2933, 690, 'TAKAMAKA'),
(2934, 690, 'ANSE AUX PINS'),
(2935, 690, 'INNER ISLANDS'),
(2936, 690, 'ENGLISH RIVER'),
(2937, 690, 'PORT GLAUD'),
(2938, 690, 'BAIE LAZARE'),
(2939, 690, 'BEAU VALLON'),
(2940, 690, 'BEL OMBRE'),
(2941, 690, 'GLACIS'),
(2942, 690, 'GRAND ANSE MAHE'),
(2943, 690, 'GRAND ANSE PRASLIN'),
(2944, 690, 'INNER ISLANDS'),
(2945, 690, 'ENGLISH RIVER'),
(2946, 690, 'MONT FLEURI'),
(2947, 690, 'PLAISANCE'),
(2948, 690, 'POINTE LARUE'),
(2949, 690, 'PORT GLAUD'),
(2950, 690, 'TAKAMAKA'),
(2951, 690, 'AU CAP'),
(2952, 690, 'LES MAMELLES'),
(2953, 690, 'ROCHE CAIMAN'),
(2954, 694, 'EASTERN PROVINCE'),
(2955, 694, 'NORTHERN PROVINCE'),
(2956, 694, 'SOUTHERN PROVINCE'),
(2957, 694, 'WESTERN AREA'),
(2958, 702, 'SINGAPORE'),
(2959, 703, 'BANSKOBYSTRICKÃ'),
(2960, 703, 'BRATISLAVSKÃ'),
(2961, 703, 'KOŠICKÃ'),
(2962, 703, 'NITRIANSKY'),
(2963, 703, 'PREŠOVSKÃ'),
(2964, 703, 'TRENČIANSKY'),
(2965, 703, 'TRNAVSKÃ'),
(2966, 703, 'ŽILINSKÃ'),
(2967, 704, 'AN GIANG'),
(2968, 704, 'BẮC THÃI TỈNH'),
(2969, 704, 'BẾN TRE'),
(2970, 704, 'CAO BANG'),
(2971, 704, 'CAO BẰNG'),
(2972, 704, 'TEN BAI'),
(2973, 704, 'ÃỒNG THÃP'),
(2974, 704, 'HÀ BẮC TỈNH'),
(2975, 704, 'HẢI HƯNG TỈNH'),
(2976, 704, 'HẢI PHÒNG'),
(2977, 704, 'HOA BINH'),
(2978, 704, 'HA TAY'),
(2979, 704, 'HỒ CHÃ MINH'),
(2980, 704, 'KIẾN GIANG'),
(2981, 704, 'LÂM ÃỒNG'),
(2982, 704, 'LONG AN'),
(2983, 704, 'MINH HẢI TỈNH'),
(2984, 704, 'THUA THIEN-HUE'),
(2985, 704, 'QUANG NAM'),
(2986, 704, 'KON TUM'),
(2987, 704, 'QUẢNG NAM-ÃÀ NẴNG TỈNH'),
(2988, 704, 'QUẢNG NINH'),
(2989, 704, 'SÔNG BÉ TỈNH'),
(2990, 704, 'SƠN LA'),
(2991, 704, 'TÂY NINH'),
(2992, 704, 'THANH HÓA'),
(2993, 704, 'THÃI BÌNH'),
(2994, 704, 'NIN THUAN'),
(2995, 704, 'TIỀN GIANG'),
(2996, 704, 'VINH PHÚ TỈNH'),
(2997, 704, 'LẠNG SƠN'),
(2998, 704, 'BINH THUAN'),
(2999, 704, 'LONG AN'),
(3000, 704, 'ÃỒNG NAI'),
(3001, 704, 'HA NỘI'),
(3002, 704, 'BÀ RỊA-VŨNG TÀU'),
(3003, 704, 'BÌNH ÃỊNH'),
(3004, 704, 'BÌNH THUẬN'),
(3005, 704, 'GIA LAI'),
(3006, 704, 'HÀ GIANG'),
(3007, 704, 'HÀ TÂY'),
(3008, 704, 'HÀ TĨNH'),
(3009, 704, 'HÒA BÌNH'),
(3010, 704, 'KHÃNH HÒA'),
(3011, 704, 'KON TUM'),
(3012, 704, 'NAM HÀ TỈNH'),
(3013, 704, 'NGHỆ AN'),
(3014, 704, 'NINH BÌNH'),
(3015, 704, 'NINH THUẬN'),
(3016, 704, 'PHÚ YÊN'),
(3017, 704, 'QUẢNG BÌNH'),
(3018, 704, 'QUẢNG NGÃI'),
(3019, 704, 'QUẢNG TRỊ'),
(3020, 704, 'SÓC TRĂNG'),
(3021, 704, 'THỪA THIÊN-HUẾ'),
(3022, 704, 'TRÀ VINH'),
(3023, 704, 'TUYÊN QUANG'),
(3024, 704, 'VĨNH LONG'),
(3025, 704, 'YÊN BÃI'),
(3026, 704, 'BẮC GIANG'),
(3027, 704, 'BẮC KẠN'),
(3028, 704, 'BẠC LIÊU'),
(3029, 704, 'BẮC NINH'),
(3030, 704, 'BÌNH DƯƠNG'),
(3031, 704, 'BÌNH PHƯỚC'),
(3032, 704, 'CÀ MAU'),
(3033, 704, 'ÃÀ NẴNG'),
(3034, 704, 'HẢI DƯƠNG'),
(3035, 704, 'HÀ NAM'),
(3036, 704, 'HƯNG YÊN'),
(3037, 704, 'NAM ÃỊNH'),
(3038, 704, 'PHÚ THỌ'),
(3039, 704, 'QUẢNG NAM'),
(3040, 704, 'THÃI NGUYÊN'),
(3041, 704, 'VĨNH PHÚC'),
(3042, 704, 'CẦN THƠ'),
(3043, 704, 'ÃẮC LẮK'),
(3044, 704, 'LAI CHÂU'),
(3045, 704, 'LÀO CAI'),
(3046, 705, 'NOTRANJSKA'),
(3047, 705, 'KOROŠKA'),
(3048, 705, 'ŠTAJERSKA'),
(3049, 705, 'PREKMURJE'),
(3050, 705, 'PRIMORSKA'),
(3051, 705, 'GORENJSKA'),
(3052, 705, 'DOLENJSKA'),
(3053, 706, 'BAKOOL'),
(3054, 706, 'BANAADIR'),
(3055, 706, 'BARI'),
(3056, 706, 'BAY'),
(3057, 706, 'GALGUDUUD'),
(3058, 706, 'GEDO'),
(3059, 706, 'HIIRAAN'),
(3060, 706, 'MIDDLE JUBA'),
(3061, 706, 'LOWER JUBA'),
(3062, 706, 'MUDUG'),
(3063, 706, 'SANAAG'),
(3064, 706, 'MIDDLE SHABELE'),
(3065, 706, 'SHABEELLAHA HOOSE'),
(3066, 706, 'NUGAAL'),
(3067, 706, 'TOGDHEER'),
(3068, 706, 'WOQOOYI GALBEED'),
(3069, 706, 'AWDAL'),
(3070, 706, 'SOOL'),
(3071, 710, 'KWAZULU-NATAL'),
(3072, 710, 'FREE STATE'),
(3073, 710, 'EASTERN CAPE'),
(3074, 710, 'GAUTENG'),
(3075, 710, 'MPUMALANGA'),
(3076, 710, 'NORTHERN CAPE'),
(3077, 710, 'LIMPOPO'),
(3078, 710, 'NORTH-WEST'),
(3079, 710, 'WESTERN CAPE'),
(3080, 716, 'MANICALAND'),
(3081, 716, 'MIDLANDS'),
(3082, 716, 'MASHONALAND CENTRAL'),
(3083, 716, 'MASHONALAND EAST'),
(3084, 716, 'MASHONALAND WEST'),
(3085, 716, 'MATABELELAND NORTH'),
(3086, 716, 'MATABELELAND SOUTH'),
(3087, 716, 'MASVINGO'),
(3088, 716, 'BULAWAYO'),
(3089, 716, 'HARARE'),
(3090, 724, 'CEUTA'),
(3091, 724, 'BALEARIC ISLANDS'),
(3092, 724, 'LA RIOJA'),
(3093, 724, 'AUTONOMOUS REGION OF MADRID'),
(3094, 724, 'MURCIA'),
(3095, 724, 'NAVARRE'),
(3096, 724, 'ASTURIAS'),
(3097, 724, 'CANTABRIA'),
(3098, 724, 'ANDALUSIA'),
(3099, 724, 'ARAGON'),
(3100, 724, 'CANARY ISLANDS'),
(3101, 724, 'CASTILLE-LA MANCHA'),
(3102, 724, 'CASTILLE AND LEÓN'),
(3103, 724, 'CATALONIA'),
(3104, 724, 'EXTREMADURA'),
(3105, 724, 'GALICIA'),
(3106, 724, 'BASQUE COUNTRY'),
(3107, 724, 'VALENCIA'),
(3108, 732, 'WESTERN SAHARA'),
(3109, 736, 'AL WILĀYAH AL WUSŢÃ'),
(3110, 736, 'AL WILĀYAH AL ISTIWĀʼĪYAH'),
(3111, 736, 'KHARTOUM'),
(3112, 736, 'ASH SHAMALIYAH'),
(3113, 736, 'AL WILĀYAH ASH SHARQĪYAH'),
(3114, 736, 'BA?R AL GHAZAL WILAYAT'),
(3115, 736, 'DARFUR WILAYAT'),
(3116, 736, 'KURDUFAN WILAYAT'),
(3117, 736, 'UPPER NILE'),
(3118, 736, 'RED SEA'),
(3119, 736, 'LAKES'),
(3120, 736, 'AL JAZIRAH'),
(3121, 736, 'AL QADARIF'),
(3122, 736, 'UNITY'),
(3123, 736, 'WHITE NILE'),
(3124, 736, 'BLUE NILE'),
(3125, 736, 'NORTHERN'),
(3126, 736, 'CENTRAL EQUATORIA'),
(3127, 736, 'GHARB AL ISTIWĀʼĪYAH'),
(3128, 736, 'WESTERN BAHR AL GHAZAL'),
(3129, 736, 'GHARB DĀRFŪR'),
(3130, 736, 'GHARB KURDUFĀN'),
(3131, 736, 'JANŪB DĀRFŪR'),
(3132, 736, 'JANŪB KURDUFĀN'),
(3133, 736, 'JUNQALĪ'),
(3134, 736, 'KASSALĀ'),
(3135, 736, 'NAHR AN NĪL'),
(3136, 736, 'SHAMĀL BAḨR AL GHAZĀL'),
(3137, 736, 'SHAMĀL DĀRFŪR'),
(3138, 736, 'SHAMĀL KURDUFĀN'),
(3139, 736, 'EASTERN EQUATORIA'),
(3140, 736, 'SINNĀR'),
(3141, 736, 'WARAB'),
(3142, 740, 'BROKOPONDO'),
(3143, 740, 'COMMEWIJNE'),
(3144, 740, 'CORONIE'),
(3145, 740, 'MAROWIJNE'),
(3146, 740, 'NICKERIE'),
(3147, 740, 'PARA'),
(3148, 740, 'PARAMARIBO'),
(3149, 740, 'SARAMACCA'),
(3150, 740, 'SIPALIWINI'),
(3151, 740, 'WANICA'),
(3152, 748, 'HHOHHO'),
(3153, 748, 'LUBOMBO'),
(3154, 748, 'MANZINI'),
(3155, 748, 'SHISELWENI'),
(3156, 752, 'BLEKINGE'),
(3157, 752, 'GÄVLEBORG'),
(3158, 752, 'GOTLAND'),
(3159, 752, 'HALLAND'),
(3160, 752, 'JÄMTLAND'),
(3161, 752, 'JÖNKÖPING'),
(3162, 752, 'KALMAR'),
(3163, 752, 'DALARNA'),
(3164, 752, 'KRONOBERG'),
(3165, 752, 'NORRBOTTEN'),
(3166, 752, 'ÖREBRO'),
(3167, 752, 'ÖSTERGÖTLAND'),
(3168, 752, 'SÖDERMANLAND'),
(3169, 752, 'UPPSALA'),
(3170, 752, 'VÄRMLAND'),
(3171, 752, 'VÄSTERBOTTEN'),
(3172, 752, 'VÄSTERNORRLAND'),
(3173, 752, 'VÄSTMANLAND'),
(3174, 752, 'STOCKHOLM'),
(3175, 752, 'SKÅNE'),
(3176, 752, 'VÄSTRA GÖTALAND'),
(3177, 756, 'AARGAU'),
(3178, 756, 'APPENZELL INNERRHODEN'),
(3179, 756, 'APPENZELL AUSSERRHODEN'),
(3180, 756, 'BERN'),
(3181, 756, 'BASEL-LANDSCHAFT'),
(3182, 756, 'KANTON BASEL-STADT'),
(3183, 756, 'FRIBOURG'),
(3184, 756, 'GENÈVE'),
(3185, 756, 'GLARUS'),
(3186, 756, 'GRAUBÜNDEN'),
(3187, 756, 'JURA'),
(3188, 756, 'LUZERN'),
(3189, 756, 'NEUCHÂTEL'),
(3190, 756, 'NIDWALDEN'),
(3191, 756, 'OBWALDEN'),
(3192, 756, 'KANTON ST. GALLEN'),
(3193, 756, 'SCHAFFHAUSEN'),
(3194, 756, 'SOLOTHURN'),
(3195, 756, 'SCHWYZ'),
(3196, 756, 'THURGAU'),
(3197, 756, 'TICINO'),
(3198, 756, 'URI'),
(3199, 756, 'VAUD'),
(3200, 756, 'VALAIS'),
(3201, 756, 'ZUG'),
(3202, 756, 'ZÜRICH'),
(3203, 760, 'AL-HASAKAH'),
(3204, 760, 'LATAKIA'),
(3205, 760, 'QUNEITRA'),
(3206, 760, 'AR-RAQQAH'),
(3207, 760, 'AS-SUWAYDA'),
(3208, 760, 'DARAA'),
(3209, 760, 'DEIR EZ-ZOR'),
(3210, 760, 'RIF-DIMASHQ'),
(3211, 760, 'ALEPPO'),
(3212, 760, 'HAMA GOVERNORATE'),
(3213, 760, 'HOMS'),
(3214, 760, 'IDLIB'),
(3215, 760, 'DAMASCUS CITY'),
(3216, 760, 'TARTUS'),
(3217, 762, 'GORNO-BADAKHSHAN'),
(3218, 762, 'KHATLON'),
(3219, 762, 'SUGHD'),
(3220, 762, 'DUSHANBE'),
(3221, 762, 'REGION OF REPUBLICAN SUBORDINATION'),
(3222, 764, 'MAE HONG SON'),
(3223, 764, 'CHIANG MAI'),
(3224, 764, 'CHIANG RAI'),
(3225, 764, 'NAN'),
(3226, 764, 'LAMPHUN'),
(3227, 764, 'LAMPANG'),
(3228, 764, 'PHRAE'),
(3229, 764, 'TAK'),
(3230, 764, 'SUKHOTHAI'),
(3231, 764, 'UTTARADIT'),
(3232, 764, 'KAMPHAENG PHET'),
(3233, 764, 'PHITSANULOK'),
(3234, 764, 'PHICHIT'),
(3235, 764, 'PHETCHABUN'),
(3236, 764, 'UTHAI THANI'),
(3237, 764, 'NAKHON SAWAN'),
(3238, 764, 'NONG KHAI'),
(3239, 764, 'LOEI'),
(3240, 764, 'SAKON NAKHON'),
(3241, 764, 'NAKHON PHANOM'),
(3242, 764, 'KHON KAEN'),
(3243, 764, 'KALASIN'),
(3244, 764, 'MAHA SARAKHAM'),
(3245, 764, 'ROI ET'),
(3246, 764, 'CHAIYAPHUM'),
(3247, 764, 'NAKHON RATCHASIMA'),
(3248, 764, 'BURIRAM'),
(3249, 764, 'SURIN'),
(3250, 764, 'SISAKET'),
(3251, 764, 'NARATHIWAT'),
(3252, 764, 'CHAI NAT'),
(3253, 764, 'SING BURI'),
(3254, 764, 'LOP BURI'),
(3255, 764, 'ANG THONG'),
(3256, 764, 'PHRA NAKHON SI AYUTTHAYA'),
(3257, 764, 'SARA BURI'),
(3258, 764, 'NONTHABURI'),
(3259, 764, 'PATHUM THANI'),
(3260, 764, 'BANGKOK'),
(3261, 764, 'PHAYAO'),
(3262, 764, 'SAMUT PRAKAN'),
(3263, 764, 'NAKHON NAYOK'),
(3264, 764, 'CHACHOENGSAO'),
(3265, 764, 'CHON BURI'),
(3266, 764, 'RAYONG'),
(3267, 764, 'CHANTHABURI'),
(3268, 764, 'TRAT'),
(3269, 764, 'KANCHANABURI'),
(3270, 764, 'SUPHAN BURI'),
(3271, 764, 'RATCHABURI'),
(3272, 764, 'NAKHON PATHOM'),
(3273, 764, 'SAMUT SONGKHRAM'),
(3274, 764, 'SAMUT SAKHON'),
(3275, 764, 'PHETCHABURI'),
(3276, 764, 'PRACHUAP KHIRI KHAN'),
(3277, 764, 'CHUMPHON'),
(3278, 764, 'RANONG'),
(3279, 764, 'SURAT THANI'),
(3280, 764, 'PHANGNGA'),
(3281, 764, 'PHUKET'),
(3282, 764, 'KRABI'),
(3283, 764, 'NAKHON SI THAMMARAT'),
(3284, 764, 'TRANG'),
(3285, 764, 'PHATTHALUNG'),
(3286, 764, 'SATUN'),
(3287, 764, 'SONGKHLA'),
(3288, 764, 'PATTANI'),
(3289, 764, 'YALA'),
(3290, 764, 'YASOTHON'),
(3291, 764, 'NAKHON PHANOM'),
(3292, 764, 'PRACHIN BURI'),
(3293, 764, 'UBON RATCHATHANI'),
(3294, 764, 'UDON THANI'),
(3295, 764, 'AMNAT CHAROEN'),
(3296, 764, 'MUKDAHAN'),
(3297, 764, 'NONG BUA LAMPHU'),
(3298, 764, 'SA KAEO'),
(3299, 768, 'AMLAME'),
(3300, 768, 'ANEHO'),
(3301, 768, 'ATAKPAME'),
(3302, 768, 'BAFILO'),
(3303, 768, 'BASSAR'),
(3304, 768, 'DAPAONG'),
(3305, 768, 'KANTE'),
(3306, 768, 'KLOUTO'),
(3307, 768, 'LAMA-KARA'),
(3308, 768, 'LOME'),
(3309, 768, 'MANGO'),
(3310, 768, 'NIAMTOUGOU'),
(3311, 768, 'NOTSE'),
(3312, 768, 'KPAGOUDA'),
(3313, 768, 'BADOU'),
(3314, 768, 'SOTOUBOUA'),
(3315, 768, 'TABLIGBO'),
(3316, 768, 'TSEVIE'),
(3317, 768, 'TCHAMBA'),
(3318, 768, 'TCHAOUDJO'),
(3319, 768, 'VOGAN'),
(3320, 768, 'CENTRALE'),
(3321, 768, 'KARA'),
(3322, 768, 'MARITIME'),
(3323, 768, 'PLATEAUX'),
(3324, 768, 'SAVANES'),
(3325, 772, 'TOKELAU'),
(3326, 776, 'HA‘APAI'),
(3327, 776, 'TONGATAPU'),
(3328, 776, 'VAVA‘U'),
(3329, 780, 'PORT OF SPAIN'),
(3330, 780, 'SAN FERNANDO'),
(3331, 780, 'CHAGUANAS'),
(3332, 780, 'ARIMA'),
(3333, 780, 'POINT FORTIN BOROUGH'),
(3334, 780, 'COUVA-TABAQUITE-TALPARO'),
(3335, 780, 'DIEGO MARTIN'),
(3336, 780, 'PENAL-DEBE'),
(3337, 780, 'PRINCES TOWN'),
(3338, 780, 'RIO CLARO-MAYARO'),
(3339, 780, 'SAN JUAN-LAVENTILLE'),
(3340, 780, 'SANGRE GRANDE'),
(3341, 780, 'SIPARIA'),
(3342, 780, 'TUNAPUNA-PIARCO'),
(3343, 784, 'ABŪ Z̧ABY'),
(3344, 784, 'AJMAN'),
(3345, 784, 'DUBAYY'),
(3346, 784, 'AL FUJAYRAH'),
(3347, 784, 'RAʼS AL KHAYMAH'),
(3348, 784, 'ASH SHĀRIQAH'),
(3349, 784, 'UMM AL QAYWAYN'),
(3350, 788, 'TUNIS AL JANUBIYAH WILAYAT'),
(3351, 788, 'AL QAŞRAYN'),
(3352, 788, 'AL QAYRAWĀN'),
(3353, 788, 'JUNDŪBAH'),
(3354, 788, 'KEF'),
(3355, 788, 'AL MAHDĪYAH'),
(3356, 788, 'AL MUNASTĪR'),
(3357, 788, 'BĀJAH'),
(3358, 788, 'BANZART'),
(3359, 788, 'NĀBUL'),
(3360, 788, 'SILYĀNAH'),
(3361, 788, 'SŪSAH'),
(3362, 788, 'BIN ‘ARŪS'),
(3363, 788, 'MADANĪN'),
(3364, 788, 'QĀBIS'),
(3365, 788, 'QAFŞAH'),
(3366, 788, 'QIBILĪ'),
(3367, 788, 'ŞAFĀQIS'),
(3368, 788, 'SĪDĪ BŪ ZAYD'),
(3369, 788, 'TAŢĀWĪN'),
(3370, 788, 'TAWZAR'),
(3371, 788, 'TŪNIS'),
(3372, 788, 'ZAGHWĀN'),
(3373, 788, 'ARIANA'),
(3374, 788, 'MANOUBA'),
(3375, 792, 'ADIYAMAN'),
(3376, 792, 'AFYONKARAHISAR'),
(3377, 792, 'AĞRI PROVINCE'),
(3378, 792, 'AMASYA PROVINCE'),
(3379, 792, 'ANTALYA PROVINCE'),
(3380, 792, 'ARTVIN PROVINCE'),
(3381, 792, 'AYDIN PROVINCE'),
(3382, 792, 'BALIKESIR PROVINCE'),
(3383, 792, 'BILECIK PROVINCE'),
(3384, 792, 'BINGÖL PROVINCE'),
(3385, 792, 'BITLIS PROVINCE'),
(3386, 792, 'BOLU PROVINCE'),
(3387, 792, 'BURDUR PROVINCE'),
(3388, 792, 'BURSA'),
(3389, 792, 'ÇANAKKALE PROVINCE'),
(3390, 792, 'ÇORUM PROVINCE'),
(3391, 792, 'DENIZLI PROVINCE'),
(3392, 792, 'DIYARBAKIR'),
(3393, 792, 'EDIRNE PROVINCE'),
(3394, 792, 'ELAZIĞ'),
(3395, 792, 'ERZINCAN PROVINCE'),
(3396, 792, 'ERZURUM PROVINCE'),
(3397, 792, 'ESKIŞEHIR PROVINCE'),
(3398, 792, 'GIRESUN PROVINCE'),
(3399, 792, 'HATAY PROVINCE'),
(3400, 792, 'MERSIN PROVINCE'),
(3401, 792, 'ISPARTA PROVINCE'),
(3402, 792, 'ISTANBUL'),
(3403, 792, 'İZMIR'),
(3404, 792, 'KASTAMONU PROVINCE'),
(3405, 792, 'KAYSERI PROVINCE'),
(3406, 792, 'KIRKLARELI PROVINCE'),
(3407, 792, 'KIRŞEHIR PROVINCE'),
(3408, 792, 'KOCAELI PROVINCE'),
(3409, 792, 'KÜTAHYA PROVINCE'),
(3410, 792, 'MALATYA PROVINCE'),
(3411, 792, 'MANISA PROVINCE'),
(3412, 792, 'KAHRAMANMARAŞ PROVINCE'),
(3413, 792, 'MUĞLA PROVINCE'),
(3414, 792, 'MUŞ PROVINCE'),
(3415, 792, 'NEVŞEHIR'),
(3416, 792, 'ORDU'),
(3417, 792, 'RIZE'),
(3418, 792, 'SAKARYA PROVINCE'),
(3419, 792, 'SAMSUN PROVINCE'),
(3420, 792, 'SINOP PROVINCE'),
(3421, 792, 'SIVAS PROVINCE'),
(3422, 792, 'TEKIRDAĞ PROVINCE'),
(3423, 792, 'TOKAT'),
(3424, 792, 'TRABZON PROVINCE'),
(3425, 792, 'TUNCELI PROVINCE'),
(3426, 792, 'ŞANLIURFA PROVINCE'),
(3427, 792, 'UŞAK PROVINCE'),
(3428, 792, 'VAN PROVINCE'),
(3429, 792, 'YOZGAT PROVINCE'),
(3430, 792, 'ANKARA PROVINCE'),
(3431, 792, 'GÜMÜŞHANE'),
(3432, 792, 'HAKKÂRI PROVINCE'),
(3433, 792, 'KONYA PROVINCE'),
(3434, 792, 'MARDIN PROVINCE'),
(3435, 792, 'NIĞDE'),
(3436, 792, 'SIIRT PROVINCE'),
(3437, 792, 'AKSARAY PROVINCE'),
(3438, 792, 'BATMAN PROVINCE'),
(3439, 792, 'BAYBURT'),
(3440, 792, 'KARAMAN PROVINCE'),
(3441, 792, 'KIRIKKALE PROVINCE'),
(3442, 792, 'ŞIRNAK PROVINCE'),
(3443, 792, 'ADANA PROVINCE'),
(3444, 792, 'ÇANKIRI PROVINCE'),
(3445, 792, 'GAZIANTEP PROVINCE'),
(3446, 792, 'KARS'),
(3447, 792, 'ZONGULDAK'),
(3448, 792, 'ARDAHAN PROVINCE'),
(3449, 792, 'BARTIN PROVINCE'),
(3450, 792, 'IĞDIR PROVINCE'),
(3451, 792, 'KARABÜK'),
(3452, 792, 'KILIS PROVINCE'),
(3453, 792, 'OSMANIYE PROVINCE'),
(3454, 792, 'YALOVA PROVINCE'),
(3455, 792, 'DÜZCE'),
(3456, 795, 'AHAL'),
(3457, 795, 'BALKAN'),
(3458, 795, 'DAŞOGUZ'),
(3459, 795, 'LEBAP'),
(3460, 795, 'MARY'),
(3461, 796, 'TURKS AND CAICOS ISLANDS'),
(3462, 798, 'TUVALU'),
(3463, 800, 'EASTERN REGION'),
(3464, 800, 'NORTHERN REGION'),
(3465, 800, 'CENTRAL REGION'),
(3466, 800, 'WESTERN REGION'),
(3467, 804, 'CHERKASʼKA OBLASTʼ'),
(3468, 804, 'CHERNIHIVSʼKA OBLASTʼ'),
(3469, 804, 'CHERNIVETSʼKA OBLASTʼ'),
(3470, 804, 'DNIPROPETROVSʼKA OBLASTʼ'),
(3471, 804, 'DONETSʼKA OBLASTʼ'),
(3472, 804, 'IVANO-FRANKIVSʼKA OBLASTʼ'),
(3473, 804, 'KHARKIVSʼKA OBLASTʼ'),
(3474, 804, 'KHERSON OBLAST'),
(3475, 804, 'KHMELʼNYTSʼKA OBLASTʼ'),
(3476, 804, 'KIROVOHRADSʼKA OBLASTʼ'),
(3477, 804, 'AVTONOMNA RESPUBLIKA KRYM'),
(3478, 804, 'MISTO KYYIV'),
(3479, 804, 'KIEV OBLAST'),
(3480, 804, 'LUHANSʼKA OBLASTʼ'),
(3481, 804, 'LʼVIVSʼKA OBLASTʼ'),
(3482, 804, 'MYKOLAYIVSʼKA OBLASTʼ'),
(3483, 804, 'ODESSA OBLAST'),
(3484, 804, 'POLTAVA OBLAST'),
(3485, 804, 'RIVNENSʼKA OBLASTʼ'),
(3486, 804, 'MISTO SEVASTOPOL'),
(3487, 804, 'SUMY OBLAST'),
(3488, 804, 'TERNOPILʼSʼKA OBLASTʼ'),
(3489, 804, 'VINNYTSʼKA OBLASTʼ'),
(3490, 804, 'VOLYNSʼKA OBLASTʼ'),
(3491, 804, 'ZAKARPATSʼKA OBLASTʼ'),
(3492, 804, 'ZAPORIZʼKA OBLASTʼ'),
(3493, 804, 'ZHYTOMYRSʼKA OBLASTʼ'),
(3494, 807, 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF'),
(3495, 807, 'ARAČINOVO'),
(3496, 807, 'BAČ'),
(3497, 807, 'BELČIŠTA'),
(3498, 807, 'BEROVO'),
(3499, 807, 'BISTRICA'),
(3500, 807, 'BITOLA'),
(3501, 807, 'BLATEC'),
(3502, 807, 'BOGDANCI'),
(3503, 807, 'OPSTINA BOGOMILA'),
(3504, 807, 'BOGOVINJE'),
(3505, 807, 'BOSILOVO'),
(3506, 807, 'BRVENICA'),
(3507, 807, 'ČAIR'),
(3508, 807, 'CAPARI'),
(3509, 807, 'ČAŠKA'),
(3510, 807, 'ČEGRANA'),
(3511, 807, 'CENTAR'),
(3512, 807, 'CENTAR ŽUPA'),
(3513, 807, 'ČEŠINOVO'),
(3514, 807, 'ČUČER-SANDEVO'),
(3515, 807, 'DEBAR'),
(3516, 807, 'DELČEVO'),
(3517, 807, 'DELOGOŽDI'),
(3518, 807, 'DEMIR HISAR'),
(3519, 807, 'DEMIR KAPIJA'),
(3520, 807, 'DOBRUŠEVO'),
(3521, 807, 'DOLNA BANJICA'),
(3522, 807, 'DOLNENI'),
(3523, 807, 'OPSTINA GJORCE PETROV'),
(3524, 807, 'DRUGOVO'),
(3525, 807, 'DŽEPČIŠTE'),
(3526, 807, 'GAZI BABA'),
(3527, 807, 'GEVGELIJA'),
(3528, 807, 'GOSTIVAR'),
(3529, 807, 'GRADSKO'),
(3530, 807, 'ILINDEN'),
(3531, 807, 'IZVOR'),
(3532, 807, 'JEGUNOVCE'),
(3533, 807, 'KAMENJANE'),
(3534, 807, 'KARBINCI'),
(3535, 807, 'KARPOŠ'),
(3536, 807, 'KAVADARCI'),
(3537, 807, 'KIČEVO'),
(3538, 807, 'KISELA VODA'),
(3539, 807, 'KLEČEVCE'),
(3540, 807, 'KOČANI'),
(3541, 807, 'KONČE'),
(3542, 807, 'KONDOVO'),
(3543, 807, 'KONOPIŠTE'),
(3544, 807, 'KOSEL'),
(3545, 807, 'KRATOVO'),
(3546, 807, 'KRIVA PALANKA'),
(3547, 807, 'KRIVOGAŠTANI'),
(3548, 807, 'KRUŠEVO'),
(3549, 807, 'KUKLIŠ'),
(3550, 807, 'KUKUREČANI'),
(3551, 807, 'KUMANOVO'),
(3552, 807, 'LABUNIŠTA'),
(3553, 807, 'OPSTINA LIPKOVO'),
(3554, 807, 'LOZOVO'),
(3555, 807, 'LUKOVO'),
(3556, 807, 'MAKEDONSKA KAMENICA'),
(3557, 807, 'MAKEDONSKI BROD'),
(3558, 807, 'MAVROVI ANOVI'),
(3559, 807, 'MEŠEIŠTA'),
(3560, 807, 'MIRAVCI'),
(3561, 807, 'MOGILA'),
(3562, 807, 'MURTINO'),
(3563, 807, 'NEGOTINO'),
(3564, 807, 'NEGOTINO-POLOŠKO'),
(3565, 807, 'NOVACI'),
(3566, 807, 'NOVO SELO'),
(3567, 807, 'OBLEŠEVO'),
(3568, 807, 'OHRID'),
(3569, 807, 'ORAŠAC'),
(3570, 807, 'ORIZARI'),
(3571, 807, 'OSLOMEJ'),
(3572, 807, 'PEHČEVO'),
(3573, 807, 'PETROVEC'),
(3574, 807, 'PLASNICA'),
(3575, 807, 'PODAREŠ'),
(3576, 807, 'PRILEP'),
(3577, 807, 'PROBIŠTIP'),
(3578, 807, 'RADOVIŠ'),
(3579, 807, 'OPSTINA RANKOVCE'),
(3580, 807, 'RESEN'),
(3581, 807, 'ROSOMAN'),
(3582, 807, 'OPŠTINA ROSTUŠA'),
(3583, 807, 'SAMOKOV'),
(3584, 807, 'SARAJ'),
(3585, 807, 'ŠIPKOVICA'),
(3586, 807, 'SOPIŠTE'),
(3587, 807, 'SOPOTNICA'),
(3588, 807, 'SRBINOVO'),
(3589, 807, 'STARAVINA'),
(3590, 807, 'STAR DOJRAN'),
(3591, 807, 'STARO NAGORIČANE'),
(3592, 807, 'ŠTIP'),
(3593, 807, 'STRUGA'),
(3594, 807, 'STRUMICA'),
(3595, 807, 'STUDENIČANI'),
(3596, 807, 'ŠUTO ORIZARI'),
(3597, 807, 'SVETI NIKOLE'),
(3598, 807, 'TEARCE'),
(3599, 807, 'TETOVO'),
(3600, 807, 'TOPOLČANI'),
(3601, 807, 'VALANDOVO'),
(3602, 807, 'VASILEVO'),
(3603, 807, 'VELES'),
(3604, 807, 'VELEŠTA'),
(3605, 807, 'VEVČANI'),
(3606, 807, 'VINICA'),
(3607, 807, 'VITOLIŠTE'),
(3608, 807, 'VRANEŠTICA'),
(3609, 807, 'VRAPČIŠTE'),
(3610, 807, 'VRATNICA'),
(3611, 807, 'VRUTOK'),
(3612, 807, 'ZAJAS'),
(3613, 807, 'ZELENIKOVO'),
(3614, 807, 'ŽELINO'),
(3615, 807, 'ŽITOŠE'),
(3616, 807, 'ZLETOVO'),
(3617, 807, 'ZRNOVCI'),
(3618, 818, 'AD DAQAHLĪYAH'),
(3619, 818, 'AL BAḨR AL AḨMAR'),
(3620, 818, 'AL BUḨAYRAH'),
(3621, 818, 'AL FAYYŪM'),
(3622, 818, 'AL GHARBĪYAH'),
(3623, 818, 'ALEXANDRIA'),
(3624, 818, 'AL ISMĀ‘ĪLĪYAH'),
(3625, 818, 'AL JĪZAH'),
(3626, 818, 'AL MINŪFĪYAH'),
(3627, 818, 'AL MINYĀ'),
(3628, 818, 'AL QĀHIRAH'),
(3629, 818, 'AL QALYŪBĪYAH'),
(3630, 818, 'AL WĀDĪ AL JADĪD'),
(3631, 818, 'EASTERN PROVINCE'),
(3632, 818, 'AS SUWAYS'),
(3633, 818, 'ASWĀN'),
(3634, 818, 'ASYŪŢ'),
(3635, 818, 'BANĪ SUWAYF'),
(3636, 818, 'BŪR SA‘ĪD'),
(3637, 818, 'DUMYĀŢ'),
(3638, 818, 'KAFR ASH SHAYKH'),
(3639, 818, 'MAŢRŪḨ'),
(3640, 818, 'QINĀ'),
(3641, 818, 'SŪHĀJ'),
(3642, 818, 'JANŪB SĪNĀʼ'),
(3643, 818, 'SHAMĀL SĪNĀʼ'),
(3644, 818, 'LUXOR'),
(3645, 818, 'HELWAN'),
(3646, 818, '6TH OF OCTOBER'),
(3647, 826, 'ENGLAND'),
(3648, 826, 'NORTHERN IRELAND'),
(3649, 826, 'SCOTLAND'),
(3650, 826, 'WALES'),
(3651, 831, 'GUERNSEY'),
(3652, 833, 'ISLE OF MAN'),
(3653, 834, 'ARUSHA'),
(3654, 834, 'PWANI'),
(3655, 834, 'DODOMA'),
(3656, 834, 'IRINGA'),
(3657, 834, 'KIGOMA'),
(3658, 834, 'KILIMANJARO'),
(3659, 834, 'LINDI'),
(3660, 834, 'MARA'),
(3661, 834, 'MBEYA'),
(3662, 834, 'MOROGORO'),
(3663, 834, 'MTWARA'),
(3664, 834, 'MWANZA'),
(3665, 834, 'PEMBA NORTH'),
(3666, 834, 'RUVUMA'),
(3667, 834, 'SHINYANGA'),
(3668, 834, 'SINGIDA'),
(3669, 834, 'TABORA'),
(3670, 834, 'TANGA'),
(3671, 834, 'KAGERA'),
(3672, 834, 'PEMBA SOUTH'),
(3673, 834, 'ZANZIBAR CENTRAL/SOUTH'),
(3674, 834, 'ZANZIBAR NORTH'),
(3675, 834, 'DAR ES SALAAM'),
(3676, 834, 'RUKWA'),
(3677, 834, 'ZANZIBAR URBAN/WEST'),
(3678, 834, 'ARUSHA'),
(3679, 834, 'MANYARA'),
(3680, 840, 'ALASKA'),
(3681, 840, 'ALABAMA'),
(3682, 840, 'ARKANSAS'),
(3683, 840, 'ARIZONA'),
(3684, 840, 'CALIFORNIA'),
(3685, 840, 'COLORADO'),
(3686, 840, 'CONNECTICUT'),
(3687, 840, 'DISTRICT OF COLUMBIA'),
(3688, 840, 'DELAWARE'),
(3689, 840, 'FLORIDA'),
(3690, 840, 'GEORGIA'),
(3691, 840, 'HAWAII'),
(3692, 840, 'IOWA'),
(3693, 840, 'IDAHO'),
(3694, 840, 'ILLINOIS'),
(3695, 840, 'INDIANA'),
(3696, 840, 'KANSAS'),
(3697, 840, 'KENTUCKY'),
(3698, 840, 'LOUISIANA'),
(3699, 840, 'MASSACHUSETTS'),
(3700, 840, 'MARYLAND'),
(3701, 840, 'MAINE'),
(3702, 840, 'MICHIGAN'),
(3703, 840, 'MINNESOTA'),
(3704, 840, 'MISSOURI'),
(3705, 840, 'MISSISSIPPI'),
(3706, 840, 'MONTANA'),
(3707, 840, 'NORTH CAROLINA'),
(3708, 840, 'NORTH DAKOTA'),
(3709, 840, 'NEBRASKA'),
(3710, 840, 'NEW HAMPSHIRE'),
(3711, 840, 'NEW JERSEY'),
(3712, 840, 'NEW MEXICO'),
(3713, 840, 'NEVADA'),
(3714, 840, 'NEW YORK'),
(3715, 840, 'OHIO'),
(3716, 840, 'OKLAHOMA'),
(3717, 840, 'OREGON'),
(3718, 840, 'PENNSYLVANIA'),
(3719, 840, 'RHODE ISLAND'),
(3720, 840, 'SOUTH CAROLINA'),
(3721, 840, 'SOUTH DAKOTA'),
(3722, 840, 'TENNESSEE'),
(3723, 840, 'TEXAS'),
(3724, 840, 'UTAH'),
(3725, 840, 'VIRGINIA'),
(3726, 840, 'VERMONT'),
(3727, 840, 'WASHINGTON'),
(3728, 840, 'WISCONSIN'),
(3729, 840, 'WEST VIRGINIA'),
(3730, 840, 'WYOMING'),
(3731, 850, 'VIRGIN ISLANDS'),
(3732, 854, 'BOUCLE DU MOUHOUN'),
(3733, 854, 'CASCADES'),
(3734, 854, 'CENTRE'),
(3735, 854, 'CENTRE-EST'),
(3736, 854, 'CENTRE-NORD'),
(3737, 854, 'CENTRE-OUEST'),
(3738, 854, 'CENTRE-SUD'),
(3739, 854, 'EST'),
(3740, 854, 'HAUTS-BASSINS'),
(3741, 854, 'NORD'),
(3742, 854, 'PLATEAU-CENTRAL'),
(3743, 854, 'SAHEL'),
(3744, 854, 'SUD-OUEST'),
(3745, 855, 'KOMUNA E DEÇANIT'),
(3746, 855, 'KOMUNA E DRAGASHIT'),
(3747, 855, 'KOMUNA E FERIZAJT'),
(3748, 855, 'KOMUNA E FUSHË KOSOVËS'),
(3749, 855, 'KOMUNA E GJAKOVËS'),
(3750, 855, 'KOMUNA E GJILANIT'),
(3751, 855, 'KOMUNA E DRENASIT'),
(3752, 855, 'KOMUNA E ISTOGUT'),
(3753, 855, 'KOMUNA E KAÇANIKUT'),
(3754, 855, 'KOMUNA E KAMENICËS'),
(3755, 855, 'KOMUNA E KLINËS'),
(3756, 855, 'KOMUNA E LEPOSAVIQIT'),
(3757, 855, 'KOMUNA E LIPJANIT'),
(3758, 855, 'KOMUNA E MALISHEVES'),
(3759, 855, 'KOMUNA E MITROVICËS'),
(3760, 855, 'KOMUNA E NOVOBËRDËS'),
(3761, 855, 'KOMUNA E OBILIQIT'),
(3762, 855, 'KOMUNA E PEJËS'),
(3763, 855, 'KOMUNA E PODUJEVËS'),
(3764, 855, 'KOMUNA E PRISHTINËS'),
(3765, 855, 'KOMUNA E PRIZRENIT'),
(3766, 855, 'KOMUNA E RAHOVECIT'),
(3767, 855, 'KOMUNA E SHTËRPCËS'),
(3768, 855, 'KOMUNA E SHTIMES'),
(3769, 855, 'KOMUNA E SKENDERAJT'),
(3770, 855, 'KOMUNA E THËRANDËS'),
(3771, 855, 'KOMUNA E VITISË'),
(3772, 855, 'KOMUNA E VUSHTRRISË'),
(3773, 855, 'KOMUNA E ZUBIN POTOKUT'),
(3774, 855, 'KOMUNA E ZVEÇANIT'),
(3775, 858, 'ARTIGAS DEPARTMENT'),
(3776, 858, 'CANELONES DEPARTMENT'),
(3777, 858, 'CERRO LARGO DEPARTMENT'),
(3778, 858, 'COLONIA DEPARTMENT'),
(3779, 858, 'DURAZNO'),
(3780, 858, 'FLORES'),
(3781, 858, 'FLORIDA DEPARTMENT'),
(3782, 858, 'LAVALLEJA DEPARTMENT'),
(3783, 858, 'MALDONADO DEPARTMENT'),
(3784, 858, 'MONTEVIDEO'),
(3785, 858, 'PAYSANDÚ'),
(3786, 858, 'RÃO NEGRO'),
(3787, 858, 'RIVERA'),
(3788, 858, 'ROCHA'),
(3789, 858, 'SALTO'),
(3790, 858, 'SAN JOSÉ'),
(3791, 858, 'SORIANO DEPARTMENT'),
(3792, 858, 'TACUAREMBÓ'),
(3793, 858, 'TREINTA Y TRES'),
(3794, 860, 'ANDIJON'),
(3795, 860, 'BUXORO'),
(3796, 860, 'FARG ONA'),
(3797, 860, 'XORAZM'),
(3798, 860, 'NAMANGAN'),
(3799, 860, 'NAVOIY'),
(3800, 860, 'QASHQADARYO'),
(3801, 860, 'KARAKALPAKSTAN'),
(3802, 860, 'SAMARQAND'),
(3803, 860, 'SURXONDARYO'),
(3804, 860, 'TOSHKENT SHAHRI'),
(3805, 860, 'TOSHKENT'),
(3806, 860, 'JIZZAX'),
(3807, 860, 'SIRDARYO'),
(3808, 862, 'AMAZONAS'),
(3809, 862, 'ANZOÃTEGUI'),
(3810, 862, 'APURE'),
(3811, 862, 'ARAGUA'),
(3812, 862, 'BARINAS'),
(3813, 862, 'BOLÃVAR'),
(3814, 862, 'CARABOBO'),
(3815, 862, 'COJEDES'),
(3816, 862, 'DELTA AMACURO'),
(3817, 862, 'DISTRITO FEDERAL'),
(3818, 862, 'FALCÓN'),
(3819, 862, 'GUÃRICO'),
(3820, 862, 'LARA'),
(3821, 862, 'MÉRIDA'),
(3822, 862, 'MIRANDA'),
(3823, 862, 'MONAGAS'),
(3824, 862, 'ISLA MARGARITA'),
(3825, 862, 'PORTUGUESA'),
(3826, 862, 'SUCRE'),
(3827, 862, 'TÃCHIRA'),
(3828, 862, 'TRUJILLO'),
(3829, 862, 'YARACUY'),
(3830, 862, 'ZULIA'),
(3831, 862, 'DEPENDENCIAS FEDERALES'),
(3832, 862, 'DISTRITO CAPITAL'),
(3833, 862, 'VARGAS'),
(3834, 882, 'A‘ANA'),
(3835, 882, 'AIGA-I-LE-TAI'),
(3836, 882, 'ATUA'),
(3837, 882, 'FA‘ASALELEAGA'),
(3838, 882, 'GAGA‘EMAUGA'),
(3839, 882, 'VA‘A-O-FONOTI'),
(3840, 882, 'GAGAIFOMAUGA'),
(3841, 882, 'PALAULI'),
(3842, 882, 'SATUPA‘ITEA'),
(3843, 882, 'TUAMASAGA'),
(3844, 882, 'VAISIGANO'),
(3845, 887, 'ABYAN'),
(3846, 887, '‘ADAN'),
(3847, 887, 'AL MAHRAH'),
(3848, 887, 'ḨAá¸RAMAWT'),
(3849, 887, 'SHABWAH'),
(3850, 887, 'SAN’A’'),
(3851, 887, 'TA’IZZ'),
(3852, 887, 'AL ḨUDAYDAH'),
(3853, 887, 'DHAMAR'),
(3854, 887, 'AL MAḨWĪT'),
(3855, 887, 'DHAMĀR'),
(3856, 887, 'MAʼRIB'),
(3857, 887, 'ŞA‘DAH'),
(3858, 887, 'ŞAN‘Āʼ'),
(3859, 887, 'Aá¸ á¸ĀLI‘'),
(3860, 887, 'OMRAN');
INSERT INTO `_ref_state` (`fldid`, `fldregion_id`, `fldname`) VALUES
(3861, 887, 'AL BAYá¸Āʼ'),
(3862, 887, 'AL JAWF'),
(3863, 887, 'ḨAJJAH'),
(3864, 887, 'IBB'),
(3865, 887, 'LAḨIJ'),
(3866, 887, 'TA‘IZZ'),
(3867, 887, 'AMANAT AL ASIMAH'),
(3868, 887, 'MUḨĀFAZ̧AT RAYMAH'),
(3869, 891, 'CRNA GORA (MONTENEGRO)'),
(3870, 891, 'SRBIJA (SERBIA)'),
(3871, 894, 'NORTH-WESTERN'),
(3872, 894, 'COPPERBELT'),
(3873, 894, 'WESTERN'),
(3874, 894, 'SOUTHERN'),
(3875, 894, 'CENTRAL'),
(3876, 894, 'EASTERN'),
(3877, 894, 'NORTHERN'),
(3878, 894, 'LUAPULA'),
(3879, 894, 'LUSAKA');

-- --------------------------------------------------------

--
-- Table structure for table `_sys_menu`
--

CREATE TABLE IF NOT EXISTS `_sys_menu` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(8) DEFAULT NULL,
  `name` varchar(30) DEFAULT NULL,
  `parents` varchar(8) DEFAULT '0',
  `module` varchar(8) DEFAULT '0',
  `submenu` smallint(1) DEFAULT '0',
  `urls` varchar(100) DEFAULT '0',
  `urls2` varchar(100) DEFAULT '0',
  `access` varchar(100) DEFAULT NULL,
  `seq` int(11) NOT NULL,
  `language` varchar(3) DEFAULT 'EN',
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=283 ;

--
-- Dumping data for table `_sys_menu`
--

INSERT INTO `_sys_menu` (`fldid`, `code`, `name`, `parents`, `module`, `submenu`, `urls`, `urls2`, `access`, `seq`, `language`) VALUES
(1, 'DB', 'Dashboard', '0', '0', 0, 'home', 'home', 'ALL', 1, 'EN'),
(5, 'MF', 'Setup', '0', '10', 1, '#', '0', 'ALL', 90, 'EN'),
(6, 'UM', 'UserMaster', '12', '9', 0, 'admin/usermaster', '0', 'ALL', 1, 'EN'),
(7, 'UML', 'UserMasterList', '12', '9', 0, 'admin/usermasterlist', '0', 'ALL', 2, 'EN'),
(12, 'ADM', 'Admin', '0', '9', 1, '#', '0', 'ADMIN', 99, 'EN'),
(14, 'MUL', 'MenuList', '12', '9', 0, 'admin/menumasterlist', '0', 'ALL', 4, 'EN'),
(39, 'MSCL', 'CountryMasterList', '5', '10', 0, 'setting/countrylist', '0', 'ALL', 81, 'EN'),
(40, 'MSSL', 'StateList', '5', '10', 0, 'setting/statelist', '0', 'ALL', 80, 'EN'),
(41, 'MSLM', 'LocationMaster', '5', '10', 0, 'setting/locationlist', '0', 'ALL', 70, 'EN'),
(45, 'GLM', 'GeneralLedger', '0', '1', 1, '#', '0', 'ALL', 2, 'EN'),
(46, 'GLS', 'Setup', '45', '1', 1, '#', '0', 'ALL', 90, 'EN'),
(50, 'PUR', 'Purchasing', '0', '8', 1, '#', '0', 'ALL', 30, 'EN'),
(51, 'PURST', 'Setup', '50', '5', 1, '#', '0', 'ALL', 90, 'EN'),
(52, 'PURRPT', 'Reports', '50', '5', 1, '#', '0', 'ALL', 70, 'EN'),
(54, 'PURSTSPL', 'Supplierslist', '51', '5', 0, 'supplier/supplierList', '0', 'ALL', 51, 'EN'),
(67, 'PURSTUM', 'uom', '51', '5', 0, 'purchasesetting/unitmeasurelist', '0', 'ALL', 55, 'EN'),
(68, 'PURSTUMC', 'UOMCONV', '51', '5', 0, 'purchasesetting/umconversionlist', '0', 'ALL', 56, 'EN'),
(80, 'ARDASHB', 'AccountReceivables', '0', '2', 1, '#', '0', 'ALL', 5, 'EN'),
(81, 'APDASHB', 'AccountPayables', '0', '3', 1, '#', '0', 'ALL', 10, 'EN'),
(82, 'SALES', 'SalesOrders', '0', '5', 1, '#', '0', 'ALL', 70, 'EN'),
(83, 'GST', 'GST', '0', '6', 1, '#', '0', 'ALL', 30, 'EN'),
(84, 'ZAKAT', 'Zakat', '0', '7', 1, '#', '0', 'ALL', 80, 'EN'),
(85, 'APSET', 'Setup', '81', '3', 1, '#', '0', 'ALL', 90, 'EN'),
(86, 'ARSETUP', 'Setup', '80', '2', 1, '#', '0', 'ALL', 90, 'EN'),
(87, 'APRPT', 'Reports', '81', '3', 1, '#', '0', 'ALL', 80, 'EN'),
(88, 'GLRPT', 'Reports', '45', '1', 1, '#', '0', 'ALL', 80, 'EN'),
(89, 'ARRPT', 'Reports', '80', '2', 1, '#', '0', 'ALL', 80, 'EN'),
(90, 'INVCTRL', 'InventoryControl', '0', '4', 1, '#', '0', 'ALL', 25, 'EN'),
(91, 'INVSETUP', 'Setup', '90', '4', 1, '#', '0', 'ALL', 90, 'EN'),
(92, 'INVCRPT', 'Reports', '90', '4', 1, '#', '0', 'ALL', 80, 'EN'),
(93, 'MSTRCOMP', 'CompanySetup', '5', '10', 1, 'company/setup', '0', 'ALL', 5, 'EN'),
(94, 'GLMCAL', 'Fycalendar', '46', '1', 0, 'glsetting/calendar', '0', 'ALL', 10, 'EN'),
(95, 'GLHOME', 'Home', '45', '1', 0, 'GeneralLedger/Home', '0', 'ALL', 1, 'EN'),
(96, 'ARHOME', 'Home', '80', '2', 0, '#', '0', 'ALL', 1, 'EN'),
(97, 'APHOME', 'Home', '81', '3', 0, '#', '0', 'ALL', 1, 'EN'),
(98, 'INVHOME', 'Home', '90', '4', 0, '#', '0', 'ALL', 1, 'EN'),
(99, 'PURHOME', 'Home', '50', '5', 0, '#', '0', 'ALL', 1, 'EN'),
(100, 'GSTHOME', 'Home', '83', '6', 0, '#', '0', 'ALL', 1, 'EN'),
(102, 'GSTSTUP', 'Setup', '83', '6', 1, '#', '0', 'ALL', 90, 'EN'),
(103, 'GSTREPT', 'Reports', '83', '6', 1, '#', '0', 'ALL', 80, 'EN'),
(104, 'SOHOME', 'Home', '82', '5', 0, 'SalesOrder', '0', 'ALL', 1, 'EN'),
(105, 'SOSETUP', 'Setup', '82', '5', 1, '#', '0', 'ALL', 90, 'EN'),
(106, 'SOREPT', 'Reports', '82', '5', 1, '#', '0', 'ALL', 80, 'EN'),
(107, 'ZKTHOME', 'Home', '84', '7', 0, '#', '0', 'ALL', 1, 'EN'),
(108, 'ZKTSETUP', 'Setup', '84', '7', 1, '#', '0', 'ALL', 90, 'EN'),
(109, 'ZKTREPT', 'Reports', '84', '7', 1, '#', '0', 'ALL', 80, 'EN'),
(110, 'MSTRCOMP', 'List', '93', '10', 0, 'setting/companyList', '0', 'ALL', 5, 'EN'),
(111, 'COMPNEW', 'New', '93', '10', 0, 'setting/companysetup', '0', 'ALL', 10, 'EN'),
(113, 'MSTRCUST', 'CustomerSetup', '5', '10', 0, 'customerSetup/customerList', '0', 'ALL', 10, 'EN'),
(114, 'MSTRSUPP', 'SupplierSetup', '5', '10', 0, 'supplier/supplierList', '0', 'ALL', 11, 'EN'),
(124, 'APTRANS', 'Transaction', '81', '3', 1, '#', '0', 'ALL', 10, 'EN'),
(129, 'APSUPPAY', 'SupplierPayment', '124', '3', 0, 'aptransaction/payment', '0', 'ALL', 50, 'EN'),
(130, 'ARSETCUS', 'CustomerSetup', '86', '2', 0, 'customerSetup/customerList', '0', 'ALL', 5, 'EN'),
(131, 'ARTRANS', 'Transaction', '80', '2', 1, '#', '0', 'ALL', 10, 'EN'),
(141, 'APPURDN', 'PurchaseDebitNote', '124', '3', 0, 'aptransaction/newDebitNote', '0', 'ALL', 22, 'EN'),
(142, 'APPURCN', 'PurchaseCreditNote', '124', '3', 0, 'aptransaction/newCreditNote', '0', 'ALL', 25, 'EN'),
(143, 'ITEMCAT', 'ItemCategory', '91', '4', 0, 'icsetting/itemCategoryList', '0', 'ALL', 5, 'EN'),
(144, 'ITEMTYP', 'ItemType', '91', '4', 0, 'icsetting/itemTypeList', '0', 'ALL', 10, 'EN'),
(145, 'ITEMSET', 'ItemSetup', '91', '4', 0, 'icsetting/itemList', '0', 'ALL', 25, 'EN'),
(147, 'PURTRANS', 'Transaction', '50', '5', 1, '#', '0', 'ALL', 5, 'EN'),
(148, 'INVTRANS', 'Transaction', '90', '4', 1, '#', '0', 'ALL', 5, 'EN'),
(150, 'GLTRANS', 'Transaction', '45', '1', 1, '#', '0', 'ALL', 5, 'EN'),
(151, 'GSTTRANS', 'Transaction', '83', '6', 1, '#', '0', 'ALL', 5, 'EN'),
(152, 'SOTRANS', 'Transaction', '82', '5', 1, '#', '0', 'ALL', 5, 'EN'),
(153, 'SOQUOT', 'SalesQuotation', '152', '5', 0, 'sotransaction/SalesQuotation', '0', 'ALL', 1, 'EN'),
(154, 'GLTRJRNL', 'JlEntry', '150', '1', 0, 'gltransaction/journal', '0', '', 5, 'EN'),
(155, 'GLMCALL', 'Fycalendarlist', '46', '1', 0, 'glsetting/financialCalendarList', '0', 'ALL', 10, 'EN'),
(156, 'PROJECT', 'ProjectList', '5', '0', 0, 'project/projectlist', '0', 'ALL', 50, 'EN'),
(157, 'TERM', 'Terms', '5', '0', 0, 'term/termlist', '0', 'ALL', 60, 'EN'),
(158, 'GSTMSTR', 'Gsttable', '102', '6', 0, 'tax/taxtableList', '0', 'ALL', 1, 'EN'),
(159, 'GSTTYPE', 'taxclass', '102', '6', 0, 'tax/classList', '0', 'ALL', 30, 'EN'),
(160, 'GSTGROUP', 'taxgroup', '102', '6', 0, 'tax/groupList', '0', 'ALL', 31, 'EN'),
(161, 'GSTTYPE', 'taxtype', '102', '6', 0, 'tax/typeList', '0', 'ALL', 32, 'EN'),
(162, 'INVUM', 'uom', '91', '0', 0, 'icsetting/unitmeasurelist', '0', 'ALL', 70, 'EN'),
(163, 'INVUMCOV', 'UOMCONV', '91', '0', 0, 'icsetting/umconversion', '0', '', 71, 'EN'),
(164, 'INUMCVLS', 'uocvlist', '91', '0', 0, 'icsetting/umconversionlist', '0', '', 72, 'EN'),
(166, 'GLRPBS', 'Financialposition', '88', '1', 0, 'glreports/financialposition', '0', '', 20, 'EN'),
(167, 'GLRPTB', 'Trialbalance', '88', '1', 0, 'glreports/trialBalance', '0', 'ALL', 5, 'EN'),
(168, 'GLSTCOA', 'ChartOfAccount', '46', '1', 0, 'glsetting/chartOfAcctList', '0', 'ALL', 60, 'EN'),
(169, 'MSMTRCD', 'Mastercode', '5', '1', 0, 'setting/masterCodeSetupList', '0', '', 40, 'EN'),
(171, 'GLTRJlCY', 'JlCopy', '150', '1', 0, 'Gltransaction/journalCopy', '0', '', 20, 'EN'),
(172, 'GLTRJlRV', 'JlReverse', '150', '1', 0, 'Gltransaction/reverse', '0', '', 30, 'EN'),
(173, 'GLTRPOST', 'Posting', '150', '1', 0, 'Gltransaction/posting', '0', '', 40, 'EN'),
(174, 'GLRPJLPS', 'Jlpost', '88', '1', 0, 'glreports/postedjournal', '0', '', 40, 'EN'),
(175, 'GLRPJLUP', 'Jlunposted', '88', '1', 0, 'glreports/unpostedjournal', '0', '', 35, 'EN'),
(176, 'GLRPTBFC', 'Trialbalancefc', '88', '1', 0, 'glreports/trialbalanceFiscalyear', '0', '', 7, 'EN'),
(178, 'GLRPABSM', 'Accountbalancesummary', '88', '1', 0, 'glreports/accountBalanceSummary', '0', '', 2, 'EN'),
(179, 'EMP', 'employeeSetup', '5', '0', 0, 'employeeSetup/employeeList', '0', '', 7, 'EN'),
(180, 'APPURDNL', 'PurchaseDebitNoteList', '87', '3', 0, 'apreports/debitnoteList', '0', '', 26, 'EN'),
(181, 'APPURDNC', 'PurchaseDebitNoteConfirm', '124', '3', 0, 'aptransaction/debitnotePost', '0', '', 24, 'EN'),
(184, 'APPURCNL', 'PurchaseCreditNoteList', '87', '3', 0, 'apreports/creditnoteList', '0', '', 27, 'EN'),
(185, 'APPURCNC', 'PurchaseCreditNoteConfirm', '124', '3', 0, 'aptransaction/creditnotePost', '0', '', 27, 'EN'),
(186, 'APSUPPAY', 'SupplierPaymentConfirm', '124', '3', 0, 'aptransaction/supplierpaymentList', '0', '', 51, 'EN'),
(187, 'APSUPPAY', 'SupplierPaymentList', '87', '3', 0, 'apreports/supplierpaymentlist', '0', '', 52, 'EN'),
(189, 'GLRPPNLM', 'Profitnloss', '88', '1', 0, 'glreports/profitNloss', '0', '', 30, 'EN'),
(190, 'FORM', 'formSetup', '93', '0', 0, 'companySetup/formSetup', '0', '', 30, 'EN'),
(191, 'GLSTBDGT', 'Budget', '46', '0', 0, 'glsetting/budgetEntry', '0', '', 20, 'EN'),
(192, 'APOPWI', 'NewOtherPaymentWithItem', '124', '3', 0, 'othersPayment/newPayWithItem', '0', '', 54, 'EN'),
(193, 'APOPWIC', 'NewOtherPaymentWithItemConfirm', '124', '3', 0, 'aptransaction/otherpaywithItemPost', '0', '', 55, 'EN'),
(194, 'APOPWOI', 'NewOtherPaymentWithoutItem', '124', '3', 0, 'othersPayment/newPayWithoutItem', '0', '', 56, 'EN'),
(195, 'APOPWOIC', 'NewOtherPaymentWithoutItemConf', '124', '3', 0, 'aptransaction/otherpaywithoutItemPost', '0', '', 57, 'EN'),
(196, 'APRPTOPW', 'OtherPaymentWithItemList', '87', '3', 0, 'othersPayment/otherpaywithList', '0', '', 58, 'EN'),
(197, 'APRPTOPW', 'OtherPaymentWithoutItemList', '87', '3', 0, 'othersPayment/otherpaywithoutList', '0', '', 59, 'EN'),
(198, 'GLRPBGLT', 'Budgetlist', '88', '1', 0, 'glreports/budgetList', '0', '', 70, 'EN'),
(199, 'GLRPBGLT', 'Budgetedit', '46', '1', 0, 'glsetting/budgetEdit', '0', '', 22, 'EN'),
(200, 'SOTRNWSO', 'SalesOrder', '152', '5', 0, 'sotransaction/salesOrder', '0', '', 10, 'EN'),
(201, 'INVLOCTR', 'LocationTransfer', '148', '0', 0, 'locationtransfer/add', '0', '', 6, 'EN'),
(202, 'INVSALEP', 'SalesPricing', '148', '5', 0, 'soreport/SalesPriceList', '0', '', 12, 'EN'),
(203, 'INVPURPR', 'PurchasePricing', '148', '0', 0, 'purchasepricing', '0', '', 10, 'EN'),
(204, 'INVITEMC', 'ItemCountAdjust', '148', '0', 0, 'itemcountadjust', '0', '', 8, 'EN'),
(207, 'CSSYSGEN', 'SystemGeneral', '93', '0', 0, 'systemgeneral/generalSetup', '0', '', 31, 'EN'),
(208, 'APRPTSTL', 'SupplierStatementList', '87', '3', 0, 'supplierStatement/supplierList', '0', '', 53, 'EN'),
(209, 'SOTRQOLT', 'Salesquotelist', '106', '5', 0, 'sotransaction/SalesQuotationList', '0', 'ALL', 17, 'EN'),
(210, 'SOSTSLPC', 'Salesprice', '105', '5', 0, 'sosetup/SalesPrice', '0', '', 10, 'EN'),
(211, 'SORPPCLT', 'Salesprice', '106', '5', 0, 'soreport/SalesPriceList', '0', '', 10, 'EN'),
(212, 'CHAOFACC', 'ChartOfAccountSetup', '93', '0', 0, 'setting/chartOfAccountsSetup', '0', '', 29, 'EN'),
(216, 'SOTRDOLT', 'DeliveryOrderList', '106', '5', 0, 'sotransaction/SalesDOList', '0', 'ALL', 19, 'EN'),
(217, 'SOTRDO', 'DeliveryOrder', '152', '5', 0, 'sotransaction/SalesDO', '0', 'ALL', 40, 'EN'),
(218, 'PURORDER', 'PurchaseOrder', '147', '5', 0, 'PO_Transaction/newPO', '0', '', 6, 'EN'),
(219, 'PURORLST', 'PurchaseOrderList', '52', '5', 0, 'PurchaseReports/poLIST', '0', '', 7, 'EN'),
(220, 'PURRCV', 'PurchaseReceive', '147', '5', 0, 'receiveItems/newITemReceived', '0', '', 9, 'EN'),
(224, 'APPURINV', 'PurchaseInvoice', '124', '0', 0, '#', '0', '', 19, 'EN'),
(225, 'APDIRINV', 'DirectPurchaseInvoice', '124', '0', 0, 'purchasetransaction/invoices', '0', '', 20, 'EN'),
(226, 'APDIRINV', 'DirectPurchaseInvoiceConfirm', '124', '0', 0, 'purchasetransaction/invoicesConfirm', '0', '', 21, 'EN'),
(227, 'ARSALINV', 'SalesInvoice', '131', '2', 0, '#', '0', '', 16, 'EN'),
(228, 'ARSLINVC', 'SalesInvoiceConfirm', '131', '2', 0, 'artransaction/salesinvPost', '0', '', 17, 'EN'),
(229, 'ARSDBN', 'SalesDebitNote', '131', '2', 0, 'artransaction/newSaleDebitNote', '0', '', 19, 'EN'),
(230, 'ARDBNC', 'SalesDebitNoteConfirm', '131', '2', 0, 'artransaction/salesdebitnotePost', '0', '', 20, 'EN'),
(231, 'ARSCN', 'SalesCreditNote', '131', '2', 0, 'artransaction/newSaleCreditNote', '0', '', 21, 'EN'),
(232, 'ARSCNC', 'SalesCreditNoteConfirm', '131', '2', 0, 'artransaction/salescreditnotePost', '0', '', 22, 'EN'),
(233, 'ARRCVP', 'ReceivePayment', '131', '2', 0, 'artransaction/newReceivePayment', '0', '', 23, 'EN'),
(234, 'ARRCVPC', 'ReceivePaymentConfirm', '131', '2', 0, 'artransaction/receivedPaymentPost', '0', '', 24, 'EN'),
(235, 'ARINVLST', 'DirectSalesInvoiceList', '89', '2', 0, 'salesInvoice/salesInvoiceList', '0', '', 25, 'EN'),
(236, 'ARDBNLST', 'SalesDebitNoteList', '89', '2', 0, 'salesInvoice/salesdebitnotelist', '0', '', 26, 'EN'),
(237, 'ARCDNLST', 'SalesCreditNoteList', '89', '2', 0, 'salesInvoice/salescreditnoteList', '0', '', 27, 'EN'),
(238, 'ARRCVPLS', 'ReceivePaymentList', '89', '2', 0, 'companySetup/compRecPaymentList', '0', '', 28, 'EN'),
(239, 'ARDSLINV', 'NewDirectSaleInvoice', '131', '2', 0, 'arTransaction/newDirectSaleInvoice', '0', '', 18, 'EN'),
(240, 'AGENTSTP', 'AgentSetup', '93', '0', 0, 'saleagentSetup/agentList', '0', '', 32, 'EN'),
(241, 'SOTRSOLT', 'Saleslist', '106', '5', 0, 'sotransaction/SalesOrderList', '0', 'ALL', 18, 'EN'),
(243, 'INVPLNRP', 'InventoryPlanningReport', '92', '4', 0, 'inventory/rptstatus', '0', '', 81, 'EN'),
(244, 'INVVALRP', 'InventoryValuationReport', '92', '4', 0, '#', '0', '', 82, 'EN'),
(245, 'INVSTORP', 'StockCheckReport', '92', '4', 0, '#', '0', '', 84, 'EN'),
(246, 'INVGRNRP', 'GRNValuationReport', '92', '4', 0, '#', '0', '', 85, 'EN'),
(247, 'INVSLSRP', 'InventorySalesReport', '92', '4', 0, '#', '0', '', 86, 'EN'),
(248, 'INVOUTRP', 'OutstandingGRNReport', '92', '4', 0, 'inventory/rptgrnvaluation', '0', '', 87, 'EN'),
(249, 'INVMOVRP', 'InventoryMovementReport', '92', '4', 0, 'inventory/rptmovement', '0', '', 88, 'EN'),
(250, 'INVLSTRP', 'InventoryList', '92', '4', 0, 'inventory/rptbylocation', '0', '', 89, 'EN'),
(251, 'PURORDCF', 'PurchaseOrderConfirm', '147', '0', 0, 'po_transaction/poList', '0', '', 8, 'EN'),
(252, 'PURRCVC', 'PurchaseReceiveConfirm', '147', '0', 0, 'receiveItems/receiveItemList/post', '0', '', 10, 'EN'),
(253, 'PURRCVLS', 'PurchaseReceiveList', '52', '0', 0, 'receiveItems/receiveItemList', '0', '', 8, 'EN'),
(255, 'GLSTCURC', 'Currencyconversion', '46', '0', 0, 'glsetting/currencyConvertion', '0', '', 50, 'EN'),
(256, 'ARDRSINV', 'DirectSaleInvoiceConfirm', '131', '0', 0, 'artransaction/directsalesinvPost', '0', '', 19, 'EN'),
(257, 'TXTRPROC', 'GAFFiles', '151', '0', 0, 'taxTransaction/processGAF', '0', '', 10, 'EN'),
(258, 'APPURINV', 'PurchaseInvoiceList', '87', '0', 0, 'purchasetransaction/purchaseinvoicelist', '0', '', 25, 'EN'),
(259, 'SORPSOCU', 'Salesbycustomer', '106', '0', 0, 'soreport/SalesByCustomer', '0', '', 20, 'EN'),
(260, 'DELCNFRM', 'DeliveryOrderConfirm', '152', '0', 0, 'sotransaction/salesDOPost', '0', '', 42, 'EN'),
(261, 'SORPYRSL', 'SalesbycustomerYears', '106', '0', 0, 'soreport/SalesByCustomerYears', '0', '', 25, 'EN'),
(262, 'ICSTIDTL', 'Itemdetails', '91', '4', 0, 'icsetting/ItemDetails', '0', '', 40, 'EN'),
(263, 'SORPSLIT', 'Salesbyitem', '106', '0', 0, 'soreport/SalesByItem', '0', '', 26, 'EN'),
(264, 'INVLOCTC', 'LocationTransferConfirm', '148', '0', 0, 'locationtransfer/locationtransfer', '0', '', 7, 'EN'),
(265, 'INVITCC', 'ItemCountAdjustConfirm', '148', '4', 0, 'itemcountadjust/confirm', '0', '', 9, 'EN'),
(266, 'INVSALC', 'SalesPricingConfirm', '148', '4', 0, '#', '0', '', 13, 'EN'),
(267, 'INVPURCC', 'PurchasePricingConfirm', '148', '0', 0, '#', '0', '', 11, 'EN'),
(268, 'IVSTCKCS', 'StockCountSheet', '92', '4', 0, '#', '0', '', 83, 'EN'),
(269, 'LTL', 'LocationTransferList', '92', '0', 0, 'locationtransfer/report', '0', '', 10, 'EN'),
(270, 'ICAA', 'ItemCountAndAdjustmentList', '92', '4', 0, 'itemcountadjust/report', '0', '', 20, 'EN'),
(272, 'BNKSETUP', 'BankSetup', '5', '10', 0, 'bankSetup/bankList', '0', '', 78, 'EN'),
(273, 'ARDEBLST', 'DebtorsList', '89', '2', 0, '#', '0', '', 29, 'EN'),
(274, 'ZKTSTGRP', 'Zakatgroup', '108', '7', 0, 'zakatsetup/Group', '0', '', 30, 'EN'),
(275, 'ZKTSTNSB', 'nisab', '108', '7', 0, 'zakatsetup/nisab', '0', NULL, 20, 'EN'),
(276, 'ZKTRGPLT', 'Zakatgrouplist', '109', '7', 0, 'zakatreport/groupList', '0', '', 20, 'EN'),
(277, 'ZKTSTNSD', 'Nisabdetails', '108', '7', 0, 'zakatsetup/NisabDetails', '0', '', 10, 'EN'),
(278, 'ZKTTRANS', 'Transaction', '84', '7', 1, '#', '0', '', 20, 'EN'),
(279, 'ZKTTRCAL', 'Zakatcalculate', '278', '7', 0, 'zakatTransaction/Calculation', '0', '', 10, 'EN'),
(280, 'ZKSTCNTR', 'Zakatcenter', '108', '7', 0, 'zakatsetup/Center', '0', '', 70, 'EN'),
(281, 'ZKRPCTRL', 'Zakatcenter', '109', '7', 0, 'zakatreport/centerList', '0', '', 10, 'EN'),
(282, 'ZKRPNBLT', 'Zakatnisab', '109', '7', 0, 'zakatreport/nisabList', '0', '', 5, 'EN');

-- --------------------------------------------------------

--
-- Table structure for table `_sys_um`
--

CREATE TABLE IF NOT EXISTS `_sys_um` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `desc` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=15 ;

--
-- Dumping data for table `_sys_um`
--

INSERT INTO `_sys_um` (`fldid`, `code`, `desc`) VALUES
(1, 'cm', 'Centimeter'),
(2, 'pcs', 'Pieces'),
(3, 'ea', 'Each'),
(4, 'km', 'Kilometer'),
(5, 'm', 'Meter'),
(6, 'L', 'Liter'),
(7, 'ml', 'Mililiter'),
(8, 'g', 'Grams'),
(9, 'kg', 'Kilograms'),
(10, 'tons', 'Tons'),
(11, 'mm', 'Milimeter'),
(12, 'drum', 'Drums'),
(13, 'box', 'Boxes'),
(14, 'pallet', 'Pallets');

-- --------------------------------------------------------

--
-- Table structure for table `_sys_um_conv`
--

CREATE TABLE IF NOT EXISTS `_sys_um_conv` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `from_um` varchar(5) DEFAULT NULL,
  `to_um` varchar(5) DEFAULT NULL,
  `unitm` decimal(10,5) DEFAULT NULL,
  `factor` decimal(10,5) DEFAULT NULL,
  `create_by` varchar(50) DEFAULT NULL,
  `create_dt` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` varchar(50) DEFAULT NULL,
  `modified_dt` datetime DEFAULT NULL,
  PRIMARY KEY (`fldid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `_sys_um_conv`
--

INSERT INTO `_sys_um_conv` (`fldid`, `from_um`, `to_um`, `unitm`, `factor`, `create_by`, `create_dt`, `modified_by`, `modified_dt`) VALUES
(3, 'm', 'cm', '1.00000', '100.00000', 'yahaya', '2014-03-11 16:41:03', NULL, NULL),
(4, 'cm', 'm', '1.00000', '3.00000', 'yahaya', '2014-05-26 07:37:47', NULL, NULL),
(5, 'box', 'pcs', '12.00000', '1.00000', 'akmal', '2014-06-21 04:08:24', NULL, NULL);

-- --------------------------------------------------------

--
-- Structure for view `view_customer_aging`
--

-- --------------------------------------------------------

--
-- Structure for view `view_customer_statement`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_customer_statement` AS select `comp_sales_invoice`.`ID` AS `ID`,`comp_sales_invoice`.`ID` AS `parent`,`comp_sales_invoice`.`companyID` AS `companyID`,`comp_sales_invoice`.`customerID` AS `customerID`,'Invoice' AS `transType`,`comp_sales_invoice`.`salesInvoiceDate` AS `transDate`,`comp_sales_invoice`.`customerPoNo` AS `refNo`,concat(concat(concat(`comp_sales_invoice`.`formNo`,'['),convert(lpad(`comp_sales_invoice`.`ID`,8,'0') using latin1)),']') AS `formNo`,`comp_sales_invoice`.`totalamount` AS `dr`,NULL AS `cr`,1 AS `seq` from `comp_sales_invoice` union select `comp_sales_debitnote`.`ID` AS `ID`,`comp_sales_debitnote`.`salesInvoiceID` AS `parent`,`comp_sales_debitnote`.`companyID` AS `companyID`,`comp_sales_debitnote`.`customerID` AS `customerID`,'DebitNote' AS `transType`,`comp_sales_debitnote`.`debitNoteDate` AS `transDate`,NULL AS `refno`,concat(concat(concat(`comp_sales_debitnote`.`formNo`,'['),convert(lpad(`comp_sales_debitnote`.`ID`,8,'0') using latin1)),']') AS `formNo`,NULL AS `dr`,`comp_sales_debitnote`.`totalAmount` AS `cr`,2 AS `seq` from `comp_sales_debitnote` union select `comp_sales_creditnote`.`ID` AS `ID`,`comp_sales_creditnote`.`salesInvoiceID` AS `parent`,`comp_sales_creditnote`.`companyID` AS `companyID`,`comp_sales_creditnote`.`customerID` AS `customerID`,'CreditNote' AS `transType`,`comp_sales_creditnote`.`creditNoteDate` AS `transDate`,NULL AS `refno`,concat(concat(concat(`comp_sales_creditnote`.`formNo`,'['),convert(lpad(`comp_sales_creditnote`.`ID`,8,'0') using latin1)),']') AS `formNo`,`comp_sales_creditnote`.`totalAmount` AS `dr`,NULL AS `cr`,3 AS `seq` from `comp_sales_creditnote` union select `a`.`ID` AS `ID`,`a`.`receivePaymentID` AS `parent`,`b`.`companyID` AS `companyID`,`b`.`customerID` AS `customerID`,'Payment' AS `transType`,`b`.`receivePaymentDate` AS `transDate`,`b`.`referenceNo` AS `refNo`,concat(concat(concat(`b`.`formNo`,'['),convert(lpad(`b`.`ID`,8,'0') using latin1)),']') AS `formNo`,NULL AS `dr`,`a`.`amountApplied` AS `cr`,4 AS `seq` from (`comp_receive_payment_detail` `a` join `comp_receive_payment` `b`) where (`a`.`receivePaymentID` = `b`.`ID`);

-- --------------------------------------------------------

--
-- Structure for view `view_gaf`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_gaf` AS select `a`.`companyID` AS `companyID`,'P' AS `col1`,`a`.`supplierName` AS `col2`,`a`.`supplierCompanyNo` AS `col3`,date_format(`b`.`invoiceDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,'import declaration number' AS `col6`,`c`.`lineNo` AS `col7`,`c`.`itemdescription` AS `col8`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col9`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col10`,`e`.`code` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from ((((`supplier` `a` join `comp_supplier_invoice` `b`) join `comp_supplier_invoice_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) where ((`a`.`ID` = `b`.`supplierID`) and (`b`.`ID` = `c`.`invoiceID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`)) union select `a`.`companyID` AS `companyID`,'P' AS `col1`,`a`.`supplierName` AS `col2`,`a`.`supplierCompanyNo` AS `col3`,date_format(`b`.`invoiceDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,'import declaration number' AS `col6`,`c`.`lineNo` AS `col7`,`c`.`itemdescription` AS `col8`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col9`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col10`,`e`.`code` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from ((((`supplier` `a` join `comp_supplier_invoice` `b`) join `comp_supplier_invoice_charges` `c`) join `_ref_currency` `d`) join `tax_master` `e`) where ((`a`.`ID` = `b`.`supplierID`) and (`b`.`ID` = `c`.`invoiceID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`)) union select `a`.`companyID` AS `companyID`,'P' AS `col1`,`a`.`supplierName` AS `col2`,`a`.`supplierCompanyNo` AS `col3`,date_format(`b`.`debitNoteDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,'import declaration number' AS `col6`,`c`.`lineNo` AS `col7`,`c`.`itemdescription` AS `col8`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col9`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col10`,`e`.`code` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from ((((`supplier` `a` join `comp_supplier_debitnote` `b`) join `comp_supplier_debitnote_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) where ((`a`.`ID` = `b`.`supplierID`) and (`b`.`ID` = `c`.`debitnoteID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`)) union select `a`.`companyID` AS `companyID`,'P' AS `col1`,`a`.`supplierName` AS `col2`,`a`.`supplierCompanyNo` AS `col3`,date_format(`b`.`creditNoteDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,'import declaration number' AS `col6`,`c`.`lineNo` AS `col7`,`c`.`itemdescription` AS `col8`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col9`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col10`,`e`.`code` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from ((((`supplier` `a` join `comp_supplier_creditnote` `b`) join `comp_supplier_creditnote_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) where ((`a`.`ID` = `b`.`supplierID`) and (`b`.`ID` = `c`.`creditnoteID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`)) union select `a`.`companyID` AS `companyID`,'S' AS `col1`,`a`.`customerName` AS `col2`,`a`.`customerCompanyNo` AS `col3`,date_format(`b`.`salesInvoiceDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,`c`.`lineNo` AS `col6`,`g`.`description` AS `col7`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col8`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col9`,`e`.`code` AS `col10`,`f`.`fldcountry` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from ((((((`customer` `a` join `comp_sales_invoice` `b`) join `comp_sales_invoice_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) join `_ref_country` `f`) join `item` `g`) where ((`a`.`ID` = `b`.`customerID`) and (`b`.`ID` = `c`.`invoiceID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`) and (`f`.`fldid` = `a`.`customerCountryID`) and (`g`.`ID` = `c`.`itemID`)) union select `a`.`companyID` AS `companyID`,'S' AS `col1`,`a`.`customerName` AS `col2`,`a`.`customerCompanyNo` AS `col3`,date_format(`b`.`salesInvoiceDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,`c`.`lineNo` AS `col6`,`c`.`chargeDescription` AS `col7`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col8`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col9`,`e`.`code` AS `col10`,`f`.`fldcountry` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from (((((`customer` `a` join `comp_sales_invoice` `b`) join `comp_sales_invoice_charges` `c`) join `_ref_currency` `d`) join `tax_master` `e`) join `_ref_country` `f`) where ((`a`.`ID` = `b`.`customerID`) and (`b`.`ID` = `c`.`invoiceID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`) and (`f`.`fldid` = `a`.`customerCountryID`)) union select `a`.`companyID` AS `companyID`,'S' AS `col1`,`a`.`customerName` AS `col2`,`a`.`customerCompanyNo` AS `col3`,date_format(`b`.`debitNoteDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,`c`.`lineNo` AS `col6`,`c`.`itemdescription` AS `col7`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col8`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col9`,`e`.`code` AS `col10`,`f`.`fldcountry` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from (((((`customer` `a` join `comp_sales_debitnote` `b`) join `comp_sales_debitnote_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) join `_ref_country` `f`) where ((`a`.`ID` = `b`.`customerID`) and (`b`.`ID` = `c`.`debitnoteID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`) and (`f`.`fldid` = `a`.`customerCountryID`)) union select `a`.`companyID` AS `companyID`,'S' AS `col1`,`a`.`customerName` AS `col2`,`a`.`customerCompanyNo` AS `col3`,date_format(`b`.`creditNoteDate`,'%d/%m/%Y') AS `col4`,concat(`b`.`formNo`,'[',convert(lpad(`b`.`ID`,8,'0') using latin1),']') AS `col5`,`c`.`lineNo` AS `col6`,`c`.`itemdescription` AS `col7`,(`c`.`amountExcludedTax` * `b`.`exchangeRate`) AS `col8`,(`c`.`taxAmount` * `b`.`exchangeRate`) AS `col9`,`e`.`code` AS `col10`,`f`.`fldcountry` AS `col11`,`d`.`fldcurr_code` AS `col12`,`c`.`amountExcludedTax` AS `col13`,`c`.`taxAmount` AS `col14` from (((((`customer` `a` join `comp_sales_creditnote` `b`) join `comp_sales_creditnote_detail` `c`) join `_ref_currency` `d`) join `tax_master` `e`) join `_ref_country` `f`) where ((`a`.`ID` = `b`.`customerID`) and (`b`.`ID` = `c`.`creditnoteID`) and (`d`.`fldid` = `a`.`currencyID`) and (`e`.`ID` = `c`.`taxID`) and (`f`.`fldid` = `a`.`customerCountryID`));

-- --------------------------------------------------------

--
-- Structure for view `view_inventory_statement`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_inventory_statement` AS select `a`.`companyID` AS `companyID`,`a`.`deliveryDate` AS `transactionDate`,`b`.`itemID` AS `itemID`,`c`.`name` AS `name`,`g`.`supplierName` AS `supplierCustomer`,1 AS `transactionCode`,'Purchase' AS `transactionType`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`locationID` AS `locationID`,`d`.`desc` AS `location`,`e`.`desc` AS `unitOfMeasure`,`b`.`quantityReceived` AS `quantityIn`,NULL AS `quantityOut`,`a`.`updateAble` AS `updateable` from ((((((`comp_receive_item` `a` left join `comp_receive_item_detail` `b` on((`a`.`ID` = `b`.`receiveID`))) left join `item` `c` on((`b`.`itemID` = `c`.`ID`))) left join `item_details` `f` on((`c`.`ID` = `f`.`itemID`))) join `tbl_location` `d`) join `_sys_um` `e`) join `supplier` `g`) where ((`f`.`locationID` = `d`.`fldid`) and (`e`.`fldid` = `c`.`unitOfMeasureID`) and (`a`.`supplierID` = `f`.`ID`)) union select `a`.`companyID` AS `companyID`,`a`.`adjustmentDate` AS `transactionDate`,`b`.`itemID` AS `itemID`,`c`.`name` AS `name`,`d`.`desc` AS `supplierCustomer`,2 AS `transactionCode`,'stockAdjustment' AS `transactionType`,`a`.`formNo` AS `formNo`,`a`.`locationID` AS `locationID`,`d`.`desc` AS `location`,`e`.`desc` AS `unitOfMeasure`,if(((`b`.`counted` - `b`.`qtyOnHand`) > 0),(`b`.`counted` - `b`.`qtyOnHand`),NULL) AS `quantityIn`,if(((`b`.`counted` - `b`.`qtyOnHand`) < 0),(`b`.`counted` - `b`.`qtyOnHand`),NULL) AS `quantityOut`,`a`.`updateAble` AS `updateable` from (((((`item_adjustment` `a` left join `item_adjustment_detail` `b` on((`a`.`ID` = `b`.`adjustmentID`))) left join `item` `c` on((`b`.`itemID` = `c`.`ID`))) left join `item_details` `f` on((`c`.`ID` = `f`.`itemID`))) left join `tbl_location` `d` on((`d`.`fldid` = `a`.`locationID`))) left join `_sys_um` `e` on((`e`.`fldid` = `b`.`unitOfMeasureID`))) union select `a`.`companyID` AS `companyID`,`a`.`deliveryOrderDate` AS `transactionDate`,`b`.`itemID` AS `itemID`,`c`.`name` AS `name`,`g`.`customerName` AS `supplierCustomer`,3 AS `transactionCode`,'Sale' AS `transactionType`,`a`.`formNo` AS `formNo`,`a`.`locationID` AS `locationID`,`d`.`desc` AS `location`,`e`.`desc` AS `unitOfMeasure`,NULL AS `quantityIn`,(`b`.`quantitySent` * -(1)) AS `quantityOut`,`a`.`updateAble` AS `updateable` from ((((((`comp_delivery_order` `a` left join `comp_delivery_detail` `b` on((`a`.`ID` = `b`.`deliveryID`))) left join `item` `c` on((`b`.`itemID` = `c`.`ID`))) left join `item_details` `f` on((`c`.`ID` = `f`.`itemID`))) join `tbl_location` `d`) join `_sys_um` `e`) join `customer` `g`) where ((`a`.`locationID` = `d`.`fldid`) and (`e`.`fldid` = `c`.`unitOfMeasureID`) and (`a`.`customerID` = `f`.`ID`)) union select `a`.`companyID` AS `companyID`,`a`.`dateTransfer` AS `transactionDate`,`b`.`itemID` AS `itemID`,`c`.`name` AS `name`,`d`.`desc` AS `supplierCustomer`,4 AS `transactionCode`,'TransferOut' AS `transactionType`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`fromLocationID` AS `locationID`,`d`.`desc` AS `location`,`e`.`desc` AS `unitOfMeasure`,NULL AS `quantityIn`,(`b`.`quantity` * -(1)) AS `quantityOut`,`a`.`updateable` AS `updateable` from ((((`comp_location_transfer` `a` left join `comp_location_transfer_detail` `b` on((`a`.`ID` = `b`.`locationTransferID`))) left join `item` `c` on((`b`.`itemID` = `c`.`ID`))) join `tbl_location` `d`) join `_sys_um` `e`) where ((`a`.`fromLocationID` = `d`.`fldid`) and (`e`.`fldid` = `c`.`unitOfMeasureID`)) union select `a`.`companyID` AS `companyID`,`a`.`dateTransfer` AS `transactionDate`,`b`.`itemID` AS `itemID`,`c`.`name` AS `name`,`d`.`desc` AS `supplierCustomer`,5 AS `transactionCode`,'TransferIn' AS `transactionType`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`toLocationID` AS `locationID`,`d`.`desc` AS `location`,`e`.`desc` AS `unitOfMeasure`,`b`.`quantity` AS `quantityIn`,NULL AS `quantityOut`,`a`.`updateable` AS `updateable` from ((((`comp_location_transfer` `a` left join `comp_location_transfer_detail` `b` on((`a`.`ID` = `b`.`locationTransferID`))) left join `item` `c` on((`b`.`itemID` = `c`.`ID`))) join `tbl_location` `d`) join `_sys_um` `e`) where ((`a`.`fromLocationID` = `d`.`fldid`) and (`e`.`fldid` = `c`.`unitOfMeasureID`));

-- --------------------------------------------------------

--
-- Structure for view `view_supplier_aging`
--

-- --------------------------------------------------------

--
-- Structure for view `view_supplier_statement`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_supplier_statement` AS select `comp_supplier_invoice`.`ID` AS `ID`,`comp_supplier_invoice`.`ID` AS `parent`,`comp_supplier_invoice`.`companyID` AS `companyID`,`comp_supplier_invoice`.`supplierID` AS `supplierID`,`comp_supplier_invoice`.`invoiceDate` AS `transDate`,`comp_supplier_invoice`.`supplierInvoiceNo` AS `refNo`,concat(concat(concat(`comp_supplier_invoice`.`formNo`,'['),convert(lpad(`comp_supplier_invoice`.`ID`,8,'0') using latin1)),']') AS `formNo`,`comp_supplier_invoice`.`totalAmount` AS `dr`,NULL AS `cr`,1 AS `seq` from `comp_supplier_invoice` union select `comp_supplier_debitnote`.`ID` AS `ID`,`comp_supplier_debitnote`.`supplierInvoiceID` AS `parent`,`comp_supplier_debitnote`.`companyID` AS `companyID`,`comp_supplier_debitnote`.`supplierID` AS `supplierID`,`comp_supplier_debitnote`.`debitNoteDate` AS `transDate`,NULL AS `refno`,concat(concat(concat(`comp_supplier_debitnote`.`formNo`,'['),convert(lpad(`comp_supplier_debitnote`.`ID`,8,'0') using latin1)),']') AS `formNo`,NULL AS `dr`,`comp_supplier_debitnote`.`totalAmount` AS `cr`,2 AS `seq` from `comp_supplier_debitnote` union select `comp_supplier_creditnote`.`ID` AS `ID`,`comp_supplier_creditnote`.`supplierInvoiceID` AS `parent`,`comp_supplier_creditnote`.`companyID` AS `companyID`,`comp_supplier_creditnote`.`supplierID` AS `supplierID`,`comp_supplier_creditnote`.`creditNoteDate` AS `transDate`,NULL AS `refno`,concat(concat(concat(`comp_supplier_creditnote`.`formNo`,'['),convert(lpad(`comp_supplier_creditnote`.`ID`,8,'0') using latin1)),']') AS `formNo`,`comp_supplier_creditnote`.`totalAmount` AS `dr`,NULL AS `cr`,3 AS `seq` from `comp_supplier_creditnote` union select `a`.`ID` AS `ID`,`a`.`purchaseInvoiceID` AS `parent`,`b`.`companyID` AS `companyID`,`b`.`supplierID` AS `supplierID`,`b`.`paymentDate` AS `transDate`,`b`.`referenceNo` AS `refNo`,concat(concat(concat(`b`.`formNo`,'['),convert(lpad(`b`.`ID`,8,'0') using latin1)),']') AS `formNo`,NULL AS `dr`,`a`.`amountApplied` AS `cr`,4 AS `seq` from (`comp_payment_detail` `a` join `comp_payment` `b`) where (`a`.`paymentID` = `b`.`ID`) union select `a`.`ID` AS `ID`,`a`.`purchaseInvoiceID` AS `parent`,`b`.`companyID` AS `companyID`,`b`.`supplierID` AS `supplierID`,`b`.`paymentDate` AS `transDate`,'Discount' AS `refNo`,concat(concat(concat(`b`.`formNo`,'['),convert(lpad(`b`.`ID`,8,'0') using latin1)),']') AS `formNo`,NULL AS `dr`,`a`.`discount` AS `cr`,5 AS `seq` from (`comp_payment_detail` `a` join `comp_payment` `b`) where (`a`.`paymentID` = `b`.`ID`);

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ap_creditnote`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ap_creditnote` AS select `a`.`ID` AS `creditnoteID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`supplierID` AS `supplierID`,`b`.`ID` AS `ID`,`c`.`supplierInvoiceNo` AS `supplierInvoiceNo`,`b`.`itemID` AS `itemID`,concat('[',`d`.`itemCode`,']',`b`.`itemname`) AS `itemName`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,(select `item`.`inventoriesID` from `item` where (`item`.`ID` = `b`.`itemID`)) AS `drAccountID`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `crAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `drTaxAccountID`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `crTaxAccountID` from ((`comp_supplier_creditnote` `a` join (`comp_supplier_creditnote_detail` `b` left join `item` `d` on((`b`.`itemID` = `d`.`ID`)))) join `comp_supplier_invoice` `c`) where ((`a`.`ID` = `b`.`creditnoteID`) and (`a`.`supplierInvoiceID` = `c`.`ID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ap_debitnote`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ap_debitnote` AS select `a`.`ID` AS `debitnoteID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`supplierID` AS `supplierID`,`b`.`ID` AS `ID`,`c`.`supplierInvoiceNo` AS `supplierInvoiceNo`,`b`.`itemID` AS `itemID`,concat('[',`d`.`itemCode`,']',`b`.`itemname`) AS `itemName`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `drAccountID`,(select `item`.`inventoriesID` from `item` where (`item`.`ID` = `b`.`itemID`)) AS `crAccountID`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `drTaxAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `crTaxAccountID` from ((`comp_supplier_debitnote` `a` join (`comp_supplier_debitnote_detail` `b` left join `item` `d` on((`b`.`itemID` = `d`.`ID`)))) join `comp_supplier_invoice` `c`) where ((`a`.`ID` = `b`.`debitnoteID`) and (`a`.`supplierInvoiceID` = `c`.`ID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ap_invoice`
--

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ar_creditnote`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ar_creditnote` AS select `a`.`salesInvoiceID` AS `salesinvoiceID`,`a`.`ID` AS `creditnoteID`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`customerID` AS `customerID`,concat(`c`.`formNo`,'[',convert(lpad(`c`.`ID`,8,'0') using latin1),']') AS `salesInvoiceNo`,`b`.`lineNo` AS `lineNo`,`b`.`itemID` AS `itemID`,concat('[',`d`.`itemCode`,']',`b`.`itemname`) AS `itemName`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,ifnull(`f`.`linkedAPAccountID`,`e`.`accountID`) AS `drAccountID`,(select `item`.`inventoriesID` from `item` where (`item`.`ID` = `b`.`itemID`)) AS `crAccountID`,ifnull(`f`.`linkedAPAccountID`,`e`.`accountID`) AS `drTaxAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `crTaxAccountID` from (((((`comp_sales_creditnote` `a` left join `comp_sales_creditnote_detail` `b` on((`a`.`ID` = `b`.`creditnoteID`))) left join `item` `d` on((`b`.`itemID` = `d`.`ID`))) left join `comp_sales_invoice` `c` on((`c`.`ID` = `a`.`salesInvoiceID`))) join `customer` `f`) join `comp_control_acct_setup` `e`) where ((`a`.`ID` = `b`.`creditnoteID`) and (`a`.`customerID` = `f`.`ID`) and (`e`.`companyID` = `a`.`companyID`) and (`e`.`accountCode` = 'rcvacct') and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ar_debitnote`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ar_debitnote` AS select `a`.`salesInvoiceID` AS `salesinvoiceID`,`a`.`ID` AS `debitnoteID`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`customerID` AS `customerID`,concat(`c`.`formNo`,'[',convert(lpad(`c`.`ID`,8,'0') using latin1),']') AS `salesInvoiceNo`,`b`.`lineNo` AS `lineNo`,`b`.`itemID` AS `itemID`,concat('[',`d`.`itemCode`,']',`b`.`itemname`) AS `itemName`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,ifnull(`f`.`linkedAPAccountID`,`e`.`accountID`) AS `drAccountID`,(select `item`.`inventoriesID` from `item` where (`item`.`ID` = `b`.`itemID`)) AS `crAccountID`,ifnull(`f`.`linkedAPAccountID`,`e`.`accountID`) AS `drTaxAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `crTaxAccountID` from (((((`comp_sales_debitnote` `a` left join `comp_sales_debitnote_detail` `b` on((`a`.`ID` = `b`.`debitnoteID`))) left join `item` `d` on((`b`.`itemID` = `d`.`ID`))) left join `comp_sales_invoice` `c` on((`c`.`ID` = `a`.`salesInvoiceID`))) join `customer` `f`) join `comp_control_acct_setup` `e`) where ((`a`.`ID` = `b`.`debitnoteID`) and (`a`.`customerID` = `f`.`ID`) and (`e`.`companyID` = `a`.`companyID`) and (`e`.`accountCode` = 'rcvacct') and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ar_invoice`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ar_invoice` AS select `a`.`ID` AS `invoiceID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`b`.`lineNo` AS `lineNo`,`a`.`companyID` AS `companyID`,`a`.`customerID` AS `customerID`,`b`.`itemID` AS `itemID`,concat('[',`c`.`itemCode`,']',`c`.`description`) AS `itemName`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,(select `item`.`inventoriesID` from `item` where (`item`.`ID` = `b`.`itemID`)) AS `drAccountID`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `crAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `drTaxAccountID`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `crTaxAccountID` from (`comp_sales_invoice` `a` join (`comp_sales_invoice_detail` `b` left join `item` `c` on((`b`.`itemID` = `c`.`ID`)))) where ((`a`.`ID` = `b`.`invoiceID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0)) union select `a`.`ID` AS `invoiceID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`b`.`lineNo` AS `lineNo`,`a`.`companyID` AS `companyID`,`a`.`customerID` AS `customerID`,NULL AS `NULL`,`b`.`chargeDescription` AS `chargedescription`,`b`.`amountExcludedTax` AS `amountExcludedtax`,`b`.`taxID` AS `taxid`,`b`.`taxAmount` AS `taxamount`,`b`.`accountNoID` AS `drAccountID`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `crAccountID`,(select `tax_master`.`taxAccount` from `tax_master` where (`tax_master`.`ID` = `b`.`taxID`)) AS `drTaxAccountID`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `crTaxAccountID` from (`comp_sales_invoice` `a` join `comp_sales_invoice_charges` `b`) where ((`a`.`ID` = `b`.`invoiceID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_ar_payment`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_ar_payment` AS select `a`.`ID` AS `paymentID`,concat(`a`.`formNo`,'[',convert(lpad(`a`.`ID`,8,'0') using latin1),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`customerID` AS `customerID`,`a`.`referenceNo` AS `referenceNo`,`b`.`ID` AS `paymentDetailID`,concat(`c`.`formNo`,'[',convert(lpad(`c`.`ID`,8,'0') using latin1),']') AS `salesInvoiceNo`,(`b`.`amountApplied` - `b`.`discount`) AS `amtPaid_amtAppl`,`b`.`discount` AS `discount_bankCharges`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `drAccountID`,NULL AS `crAccountID`,(select `customer`.`linkedAPAccountID` from `customer` where (`customer`.`ID` = `a`.`customerID`)) AS `drDiscountAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'saledisacct'))) AS `crDiscountAccountID` from ((`comp_receive_payment` `a` join `comp_receive_payment_detail` `b`) join `comp_sales_invoice` `c`) where ((`a`.`ID` = `b`.`receivePaymentID`) and (`c`.`ID` = `b`.`invoiceID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_other_payment`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_other_payment` AS select `a`.`ID` AS `paymentID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,NULL AS `supplierID`,NULL AS `purchaseInvoiceID`,`b`.`ID` AS `paymentDetailID`,NULL AS `supplierInvoiceNo`,`b`.`lineNo` AS `lineNo`,`b`.`itemdescription` AS `itemdescription`,`b`.`amountIncludedTax` AS `amtPaid_amtAppl`,NULL AS `discount_bankCharges`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payAcct'))) AS `drAccountID`,`a`.`accountID` AS `crAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payAcct'))) AS `drDiscountAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payDisc'))) AS `crDiscountAccountID` from (`comp_payment_others` `a` join `comp_payment_others_with_item` `b`) where ((`a`.`ID` = `b`.`otherPaymentID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0)) union select `a`.`ID` AS `paymentID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,NULL AS `supplierID`,NULL AS `purchaseInvoiceID`,`b`.`ID` AS `paymentDetailID`,NULL AS `supplierInvoiceNo`,`b`.`lineNo` AS `lineNo`,`b`.`itemdescription` AS `itemdescription`,`b`.`amountIncludedTax` AS `amtPaid_amtAppl`,NULL AS `discount_bankCharges`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payAcct'))) AS `drAccountID`,`a`.`accountID` AS `crAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payAcct'))) AS `drDiscountAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payDisc'))) AS `crDiscountAccountID` from (`comp_payment_others` `a` join `comp_payment_others_without_item` `b`) where ((`a`.`ID` = `b`.`otherPaymentID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

-- --------------------------------------------------------

--
-- Structure for view `view_unpost_payment`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_unpost_payment` AS select `a`.`ID` AS `paymentID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`supplierID` AS `supplierID`,NULL AS `purchaseInvoiceID`,NULL AS `paymentDetailID`,NULL AS `supplierInvoiceNo`,`a`.`amountPaid` AS `amtPaid_amtAppl`,`a`.`bankCharges` AS `discount_bankCharges`,NULL AS `drAccountID`,`a`.`accountID` AS `crAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'bankchargesAccount'))) AS `drDiscountAccountID`,NULL AS `crDiscountAccountID` from `comp_payment` `a` where ((`a`.`updateAble` = 1) and (`a`.`is_delete` = 0)) union select `a`.`ID` AS `paymentID`,concat(concat(concat(`a`.`formNo`,'['),convert(lpad(`a`.`ID`,8,'0') using latin1)),']') AS `formNo`,`a`.`companyID` AS `companyID`,`a`.`supplierID` AS `supplierID`,`b`.`purchaseInvoiceID` AS `purchaseInvoiceID`,`b`.`ID` AS `paymentDetailID`,`c`.`supplierInvoiceNo` AS `supplierInvoiceNo`,(`b`.`amountApplied` - `b`.`discount`) AS `amtPaid_amtAppl`,`b`.`discount` AS `discount_bankCharges`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `drAccountID`,NULL AS `crAccountID`,(select `supplier`.`linkedAPAccountID` from `supplier` where (`supplier`.`ID` = `a`.`supplierID`)) AS `drDiscountAccountID`,(select `comp_control_acct_setup`.`accountID` from `comp_control_acct_setup` where ((`comp_control_acct_setup`.`companyID` = `a`.`companyID`) and (`comp_control_acct_setup`.`accountCode` = 'payDisc'))) AS `crDiscountAccountID` from ((`comp_payment` `a` join `comp_payment_detail` `b`) join `comp_supplier_invoice` `c`) where ((`a`.`ID` = `b`.`paymentID`) and (`c`.`ID` = `b`.`purchaseInvoiceID`) and (`a`.`updateAble` = 1) and (`a`.`is_delete` = 0));

