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=16 ;

--
-- 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),
(12, 16, 2, 'AR', 2014, 6, 1),
(13, 1, 5, 'SO', 2014, 12, 30),
(14, 1, 5, 'SO', 2014, 6, 31),
(15, 1, 8, 'PO', 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=170 ;

--
-- 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),
(162, 1, 'SO20140600000031', 'Details has been saved. [ SDN2014-00000002 ]', NULL, 5, '2014-06-12', NULL, 6, 2014, 372.5, 372.5, 0, 0, NULL, 1, '2014-07-01 04:37:15', 'SDN2014-00000002'),
(163, 1, 'PO20140600000002', ' [ GRN ]', NULL, 0, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 07:50:41', 'GRN'),
(164, 1, 'PO20140600000003', ' [ GRN ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 07:59:55', 'GRN'),
(165, 1, 'PO20140600000004', ' [ GRN ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:00:35', 'GRN'),
(166, 1, 'PO20140600000005', ' [ GRN ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:01:09', 'GRN'),
(167, 1, 'PO20140600000006', ' [ GRN[00000045] ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:13:14', 'GRN[00000045]'),
(168, 1, 'PO20140600000007', ' [ GRN[00000045] ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:13:38', 'GRN[00000045]'),
(169, 1, 'PO20140600000008', ' [ GRN[00000045] ]', NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:14:08', 'GRN[00000045]');

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

--
-- 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=360 ;

--
-- 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'),
(266, 16, 'AR20140600000001', 1, 20, NULL, 0, 121, 1, 121, 1, 0, 6, 2014, 'PP20140617[00000008]', NULL, 0, 1, '2014-06-26 08:19:27', NULL, '2014-06-26 08:19:27'),
(267, 16, 'AR20140600000001', 2, NULL, NULL, 121, 0, 1, 121, 1, 0, 6, 2014, 'PP20140617[00000008]', NULL, 0, 1, '2014-06-26 08:19:27', NULL, '2014-06-26 08:19:27'),
(268, 16, 'AR20140600000001', 3, 20, NULL, 0, 121, 1, 121, 1, 0, 6, 2014, 'PP20140617[00000008]', NULL, 0, 1, '2014-06-26 08:19:27', NULL, '2014-06-26 08:19:27'),
(269, 16, 'AR20140600000001', 4, NULL, NULL, 121, 0, 1, 121, 1, 0, 6, 2014, 'PP20140617[00000008]', NULL, 0, 1, '2014-06-26 08:19:27', NULL, '2014-06-26 08:19:27'),
(354, 1, 'SO20140600000031', 1, 79, '321000100 [ Teak wooden chair with natural finish ]19', 12.5, 0, 1, 12.5, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 3, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(355, 1, 'SO20140600000031', 2, 57, '321000100 [ Teak wooden chair with natural finish ]', 0, 12.5, 1, 12.5, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 3, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(356, 1, 'SO20140600000031', 3, 79, '321000100 [ Teak wooden chair with natural finish ]', 110, 0, 1, 110, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 3, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(357, 1, 'SO20140600000031', 4, 57, '321000100 [ Teak wooden chair with natural finish ]', 0, 110, 1, 110, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 3, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(358, 1, 'SO20140600000031', 5, 79, '331000300 [ Plastic Chair - White ]', 120, 0, 1, 120, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 4, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(359, 1, 'SO20140600000031', 6, 15, '331000300 [ Plastic Chair - White ]', 0, 120, 1, 120, 1, 0, 6, 2014, 'SDN2014-00000002[00000002]', 4, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15');

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

--
-- 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=16 ;

--
-- 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'),
(12, 1, 1, 2, 'LT', 78, '2014-06-26', 'sdfg sd sdgf ', 0, 0, 16, '2014-06-26 02:57:52', 0, '2014-06-26 02:58:38'),
(13, 1, 1, 2, 'LT', 78, '1970-01-01', 'sdASD a dA DS SDa da', 0, 1, 16, '2014-06-30 04:23:39', 0, '0000-00-00 00:00:00'),
(14, 1, 1, 2, 'LT', 78, '1970-01-01', 'sadf asdf sa', 0, 1, 16, '2014-06-30 04:36:02', 0, '0000-00-00 00:00:00'),
(15, 1, 1, 2, 'LT', 79, '2014-07-02', 'ae wfasdf asfd', 0, 1, 16, '2014-06-30 04:37:04', 0, '0000-00-00 00:00:00');

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

--
-- 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=21 ;

--
-- 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'),
(15, 12, 0, 4, 2, 3, 0, 16, '2014-06-26 02:57:52', 0, '0000-00-00 00:00:00'),
(16, 13, 0, 4, 1, 1, 0, 16, '2014-06-30 04:23:39', 0, '0000-00-00 00:00:00'),
(17, 14, 0, 1, 1, 7, 0, 16, '2014-06-30 04:36:02', 0, '0000-00-00 00:00:00'),
(18, 14, 0, 7, 4, 6, 0, 16, '2014-06-30 04:36:19', 0, '0000-00-00 00:00:00'),
(19, 15, 0, 7, 5, 6, 0, 16, '2014-06-30 04:37:04', 0, '2014-06-30 04:38:20'),
(20, 15, 0, 7, 6, 6, 0, 16, '2014-06-30 04:38:30', 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,
  `bankID` int(11) NOT NULL,
  `reconcile` smallint(6) NOT NULL DEFAULT '0',
  `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 DEFAULT 'Temp Description',
  `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`, `bankID`, `reconcile`, `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, 15, 1, 0, 'PP201459', '2014-06-27', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-09 08:43:00', 0, '2014-06-30 01:59:07', 0, 'Temp Description', 0, ''),
(17, 1, 0, 0, 0, 0, 0, 12, 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-06-26 08:11:36', 0, 'Temp Description', 0, ''),
(18, 1, 0, 0, 0, 0, 0, 12, 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-06-26 08:11:39', 0, 'Temp Description', 0, ''),
(19, 1, 0, 0, 0, 0, 0, 16, 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-06-26 08:11:44', 0, 'Temp Description', 0, ''),
(20, 1, 0, 0, 0, 0, 0, 20, 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-06-26 08:11:50', 0, 'Temp Description', 0, ''),
(21, 1, 0, 0, 20, 0, 0, 27, 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-06-26 08:12:00', 0, 'Temp Description', 0, ''),
(22, 1, 0, 0, 0, 0, 0, 28, 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-06-26 08:12:06', 0, 'Temp Description', 0, ''),
(23, 1, 0, 0, 0, 0, 0, 16, 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-06-26 08:12:11', 0, 'Temp Description', 0, ''),
(24, 1, 1, 0, 0, 0, 0, 12, 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-06-26 08:12:16', 0, 'Temp Description', 0, ''),
(25, 1, 1, 0, 0, 0, 0, 15, 1, 0, 'PP2014514', '2014-06-26', 1, 0, 0, 0, '0', 0, 0, 0, 0, 0, 0, 0, '2014-05-14 01:29:53', 0, '2014-06-30 01:59:11', 0, 'Temp Description', 0, ''),
(26, 1, 1, 0, 0, 0, 0, 16, 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-06-26 08:12:24', 0, 'Temp Description', 0, ''),
(27, 1, 23, 0, 0, 0, 0, 15, 0, 0, 'PP2014526', '2014-05-14', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 04:23:36', 0, '2014-06-30 05:44:46', 0, 'Temp Description', 0, ''),
(28, 0, 1, 0, 104.19, 0, 0, 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, 'Temp Description', 0, ''),
(29, 0, 1, 0, 15.85, 0, 0, 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, 'Temp Description', 0, ''),
(30, 0, 1, 0, 100, 0, 0, 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, 'Temp Description', 0, ''),
(31, 0, 1, 0, 2.12, 0, 0, 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, 'Temp Description', 0, ''),
(32, 0, 1, 0, 97, 0, 0, 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, 'Temp Description', 0, ''),
(33, 0, 1, 0, 11, 0, 0, 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, 'Temp Description', 0, ''),
(34, 0, 1, 0, 11, 0, 0, 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, 'Temp Description', 0, ''),
(35, 0, 1, 0, 11, 0, 0, 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, 'Temp Description', 0, ''),
(36, 0, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(37, 0, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(38, 0, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(39, 0, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(40, 0, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(41, 0, 0, 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, 'Temp Description', 0, ''),
(42, 1, 1, 0, 2, 0, 0, 20, 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-26 08:12:34', 0, 'Temp Description', 0, ''),
(43, 1, 1, 0, 4, 0, 0, 27, 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-26 08:12:40', 0, 'Temp Description', 0, ''),
(44, 1, 1, 0, 4, 0, 0, 12, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:13:51', 0, '2014-06-26 08:12:44', 0, 'Temp Description', 0, ''),
(45, 1, 1, 0, 4, 0, 0, 12, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:16:54', 0, '2014-06-26 08:12:47', 0, 'Temp Description', 0, ''),
(46, 1, 1, 0, 4, 0, 0, 15, 0, 0, 'PP20140602', '2014-04-16', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:18:05', 0, '2014-06-30 05:44:49', 0, 'Temp Description', 0, ''),
(47, 1, 1, 0, 4, 0, 0, 28, 0, 0, 'PP20140602', '0000-00-00', 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:18:38', 0, '2014-06-26 08:12:57', 0, 'Temp Description', 0, ''),
(48, 1, 1, 1, 1, 0, 0, 28, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:38:43', 0, '2014-06-26 08:13:03', 0, 'Temp Description', 0, ''),
(49, 1, 1, 1, 1, 0, 0, 27, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:40:39', 0, '2014-06-26 08:13:08', 0, 'Temp Description', 0, ''),
(50, 1, 1, 1, 1, 0, 0, 28, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:41:18', 0, '2014-06-26 08:13:12', 0, 'Temp Description', 0, ''),
(51, 1, 1, 1, 1, 0, 0, 15, 0, 0, 'PP20140602', '2014-06-27', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:42:53', 0, '2014-06-30 05:44:52', 0, 'Temp Description', 0, ''),
(52, 1, 1, 0, 2, 0, 0, 15, 0, 0, 'PP20140602', '2014-06-26', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:45:41', 0, '2014-06-30 05:44:54', 0, 'Temp Description', 0, ''),
(53, 1, 1, 0, 2, 0, 0, 16, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:46:26', 0, '2014-06-26 08:13:27', 0, 'Temp Description', 0, ''),
(54, 1, 1, 0, 3, 0, 0, 16, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:49:07', 0, '2014-06-26 08:13:31', 0, 'Temp Description', 0, ''),
(55, 1, 1, 0, 3, 0, 0, 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, 'Temp Description', 0, ''),
(56, 1, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(57, 1, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(58, 1, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(59, 1, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(60, 1, 1, 0, 3, 0, 0, 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, 'Temp Description', 0, ''),
(61, 1, 1, 0, 3, 0, 0, 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, 'Temp Description', 0, ''),
(62, 1, 1, 1, 1, 0, 0, 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, 'Temp Description', 0, ''),
(63, 1, 1, 1, 1, 0, 0, 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, 'Temp Description', 0, ''),
(64, 1, 1, 1, 1, 0, 0, 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, 'Temp Description', 0, ''),
(65, 1, 1, 0, 2, 0, 0, 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, 'Temp Description', 0, ''),
(66, 1, 1, 2, 12, 0, 0, 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, 'Temp Description', 0, ''),
(67, 1, 1, 2, 12, 0, 0, 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, 'Temp Description', 0, ''),
(68, 1, 1, 0, 11, 0, 0, 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, 'Temp Description', 0, ''),
(69, 1, 1, 0, 0, 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, 'Temp Description', 0, ''),
(70, 1, 1, 0, 1, 0, 0, 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, 'Temp Description', 0, ''),
(71, 1, 1, 0, 2, 0, 0, 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, 'Temp Description', 0, ''),
(72, 1, 1, 1, 2, 0, 112233, 0, 0, 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, 'Temp Description', 0, ''),
(73, 1, 1, 0, 0, 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, 'Temp Description', 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,
  `bankId` int(11) 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,
  `reconcile` smallint(6) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=34 ;

--
-- 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`, `bankId`, `totalOtherCharge`, `totalPaid`, `totalApplied`, `outOfBalance`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`, `accountDescription`, `paymentID`, `journalNo`, `reconcile`) VALUES
(11, 0, 1, 'Me', 2, 1030, 68, 3, 101, 'OPN', '2014-05-14', 1, 1, 0, 0, 2, 'Yup', 0, 0, 0, 0, 0, 0, 0, 0, '2014-06-03 09:55:44', 0, '2014-06-26 01:12:38', 0, 'aaw', 0, '', 0),
(12, 1, 1, 'Inspire Garage', 1, 121, 68, 3, 101, 'OPN', '2014-06-12', 1, 1, 0, 0, 2, 'sds', 0, 0, 0, 0, 0, 0, 0, 0, '2014-06-03 10:23:30', 0, '2014-07-01 00:53:55', 0, '', 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, 0, 16, '2014-06-04 10:35:05', 0, '2014-06-30 08:02:18', 0, 'sds', 0, '', 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, 0, 16, '2014-06-05 04:50:00', 0, '2014-06-20 02:44:30', 0, 'aad', 0, 'AP20140600000002', 0),
(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, 0, 16, '2014-06-05 05:11:06', 0, '2014-06-20 02:44:29', 0, 'weeqw', 0, 'AP20140600000003', 0),
(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, 0, 16, '2014-06-05 05:13:29', 0, '2014-06-18 04:19:38', 0, 'qwq', 0, '', 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, 0, 16, '2014-06-05 06:48:21', 0, '0000-00-00 00:00:00', 0, 'ae', 0, '', 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, 0, 16, '2014-06-05 10:15:02', 0, '0000-00-00 00:00:00', 0, 'fd', 0, '', 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, 0, 16, '2014-06-05 10:22:19', 0, '0000-00-00 00:00:00', 0, 'wqw', 0, '', 0),
(25, 0, 16, 'dada', 17, 12, 69, 26, 102, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, 'asa', 0, 0, 0, 0, 0, 0, 0, 16, '2014-06-26 03:32:04', 0, '0000-00-00 00:00:00', 0, 'asa', 0, '', 0),
(26, 0, 16, 'asa', 15, 12, 68, 6, 101, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 'asa', 0, 0, 0, 0, 0, 0, 0, 16, '2014-06-26 03:35:02', 0, '0000-00-00 00:00:00', 0, '12', 0, '', 0),
(27, 0, 16, 'asa', 15, 12, 68, 6, 101, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 'asa', 0, 0, 0, 0, 0, 0, 0, 16, '2014-06-26 03:36:16', 0, '0000-00-00 00:00:00', 0, '12', 0, '', 0),
(28, 0, 16, 'sds', 10, 12, 69, 26, 101, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 'as', 0, 0, 0, 0, 0, 0, 0, 16, '2014-06-26 03:39:56', 0, '0000-00-00 00:00:00', 0, 'asa', 0, '', 0),
(29, 0, 16, 'sdwe', 1, 233, 68, 26, 0, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, 'adad', 0, 0, 28, 0, 0, 0, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0, '', 0, '', 0),
(30, 0, 16, 'sdwe', 1, 233, 68, 26, 0, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, 'adad', 0, 0, 28, 0, 0, 0, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0, '', 0, '', 0),
(31, 0, 16, 'sdwe', 1, 233, 68, 26, 0, 'OPN', '0000-00-00', 1, 0, 0, 0, 1, 'adad', 0, 0, 28, 0, 0, 0, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0, '', 0, '', 0),
(32, 0, 16, 'wew afaf', 17, 121, 68, 26, 0, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 's af ', 0, 0, 28, 0, 0, 0, 0, 16, '2014-06-26 04:54:53', 0, '0000-00-00 00:00:00', 0, '', 0, '', 0),
(33, 1, 16, 'sds', 15, 121, 68, 2, 101, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 'asda sdsd', 0, 0, 0, 0, 0, 0, 0, 16, '2014-07-02 01:34:26', 0, '0000-00-00 00:00:00', 0, '', 0, '', 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=21 ;

--
-- 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, 12, 2, 102, 'Fad', 3, 1, 6, 3.18, 3.18, 16, '2014-06-05 10:20:27', 0, '2014-07-01 00:47:03'),
(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'),
(19, 33, 1, 100, 'qwq sd', 21, 10, 6, 1.26, 22.26, 16, '2014-07-02 01:34:26', 0, '0000-00-00 00:00:00'),
(20, 33, 2, 100, 'dsds', 12, 7, 0, 0, 12, 16, '2014-07-02 01:34:56', 0, '0000-00-00 00:00:00');

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

--
-- 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=43 ;

--
-- 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),
(33, 25, 0, 0, '', 'Plastic Chair - Red', 2, 2345, 4690, 0, 0, 0, 4690, 0, 16, '2014-06-26 03:32:04', 0, '0000-00-00 00:00:00', 0),
(34, 26, 0, 1, '', 'Teak wooden chair with natural finish', 223, 12, 2676, 6, 0, 0, 2676, 0, 16, '2014-06-26 03:35:02', 0, '0000-00-00 00:00:00', 0),
(35, 27, 0, 1, '', 'Teak wooden chair with natural finish', 223, 12, 2676, 6, 0, 0, 2676, 0, 16, '2014-06-26 03:36:17', 0, '0000-00-00 00:00:00', 0),
(36, 28, 0, 1, '', 'Teak wooden chair with natural finish', 1, 12, 12, 0, 6, 0.72, 12.72, 0, 16, '2014-06-26 03:39:56', 0, '0000-00-00 00:00:00', 0),
(37, 28, 0, 7, '0', 'Plastic Chair - Red', 1, 2345, 2345, 0, 0, 0, 2345, 0, 16, '2014-06-26 03:40:13', 0, '0000-00-00 00:00:00', 0),
(38, 29, 0, 1, '', 'Teak wooden chair with natural finish', 2, 12, 24, 0, 6, 1.44, 25.44, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0),
(39, 30, 0, 1, '', 'Teak wooden chair with natural finish', 2, 12, 24, 0, 6, 1.44, 25.44, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0),
(40, 31, 0, 1, '', 'Teak wooden chair with natural finish', 2, 12, 24, 0, 6, 1.44, 25.44, 0, 16, '2014-06-26 04:53:00', 0, '0000-00-00 00:00:00', 0),
(42, 32, 2, 4, '', 'Plastic Chair - Blue', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-06-26 09:36:43', 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,
  `invoiceID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;

--
-- 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`, `invoiceID`) 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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(11, 15, 9, 26, '', '', 'PI2014', '2014-06-11', 0, 5, 0, 16, '2014-06-11 04:09:12', 0, 0, '2014-06-27 01:18:43', '', 0, '', NULL),
(12, 15, 8, 27, '', '', 'PI2014', '2014-06-12', 0, 5, 0, 16, '2014-06-12 02:14:41', 0, 0, '2014-06-27 01:18:50', '', 0, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(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, '', NULL),
(20, 15, 8, 26, '', '', 'PI2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:28:06', 1, 1, '2014-06-27 01:22:48', '', 0, '', NULL),
(21, 15, 12, 27, '', '', 'PO2014', '2014-06-21', 1, 5, 1, 16, '2014-06-21 03:37:57', 1, 0, '2014-06-30 06:35:02', '', 0, '', NULL),
(22, 15, 12, 26, '', '', 'PO2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:47:24', 1, 0, '2014-06-27 02:32:44', '', 0, '', NULL),
(23, 15, 8, 26, '', '', 'PO2014', '2014-06-26', 3.2, 5, 2, 16, '2014-06-26 02:57:24', 1, 1, '2014-06-27 01:23:00', '', 0, '', NULL);

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

--
-- 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=38 ;

--
-- 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, 7, 14, 16, '2014-06-20 01:15:57', 0, '2014-06-26 01:56:34'),
(30, 19, 2, 10, '', '', 'Bola Tampar Buaya', 111, 12, 6, 1, 16, '2014-06-20 01:16:59', 0, '2014-06-26 01:52:44'),
(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'),
(37, 23, 1, 11, '', '', 'saiz 10. warna gold', 1222, 5, 0, 6110, 16, '2014-06-26 02:57:24', 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,
  `journalNo` varchar(32) 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=62 ;

--
-- 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`, `journalNo`, `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, 1, 1, 6, '', 0, 0, 0, '', 1, 0, '2014-05-28 07:52:13', 0, '2014-07-01 01:43:29'),
(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, 1, 1, 6, '', 0, 0, 0, '', 1, 0, '2014-05-28 08:24:02', 0, '2014-07-01 01:43:41'),
(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, 'PO20140600000002', 1, 0, '2014-06-25 00:43:14', 0, '2014-07-01 08:01:02'),
(45, 1, 'sdw', 10, 20, 'GRN', '2014-06-25', 1, 0, 0, 0, 0, '', 0, 0, 0, 'PO20140600000008', 1, 0, '2014-06-25 00:48:52', 0, '2014-07-01 08:14:08'),
(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'),
(59, 1, 'sd', 19, 1, 'GRN', '2014-06-25', 1, 0, 1, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-06-25 06:38:17', 0, '0000-00-00 00:00:00'),
(60, 1, 'sd', 19, 1, 'GRN', '2014-06-25', 1, 0, 1, 0, 7, 'sqaa', 8, 0, 0, '', 1, 0, '2014-06-25 06:42:52', 0, '0000-00-00 00:00:00'),
(61, 1, 'sda', 19, 1, 'GRN', '2014-06-26', 1, 0, 1, 0, 0, '', 0, 0, 0, '', 0, 0, '2014-06-26 01:56:34', 0, '2014-07-01 07:47:58');

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

--
-- 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` double NOT NULL,
  `quantityReceived` double NOT NULL DEFAULT '0',
  `umID` int(11) NOT NULL DEFAULT '0',
  `amount` double NOT NULL,
  `balanceItem` 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=111 ;

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

--
-- 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,
  `bankID` 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=31 ;

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

INSERT INTO `comp_receive_payment` (`ID`, `companyID`, `customerID`, `projectID`, `paymentMethodID`, `referenceNo`, `bankID`, `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, 0, 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-26 08:19:27', 0, 'AR20140600000001'),
(9, 1, 12, 17, 69, 121, 0, 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, 0, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 1, 16, '2014-06-17 12:10:23', 0, '2014-06-26 04:43:10', 0, ''),
(11, 1, 12, 1, 69, 212, 0, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 1, 16, '2014-06-17 12:10:28', 0, '2014-06-26 04:43:10', 0, ''),
(12, 1, 12, 1, 69, 212, 0, 101, 'PP20140617', '2014-06-17', 1, 3, 0, 'sds', 0, 0, 0, 0, 20000, 1191900, 1, 16, '2014-06-17 12:10:29', 0, '2014-06-26 04:43:11', 0, ''),
(13, 1, 12, 1, 69, 0, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 1, 16, '2014-06-17 12:13:35', 0, '2014-06-26 04:43:11', 0, ''),
(14, 1, 12, 1, 69, 0, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 1, 16, '2014-06-17 12:13:42', 0, '2014-06-26 04:43:12', 0, ''),
(15, 1, 12, 1, 69, 0, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 1, 16, '2014-06-17 12:13:44', 0, '2014-06-26 04:43:12', 0, ''),
(16, 1, 12, 1, 69, 0, 0, 101, 'PP20140617', '2014-06-17', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 1, 16, '2014-06-17 12:13:47', 0, '2014-06-26 04:43:13', 0, ''),
(17, 1, 12, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-27', 1, 3.1305, 0, '', 1, 0, -1, 0, 2509.44, 11999493.56, 0, 16, '2014-06-27 02:30:38', 0, '0000-00-00 00:00:00', 0, ''),
(18, 1, 12, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-27', 1, 3.1305, 0, '', 1, 0, -1, 0, 2509.44, 11999493.56, 0, 16, '2014-06-27 02:30:46', 0, '0000-00-00 00:00:00', 0, ''),
(19, 1, 12, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-27', 1, 3.1305, 0, '', 0, 0, 0, 0, 1, 9, 0, 16, '2014-06-27 02:33:52', 0, '0000-00-00 00:00:00', 0, ''),
(20, 1, 15, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-11', 2, 3.1305, 0, 'sdsdfq', 0, 0, 0, 0, 12, 18977, 0, 16, '2014-06-27 07:18:03', 0, '0000-00-00 00:00:00', 0, ''),
(21, 1, 15, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-11', 2, 3.1305, 0, 'sdsdfq', 0, 0, 0, 0, 0, 18989, 0, 16, '2014-06-27 07:20:18', 0, '0000-00-00 00:00:00', 0, ''),
(22, 1, 12, 1, 68, 0, 0, 0, 'PP20140627', '2014-06-24', 1, 3.1305, 0, 'qwq', 0, 0, 0, 0, 1.01, 1219.99, 0, 16, '2014-06-27 07:24:55', 0, '0000-00-00 00:00:00', 0, ''),
(23, 1, 12, 2, 68, 1, 12, 0, 'PP20140627', '2014-06-24', 1, 3.1305, 0, 'asa', 11, 0, -11, 0, 3.16, 1218.84, 0, 16, '2014-06-27 07:28:48', 0, '0000-00-00 00:00:00', 0, ''),
(24, 1, 12, 17, 68, 0, 12, 0, 'PP20140627', '2014-06-23', 1, 3.1305, 0, '23', 0, 0, 0, 0, 2, -12, 0, 16, '2014-06-27 07:38:00', 0, '0000-00-00 00:00:00', 0, ''),
(25, 1, 15, 1, 68, 12, 12, 0, 'PP20140627', '2014-06-11', 2, 3.1305, 0, 'sds', 2, 1, -1, 0, 2, 3, 0, 16, '2014-06-27 07:49:42', 0, '0000-00-00 00:00:00', 0, ''),
(26, 1, 16, 1, 68, 0, 12, 0, 'PP20140630', '1970-01-01', 1, 3.1305, 0, 'sds', 1, 0, -1, 0, 1, 2, 0, 16, '2014-06-30 03:57:14', 0, '0000-00-00 00:00:00', 0, ''),
(27, 1, 12, 10, 69, 121, 12, 0, 'PP20140630', '1970-01-01', 1, 3.1305, 0, 'awq', 1, 0, -1, 0, 1, 2, 0, 16, '2014-06-30 04:00:22', 0, '0000-00-00 00:00:00', 0, ''),
(28, 1, 12, 10, 68, 0, 12, 0, 'PP20140630', '1970-01-01', 1, 3.1305, 0, 'asa', 11, 0, -11, 2008, 13, 0, 0, 16, '2014-06-30 04:02:31', 0, '2014-07-01 08:18:11', 0, ''),
(29, 1, 12, 1, 68, 0, 12, 0, 'PP20140630', '1970-01-01', 1, 3.1305, 0, 'asax', 2, 0, -2, 0, 4, 8, 0, 16, '2014-06-30 04:51:01', 0, '0000-00-00 00:00:00', 0, ''),
(30, 1, 12, 17, 68, 0, 12, 0, 'PP20140630', '1970-01-01', 1, 3.1305, 0, 'dsmf sdldf,a', 13, 1, -12, 1111, 2, 0, 0, 16, '2014-06-30 05:01:25', 0, '2014-07-01 01:42:58', 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=41 ;

--
-- 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, 8, 0, 18, 0, 0, 121, 10000, 0, '2014-06-26 07:12:55', 0, '0000-00-00 00:00:00'),
(2, 8, 0, 19, 0, 0, 121, 10000, 0, '2014-06-26 07:14:52', 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'),
(13, 17, 0, 18, 0, 0, 1, 2509.44, 0, '2014-06-27 02:30:38', 0, '0000-00-00 00:00:00'),
(14, 18, 0, 18, 0, 0, 1, 2509.44, 0, '2014-06-27 02:30:46', 0, '0000-00-00 00:00:00'),
(15, 19, 0, 19, 0, 0, 0, 1, 0, '2014-06-27 02:33:52', 0, '0000-00-00 00:00:00'),
(16, 20, 0, 20, 0, 0, 0, 12, 0, '2014-06-27 07:18:03', 0, '0000-00-00 00:00:00'),
(17, 22, 0, 21, 0, 0, 0, 1.01, 0, '2014-06-27 07:24:55', 0, '0000-00-00 00:00:00'),
(18, 23, 0, 22, 0, 0, 11, 3.16, 0, '2014-06-27 07:28:48', 0, '0000-00-00 00:00:00'),
(19, 24, 0, 23, 0, 0, 0, 1, 0, '2014-06-27 07:38:01', 0, '0000-00-00 00:00:00'),
(20, 24, 0, 24, 0, 0, 0, 1, 0, '2014-06-27 07:38:01', 0, '0000-00-00 00:00:00'),
(21, 25, 1, 26, 0, 0, 1, 1, 0, '2014-06-27 07:49:42', 0, '0000-00-00 00:00:00'),
(22, 25, 2, 27, 0, 0, 1, 1, 0, '2014-06-27 07:49:42', 0, '0000-00-00 00:00:00'),
(23, 26, 1, 32, 0, 0, 1, 1, 0, '2014-06-30 03:57:14', 0, '0000-00-00 00:00:00'),
(24, 27, 1, 30, 0, 0, 1, 1, 0, '2014-06-30 04:00:22', 0, '0000-00-00 00:00:00'),
(28, 28, 4, 30, 0, 0, 11, 0, 0, '2014-07-01 05:20:23', 0, '0000-00-00 00:00:00'),
(29, 28, 5, 31, 0, 0, 0, 12, 0, '2014-07-01 05:20:34', 0, '0000-00-00 00:00:00'),
(30, 29, 1, 28, 0, 0, 1, 1, 0, '2014-06-30 04:51:01', 0, '0000-00-00 00:00:00'),
(31, 29, 2, 29, 0, 0, 0, 1, 0, '2014-06-30 04:51:01', 0, '0000-00-00 00:00:00'),
(32, 29, 3, 30, 0, 0, 0, 1, 0, '2014-06-30 04:51:01', 0, '0000-00-00 00:00:00'),
(33, 29, 4, 31, 0, 0, 1, 1, 0, '2014-06-30 04:51:01', 0, '0000-00-00 00:00:00'),
(34, 30, 1, 28, 0, 0, 0, 1, 0, '2014-07-01 01:42:58', 0, '0000-00-00 00:00:00'),
(35, 30, 2, 30, 0, 0, 12, 0, 0, '2014-07-01 01:30:42', 0, '0000-00-00 00:00:00'),
(36, 30, 3, 31, 0, 0, 1, 1, 0, '2014-06-30 05:01:26', 0, '0000-00-00 00:00:00'),
(37, 28, 6, 30, 0, 0, 0, 1, 0, '2014-07-01 08:15:41', 0, '0000-00-00 00:00:00'),
(39, 28, 7, 29, 0, 0, 0, 1, 0, '2014-07-01 08:18:47', 0, '0000-00-00 00:00:00'),
(40, 28, 8, 31, 0, 0, 0, 1, 0, '2014-07-01 08:18:47', 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, 12, 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, 10, 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 COMMENT '1=sales inv, 2=direct sales inv,  3=debitNote, 4=creditNte',
  `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,
  `salesOrderID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=33 ;

--
-- 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`, `salesOrderID`) 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-27 02:30:38', 0, 1, 'AR20140600000005', NULL),
(19, 1, 0, 0, 12, 'SON20140626', '2014-06-26', 'ghj', 1, 1, 5, 1, 0, 0, 1, '1ygul', 7, 4, 0, -1, 13, 16, '2014-06-26 06:49:57', 0, '2014-06-27 02:33:52', 0, 1, '', NULL),
(20, 1, 0, 0, 15, 'SON20140627', '2014-06-17', '12', 1, 1, 6, 1, 0, 3.1305, 1, 'sds', 7, 4, 0, -12, 36.72, 16, '2014-06-27 07:11:02', 0, '2014-06-27 07:18:03', 0, 1, '', NULL),
(21, 1, 0, 0, 12, 'SON20140627', '2014-06-25', 'w3', 1, 2, 5, 1, 0, 3.1305, 1, 'de', 7, 4, 0, -1.01, 1.01, 16, '2014-06-27 07:22:31', 0, '2014-06-27 07:24:55', 0, 1, '', NULL),
(22, 1, 0, 0, 12, 'SON20140627', '2014-06-24', 'sd', 1, 2, 5, 1, 0, 3.1305, 1, 'wew', 7, 3, 0, -3.16, 3.16, 16, '2014-06-27 07:27:12', 0, '2014-06-27 07:28:48', 0, 1, '', NULL),
(23, 1, 0, 0, 12, 'SON20140627', '2014-06-10', 'sds', 1, 2, 7, 1, 0, 3.1305, 1, 'sds', 6, 5, 0, -1, 12, 16, '2014-06-27 07:34:10', 0, '2014-06-27 07:38:01', 0, 1, '', NULL),
(24, 1, 0, 0, 12, 'SON20140627', '2014-06-04', 'w', 1, 1, 7, 2, 0, 3.1305, 1, 'sds', 6, 5, 0, -1, 1, 16, '2014-06-27 07:34:59', 0, '2014-06-27 07:38:01', 0, 1, '', NULL),
(25, 1, 0, 0, 12, 'SON20140627', '2014-06-06', 'q1', 2, 1, 5, 1, 0, 3.1305, 1, 'ada', 7, 5, 0, 1, 1, 16, '2014-06-27 07:46:47', 0, '2014-07-01 03:04:08', 0, 1, '', NULL),
(26, 1, 0, 0, 15, 'SON20140627', '2014-06-06', 'we', 2, 1, 5, 2, 0, 3.1305, 1, 'wew', 7, 8, 0, -1, 1, 16, '2014-06-27 07:47:23', 0, '2014-06-27 07:49:42', 0, 1, '', NULL),
(27, 1, 0, 0, 15, 'SON20140627', '2014-06-03', 'as', 2, 1, 5, 2, 0, 3.1305, 1, 'as', 6, 8, 0, -1, 1, 16, '2014-06-27 07:48:33', 0, '2014-06-27 07:49:42', 0, 1, '', NULL),
(28, 1, 0, 0, 12, 'SON20140627', '2014-06-25', '12', 2, 1, 8, 1, 0, 3.1305, 1, 'sd', 6, 5, 0, 1060.31, 1394.36, 16, '2014-06-30 00:35:53', 0, '2014-07-01 03:10:54', 0, 1, '', NULL),
(29, 1, 0, 0, 12, 'SON20140630', '1970-01-01', 'we', 2, 15, 7, 1, 0, 3.1305, 1, 'sdw', 6, 8, 0, 650, 652, 16, '2014-06-30 00:42:25', 0, '2014-07-01 08:18:47', 0, 1, '', NULL),
(30, 1, 0, 0, 12, 'SON20140630', '2014-06-24', 'sew', 2, 17, 7, 1, 0, 3.1305, 1, 'sdw', 6, 5, 0, 0, 12, 16, '2014-06-30 00:44:08', 0, '2014-07-01 08:15:41', 0, 1, '', NULL),
(31, 1, 0, 0, 12, 'SON20140630', '1970-01-01', 'sew', 2, 17, 7, 1, 0, 3.1305, 1, 'ewe', 6, 8, 0, 663.44, 678.44, 16, '2014-06-30 01:01:13', 0, '2014-07-01 08:18:47', 0, 1, '', NULL),
(32, 1, 0, 0, 16, 'SON20140630', '1970-01-01', 'as', 2, 1, 5, 1, 0, 3.1305, 1, 'wewd', 7, 8, 0, -1, 654.06, 16, '2014-06-30 03:42:50', 0, '2014-06-30 03:57:14', 0, 1, '', NULL);

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

--
-- 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=47 ;

--
-- 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'),
(38, 20, 0, 101, '11sd', 0, 1, 6, 0.72, 12, 0, 0, 0, 0, 16, '2014-06-27 07:11:30', 0, '0000-00-00 00:00:00'),
(39, 22, 0, 101, '1', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-06-27 07:27:41', 0, '0000-00-00 00:00:00'),
(40, 23, 0, 88, 'wew', 1, 18, 6, 0.72, 12, 0, 0, 0, 0, 16, '2014-06-27 07:34:11', 0, '0000-00-00 00:00:00'),
(41, 26, 0, 86, 'we', 0, 15, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-06-27 07:47:23', 0, '0000-00-00 00:00:00'),
(42, 27, 0, 88, 'qw', 0, 15, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-06-27 07:48:34', 0, '0000-00-00 00:00:00'),
(43, 30, 0, 100, 'we', 0, 1, 6, 0.72, 12, 0, 0, 0, 0, 16, '2014-06-30 00:44:08', 0, '0000-00-00 00:00:00'),
(44, 31, 1, 100, '111111111', 0, 1, 6, 0.72, 12, 0, 0, 0, 0, 16, '2014-06-30 01:02:05', 16, '2014-06-30 03:22:57'),
(45, 31, 2, 102, '121sda', 0, 4, 0, 12, 1, 0, 0, 0, 0, 16, '2014-06-30 01:02:57', 16, '2014-06-30 03:21:16'),
(46, 32, 1, 102, 'qwqw', 0, 5, 0, 0, 1, 0, 0, 0, 0, 16, '2014-06-30 03:45:03', 0, '0000-00-00 00:00:00');

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

--
-- 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=38 ;

--
-- 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'),
(23, 19, 0, 1, 1, 13, 13, 4, 0, 0, 13, 0, 16, '2014-06-26 06:49:57', 0, '0000-00-00 00:00:00'),
(24, 20, 0, 1, 1, 12, 12, 1, 6, 0.72, 12.72, 0, 16, '2014-06-27 07:11:02', 0, '0000-00-00 00:00:00'),
(25, 20, 0, 4, 1, 12, 12, 3, 0, 0, 12, 0, 16, '2014-06-27 07:11:17', 0, '0000-00-00 00:00:00'),
(26, 21, 0, 1, 1, 1, 1, 0, 1, 0.01, 1.01, 0, 16, '2014-06-27 07:22:31', 0, '0000-00-00 00:00:00'),
(27, 22, 0, 1, 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-06-27 07:27:12', 0, '0000-00-00 00:00:00'),
(28, 22, 0, 7, 1, 1, 1, 11, 10, 0.1, 1.1, 0, 16, '2014-06-27 07:27:29', 0, '0000-00-00 00:00:00'),
(29, 24, 0, 1, 1, 1, 1, 2, 0, 0, 1, 0, 16, '2014-06-27 07:34:59', 0, '0000-00-00 00:00:00'),
(30, 25, 0, 8, 1, 1, 1, 3, 0, 0, 1, 0, 16, '2014-06-27 07:46:47', 0, '0000-00-00 00:00:00'),
(31, 28, 0, 9, 2, 652, 1304, 1, 6, 78.24, 1382.24, 0, 16, '2014-06-30 00:35:53', 0, '0000-00-00 00:00:00'),
(32, 28, 0, 10, 1, 12, 12, 0, 1, 0.12, 12.12, 0, 16, '2014-06-30 00:37:45', 0, '0000-00-00 00:00:00'),
(33, 29, 0, 9, 1, 652, 652, 5, 0, 0, 652, 0, 16, '2014-06-30 00:42:26', 0, '0000-00-00 00:00:00'),
(34, 31, 1, 9, 1, 652, 652, 5, 0, 0, 652, 0, 16, '2014-06-30 01:01:13', 0, '0000-00-00 00:00:00'),
(35, 31, 2, 8, 1, 0, 12, 10, 0, 0.72, 12.72, 0, 16, '2014-06-30 02:36:39', 16, '0000-00-00 00:00:00'),
(36, 32, 1, 9, 1, 652, 652, 5, 0, 0, 652, 0, 16, '2014-06-30 03:42:50', 0, '0000-00-00 00:00:00'),
(37, 32, 2, 10, 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-06-30 03:43:49', 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',
  `is_delete` smallint(16) NOT NULL,
  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`, `is_delete`) 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', 0),
(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', 0),
(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', 0),
(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', 0),
(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', 0);

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

--
-- 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=4 ;

--
-- Dumping data for table `comp_supplier_closing`
--

INSERT INTO `comp_supplier_closing` (`ID`, `companyID`, `supplierID`, `yearMonth`, `openBalance`, `totalDr`, `totalCr`, `balance`) VALUES
(1, 1, 1, '201406', 0, 30763, 62639, -93402),
(2, 1, 20, '201406', 0, 0, 2429, -2429),
(3, 1, 23, '201406', 0, 0, 144, -144);

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

--
-- 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,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=67 ;

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

INSERT INTO `comp_supplier_closing_daily` (`ID`, `companyID`, `supplierID`, `transDate`, `openBalance`, `totalDr`, `totalCr`, `balance`, `createdTS`) VALUES
(1, 1, 1, '2014-06-11', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(2, 1, 1, '2014-06-11', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(3, 1, 20, '2014-06-12', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(4, 1, 1, '2014-06-16', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(5, 1, 20, '2014-06-16', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(6, 1, 1, '2014-06-19', 0, 0, 0, 0, '2014-06-30 00:33:48'),
(7, 0, 1, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(8, 0, 20, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(9, 0, 23, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(10, 0, 24, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(11, 0, 25, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(12, 0, 26, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(13, 0, 27, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(14, 0, 28, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:12'),
(22, 0, 1, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(23, 0, 20, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(24, 0, 23, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(25, 0, 24, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(26, 0, 25, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(27, 0, 26, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(28, 0, 27, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(29, 0, 28, '0000-00-00', 0, 0, 0, 0, '2014-06-30 04:35:16'),
(37, 0, 1, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(38, 0, 20, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(39, 0, 23, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(40, 0, 24, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(41, 0, 25, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(42, 0, 26, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(43, 0, 27, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(44, 0, 28, '0000-00-00', 0, 0, 0, 0, '2014-06-30 16:00:00'),
(52, 0, 1, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(53, 0, 20, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(54, 0, 23, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(55, 0, 24, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(56, 0, 25, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(57, 0, 26, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(58, 0, 27, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00'),
(59, 0, 28, '2014-07-02', 0, 0, 0, 0, '2014-07-01 16:00:00');

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

--
-- 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=103 ;

--
-- 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', 30, 100000, 0, 0, '2014-05-29 01:33:15', 0, '2014-07-01 08:51:37', 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, ''),
(101, 1, 2, 7, 1, 'PI2014', '2014-06-26', 'kl09887', 1, 5, 2, 1, 0, 1, 0, '', 0, 5, 0, '0', 0, 28149.54, 0, 16, '2014-06-26 06:44:47', 16, '2014-06-26 06:45:10', 0, 1, ''),
(102, 15, 2, 12, 26, 'PI2014', '2014-07-01', 'sup inv 321', 19, 5, 1, 3, 0, 1, 0, '', 0, 5, 0, '0', 0, 7332.6, 0, 16, '2014-07-01 05:04:07', 16, '2014-07-01 05:04:07', 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=180 ;

--
-- 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'),
(177, 101, 1, 1, '', 'Teak wooden chair with natural finish', 3, 3, 9, 0, 6, 0.54, 9.54, 0, 16, '2014-06-26 06:44:47', 0, '0000-00-00 00:00:00'),
(178, 101, 2, 7, '', 'Plastic Chair - Red', 12, 2345, 28140, 0, 0, 0, 28140, 0, 16, '2014-06-26 06:45:09', 0, '0000-00-00 00:00:00'),
(179, 102, 1, 11, '', 'saiz 10. warna gold', 3, 2222, 6666, 15, 10, 666.6, 7332.6, 0, 16, '2014-07-01 05:04:07', 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, 1, 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, 9, 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);

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

--
