-- Table structure for table `comp_industry`
--

CREATE TABLE IF NOT EXISTS `comp_industry` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `industryID` int(11) NOT NULL,
  `businessTypeID` 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`),
  KEY `companyID` (`companyID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

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

--
-- 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, 15),
(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, 11),
(16, 1, 1, 'JL', 2014, 7, 5),
(17, 1, 2, 'AR', 2014, 7, 1),
(18, 1, 3, 'AP', 2014, 7, 1),
(19, 1, 8, 'PO', 2014, 7, 1),
(20, 15, 8, 'PO', 2014, 2, 1),
(21, 15, 3, 'AP', 2014, 2, 3);

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

--
-- 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,
  `referrence` 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=187 ;

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

INSERT INTO `comp_journal` (`ID`, `companyID`, `journalID`, `description`, `referrence`, `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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-01 08:14:08', 'GRN[00000045]'),
(170, 1, 'PO20140600000009', ' [ GRN[00000045] ]', NULL, NULL, 8, '2014-06-25', NULL, 6, 2014, NULL, NULL, 0, 0, NULL, 1, '2014-07-02 08:31:57', 'GRN[00000045]'),
(171, 1, 'PO20140600000010', ' [ GRN[00000045] ]', NULL, NULL, 8, '2014-06-25', NULL, 6, 2014, 2, 2, 0, 0, NULL, 1, '2014-07-02 08:33:13', 'GRN[00000045]'),
(172, 1, 'PO20140600000011', ' [ GRN[00000045] ]', NULL, NULL, 8, '2014-06-25', NULL, 6, 2014, 156, 156, 0, 0, NULL, 1, '2014-07-02 08:34:52', 'GRN[00000045]'),
(173, 1, 'JL20140700000001', 'hhh', NULL, NULL, 1, '2014-07-03', NULL, 7, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-07-03 09:11:02', NULL),
(174, 1, 'AR20140700000001', 'Posting Sales Direct Invoices [ SON20140702[00000033] ]', NULL, NULL, 2, '2014-07-02', NULL, 7, 2014, 3195.55179, 3195.55179, 0, 0, NULL, 1, '2014-07-04 01:26:02', 'SON20140702[00000033]'),
(175, 1, 'JL20140700000002', 'dd', NULL, NULL, 1, '2014-07-04', NULL, 7, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-07-04 02:07:20', NULL),
(176, 1, 'JL20140700000003', 'qwe', 'wqe', NULL, 1, '2014-07-04', NULL, 7, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-07-04 02:14:12', NULL),
(177, 1, 'AP20140700000001', 'Posting Debit Note Confirm [ PI2014[00000103] ]', NULL, NULL, 3, '2014-07-04', NULL, 7, 2014, 2500.4, 2500.4, 0, 0, NULL, 1, '2014-07-08 06:56:04', 'PI2014[00000103]'),
(178, 1, 'PO20140700000001', ' [ GRN[00000068] ]', NULL, NULL, 8, '2014-07-09', NULL, 7, 2014, 30, 30, 0, 0, NULL, 1, '2014-07-09 02:52:41', 'GRN[00000068]'),
(179, 1, 'AP20140600000014', 'Posting Debit Note Confirm [ PDN[00000030] ]', NULL, NULL, 3, '2014-06-24', NULL, 6, 2014, 0, 0, 0, 0, NULL, 1, '2014-07-09 04:09:10', 'PDN[00000030]'),
(180, 1, 'AP20140600000015', 'Posting Credit Note Confirm [ PCN[00000018] ]', NULL, NULL, 3, '2014-06-24', NULL, 6, 2014, 71554.08, 71554.08, 0, 0, NULL, 1, '2014-07-09 04:12:56', 'PCN[00000018]'),
(181, 15, 'PO20140200000001', ' [ GRN2014[00000071] ]', NULL, NULL, 8, '2014-07-10', NULL, 2, 2014, 42218, 42218, 0, 0, NULL, 16, '2014-07-10 03:49:04', 'GRN2014[00000071]'),
(182, 1, 'JL20140700000004', 'test test test', '', NULL, 1, '2014-07-10', NULL, 7, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-07-10 05:31:26', NULL),
(183, 15, 'AP20140200000001', 'Posting Debit Note Confirm [ PI2014[00000102] ]', NULL, NULL, 3, '2014-07-01', NULL, 2, 2014, 4032.6, 4032.6, 0, 0, NULL, 16, '2014-07-16 00:09:19', 'PI2014[00000102]'),
(184, 15, 'AP20140200000002', 'Posting Debit Note Confirm [ PI2014[00000182] ]', NULL, NULL, 3, '2014-07-16', NULL, 2, 2014, 2517.5, 2517.5, 0, 0, NULL, 16, '2014-07-16 00:30:13', 'PI2014[00000182]'),
(185, 15, 'AP20140200000003', 'Posting Debit Note Confirm [ PI2014[00000183] ]', NULL, NULL, 3, '2014-07-16', NULL, 2, 2014, 21.2, 21.2, 0, 0, NULL, 16, '2014-07-16 02:12:52', 'PI2014[00000183]'),
(186, 1, 'JL20140700000005', 'jdjj', '', NULL, 1, '2014-07-22', NULL, 7, 2014, NULL, NULL, 0, 0, NULL, 0, '2014-07-22 03:38:23', NULL);

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

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

CREATE TABLE IF NOT EXISTS `comp_journal_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) DEFAULT '0',
  `journalID` varchar(50) DEFAULT '0',
  `sequence` int(11) DEFAULT '0',
  `acctCode` int(11) DEFAULT '0',
  `description` varchar(200) DEFAULT '0',
  `amount_cr` double DEFAULT '0',
  `amount_dr` double DEFAULT '0',
  `currencyID` int(11) DEFAULT '0',
  `currency_amount` double DEFAULT '0',
  `exchange_rate` double DEFAULT '0',
  `enter_exchange_rate` double DEFAULT '0',
  `period` smallint(2) DEFAULT '0',
  `year` year(4) DEFAULT NULL,
  `formNo` varchar(50) DEFAULT NULL,
  `supplier` varchar(200) DEFAULT NULL,
  `line` int(11) DEFAULT NULL,
  `status` smallint(2) 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=458 ;

--
-- 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`, `supplier`, `line`, `status`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 'JL20140500000014', 1, 57, 'Testing', 0, 100000, 0, 0, 0, 0, 5, 2014, NULL, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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, 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, 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, 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, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 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]', NULL, 4, 0, 1, '2014-07-01 04:37:15', NULL, '2014-07-01 04:37:15'),
(360, 1, 'PO20140600000009', 1, 0, '[321000100]A12 Wooden Chair', 0, 0, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:31:57', NULL, '2014-07-02 08:31:57'),
(361, 1, 'PO20140600000009', 2, 79, '[321000100]A12 Wooden Chair', 0, 0, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:31:57', NULL, '2014-07-02 08:31:57'),
(362, 1, 'PO20140600000009', 3, 0, '[321000100]A12 Wooden Chair', 0, 0, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:31:57', NULL, '2014-07-02 08:31:57'),
(363, 1, 'PO20140600000009', 4, 79, '[321000100]A12 Wooden Chair', 0, 0, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:31:57', NULL, '2014-07-02 08:31:57'),
(364, 1, 'PO20140600000010', 1, 0, '[321000100]A12 Wooden Chair', 1, 0, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:33:13', NULL, '2014-07-02 08:33:13'),
(365, 1, 'PO20140600000010', 2, 79, '[321000100]A12 Wooden Chair', 0, 1, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:33:13', NULL, '2014-07-02 08:33:13'),
(366, 1, 'PO20140600000010', 3, 0, '[321000100]A12 Wooden Chair', 1, 0, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:33:13', NULL, '2014-07-02 08:33:13'),
(367, 1, 'PO20140600000010', 4, 79, '[321000100]A12 Wooden Chair', 0, 1, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:33:13', NULL, '2014-07-02 08:33:13'),
(368, 1, 'PO20140600000011', 1, 0, '[321000100]A12 Wooden Chair', 144, 0, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:34:52', NULL, '2014-07-02 08:34:52'),
(369, 1, 'PO20140600000011', 2, 79, '[321000100]A12 Wooden Chair', 0, 144, 1, 144, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 0, 0, 1, '2014-07-02 08:34:52', NULL, '2014-07-02 08:34:52'),
(370, 1, 'PO20140600000011', 3, 0, '[321000100]A12 Wooden Chair', 12, 0, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:34:52', NULL, '2014-07-02 08:34:52'),
(371, 1, 'PO20140600000011', 4, 79, '[321000100]A12 Wooden Chair', 0, 12, 1, 12, 0, 0, 6, 2014, 'GRN[00000045]', NULL, 1, 0, 1, '2014-07-02 08:34:52', NULL, '2014-07-02 08:34:52'),
(372, 1, 'AR20140700000001', 1, 20, '[321000100]Teak wooden chair with natural finish', 3014.6715, 0, 1, 963, 3.1305, 0, 7, 2014, 'SON20140702[00000033]', NULL, 1, 0, 1, '2014-07-04 01:26:02', NULL, '2014-07-04 01:26:02'),
(373, 1, 'AR20140700000001', 2, 79, '[321000100]Teak wooden chair with natural finish', 0, 3014.6715, 1, 963, 3.1305, 0, 7, 2014, 'SON20140702[00000033]', NULL, 1, 0, 1, '2014-07-04 01:26:02', NULL, '2014-07-04 01:26:02'),
(374, 1, 'AR20140700000001', 3, 38, '[321000100]Teak wooden chair with natural finish', 0, 180.88029, 1, 57.78, 3.1305, 0, 7, 2014, 'SON20140702[00000033]', NULL, 1, 0, 1, '2014-07-04 01:26:02', NULL, '2014-07-04 01:26:02'),
(375, 1, 'AR20140700000001', 4, 20, '[321000100]Teak wooden chair with natural finish', 180.88029, 0, 1, 57.78, 3.1305, 0, 7, 2014, 'SON20140702[00000033]', NULL, 1, 0, 1, '2014-07-04 01:26:02', NULL, '2014-07-04 01:26:02'),
(376, 1, 'AP20140700000001', 1, 13, '[331000100]', 4, 0, 1, 4, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 3, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(377, 1, 'AP20140700000001', 2, 0, '[331000100]', 0, 4, 1, 4, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 3, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(378, 1, 'AP20140700000001', 3, 13, '', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 6, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(379, 1, 'AP20140700000001', 4, 100, '', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 6, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(380, 1, 'AP20140700000001', 5, 13, '', 111, 0, 1, 111, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 10, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(381, 1, 'AP20140700000001', 6, 101, '', 0, 111, 1, 111, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 10, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(382, 1, 'AP20140700000001', 7, 38, '', 0, 6.66, 1, 6.66, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 10, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(383, 1, 'AP20140700000001', 8, 13, '', 6.66, 0, 1, 6.66, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 10, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(384, 1, 'AP20140700000001', 9, 13, '[321000100]', 24, 0, 1, 24, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 4, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(385, 1, 'AP20140700000001', 10, 0, '[321000100]', 0, 24, 1, 24, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 4, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(386, 1, 'AP20140700000001', 11, NULL, '[321000100]', 0, 1.44, 1, 1.44, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 4, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(387, 1, 'AP20140700000001', 12, 13, '[321000100]', 1.44, 0, 1, 1.44, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 4, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(388, 1, 'AP20140700000001', 13, 13, '', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 7, 0, 1, '2014-07-08 06:56:04', NULL, '2014-07-08 06:56:04'),
(389, 1, 'AP20140700000001', 14, 101, '', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 7, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(390, 1, 'AP20140700000001', 15, 38, '', 0, 0.06, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 7, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(391, 1, 'AP20140700000001', 16, 13, '', 0.06, 0, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 7, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(392, 1, 'AP20140700000001', 17, 13, '', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 11, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(393, 1, 'AP20140700000001', 18, 101, '', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 11, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(394, 1, 'AP20140700000001', 19, 38, '', 0, 0.06, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 11, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(395, 1, 'AP20140700000001', 20, 13, '', 0.06, 0, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 11, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(396, 1, 'AP20140700000001', 21, 13, '[321000100]', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 1, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(397, 1, 'AP20140700000001', 22, 0, '[321000100]', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 1, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(398, 1, 'AP20140700000001', 23, NULL, '[321000100]', 0, 0.06, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 1, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(399, 1, 'AP20140700000001', 24, 13, '[321000100]', 0.06, 0, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 1, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(400, 1, 'AP20140700000001', 25, 13, '[321000100]', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 5, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(401, 1, 'AP20140700000001', 26, 0, '[321000100]', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 5, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(402, 1, 'AP20140700000001', 27, NULL, '[321000100]', 0, 0.06, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 5, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(403, 1, 'AP20140700000001', 28, 13, '[321000100]', 0.06, 0, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 5, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(404, 1, 'AP20140700000001', 29, 13, '', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 8, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(405, 1, 'AP20140700000001', 30, 100, '', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 8, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(406, 1, 'AP20140700000001', 31, 13, '[331000200]', 2345, 0, 1, 2345, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 2, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(407, 1, 'AP20140700000001', 32, 0, '[331000200]', 0, 2345, 1, 2345, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 2, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(408, 1, 'AP20140700000001', 33, 13, '[331000100]', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 6, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(409, 1, 'AP20140700000001', 34, 0, '[331000100]', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 6, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(410, 1, 'AP20140700000001', 35, 13, '', 1, 0, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 9, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(411, 1, 'AP20140700000001', 36, 101, '', 0, 1, 1, 1, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 9, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(412, 1, 'AP20140700000001', 37, 38, '', 0, 0.06, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 9, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(413, 1, 'AP20140700000001', 38, 13, '', 0.06, 0, 1, 0.06, 1, 0, 7, 2014, 'PI2014[00000103]', 'ahmad albab sdn bhd', 9, 0, 1, '2014-07-08 06:56:05', NULL, '2014-07-08 06:56:05'),
(414, 1, 'PO20140700000001', 1, 25, '[B006]ALAT TULIS', 30, 0, 1, 30, 1, 0, 7, 2014, 'GRN[00000068]', NULL, 2, 0, 1, '2014-07-09 02:52:41', NULL, '2014-07-09 02:52:41'),
(415, 1, 'PO20140700000001', 2, 0, '[B006]ALAT TULIS', 0, 30, 1, 30, 1, 0, 7, 2014, 'GRN[00000068]', NULL, 2, 0, 1, '2014-07-09 02:52:41', NULL, '2014-07-09 02:52:41'),
(416, 1, 'PO20140700000001', 3, 79, '[321000100]A12 Wooden Chair', 0, 0, 1, 0, 1, 0, 7, 2014, 'GRN[00000068]', NULL, 1, 0, 1, '2014-07-09 02:52:41', NULL, '2014-07-09 02:52:41'),
(417, 1, 'PO20140700000001', 4, 0, '[321000100]A12 Wooden Chair', 0, 0, 1, 0, 1, 0, 7, 2014, 'GRN[00000068]', NULL, 1, 0, 1, '2014-07-09 02:52:41', NULL, '2014-07-09 02:52:41'),
(418, 1, 'AP20140600000014', 1, 79, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(419, 1, 'AP20140600000014', 2, 13, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(420, 1, 'AP20140600000014', 3, 13, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(421, 1, 'AP20140600000014', 4, NULL, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(422, 1, 'AP20140600000014', 5, 79, '[331000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(423, 1, 'AP20140600000014', 6, 13, '[331000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(424, 1, 'AP20140600000014', 7, 79, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(425, 1, 'AP20140600000014', 8, 13, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(426, 1, 'AP20140600000014', 9, 13, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(427, 1, 'AP20140600000014', 10, NULL, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(428, 1, 'AP20140600000014', 11, 79, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(429, 1, 'AP20140600000014', 12, 13, '[321000100]', 0, 0, 1, 1, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(430, 1, 'AP20140600000014', 13, 13, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(431, 1, 'AP20140600000014', 14, NULL, '[321000100]', 0, 0, 1, 0.06, 0, 0, 6, 2014, 'PDN[00000030]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:09:10', NULL, '2014-07-09 04:09:10'),
(432, 1, 'AP20140600000015', 1, 13, '[331000200]', 336, 0, 1, 28, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:56', NULL, '2014-07-09 04:12:56'),
(433, 1, 'AP20140600000015', 2, 79, '[331000200]', 0, 336, 1, 28, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:56', NULL, '2014-07-09 04:12:56'),
(434, 1, 'AP20140600000015', 3, NULL, '[331000200]', 0, 70912.8, 1, 5909.4, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:56', NULL, '2014-07-09 04:12:56'),
(435, 1, 'AP20140600000015', 4, 13, '[331000200]', 70912.8, 0, 1, 5909.4, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:57', NULL, '2014-07-09 04:12:57'),
(436, 1, 'AP20140600000015', 5, 13, '[321000100]0', 288, 0, 1, 24, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:57', NULL, '2014-07-09 04:12:57'),
(437, 1, 'AP20140600000015', 6, 79, '[321000100]0', 0, 288, 1, 24, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:57', NULL, '2014-07-09 04:12:57'),
(438, 1, 'AP20140600000015', 7, 38, '[321000100]0', 0, 17.28, 1, 1.44, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:57', NULL, '2014-07-09 04:12:57'),
(439, 1, 'AP20140600000015', 8, 13, '[321000100]0', 17.28, 0, 1, 1.44, 12, 0, 6, 2014, 'PCN[00000018]', 'ahmad albab sdn bhd', NULL, 0, 1, '2014-07-09 04:12:57', NULL, '2014-07-09 04:12:57'),
(440, 15, 'PO20140200000001', 1, 79, '[M001]Meja makan bulat', 0, 0, 2, 0, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 1, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(441, 15, 'PO20140200000001', 2, 0, '[M001]Meja makan bulat', 0, 0, 2, 0, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 1, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(442, 15, 'PO20140200000001', 3, 79, '[M002]Meja makan lonjong', 39996, 0, 2, 39996, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 2, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(443, 15, 'PO20140200000001', 4, 0, '[M002]Meja makan lonjong', 0, 39996, 2, 39996, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 2, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(444, 15, 'PO20140200000001', 5, 79, '[M001]Meja makan bulat', 2222, 0, 2, 2222, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 1, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(445, 15, 'PO20140200000001', 6, 0, '[M001]Meja makan bulat', 0, 2222, 2, 2222, 1, 0, 2, 2014, 'GRN2014[00000071]', NULL, 1, 0, 16, '2014-07-10 03:49:04', NULL, '2014-07-10 03:49:04'),
(446, 15, 'AP20140200000001', 1, 0, '[M001]', 3666, 0, 1, 3666, 1, 0, 2, 2014, 'PI2014[00000102]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:09:19', NULL, '2014-07-16 00:09:19'),
(447, 15, 'AP20140200000001', 2, 0, '[M001]', 0, 3666, 1, 3666, 1, 0, 2, 2014, 'PI2014[00000102]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:09:19', NULL, '2014-07-16 00:09:19'),
(448, 15, 'AP20140200000001', 3, 38, '[M001]', 0, 366.6, 1, 366.6, 1, 0, 2, 2014, 'PI2014[00000102]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:09:19', NULL, '2014-07-16 00:09:19'),
(449, 15, 'AP20140200000001', 4, 0, '[M001]', 366.6, 0, 1, 366.6, 1, 0, 2, 2014, 'PI2014[00000102]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:09:19', NULL, '2014-07-16 00:09:19'),
(450, 15, 'AP20140200000002', 1, 0, '[M001]Meja makan bulat', 2375, 0, 1, 625, 3.8, 0, 2, 2014, 'PI2014[00000182]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:30:13', NULL, '2014-07-16 00:30:13'),
(451, 15, 'AP20140200000002', 2, 0, '[M001]Meja makan bulat', 0, 2375, 1, 625, 3.8, 0, 2, 2014, 'PI2014[00000182]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:30:13', NULL, '2014-07-16 00:30:13'),
(452, 15, 'AP20140200000002', 3, 38, '[M001]Meja makan bulat', 0, 142.5, 1, 37.5, 3.8, 0, 2, 2014, 'PI2014[00000182]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:30:13', NULL, '2014-07-16 00:30:13'),
(453, 15, 'AP20140200000002', 4, 0, '[M001]Meja makan bulat', 142.5, 0, 1, 37.5, 3.8, 0, 2, 2014, 'PI2014[00000182]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 00:30:13', NULL, '2014-07-16 00:30:13'),
(454, 15, 'AP20140200000003', 1, 0, '[M001]Meja makan bulat', 20, 0, 1, 20, 1, 0, 2, 2014, 'PI2014[00000183]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 02:12:52', NULL, '2014-07-16 02:12:52'),
(455, 15, 'AP20140200000003', 2, 0, '[M001]Meja makan bulat', 0, 20, 1, 20, 1, 0, 2, 2014, 'PI2014[00000183]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 02:12:52', NULL, '2014-07-16 02:12:52'),
(456, 15, 'AP20140200000003', 3, 38, '[M001]Meja makan bulat', 0, 1.2, 1, 1.2, 1, 0, 2, 2014, 'PI2014[00000183]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 02:12:52', NULL, '2014-07-16 02:12:52'),
(457, 15, 'AP20140200000003', 4, 0, '[M001]Meja makan bulat', 1.2, 0, 1, 1.2, 1, 0, 2, 2014, 'PI2014[00000183]', 'awan biru sdn bhd', 1, 0, 16, '2014-07-16 02:12:52', NULL, '2014-07-16 02:12:52');

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

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

--
-- 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'),
(16, 1, 1, 1, 'LT', 78, '2014-07-04', 'wdew', 0, 1, 16, '2014-07-04 04:16:54', 0, '0000-00-00 00:00:00'),
(17, 1, 1, 2, 'LT', 78, '2014-07-16', '', 0, 1, 16, '2014-07-16 06:51:23', 0, '0000-00-00 00:00:00'),
(18, 1, 0, 0, 'LT', 0, '2014-07-16', 'asdf asf asdf2345', 0, 1, 16, '2014-07-16 07:06:35', 0, '0000-00-00 00:00:00'),
(19, 1, 1, 2, 'LT', 79, '2014-07-16', 'd asdfasd324532', 0, 0, 16, '2014-07-16 07:10:45', 0, '2014-07-16 07:12:05'),
(20, 81, 1, 1, 'LT', 78, '2014-07-21', 'beli microphone 10', 0, 0, 29, '2014-07-21 06:45:02', 0, '2014-07-21 06:45:36');

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

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

--
-- 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'),
(22, 17, 0, 4, 1, 1, 0, 16, '2014-07-16 06:51:23', 0, '2014-07-16 06:52:37'),
(23, 17, 0, 1, 7, 7, 0, 16, '2014-07-16 06:51:52', 0, '0000-00-00 00:00:00'),
(24, 18, 0, 1, 5, 7, 0, 16, '2014-07-16 07:06:35', 0, '0000-00-00 00:00:00'),
(25, 19, 0, 1, 5, 7, 0, 16, '2014-07-16 07:10:45', 0, '2014-07-16 07:11:13'),
(26, 19, 0, 8, 1, 2, 0, 16, '2014-07-16 07:10:55', 0, '2014-07-16 07:11:19'),
(27, 20, 0, 0, 10, 0, 0, 29, '2014-07-21 06:45:02', 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` varchar(16) 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=103 ;

--
-- 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, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(17, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(18, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(19, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(20, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(21, 1, 1, 0, 20, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(22, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(23, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(24, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(25, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(26, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(27, 1, 23, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(28, 1, 1, 0, 104.19, 0, '0', 1, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 07:46:57', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(29, 1, 1, 0, 15.85, 0, '0', 1, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 07:51:32', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(30, 1, 1, 0, 100, 0, '0', 1, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 08:05:23', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(31, 1, 1, 0, 2.12, 0, '0', 1, 0, 0, 'PP2014526', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, '2014-05-26 08:21:22', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(32, 1, 1, 0, 97, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:02:34', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(33, 1, 1, 0, 11, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:09:04', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(34, 1, 1, 0, 11, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:15:12', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(35, 1, 1, 0, 11, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:17:50', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(36, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:21:42', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(37, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:22:52', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(38, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:26:08', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(39, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:27:11', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(40, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP2014527', '0000-00-00', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-05-27 10:29:07', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(41, 1, 1, 0, 0, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(42, 1, 1, 0, 2, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(43, 1, 1, 0, 4, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(44, 1, 1, 0, 4, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(45, 1, 1, 0, 4, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(46, 1, 1, 0, 4, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(47, 1, 1, 0, 4, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(48, 1, 1, 1, 1, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(49, 1, 1, 1, 1, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(50, 1, 1, 1, 1, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(51, 1, 1, 1, 1, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(52, 1, 1, 0, 2, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(53, 1, 1, 0, 2, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(54, 1, 1, 0, 3, 0, '0', 1, 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-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(55, 1, 1, 0, 3, 0, '0', 1, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:50:03', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(56, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 01:59:32', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(57, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:01:00', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(58, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP20140602', '0000-00-00', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:10:04', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(59, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:13:49', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(60, 1, 1, 0, 3, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:18:49', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(61, 1, 1, 0, 3, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:19:29', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(62, 1, 1, 1, 1, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:37:14', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(63, 1, 1, 1, 1, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:51:46', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(64, 1, 1, 1, 1, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-02 02:55:12', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(65, 1, 1, 0, 2, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 2, 0, 2, 2, 0, 16, '2014-06-02 03:13:43', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(66, 1, 1, 2, 12, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 03:41:13', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(67, 1, 1, 2, 12, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 03:46:20', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(68, 1, 1, 0, 11, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 0, 3, 0, 0, 0, 0, 16, '2014-06-02 04:20:27', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(69, 1, 1, 0, 0, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 1, 0, 0, 0, 0, 0, 16, '2014-06-02 04:29:45', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(70, 1, 1, 0, 1, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 1, 1, 0, 1, 0, 0, 16, '2014-06-02 04:31:38', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(71, 1, 1, 0, 2, 0, '0', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 3, -1, 2, 1, 0, 16, '2014-06-02 04:33:52', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(72, 1, 1, 1, 2, 0, '112233', 1, 0, 0, 'PP20140602', '2014-06-02', 1, 1, 0, 0, '', 2, 3, -1, 2, 1, 0, 16, '2014-06-02 04:44:30', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(73, 1, 1, 0, 0, 0, '0', 1, 0, 0, 'PP20140613', '2014-06-13', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-06-13 10:35:38', 0, '2014-07-09 04:33:28', 0, 'Temp Description', 0, ''),
(74, 1, 1, 0, 0, 0, '0', 1, 0, 0, 'PP20140708', '2014-07-08', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-07-08 03:24:42', 0, '2014-07-09 04:33:28', 0, '0', 0, ''),
(75, 1, 1, 0, 0, 0, '0', 1, 0, 0, 'PP20140708', '2014-07-08', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-07-08 04:05:07', 0, '2014-07-09 04:33:28', 0, '0', 0, ''),
(76, 1, 1, 0, 0, 0, '0', 1, 0, 0, 'PP20140708', '2014-07-08', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-07-08 04:51:50', 0, '2014-07-09 04:33:28', 0, '0', 0, ''),
(77, 1, 20, 10, 122, 0, '12', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 12, 0, '', 0, 0, 0, 122, 122, 0, 16, '2014-07-09 07:39:42', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(78, 1, 1, 0, 273.58, 0, '0', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 12, 0, 'QWEW ER', 0, 0, 0, 273.58, 273.58, 0, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(79, 1, 1, 0, 122, 68, '0', 16, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 0, 0, '', 0, 0, 0, 122, 122, 0, 16, '2014-07-09 07:56:16', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(80, 1, 1, 1, 677, 0, '7', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 676, 0, '', 0, 0, 0, 0, 677, 0, 16, '2014-07-09 07:58:36', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(81, 1, 1, 0, 12.72, 0, '0', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 10, 0, 0, '', 0, 0, 0, 12.72, 12.72, 0, 16, '2014-07-09 08:07:07', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(82, 1, 1, 2, 12.72, 68, '0', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 10, 0, 0, '', 0, 0, 0, 12.72, 12.72, 0, 16, '2014-07-09 08:09:46', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(83, 1, 1, 1, 146, 0, '0', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 12, 0, '', 0, 0, 0, 146, 146, 0, 16, '2014-07-09 08:12:23', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(84, 1, 1, 1, 121, 0, '23232423', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 122, 0, '', 0, 0, 0, 121, 121, 0, 16, '2014-07-09 08:14:26', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(85, 1, 1, 0, 11, 0, 'ECDSDW32232', 12, 0, 0, 'PP20140709', '2014-07-09', 1, 1, 12, 0, '2DFE FERFC WRW', 45, 121, 76, 121, 45, 110, 16, '2014-07-09 08:40:05', 0, '2014-07-11 03:30:32', 0, '0', 0, ''),
(86, 1, 1, 0, 0, 0, '', 0, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 16, '2014-07-21 06:15:24', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(87, 1, 1, 2, 9, 68, 'SAA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:28:08', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(88, 1, 1, 2, 9, 68, 'SAA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:37:42', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(89, 1, 1, 2, 9, 68, 'SAA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:39:35', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(90, 1, 1, 2, 9, 68, 'SAA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:43:10', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(91, 1, 1, 0, 6, 0, '', 0, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 0, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:46:18', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(92, 1, 1, 0, 3, 0, 'ASA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:54:24', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(93, 1, 1, 0, 3, 0, 'ASA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 06:57:40', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(94, 1, 1, 0, 3, 0, 'ASA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 07:00:14', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(95, 1, 1, 0, 3, 0, 'ASA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 3, 0, 16, '2014-07-21 07:01:40', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(96, 1, 1, 0, 10, 69, 'SA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 5, 12, 0, '', 0, 0, 0, 0, 10, 0, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(97, 1, 1, 0, 15, 68, 'ASAS', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 15, 0, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(98, 1, 1, 0, 11, 68, 'ASSDS', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, '', 0, 0, 0, 0, 11, 0, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(99, 1, 1, 0, 12, 0, '12SW', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 12, 0, 'ASAS', 0, 0, 0, 0, 12, 0, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(100, 1, 1, 0, 11, 0, '12SW', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 1, 0, '', 0, 12, 12, 0, 11, 0, 16, '2014-07-21 07:09:29', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(101, 1, 1, 0, 2, 68, 'ASA', 12, 0, 0, 'PP20140721', '2014-07-21', 1, 1, 0, 0, '', 0, 0, 0, 0, 2, 0, 16, '2014-07-21 07:16:06', 0, '0000-00-00 00:00:00', 0, '0', 0, ''),
(102, 81, 32, 22, 10, 68, 'ME001', 32, 0, 0, 'PP', '2014-07-21', 1, 1, 0, 0, '', 0, 0, 0, 0, 0, 0, 29, '2014-07-21 07:28:27', 0, '0000-00-00 00:00:00', 0, '0', 0, '');

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

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

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

--
-- 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),
(57, 77, 0, 76, 0, 25580, 0, 122, 16, '2014-07-09 07:39:42', 0, '0000-00-00 00:00:00', 0),
(58, 78, 0, 78, 0, 11.66, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(59, 78, 0, 82, 100700, 100665, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(60, 78, 0, 83, 0, 100000, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(61, 78, 0, 84, 0, 100000, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(62, 78, 0, 85, 0, 6100, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(63, 78, 0, 86, 0, 473.82, 0, 122, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(64, 78, 0, 87, 0, 154, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(65, 78, 0, 88, 0, 13.780000000000001, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(66, 78, 0, 93, 0, 133.72, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(67, 78, 0, 131, 345, 1190.38, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(68, 78, 0, 135, 4356, 5231.1, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(69, 78, 0, 136, 567, 601.02, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(70, 78, 0, 137, 567, 601.02, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(71, 78, 0, 138, 567, 483.36, 0, 11.66, 16, '2014-07-09 07:43:06', 0, '0000-00-00 00:00:00', 0),
(72, 79, 0, 82, 100700, 100653, 0, 122, 16, '2014-07-09 07:56:16', 0, '0000-00-00 00:00:00', 0),
(73, 80, 0, 82, 100700, 100531, 0, 677676, 16, '2014-07-09 07:58:36', 0, '0000-00-00 00:00:00', 0),
(74, 81, 0, 95, 0, 12.72, 0, 12.72, 16, '2014-07-09 08:07:07', 0, '0000-00-00 00:00:00', 0),
(75, 82, 0, 95, 0, -13, 0, 12.72, 16, '2014-07-09 08:09:46', 0, '0000-00-00 00:00:00', 0),
(76, 83, 0, 96, 0, 12, 0, 122, 16, '2014-07-09 08:12:23', 0, '0000-00-00 00:00:00', 0),
(77, 83, 0, 97, 3.18, 1.06, 0, 12, 16, '2014-07-09 08:12:23', 0, '0000-00-00 00:00:00', 0),
(78, 83, 0, 98, 0, 839.52, 0, 12, 16, '2014-07-09 08:12:23', 0, '0000-00-00 00:00:00', 0),
(79, 84, 0, 100, 0, 103180, 0, 121, 16, '2014-07-09 08:14:26', 0, '0000-00-00 00:00:00', 0),
(80, 85, 1, 101, 0, 28149.54, 0, 1, 16, '2014-07-09 08:40:05', 0, '2014-07-11 00:59:52', 0),
(81, 85, 2, 103, 0, 122.84, 0, 1, 16, '2014-07-09 08:40:05', 0, '2014-07-11 01:00:02', 0),
(82, 85, 3, 112, 345, 365.7, 45, 40, 16, '2014-07-09 08:40:05', 0, '2014-07-11 02:05:44', 0),
(84, 85, 4, 137, 0, 0, 0, 1, 0, '2014-07-11 03:23:34', 0, '0000-00-00 00:00:00', 0),
(85, 85, 4, 137, 0, 0, 0, 1, 0, '2014-07-11 03:27:07', 0, '0000-00-00 00:00:00', 0),
(86, 85, 5, 138, 0, 0, 0, 1, 0, '2014-07-11 03:27:07', 0, '0000-00-00 00:00:00', 0),
(91, 87, 1, 104, 1555.02, 849.06, 0, 849.06, 16, '2014-07-21 06:28:08', 0, '0000-00-00 00:00:00', 0),
(92, 87, 2, 112, 345, 305, 0, 305, 16, '2014-07-21 06:28:08', 0, '0000-00-00 00:00:00', 0),
(93, 90, 1, 104, 1555.02, 706.02, 0, 849.06, 16, '2014-07-21 06:43:10', 0, '0000-00-00 00:00:00', 0),
(94, 90, 2, 112, 345, -91, 0, 305, 16, '2014-07-21 06:43:10', 0, '0000-00-00 00:00:00', 0),
(95, 92, 1, 113, 345, 3000540, 0, 3, 16, '2014-07-21 06:54:24', 0, '0000-00-00 00:00:00', 0),
(96, 94, 1, 113, 345, 3000540, 0, 3, 16, '2014-07-21 07:00:14', 0, '0000-00-00 00:00:00', 0),
(97, 95, 1, 113, 345, 3000540, 0, 3, 16, '2014-07-21 07:01:40', 0, '0000-00-00 00:00:00', 0),
(98, 95, 2, 114, 0, 365.7, 0, 365.7, 16, '2014-07-21 07:01:40', 0, '0000-00-00 00:00:00', 0),
(99, 95, 3, 115, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:01:40', 0, '0000-00-00 00:00:00', 0),
(100, 95, 4, 116, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:01:40', 0, '0000-00-00 00:00:00', 0),
(101, 96, 1, 170, 260.76, 260.76, 0, 260.76, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(102, 96, 2, 171, 12, 12, 0, 12, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(103, 96, 3, 172, 4937.4800000000005, 4924.76, 0, 4, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(104, 96, 4, 173, 483.36, 849.06, 0, 849.06, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(105, 96, 5, 174, 367, 389.02, 0, 389.02, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(106, 96, 6, 175, 367, 389.02, 0, 389.02, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(107, 96, 7, 176, 588, 623.28, 0, 623.28, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(108, 96, 8, 177, 0, 624.68, 0, 624.68, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(109, 96, 9, 178, 0, 70.36, 0, 70.36, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(110, 96, 10, 179, 0, 23.66, 0, 23.66, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(111, 96, 11, 181, 71.36, 71.36, 0, 71.36, 16, '2014-07-21 07:02:44', 0, '0000-00-00 00:00:00', 0),
(112, 96, 12, 184, 22, 22.66, 0, 22.66, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(113, 96, 13, 186, 13, 13.06, 0, 13.06, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(114, 96, 14, 187, 11, 11, 0, 11, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(115, 96, 15, 188, 23, 23.66, 0, 23.66, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(116, 96, 16, 189, 11, 11.66, 0, 11.66, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(117, 96, 17, 190, 23.66, 23.66, 0, 23.66, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(118, 96, 18, 192, 1476, 1476, 0, 1, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(119, 96, 19, 194, 70.76, 70.76, 0, 70.76, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(120, 96, 20, 195, 70.36, 70.36, 0, 70.36, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(121, 96, 21, 196, 419.76, 419.76, 0, 419.76, 16, '2014-07-21 07:02:45', 0, '0000-00-00 00:00:00', 0),
(122, 97, 1, 127, 345, 836.78, 0, 836.78, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(123, 97, 2, 128, 456, 483.36, 0, 483.36, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(124, 97, 3, 129, 456, 483.36, 0, 483.36, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(125, 97, 4, 130, 456, 483.36, 0, 483.36, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(126, 97, 5, 131, 345, 333, 0, 333, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(127, 97, 6, 135, 4356, 4344, 0, 4, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(128, 97, 7, 136, 567, 555, 0, 555, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(129, 97, 8, 137, 567, 554, 0, 554, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(130, 97, 9, 138, 567, 554, 0, 554, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(131, 97, 10, 163, 567, 601.02, 0, 601.02, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(132, 97, 11, 166, 0, 12, 0, 12, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(133, 97, 12, 167, 12, 12, 0, 12, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(134, 97, 13, 168, 12, 12, 0, 12, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(135, 97, 14, 169, 12, 12, 0, 12, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(136, 97, 15, 172, 4937.4800000000005, 4933.4800000000005, 0, 4, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(137, 97, 16, 181, 71.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(138, 97, 17, 192, 1476, 1475, 0, 1, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(139, 97, 18, 195, 70.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:03:50', 0, '0000-00-00 00:00:00', 0),
(140, 98, 1, 124, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(141, 98, 2, 125, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(142, 98, 3, 126, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(143, 98, 4, 135, 4356, 4340, 0, 4, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(144, 98, 5, 137, 567, 1, 0, 1, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(145, 98, 6, 138, 567, 1, 0, 1, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(146, 98, 7, 172, 4937.4800000000005, 4929.4800000000005, 0, 4, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(147, 98, 8, 181, 71.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(148, 98, 9, 192, 1476, 1474, 0, 1, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(149, 98, 10, 195, 70.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:05:51', 0, '0000-00-00 00:00:00', 0),
(150, 99, 1, 121, 456, 483.36, 0, 483.36, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(151, 99, 2, 122, 456, 483.36, 0, 483.36, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(152, 99, 3, 123, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(153, 99, 4, 135, 4356, 4336, 0, 4, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(154, 99, 5, 172, 4937.4800000000005, 4925.4800000000005, 0, 4, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(155, 99, 6, 181, 71.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(156, 99, 7, 192, 1476, 1473, 0, 1, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(157, 99, 8, 195, 70.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:07:36', 0, '0000-00-00 00:00:00', 0),
(158, 100, 1, 120, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(159, 100, 2, 135, 4356, 4332, 0, 4, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(160, 100, 3, 172, 4937.4800000000005, 4921.4800000000005, 0, 4, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(161, 100, 4, 181, 71.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(162, 100, 5, 192, 1476, 1472, 0, 1, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(163, 100, 6, 195, 70.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:09:30', 0, '0000-00-00 00:00:00', 0),
(164, 101, 1, 113, 345, 211, 0, 211, 16, '2014-07-21 07:16:07', 0, '0000-00-00 00:00:00', 0),
(165, 101, 2, 117, 345, 365.7, 0, 365.7, 16, '2014-07-21 07:16:07', 0, '0000-00-00 00:00:00', 0),
(166, 101, 3, 192, 1476, 1471, 0, 1, 16, '2014-07-21 07:16:07', 0, '0000-00-00 00:00:00', 0),
(167, 101, 4, 195, 70.36, 0.35999999999999943, 0, 0.36, 16, '2014-07-21 07:16:07', 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=35 ;

--
-- 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),
(34, 1, 16, 'sasasax', 15, 121, 69, 2, 0, 'OPN', '0000-00-00', 1, 0, 0, 0, 2, 'asas  ww', 0, 0, 0, 0, 0, 0, 0, 16, '2014-07-02 03:16:18', 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=28 ;

--
-- 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'),
(21, 34, 1, 100, 'asa', 121, 1, 6, 7.26, 128.26, 16, '2014-07-02 03:16:18', 0, '0000-00-00 00:00:00'),
(22, 34, 2, 102, 'aerewq21', 22, 4, 0, 0, 22, 16, '2014-07-02 03:20:39', 16, '2014-07-04 08:55:26'),
(27, 34, 4, 100, 'asa', 1, 4, 0, 0, 1, 16, '2014-07-07 01:05:05', 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=44 ;

--
-- 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),
(43, 32, 3, 1, '', 'Teak wooden chair with natural finish', 1, 10, 10, 0, 6, 0.6, 10.6, 0, 16, '2014-07-07 00:36:49', 0, '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=24 ;

--
-- 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),
(20, 57, 'Magazine', 16, 10, 'deposit', 0, '2014-07-09 02:25:42', 0, '0000-00-00 00:00:00', 0),
(21, 76, 'project management', 20, 10000, 'seploh ribu kali try', 0, '2014-07-17 04:53:31', 0, '0000-00-00 00:00:00', 0),
(22, 81, 'Pemasangan speaker dewan', 22, 0, 'bayaran deposit 10%', 0, '2014-07-21 02:11:32', 0, '0000-00-00 00:00:00', 0),
(23, 81, 'Pemasangan set audio pejabat kl sentral', 21, 0, 'deposit 10% diperlukan - pemasangan pendawaian ', 0, '2014-07-21 02:12:33', 0, '0000-00-00 00:00:00', 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,
  `invoiceID` int(11) NOT NULL DEFAULT '0',
  `purchaseOrderNo` varchar(32) NOT NULL,
  `salesAgentName` varchar(64) NOT NULL,
  `formNo` varchar(16) NOT NULL,
  `poDate` date NOT NULL,
  `exchangeRate` double NOT NULL,
  `termAndConditionID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updateAble` tinyint(4) NOT NULL DEFAULT '1',
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `memo` varchar(255) NOT NULL,
  `is_delete` int(11) NOT NULL DEFAULT '0',
  `journalNo` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=27 ;

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

INSERT INTO `comp_purchase_order` (`ID`, `companyID`, `purchaserID`, `supplierID`, `invoiceID`, `purchaseOrderNo`, `salesAgentName`, `formNo`, `poDate`, `exchangeRate`, `termAndConditionID`, `currencyID`, `createdBy`, `createdTS`, `updatedBy`, `updateAble`, `updatedTS`, `memo`, `is_delete`, `journalNo`) VALUES
(1, 1, 6, 20, 0, 'PI2014nasi goren-00000001', '', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 03:07:21', 0, 1, '2014-07-07 01:53:58', '', 0, ''),
(2, 1, 6, 1, 127, 'PI2014nasi goren-00000002', 'fad', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 04:13:24', 0, 1, '2014-07-07 05:39:00', '', 0, ''),
(3, 1, 6, 1, 137, 'PI2014nasi goren-00000003', 'hilmi', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:31:08', 0, 1, '2014-07-07 05:59:38', '', 0, ''),
(4, 1, 6, 1, 157, 'PI2014nasi goren-00000004', '', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:34:12', 0, 1, '2014-07-10 03:56:24', '', 0, ''),
(5, 1, 7, 20, 0, 'PI2014nasi goren-00000005', '', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 0, '2014-05-26 04:44:44', 0, 1, '2014-07-04 08:58:26', 'sds', 0, ''),
(6, 1, 7, 1, 138, 'PI2014nasi goren-00000006', '', 'PI2014nasi goren', '2014-05-26', 1, 6, 0, 0, '2014-05-26 04:45:32', 0, 1, '2014-07-07 06:00:01', 'asa', 0, ''),
(7, 1, 6, 23, 0, 'PI2014nasi goren-00000007', '', 'PI2014nasi goren', '2014-05-26', 3.6, 5, 0, 0, '2014-05-26 04:48:50', 0, 1, '2014-07-04 08:58:26', 'sdwew', 0, ''),
(8, 1, 7, 20, 147, 'PI2014nasi goren-00000008', '', 'PI2014nasi goren', '2014-05-26', 1, 7, 0, 16, '2014-05-26 04:59:47', 0, 0, '2014-07-07 06:28:20', 'sdsd', 0, ''),
(9, 1, 7, 1, 0, 'PI2014nasi goren-00000009', 'fadhirul', 'PI2014nasi goren', '2014-05-26', 1, 5, 0, 16, '2014-05-26 05:07:29', 0, 0, '2014-07-04 08:58:27', 'dss', 0, ''),
(10, 1, 7, 20, 149, 'PI2014nasi goren-00000010', '', 'PI2014nasi goren', '2014-06-02', 1, 5, 0, 1, '2014-06-02 05:47:20', 0, 0, '2014-07-07 06:49:31', '', 0, ''),
(11, 15, 9, 26, 0, 'PI2014-00000011', '', 'PI2014', '2014-06-11', 0, 5, 0, 16, '2014-06-11 04:09:12', 0, 0, '2014-07-04 08:58:27', '', 0, ''),
(12, 15, 8, 27, 0, 'PI2014-00000012', '', 'PI2014', '2014-06-12', 0, 5, 0, 16, '2014-06-12 02:14:41', 0, 0, '2014-07-04 08:58:27', '', 0, ''),
(13, 1, 7, 1, 148, 'PI2014-00000013', '', 'PI2014', '2014-06-12', 1, 5, 0, 16, '2014-06-12 04:56:18', 0, 0, '2014-07-07 06:48:23', 'ww', 0, ''),
(14, 1, 6, 1, 141, 'PI2014-00000014', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:24:58', 0, 1, '2014-07-07 06:17:43', 'qw', 0, ''),
(15, 1, 6, 1, 144, 'PI2014-00000015', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:25:00', 0, 1, '2014-07-07 06:21:37', 'qw', 0, ''),
(16, 1, 6, 1, 145, 'PI2014-00000016', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:25:10', 0, 1, '2014-07-07 06:22:38', 'qw', 0, ''),
(17, 1, 6, 1, 131, 'PI2014-00000017', '', 'PI2014', '2014-06-19', 1, 1, 0, 16, '2014-06-19 10:27:45', 0, 1, '2014-07-07 05:46:42', 'qw', 0, ''),
(18, 1, 7, 1, 135, 'PI2014-00000018', '', 'PI2014', '2014-06-20', 23, 1, 1, 16, '2014-06-20 01:12:13', 0, 0, '2014-07-07 05:57:08', 'ASA', 0, ''),
(19, 1, 7, 1, 0, 'PI2014-00000019', '', 'PI2014', '2014-06-20', 12, 6, 1, 16, '2014-06-20 01:15:57', 0, 1, '2014-07-04 08:58:27', 'ewq', 0, ''),
(20, 15, 8, 26, 0, 'PI2014-00000020', '', 'PI2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:28:06', 1, 1, '2014-07-04 08:58:27', '', 0, ''),
(21, 15, 12, 27, 0, 'PO2014-00000021', '', 'PO2014', '2014-06-21', 1, 5, 1, 16, '2014-06-21 03:37:57', 1, 0, '2014-07-04 08:58:27', '', 0, ''),
(22, 15, 12, 26, 0, 'PO2014-00000022', '', 'PO2014', '2014-06-21', 3.6, 5, 2, 16, '2014-06-21 03:47:24', 1, 0, '2014-07-04 08:58:27', '', 0, ''),
(23, 15, 8, 26, 0, 'PO2014-00000023', '', 'PO2014', '2014-06-26', 3.2, 5, 2, 16, '2014-06-26 02:57:24', 1, 1, '2014-07-04 08:58:27', '', 0, ''),
(24, 1, 6, 31, 0, '', '', 'P0201407090', '2014-07-09', 1, 5, 1, 1, '2014-07-09 02:49:31', 0, 0, '2014-07-09 02:50:45', '', 0, ''),
(25, 15, 8, 26, 0, '', '', 'PO2014', '2014-07-10', 1, 5, 2, 16, '2014-07-10 03:34:58', 0, 0, '2014-07-10 03:37:59', '', 0, ''),
(26, 81, 21, 32, 0, '', '', 'PO20140721', '2014-07-21', 1, 17, 1, 29, '2014-07-21 07:00:16', 0, 1, '0000-00-00 00:00:00', '', 0, '');

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

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

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

--
-- 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, 11, 0, '2014-05-26 04:13:24', 0, '2014-07-07 02:15:43'),
(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, 2, 0, 0, '2014-05-26 04:45:32', 0, '2014-07-03 09:10:37'),
(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, 14, 0, 2, 'dfsdf', 'Steel chair for outdoor', 'B13 Steel Chair', 111, 2, 0, 0, 0, '2014-06-12 04:56:18', 16, '2014-07-03 02:49:11'),
(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, '', 'Blackboard', 'Teak wooden chair with natural finish', 1, 12, 2, 12, 16, '2014-06-19 10:24:58', 0, '2014-07-03 09:13:03'),
(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, 2, 14, 16, '2014-06-20 01:15:57', 0, '2014-07-08 03:15:34'),
(30, 19, 2, 10, '', '', 'Bola Tampar Buaya', 111, 12, 1, 1, 16, '2014-06-20 01:16:59', 0, '2014-07-08 03:14:46'),
(31, 20, 1, 11, '', '', 'saiz 10. warna gold', 2, 10, 1, 22, 16, '2014-06-21 03:28:07', 0, '2014-07-02 08:10:27'),
(32, 20, 2, 12, '', '', 'saiz 10. warna merah', 3, 5, 1, 16, 16, '2014-06-21 03:33:12', 0, '2014-07-02 08:10:32'),
(33, 21, 1, 11, '', '', 'saiz 10. warna gold', 2, 2, 2, 4, 16, '2014-06-21 03:37:57', 0, '2014-07-09 04:58:31'),
(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'),
(38, 17, 3, 1, '', '', 'Teak wooden chair with natural finish', 1, 1, 0, 1, 16, '2014-07-07 01:12:50', 0, '0000-00-00 00:00:00'),
(39, 17, 4, 4, '', '', 'Plastic Chair - Blue', 1, 1, 0, 1, 16, '2014-07-07 01:13:07', 0, '0000-00-00 00:00:00'),
(41, 17, 5, 1, '', '', 'Teak wooden chair with natural finish', 10, 1, 0, 10, 16, '2014-07-07 01:14:24', 16, '2014-07-07 01:15:29'),
(42, 17, 6, 1, '', '', 'Teak wooden chair with natural finish', 0, 1, 0, 0, 16, '2014-07-07 01:15:47', 0, '0000-00-00 00:00:00'),
(44, 24, 1, 1, '', '', 'Teak wooden chair with natural finish', 0, 10, 10, 20, 1, '2014-07-09 02:49:31', 0, '2014-07-09 02:52:02'),
(45, 24, 2, 13, '', '', 'ALATAN TULIS DAN MELUKIS', 0, 10, 5, 0, 1, '2014-07-09 02:49:45', 0, '2014-07-09 03:10:27'),
(46, 24, 3, 13, '', '', 'ALATAN TULIS DAN MELUKIS', 2, 15, 15, 30, 1, '2014-07-09 02:50:13', 0, '2014-07-09 03:10:25'),
(47, 25, 1, 11, '', '', 'saiz 10. warna gold', 2222, 1, 1, 2222, 16, '2014-07-10 03:34:58', 0, '2014-07-10 03:39:35'),
(48, 25, 2, 12, '', '', 'saiz 10. warna hitam', 3333, 12, 4, 39996, 16, '2014-07-10 03:35:08', 0, '2014-07-10 03:45:52'),
(49, 26, 1, 16, '', '', 'Wireless', 110, 10, 5, 1100, 29, '2014-07-21 07:00:16', 0, '2014-07-21 07:00:59');

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

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

--
-- 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, 'SQN2014', '2014-06-06', 7, 1, '', 'test memo', 28980, 1, 0, 1, '2014-06-06 02:21:02', 0, '2014-07-17 07:26:31'),
(3, 1, 12, '', 0, 7, 'SQN2014', '2014-06-06', 7, 1, '', 'testttt', 5040, 1, 0, 1, '2014-06-06 02:26:19', 0, '2014-07-17 07:26:36'),
(4, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 8, 1, '', 'dasd', 3780, 1, 0, 1, '2014-06-06 02:28:04', 0, '2014-07-17 07:26:13'),
(5, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'dfsd', 1260, 1, 0, 1, '2014-06-06 04:12:32', 0, '2014-07-17 07:26:04'),
(6, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'afs', 44100, 1, 0, 1, '2014-06-06 04:22:54', 1, '2014-07-17 07:25:59'),
(7, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'dsfs', 15120, 1, 0, 1, '2014-06-06 07:09:39', 1, '2014-07-17 07:25:54'),
(8, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'dsfs', 15498, 1, 0, 1, '2014-06-06 07:10:06', 0, '2014-07-17 07:25:50'),
(9, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'dsfds', 1764, 1, 0, 1, '2014-06-06 07:14:44', 1, '2014-07-17 07:25:44'),
(10, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 7, 1, '', 'dsfds', 4662, 1, 0, 1, '2014-06-06 07:15:02', 0, '2014-07-17 07:25:38'),
(11, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 8, 1, '', 'hgh', 14616, 1, 0, 1, '2014-06-06 07:17:50', 1, '2014-07-17 07:25:31'),
(12, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 8, 1, '', 'hgh', 15246, 1, 0, 1, '2014-06-06 07:18:08', 0, '2014-07-17 07:25:26'),
(13, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 8, 1, '', 'fgdfg', 4914, 1, 0, 1, '2014-06-06 07:19:07', 1, '2014-07-17 07:25:17'),
(14, 1, 12, '', 0, 6, 'SQN2014', '2014-06-06', 8, 1, '', 'fgdfg', 20286, 1, 0, 1, '2014-06-06 07:19:27', 0, '2014-07-17 07:25:11'),
(15, 15, 17, '', 0, 9, 'SQN2014', '2014-07-17', 5, 1, '', '', 212, 1, 0, 16, '2014-07-17 02:35:53', 0, '2014-07-17 07:24:58'),
(16, 15, 17, '', 0, 8, 'SQN2014', '2014-07-17', 5, 1, '', '', 371, 1, 0, 16, '2014-07-17 03:10:55', 0, '2014-07-17 07:24:52'),
(17, 1, 12, '', 0, 6, 'SQN2014', '2014-07-17', 7, 1, '', 'Hello world', 19451, 1, 0, 16, '2014-07-17 07:42:19', 16, '2014-07-17 08:04:13'),
(18, 1, 20, '', 0, 6, 'SQN2014', '2014-07-17', 8, 1, '', 'Lorem ipsum dolor sit emet ', 6360, 1, 0, 16, '2014-07-17 07:56:18', 0, '2014-07-17 08:04:22'),
(19, 1, 12, '', 0, 6, 'SQN2014', '2014-07-17', 8, 1, '', 'afdasdfasdf', 73.14, 1, 0, 16, '2014-07-17 08:04:48', 0, '0000-00-00 00:00:00');

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

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

--
-- 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'),
(21, 15, 0, 12, 'saiz 10. warna hitam', 200, 1, 200, 1, 2, 6, 12, 212, 16, '2014-07-17 02:35:54', 0, '0000-00-00 00:00:00'),
(22, 16, 0, 11, 'saiz 10. warna gold', 350, 1, 350, 1, 2, 6, 21, 371, 16, '2014-07-17 03:10:55', 0, '0000-00-00 00:00:00'),
(23, 17, 0, 1, 'Teak wooden chair with natural finish', 120, 100, 12000, 1, 2, 6, 720, 12720, 16, '2014-07-17 07:42:19', 0, '0000-00-00 00:00:00'),
(24, 17, 0, 8, 'Plastic Chair - White', 127, 50, 6350, 10, 2, 6, 381, 6731, 16, '2014-07-17 07:43:48', 0, '0000-00-00 00:00:00'),
(25, 18, 0, 2, 'Steel chair for outdoor', 120, 50, 6000, 1, 2, 6, 360, 6360, 16, '2014-07-17 07:56:18', 0, '0000-00-00 00:00:00'),
(26, 19, 0, 8, 'Plastic Chair - White', 23, 3, 69, 1, 2, 6, 4.14, 73.14, 16, '2014-07-17 08:04:48', 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=73 ;

--
-- 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-14', 1, 0, 0, 0, 6, '', 0, 0, 0, '', 1, 0, '2014-05-28 05:03:29', 0, '2014-07-14 02:41:28'),
(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-12', 1, 0, 0, 0, 6, '                                  \n                             ', 0, 0, 0, '', 1, 0, '2014-05-28 07:35:37', 0, '2014-07-14 02:41:35'),
(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-04-09', 1, 0, 1, 1, 6, '', 0, 0, 0, '', 1, 0, '2014-05-28 08:24:02', 0, '2014-07-14 02:41: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', 3, 0, 0, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-06-11 05:10:38', 0, '2014-07-03 00:28:35'),
(33, 15, 'hk', 12, 27, 'GRN2014', '2014-06-12', 4, 0, 0, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-06-12 09:43:40', 0, '2014-07-03 00:28:40'),
(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, 'PO20140600000011', 1, 0, '2014-06-25 00:48:52', 0, '2014-07-02 08:34:52'),
(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'),
(62, 15, 'sup do', 20, 26, 'GRN2014', '2014-07-02', 5, 0, 2, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-07-02 08:10:27', 0, '0000-00-00 00:00:00'),
(63, 1, 'gfgdt', 6, 1, 'GRN', '2014-07-03', 1, 0, 1, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-07-03 09:06:26', 0, '0000-00-00 00:00:00'),
(64, 1, 'asa', 6, 1, 'GRN', '2014-07-03', 1, 0, 1, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-07-03 09:10:37', 0, '0000-00-00 00:00:00'),
(65, 1, 'frgf', 14, 1, 'GRN', '2014-07-03', 2, 0, 1, 1, 0, '', 0, 0, 0, '', 1, 0, '2014-07-03 09:13:03', 0, '0000-00-00 00:00:00'),
(66, 1, '', 0, 0, 'GRN', '2014-07-03', 0, 0, 0, 0, 0, '', 0, 0, 0, '', 1, 0, '2014-07-03 09:15:13', 0, '0000-00-00 00:00:00'),
(67, 1, 'df', 15, 1, 'GRN', '2014-07-03', 1, 0, 1, 23, 0, 'sdsdfs', 0, 0, 0, '', 1, 0, '2014-07-03 09:16:18', 0, '0000-00-00 00:00:00'),
(68, 1, '123456', 24, 31, 'GRN', '2014-07-09', 1, 0, 1, 1, 0, '', 0, 0, 0, 'PO20140700000001', 0, 0, '2014-07-09 02:52:02', 0, '2014-07-09 02:52:41'),
(69, 1, '1122', 24, 31, 'GRN', '2014-07-09', 1, 0, 1, 1, 0, '', 0, 0, 0, '', 1, 0, '2014-07-09 03:10:25', 0, '0000-00-00 00:00:00'),
(70, 15, 'awan hitam do no', 21, 27, 'GRN2014', '2014-07-09', 5, 0, 1, 1, 0, '', 0, 0, 0, '', 1, 0, '2014-07-09 04:58:31', 0, '0000-00-00 00:00:00'),
(71, 15, 'sfsd23454', 25, 26, 'GRN2014', '2014-07-10', 5, 0, 2, 1, 0, '', 0, 0, 0, 'PO20140200000001', 0, 0, '2014-07-10 03:39:35', 0, '2014-07-10 03:49:04'),
(72, 81, '001', 26, 32, 'GRN', '2014-07-21', 9, 0, 1, 1, 0, '', 0, 0, 0, '', 1, 0, '2014-07-21 07:00:58', 0, '0000-00-00 00:00:00');

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

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

CREATE TABLE IF NOT EXISTS `comp_receive_item_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `receiveID` int(11) NOT NULL,
  `invoiceID` int(11) NOT NULL DEFAULT '0',
  `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=157 ;

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

INSERT INTO `comp_receive_item_detail` (`ID`, `receiveID`, `invoiceID`, `lineNo`, `poDetailID`, `itemID`, `itemCode`, `itemName`, `description`, `unitPrice`, `quantityOrder`, `quantityReceived`, `umID`, `amount`, `balanceItem`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(7, 8, 181, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 0, 16, '2014-05-28 04:51:53', 0, '2014-07-14 05:58:24'),
(8, 8, 181, 0, 3, 4, '331000100', '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-14 05:58:24'),
(9, 9, 181, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 0, 16, '2014-05-28 04:58:34', 0, '2014-07-14 05:58:24'),
(10, 9, 179, 0, 3, 4, '331000100', '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-14 05:31:07'),
(11, 10, 178, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 4, 16, '2014-05-28 05:00:14', 0, '2014-07-14 05:27:13'),
(12, 10, 178, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 05:00:19', 0, '2014-07-14 05:27:13'),
(13, 11, 177, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 05:03:29', 0, '2014-07-14 05:21:47'),
(14, 11, 177, 0, 3, 4, '331000100', '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-14 05:21:47'),
(15, 12, 179, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 05:04:35', 0, '2014-07-14 05:31:07'),
(16, 13, 184, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 06:09:27', 0, '2014-07-16 01:04:15'),
(17, 14, 184, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 07:33:16', 0, '2014-07-16 01:04:15'),
(18, 15, 174, 0, 3, 4, '331000100', '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-14 05:06:55'),
(19, 16, 186, 0, -1, 1, '321000100', 'SDSFSF', 'AAA', 12.5, 0, 1, 2, 1, 0, 16, '2014-05-28 07:52:13', 0, '2014-07-16 01:22:34'),
(20, 16, 186, 0, 3, 4, '331000100', '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-16 01:22:34'),
(21, 17, 187, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 08:05:33', 0, '2014-07-16 01:23:41'),
(22, 18, 176, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 08:19:27', 0, '2014-07-14 05:15:49'),
(24, 20, 188, 0, 3, 4, '331000100', '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-16 01:24:56'),
(25, 21, 174, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 08:24:02', 0, '2014-07-14 05:06:55'),
(26, 21, 175, 0, -1, 1, '321000100', 'SDSFSF', 'AAA', 10, 13, 12, 2, 12, 1, 16, '2014-05-28 08:24:16', 0, '2014-07-14 05:12:39'),
(27, 22, 188, 0, -1, 1, '321000100', 'SDSFSF', 'AAA', 9, 22, 11, 2, 11, 11, 16, '2014-05-28 08:31:14', 0, '2014-07-16 01:24:56'),
(28, 23, 189, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-28 08:32:30', 0, '2014-07-16 01:29:14'),
(30, 24, 190, 0, 3, 4, '331000100', '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-16 01:43:57'),
(31, 25, 190, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 5, 2, 11, 5, 16, '2014-05-29 07:14:24', 0, '2014-07-16 01:43:57'),
(32, 25, 192, 0, -1, 9, '501012000', 'sadd', 'NGA', 12, 0, 122, 2, 1464, 122, 16, '2014-05-29 07:15:04', 16, '2014-07-16 02:11:05'),
(33, 26, 192, 0, 3, 4, '331000100', '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-16 02:11:05'),
(34, 26, 194, 0, -1, 1, '321000100', 'SDSFSF', 'AAA', 13, 2, 1, 2, 1, 1, 16, '2014-05-29 07:24:19', 0, '2014-07-17 00:33:33'),
(35, 27, 194, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 1, 2, 11, 1, 16, '2014-05-29 08:04:01', 0, '2014-07-17 00:33:33'),
(36, 28, 194, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 1, 2, 11, 1, 16, '2014-05-29 08:06:57', 0, '2014-07-17 00:33:33'),
(37, 28, 195, 0, 2, 2, '100300100', 'kelapa muda hijau', 'kelapa', 1, 11, 1, 2, 11, 1, 16, '2014-05-29 08:07:09', 0, '2014-07-17 00:35:51'),
(39, 29, 195, 0, 4, 7, '331000200', 'jackfruit', 'Buah', 1, 11, 1, 2, 11, 1, 16, '2014-05-29 10:57:01', 0, '2014-07-17 00:35:51'),
(40, 29, 196, 0, -1, 1, '321000100', 'SDSFSF', 'AAA', 12, 23, 21, 2, 252, 21, 16, '2014-05-29 10:57:27', 0, '2014-07-17 05:40:09'),
(41, 30, 0, 0, 3, 4, '331000100', '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-07 01:39:03'),
(44, 32, 182, 0, 14, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 125, 5, 5, 2, 625, 5, 16, '2014-06-11 05:10:38', 0, '2014-07-16 00:27:26'),
(45, 32, 182, 0, 15, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 100, 1, 1, 2, 100, 1, 16, '2014-06-11 05:10:47', 0, '2014-07-16 00:27:26'),
(46, 0, 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, 0, 17, 11, 'M001', 'saiz 10. warna gold', 'Meja makan bulat', 100, 5, 5, 2, 500, 5, 16, '2014-06-12 09:43:40', 0, '2014-07-09 04:34:17'),
(48, 33, 0, 0, 18, 12, 'M002', 'saiz 10. warna hitam', 'Meja makan lonjong', 125, 1, 1, 2, 125, 1, 16, '2014-06-12 09:43:50', 0, '2014-07-09 04:34:17'),
(52, 37, 196, 0, 28, 1, '321000100', '', 'Teak wooden chair with natural finish', 12, 24, 12, 2, 144, 12, 16, '2014-06-24 06:45:36', 0, '2014-07-17 05:40:09'),
(53, 38, 0, 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, 0, 1, -1, 7, '331000200', '0', 'Plastic Chair - Red', 2345, 0, 12, 2, 28140, 12, 16, '2014-06-24 09:23:56', 0, '2014-07-07 01:39:03'),
(57, 41, 180, 1, -1, 4, '331000100', '0', 'Plastic Chair - Blue', 12, 0, 2, 2, 24, 0, 16, '2014-06-24 09:41:19', 0, '2014-07-14 05:55:13'),
(60, 0, 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'),
(64, 45, 0, 1, 13, 1, '321000100', '0', 'fad', 12, 1, 1, 2, 12, 0, 16, '2014-06-25 00:48:52', 0, '2014-07-07 01:39:03'),
(65, 45, 0, 0, -1, 1, '321000100', '0', 'Nasi Goreng Ayam', 12, 0, 12, 2, 144, 0, 16, '2014-06-25 00:49:14', 0, '2014-07-07 01:39:03'),
(66, 46, 0, 1, 9, 1, '321000100', '0', 'kelapa', 1, 12, 1, 2, 12, 0, 16, '2014-06-25 02:03:10', 0, '2014-07-07 01:39:03'),
(73, 49, 0, 1, -1, 4, '331000100', '0', 'Plastic Chair - Blue', 12, 0, 2, 2, 24, 0, 16, '2014-06-25 02:26:19', 0, '2014-07-07 01:39:03'),
(78, 52, 0, 1, 25, 10, '801010001', '0', 'Teak wooden chair with natural finish', 1, 1, 1, 2, 1, 0, 16, '2014-06-25 05:21:54', 0, '2014-07-07 01:39:03'),
(79, 52, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 05:22:24', 0, '2014-07-07 01:39:03'),
(80, 52, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 05:22:26', 0, '2014-07-07 01:39:03'),
(81, 52, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 05:23:08', 0, '2014-07-07 01:39:03'),
(82, 53, 0, 1, 23, 1, '321000100', '0', 'Teak wooden chair with natural finish', 1, 2, 1, 2, 12, 1, 16, '2014-06-25 05:24:09', 16, '2014-07-07 01:39:03'),
(83, 53, 0, 0, -1, 8, '331000300', '', 'Plastic Chair - White', 12, 0, 20, 2, 24, 10, 16, '2014-06-25 05:27:03', 0, '2014-07-07 01:39:03'),
(85, 54, 0, 0, 9, 2, '100300100', '', 'kelapa', 1, 12, 1, 2, 12, 0, 16, '2014-06-25 06:03:17', 0, '2014-07-07 01:39:03'),
(86, 0, 0, 0, -1, 1, '321000100', '', 'Teak wooden chair with natural finish', 12, 24, 12, 2, 144, 12, 16, '2014-06-25 06:03:30', 0, '2014-07-07 01:39:03'),
(87, 0, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 06:03:38', 0, '2014-07-07 01:39:03'),
(88, 0, 0, 0, -1, 4, '331000100', '', 'Plastic Chair - Blue', 12, 0, 2, 2, 24, 0, 16, '2014-06-25 06:04:15', 0, '2014-07-07 01:39:03'),
(89, 55, 0, 1, -1, 7, '331000200', '0', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 06:04:50', 0, '2014-07-07 01:39:03'),
(90, 56, 0, 1, 29, 4, '331000100', '0', 'Plastic Chair - Blue', 1212, 12, 1, 2, 14544, 0, 16, '2014-06-25 06:06:09', 0, '2014-07-07 01:39:03'),
(91, 56, 0, 0, 30, 10, '801010001', '', 'Bola Tampar Buaya', 111, 12, 1, 2, 1332, 0, 16, '2014-06-25 06:06:13', 0, '2014-07-07 01:39:03'),
(92, 0, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 06:06:39', 0, '2014-07-07 01:39:03'),
(93, 0, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 06:06:52', 0, '2014-07-07 01:39:03'),
(94, 0, 0, 0, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 1, 16, '2014-06-25 06:09:43', 0, '2014-07-07 01:39:03'),
(95, 57, 0, 1, -1, 4, '331000100', '0', 'Plastic Chair - Blue', 1, 0, 9, 2, 9, 0, 16, '2014-06-25 06:10:38', 16, '2014-07-07 01:39:03'),
(98, 0, 0, 0, -1, 4, '331000100', '', 'Plastic Chair - Blue', 1, 0, 1, 2, 1, 0, 16, '2014-06-25 06:12:32', 0, '2014-07-07 01:39:03'),
(103, 59, 0, 1, 29, 4, '331000100', '0', 'Plastic Chair - Blue', 1212, 12, 1, 2, 14544, 0, 16, '2014-06-25 06:38:17', 0, '2014-07-07 01:39:03'),
(104, 59, 0, 0, 30, 10, '801010001', '', 'Bola Tampar Buaya', 111, 12, 1, 2, 1332, 0, 16, '2014-06-25 06:38:43', 0, '2014-07-07 01:39:03'),
(107, 60, 0, 1, -1, 7, '331000200', '0', 'Plastic Chair - Red', 1, 0, 1, 2, 1, 1, 16, '2014-06-25 06:43:07', 16, '2014-07-07 01:39:03'),
(108, 60, 0, 2, -1, 7, '331000200', '', 'Plastic Chair - Red', 1, 0, 1, 2, 1, 1, 16, '2014-06-25 06:43:14', 16, '2014-07-08 03:12:01'),
(109, 61, 0, 1, 29, 4, '331000100', '', 'Plastic Chair - Blue', 1212, 12, 1, 2, 14544, 0, 16, '2014-06-26 01:56:34', 0, '2014-07-07 01:39:03'),
(110, 61, 0, 1, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 12, 2, 28140, 12, 16, '2014-06-26 01:57:01', 16, '2014-07-07 01:39:03'),
(111, 62, 183, 1, 31, 11, 'M001', '', 'saiz 10. warna gold', 2, 10, 1, 2, 20, 10, 16, '2014-07-02 08:10:27', 0, '2014-07-16 00:35:38'),
(112, 62, 185, 2, 32, 12, 'M002', '', 'saiz 10. warna merah', 3, 5, 1, 2, 15, 5, 16, '2014-07-02 08:10:32', 0, '2014-07-16 01:14:00'),
(113, 63, 0, 1, 8, 2, '100300100', '', 'kelapa', 1, 22, 1, 2, 22, 0, 16, '2014-07-03 09:06:26', 0, '2014-07-09 04:50:48'),
(114, 64, 0, 1, 8, 2, '100300100', '', 'kelapa', 1, 22, 1, 2, 22, 0, 16, '2014-07-03 09:10:37', 0, '2014-07-09 04:50:48'),
(115, 65, 0, 1, 22, 1, '321000100', '', 'Teak wooden chair with natural finish', 1, 12, 1, 2, 12, 0, 16, '2014-07-03 09:13:03', 0, '2014-07-09 04:50:48'),
(116, 66, 0, 1, -1, 7, '331000200', '', 'Plastic Chair - Red', 2345, 0, 1, 2, 2345, 0, 16, '2014-07-03 09:15:13', 0, '2014-07-09 04:50:48'),
(117, 67, 0, 1, -1, 1, '321000100', '', 'Teak wooden chair with natural finish', 1, 0, 12, 2, 12, 0, 16, '2014-07-03 09:16:18', 0, '2014-07-09 04:50:48'),
(121, 60, 0, 5, -1, 1, '', '', 'Teak wooden chair with natural finish', 10, 0, 1, 2, 10, 0, 16, '2014-07-08 01:19:00', 0, '2014-07-09 04:50:48'),
(122, 60, 0, 6, -1, 1, '', '', 'Teak wooden chair with natural finish', 0, 0, 1, 2, 0, 0, 16, '2014-07-08 01:20:42', 0, '2014-07-09 04:50:48'),
(137, 60, 0, 7, -1, 1, '', '', 'Teak wooden chair with natural finish', 1, 0, 1, 2, 1, 0, 16, '2014-07-08 01:58:29', 0, '2014-07-09 04:50:48'),
(138, 60, 0, 8, -1, 1, '', '', 'Teak wooden chair with natural finish', 0, 0, 0, 2, 0, 0, 16, '2014-07-08 02:01:15', 0, '2014-07-09 04:50:48'),
(139, 60, 0, 9, -1, 1, '', '', 'Teak wooden chair with natural finish', 10, 0, 1, 2, 10, 0, 16, '2014-07-08 02:16:26', 0, '2014-07-09 04:50:48'),
(140, 60, 0, 10, -1, 1, '', '', 'Teak wooden chair with natural finish', 1, 0, 1, 2, 1, 0, 16, '2014-07-08 02:19:14', 0, '2014-07-09 04:50:48'),
(141, 60, 0, 11, -1, 1, '', '', 'Teak wooden chair with natural finish', 1, 0, 1, 2, 1, 0, 16, '2014-07-08 02:20:03', 16, '2014-07-09 04:50:48'),
(145, 60, 0, 1, 29, 4, '', '', 'Plastic Chair - Blue', 1212, 12, 1, 2, 14544, 0, 16, '2014-07-08 03:14:42', 0, '2014-07-09 04:50:48'),
(147, 60, 0, 3, 29, 4, '', '', 'Plastic Chair - Blue', 1212, 12, 1, 2, 14544, 0, 16, '2014-07-08 03:15:34', 0, '2014-07-09 04:50:48'),
(148, 68, 0, 1, 44, 1, '', '', 'Teak wooden chair with natural finish', 0, 10, 10, 2, 0, 0, 1, '2014-07-09 02:52:02', 0, '2014-07-09 04:50:48'),
(149, 68, 0, 2, 46, 13, '', '', 'ALATAN TULIS DAN MELUKIS', 2, 15, 10, 2, 30, 0, 1, '2014-07-09 02:52:08', 0, '2014-07-09 04:50:48'),
(150, 69, 0, 1, 46, 13, '', '', 'ALATAN TULIS DAN MELUKIS', 2, 15, 5, 2, 30, 0, 1, '2014-07-09 03:10:25', 0, '2014-07-09 04:50:48'),
(151, 69, 0, 2, 45, 13, '', '', 'ALATAN TULIS DAN MELUKIS', 0, 10, 5, 2, 0, 0, 1, '2014-07-09 03:10:27', 0, '2014-07-09 04:50:48'),
(152, 70, 0, 1, 33, 11, '', '', 'saiz 10. warna gold', 2, 2, 2, 0, 4, 0, 16, '2014-07-09 04:58:31', 0, '0000-00-00 00:00:00'),
(153, 71, 191, 1, 47, 11, '', '', 'saiz 10. warna gold', 2222, 1, 1, 0, 2222, 0, 16, '2014-07-10 03:39:35', 0, '2014-07-16 02:10:14'),
(154, 71, 193, 2, 48, 12, '', '', 'saiz 10. warna hitam', 3333, 12, 4, 0, 39996, 0, 16, '2014-07-10 03:45:52', 0, '2014-07-16 02:11:51'),
(155, 71, 191, 1, -1, 11, '', '', 'saiz 10. warna gold', 0, 0, 1, 0, 0, 0, 16, '2014-07-10 03:46:59', 0, '2014-07-16 02:10:14'),
(156, 72, 0, 1, 49, 16, '', '', 'Wireless', 110, 10, 5, 0, 1100, 0, 29, '2014-07-21 07:00:59', 0, '0000-00-00 00:00:00');

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

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

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

CREATE TABLE IF NOT EXISTS `comp_receive_payment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` int(11) NOT NULL,
  `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-18', 1, 1, 0, '', 0, 0, 0, 0, 10000, -9577, 1, 16, '2014-06-17 12:13:35', 0, '2014-07-04 01:38:49', 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, 18, 0, 0, 0, 10000, 0, '2014-07-03 01:21:11', 0, '0000-00-00 00:00:00'),
(4, 10, 0, 19, 0, 0, 0, 10000, 0, '2014-07-03 01:22:59', 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-07-03 01:21:00', 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=12 ;

--
-- 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'),
(6, 55, 'Wan Amin', 'Pengurus Rangkaian', '012 5678798', '012 5678798', 'amin@fabrica.com.my', 10, '', 0, '2014-07-03 01:59:23', 0, '0000-00-00 00:00:00'),
(7, 57, 'george', 'sales ', '012 5678767', '012 5678767', 'george@gmail.com', 10, '10% ', 0, '2014-07-09 02:16:34', 0, '0000-00-00 00:00:00'),
(8, 75, 'james bond', 'sales marketing', '0123234343', '0123234343', 'asdsd@salihin.com.my', 10, '', 0, '2014-07-17 04:17:25', 0, '0000-00-00 00:00:00'),
(9, 76, 'jimmy', 'marketing', '0125678767', '0125678767', 'jimmy@borong.com', 10, '', 0, '2014-07-17 04:17:39', 0, '0000-00-00 00:00:00'),
(10, 81, 'Munira Yasin', 'Marketing Manager', '0126767567', '0126767567', 'moon@gmail.com', 10, 'komisen 10% based on project basis', 0, '2014-07-21 02:06:51', 0, '2014-07-21 02:08:27'),
(11, 81, 'Miza Ahmad', 'Sales Consultant', '019 3456545', '019 3456545', 'miza@gmail.com', 10, 'komisen 10% on project basis', 0, '2014-07-21 02:08:09', 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=13 ;

--
-- 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, ''),
(2, 1, 12, 'SCN', '2014-07-02', 21, 17, 0, 0, 3.1305, 0, 'ergfwr', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-02 07:40:30', 0, '0000-00-00 00:00:00', 0, 1, ''),
(3, 1, 12, 'SCN', '2014-07-02', 19, 1, 0, 0, 3.1305, 0, 'ewwew', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-02 07:47:10', 0, '0000-00-00 00:00:00', 0, 1, ''),
(4, 1, 12, 'SCN', '2014-07-03', 18, 15, 0, 0, 3.1305, 0, 'ghf fhymf', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 01:25:05', 0, '2014-07-17 08:44:37', 0, 0, ''),
(5, 1, 12, 'SCN', '2014-07-03', 18, 1, 0, 0, 3.1305, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 01:30:10', 0, '0000-00-00 00:00:00', 0, 1, ''),
(6, 1, 12, 'SCN', '2014-07-03', 18, 15, 0, 0, 3.1305, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 04:02:06', 0, '0000-00-00 00:00:00', 0, 1, ''),
(7, 1, 12, 'SCN', '2014-07-03', 18, 0, 0, 0, 3.1305, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 04:06:00', 0, '0000-00-00 00:00:00', 0, 1, ''),
(8, 1, 0, 'SCN', '2014-07-03', 0, 0, 0, 0, 0, 0, '', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 04:11:55', 0, '0000-00-00 00:00:00', 0, 1, ''),
(9, 1, 12, 'SCN', '2014-07-03', 18, 10, 0, 0, 3.1305, 0, 'asda', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-03 04:14:29', 0, '0000-00-00 00:00:00', 0, 1, ''),
(10, 1, 12, 'SCN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'asasda', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 02:09:30', 0, '0000-00-00 00:00:00', 0, 1, ''),
(11, 1, 12, 'SCN', '2014-07-14', 18, 15, 0, 0, 3.1305, 0, 'fg dgst', 0, 0, 682.52, '0', 19.26, 0, 0, 16, '2014-07-14 02:15:35', 0, '2014-07-14 02:23:51', 0, 1, ''),
(12, 1, 12, 'SCN', '2014-07-14', 18, 15, 0, 0, 3.1305, 0, 'sds', 0, 0, 356.44, '0', 19.44, 0, 0, 16, '2014-07-14 02:26:20', 0, '2014-07-14 03:08:55', 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=52 ;

--
-- 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'),
(39, 7, 1, 102, 'ghkjh', 0, 11, 10, 1.2, 12, 0, 0, 0, 0, 16, '2014-07-03 04:06:00', 0, '0000-00-00 00:00:00'),
(40, 7, 2, 100, 'sdsw', 0, 3, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-03 04:06:23', 0, '0000-00-00 00:00:00'),
(41, 8, 1, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, '2014-07-03 04:11:56', 0, '0000-00-00 00:00:00'),
(43, 4, 1, 101, 'ASA', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 07:52:02', 0, '0000-00-00 00:00:00'),
(44, 4, 2, 101, 'DS', 0, 2, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 07:56:54', 0, '0000-00-00 00:00:00'),
(46, 4, 3, 102, 'WEW', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 07:58:41', 0, '0000-00-00 00:00:00'),
(47, 0, 1, 100, 'asdas', 0, 4, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-14 02:20:44', 0, '0000-00-00 00:00:00'),
(48, 11, 1, 100, 'asdas', 0, 4, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-14 02:23:51', 0, '0000-00-00 00:00:00'),
(49, 11, 2, 100, 'sdas', 0, 4, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-14 02:24:58', 0, '0000-00-00 00:00:00'),
(50, 12, 1, 100, 'asa', 0, 4, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-14 02:26:21', 0, '0000-00-00 00:00:00'),
(51, 12, 2, 100, 'dfsf', 0, 2, 0, 0, 2, 0, 0, 0, 0, 16, '2014-07-14 02:35:56', 0, '0000-00-00 00:00:00');

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

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

--
-- 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'),
(2, 2, 1, 9, '', 'Nasi Goreng Ayam', 1, 652, 652, 26, 11, 71.72, 723.72, 0, 16, '2014-07-02 07:40:30', 0, '0000-00-00 00:00:00'),
(3, 2, 2, 4, '', 'Plastic Chair - Blue', 3, 3, 9, 1, 0, 0, 9, 0, 16, '2014-07-02 07:41:19', 0, '0000-00-00 00:00:00'),
(4, 2, 3, 7, '', 'Plastic Chair - Red', 1, 0, 0, 0, 0, 0, 0, 0, 16, '2014-07-02 07:43:48', 0, '0000-00-00 00:00:00'),
(5, 3, 1, 8, '', 'Plastic Chair - White', 1, 1, 1, 28, 0, 0, 1, 0, 16, '2014-07-02 07:47:10', 0, '0000-00-00 00:00:00'),
(6, 4, 1, 4, '', 'Plastic Chair - Blue', 2, 1, 2, 0, 0, 0, 2, 0, 16, '2014-07-03 01:25:05', 0, '0000-00-00 00:00:00'),
(7, 4, 2, 10, '', 'Bola Tampar Buaya', 12, 1, 12, 1, 6, 0.72, 12.72, 0, 16, '2014-07-03 02:39:30', 16, '0000-00-00 00:00:00'),
(9, 5, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 12, 6, 19.26, 340.26, 0, 16, '2014-07-03 01:30:10', 0, '0000-00-00 00:00:00'),
(10, 5, 2, 8, '', 'Plastic Chair - White', 1, 0, 321, 10, 0, 19.26, 340.26, 0, 16, '2014-07-03 01:30:25', 0, '0000-00-00 00:00:00'),
(11, 7, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 12, 6, 19.26, 340.26, 0, 16, '2014-07-03 04:06:47', 0, '0000-00-00 00:00:00'),
(12, 9, 1, 7, '', 'Plastic Chair - Red', 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-03 04:14:43', 0, '0000-00-00 00:00:00'),
(13, 10, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 02:09:30', 0, '0000-00-00 00:00:00'),
(14, 11, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 02:15:35', 0, '0000-00-00 00:00:00'),
(15, 11, 2, 4, '', 'Plastic Chair - Blue', 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 02:19:24', 0, '0000-00-00 00:00:00'),
(16, 12, 1, 4, '', 'Plastic Chair - Blue', 1, 12, 12, 0, 1, 0.12, 12.12, 0, 16, '2014-07-14 02:36:28', 0, '0000-00-00 00:00:00'),
(17, 12, 2, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 02:52:54', 0, '0000-00-00 00:00:00'),
(18, 12, 3, 1, '', 'Teak wooden chair with natural finish', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-07-14 03:08:55', 16, '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=21 ;

--
-- 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'),
(8, 1, 15, 'SDN', '2014-07-02', 20, 1, 0, 0, 3.1305, 0, 'sdsf', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-02 06:49:41', 0, '0000-00-00 00:00:00', 0, 1, ''),
(9, 1, 12, 'SDN', '2014-07-02', 18, 15, 0, 0, 3.1305, 0, 'dfd', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-02 06:52:25', 0, '2014-07-17 08:06:33', 0, 0, ''),
(10, 1, 12, 'SDN', '2014-07-03', 18, 1, 0, 0, 3.1305, 0, 'GDF GH', 0, 0, 797.55, '0', 38.67, 0, 0, 16, '2014-07-03 00:07:54', 0, '2014-07-14 06:31:45', 0, 1, ''),
(11, 1, 12, 'SDN', '2014-07-03', 18, 15, 0, 0, 3.1305, 0, 'sds', 0, 0, 14.01, '0', 0.01, 0, 0, 16, '2014-07-03 05:00:15', 0, '2014-07-14 02:15:35', 0, 1, ''),
(12, 1, 12, 'SDN', '2014-07-03', 18, 1, 0, 0, 3.1305, 0, '', 0, 0, 0, '0', 0, 0, 0, 1, '2014-07-03 08:16:47', 0, '0000-00-00 00:00:00', 0, 1, ''),
(13, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:27:09', 0, '0000-00-00 00:00:00', 0, 1, ''),
(14, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:27:29', 0, '0000-00-00 00:00:00', 0, 1, ''),
(15, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:32:59', 0, '0000-00-00 00:00:00', 0, 1, ''),
(16, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:44:23', 0, '0000-00-00 00:00:00', 0, 1, ''),
(17, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:48:49', 0, '0000-00-00 00:00:00', 0, 1, ''),
(18, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 0, '0', 0, 0, 0, 16, '2014-07-14 00:49:12', 0, '0000-00-00 00:00:00', 0, 1, ''),
(19, 1, 12, 'SDN', '2014-07-14', 18, 1, 0, 0, 3.1305, 0, 'sds sds', 0, 0, 12, '0', 0, 0, 0, 16, '2014-07-14 00:55:51', 0, '2014-07-14 01:39:11', 0, 1, ''),
(20, 81, 33, 'SDN', '2014-07-21', 97, 22, 0, 0, 3.4, 0, '', 0, 0, 11660, '0', 660, 0, 0, 29, '2014-07-21 06:48:38', 0, '2014-07-21 06:48:39', 0, 1, '');

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

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

--
-- 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
(38, 11, 1, 102, 'dsa', 0, 5, 0, 0, 12, 0, 0, 0, 0, 16, '2014-07-03 05:00:15', 0, '0000-00-00 00:00:00'),
(39, 0, 2, 102, 'dewe', 0, 11, 10, 0.1, 1, 0, 0, 0, 0, 16, '2014-07-03 05:00:35', 0, '0000-00-00 00:00:00'),
(40, 0, 3, 100, 'we', 0, 5, 0, 1, 1, 0, 0, 0, 0, 16, '2014-07-03 05:02:36', 0, '0000-00-00 00:00:00'),
(41, 0, 4, 100, 'as', 0, 5, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-03 05:04:17', 0, '0000-00-00 00:00:00'),
(42, 0, 1, 101, 'dfd', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 08:24:59', 0, '0000-00-00 00:00:00'),
(43, 0, 1, 101, 'sd', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 08:27:25', 0, '0000-00-00 00:00:00'),
(44, 10, 1, 101, 'WE', 0, 2, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 08:29:31', 0, '0000-00-00 00:00:00'),
(45, 10, 2, 101, '12', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 08:29:56', 0, '0000-00-00 00:00:00'),
(46, 10, 3, 101, 'sds', 0, 1, 6, 0.06, 1, 0, 0, 0, 0, 16, '2014-07-07 08:46:25', 0, '0000-00-00 00:00:00'),
(47, 10, 4, 98, 'sds', 111111, 2, 0, 0, 111, 0, 0, 0, 0, 16, '2014-07-07 08:46:44', 16, '2014-07-14 06:31:45'),
(48, 19, 1, 100, 'xcsxd', 0, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-07-14 00:57:19', 0, '0000-00-00 00:00:00');

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

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

--
-- 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'),
(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'),
(10, 8, 0, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 0, 6, 19.26, 340.26, 0, 16, '2014-07-02 06:49:41', 0, '0000-00-00 00:00:00'),
(11, 8, 0, 10, '', 'Bola Tampar Buaya', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-02 06:51:41', 0, '0000-00-00 00:00:00'),
(12, 9, 0, 4, '', 'Plastic Chair - Blue', 12, 1, 12, 1, 0, 0, 12, 0, 16, '2014-07-02 06:52:25', 0, '0000-00-00 00:00:00'),
(13, 9, 0, 7, '', 'Plastic Chair - Red', 21, 12, 252, 0, 0, 0, 252, 0, 16, '2014-07-02 06:52:36', 0, '0000-00-00 00:00:00'),
(15, 10, 1, 4, '', 'Plastic Chair - Blue', 1, 1, 1, 6, 1, 0.01, 1.01, 0, 16, '2014-07-03 00:07:54', 0, '0000-00-00 00:00:00'),
(16, 10, 2, 8, '', 'Plastic Chair - White', 2, 1, 2, 5, 1, 0.02, 2.02, 0, 16, '2014-07-03 01:22:03', 16, '0000-00-00 00:00:00'),
(17, 11, 1, 7, '', 'Plastic Chair - Red', 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-03 05:00:48', 0, '0000-00-00 00:00:00'),
(18, 11, 2, 7, '', 'Plastic Chair - Red', 1, 1, 1, 0, 1, 0.01, 1.01, 0, 16, '2014-07-03 05:01:17', 0, '0000-00-00 00:00:00'),
(19, 12, 1, 1, '', 'Teak wooden chair with natural finish', 10, 321, 3210, 12, 6, 192.6, 3402.6, 0, 1, '2014-07-03 08:16:47', 0, '0000-00-00 00:00:00'),
(20, 10, 3, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-07 08:53:03', 0, '0000-00-00 00:00:00'),
(22, 10, 4, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-07 08:54:59', 0, '0000-00-00 00:00:00'),
(23, 13, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:27:09', 0, '0000-00-00 00:00:00'),
(24, 14, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:27:29', 0, '0000-00-00 00:00:00'),
(25, 15, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:32:59', 0, '0000-00-00 00:00:00'),
(26, 16, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:44:23', 0, '0000-00-00 00:00:00'),
(27, 17, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:48:49', 0, '0000-00-00 00:00:00'),
(28, 18, 1, 1, '', 'Teak wooden chair with natural finish', 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 00:49:12', 0, '0000-00-00 00:00:00'),
(30, 20, 1, 16, '', 'Wireless', 10, 1100, 11000, 0, 6, 660, 11660, 0, 29, '2014-07-21 06:48:39', 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,
  `invoiceID` int(11) NOT NULL DEFAULT '0',
  `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=16 ;

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

INSERT INTO `comp_sales_detail` (`ID`, `salesID`, `invoiceID`, `lineNo`, `itemID`, `description`, `unitPrice`, `unitmeasure`, `quantityOrder`, `quantityShip`, `amount`, `requiredDate`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(1, 1, 89, 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, 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, 89, 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, 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, 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, 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, 90, 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, 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, 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, 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, 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'),
(12, 6, 0, 0, 11, 'saiz 10. warna gold', 250, 2, 1, 0, 250, '2014-07-17', 16, '2014-07-17 03:09:34', NULL, '2014-07-17 03:09:34'),
(13, 7, 0, 0, 4, 'Plastic Chair - Blue', 23, 2, 3, 0, 69, '2014-07-18', 16, '2014-07-18 06:57:43', NULL, '2014-07-18 06:57:43'),
(14, 8, 0, 0, 7, 'Plastic Chair - Red', 34, 2, 4, 0, 136, '2014-07-18', 16, '2014-07-18 07:02:35', NULL, '2014-07-18 07:02:35'),
(15, 8, 0, 0, 2, 'Steel chair for outdoor', 56, 2, 8, 0, 448, '2014-07-18', 16, '2014-07-18 07:02:55', NULL, '2014-07-18 07:02:55');

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

--
-- 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,
  `printInInvoice` smallint(6) NOT NULL DEFAULT '0',
  `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=98 ;

--
-- 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`, `printInInvoice`, `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, 0, '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, 1, 0, 1, 0, '1ygul', 7, 4, 39.24, 6293.5, 6293.5, 16, '2014-06-26 06:49:57', 0, '2014-07-08 02:22:46', 0, 1, '', NULL),
(20, 1, 0, 0, 15, 'SON20140627', '2014-06-17', '12', 1, 1, 6, 1, 0, 3.1305, 1, 0, '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, 0, '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, 0, '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, 0, '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, 0, '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, 0, '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, 0, '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, 0, '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, 0, '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, 'SON20140711', '2014-07-07', 'we', 2, 15, 7, 4, 0, 3.1305, 1, 0, 'sdw', 7, 6, 27.36, 7535.36, 7535.36, 16, '2014-06-30 00:42:25', 0, '2014-07-11 02:34:42', 0, 1, '', NULL),
(30, 1, 0, 0, 12, 'SON20140630', '2014-06-24', 'sew', 2, 17, 7, 1, 0, 3.1305, 1, 0, '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, 'SON20140709', '2014-07-07', 'sew', 2, 17, 7, 1, 0, 3.1305, 1, 0, 'ewe', 7, 73, 1.44, 25.72, 25.72, 16, '2014-06-30 01:01:13', 0, '2014-07-14 07:55:14', 0, 1, '', NULL),
(32, 1, 0, 0, 16, 'SON20140630', '2014-07-07', 'as', 2, 1, 5, 1, 0, 3.1305, 1, 0, 'wewd', 7, 8, 0, -1, 654.06, 16, '2014-06-30 03:42:50', 0, '2014-07-09 02:15:59', 0, 1, '', NULL),
(33, 1, 0, 0, 12, 'SON20140702', '2014-07-02', 'asdfasdf245345345', 1, 1, 5, 1, 0, 3.1305, 1, 0, '', 6, 73, 0, 1020.78, 1020.78, 16, '2014-07-02 06:40:16', 0, '2014-07-04 01:26:02', 0, 0, 'AR20140700000001', NULL),
(34, 1, 0, 0, 12, 'SON20140702', '2014-07-02', 'wafasdfasdf', 1, 1, 5, 1, 0, 3.1305, 1, 0, '', 7, 74, 0, 3103.68, 3103.68, 16, '2014-07-02 07:54:56', 0, '2014-07-02 07:55:50', 0, 1, '', NULL),
(35, 1, 2, 0, 12, 'SON20140704', '2014-06-11', 'safsfg234', 1, 2, 5, 8, 0, 1, 1, 0, 'test memo', 6, 73, 2, 24830.5, 24830.5, 16, '2014-07-04 03:43:21', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(36, 1, 2, 0, 12, 'SON20140704', '2014-06-11', 'dsfas2452345', 1, 2, 8, 1, 0, 1, 1, 0, 'test memo', 6, 74, 207.18, 42671.04, 42671.04, 16, '2014-07-04 03:45:10', 0, '2014-07-04 03:47:24', 0, 1, '', NULL),
(37, 1, 1, 0, 12, 'SON20140704', '2014-06-11', 'ADASR353254', 1, 1, 6, 8, 0, 1, 1, 0, 'test memo', 6, 73, 2, 26017.7, 26017.7, 16, '2014-07-04 03:53:15', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(38, 1, 2, 0, 12, 'SON20140707', '2014-07-07', 'd', 1, 1, 5, 2, 0, 3.1305, 1, 0, 'vcv s', 7, 5, 2.7, 60.7, 60.7, 16, '2014-07-07 06:04:17', 0, '2014-07-08 08:07:10', 0, 1, '', NULL),
(39, 1, 2, 0, 12, 'SON20140707', '2014-07-07', 'er', 2, 1, 7, 1, 0, 3.1305, 1, 0, 'er', 7, 8, 0, 686.58, 686.58, 16, '2014-07-07 06:13:13', 0, '2014-07-07 06:59:04', 0, 1, '', NULL),
(40, 1, 1, 0, 12, 'SON20140707', '2014-06-18', 'asdfas45345', 2, 2, 6, 7, 0, 1, 1, 0, '', 7, 73, 31, 0, 0, 16, '2014-07-07 06:42:29', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(41, 1, 1, 0, 15, 'SON20140707', '2014-06-18', 'asdfasdf23452345', 1, 1, 5, 7, 0, 1, 1, 0, 'sfdgsdfgsdg', 7, 74, 272.7, 58223.4, 58223.4, 16, '2014-07-07 06:45:19', 0, '2014-07-07 06:45:33', 0, 1, '', NULL),
(75, 1, 2, 0, 15, 'SON20140709', '2014-07-01', 'Clone invoice', 2, 17, 5, 1, 0, 0, 1, 0, 'vcv s', 6, 5, 27.36, 483.36, 483.36, 16, '2014-07-07 06:04:17', 0, '2014-07-09 03:14:22', 0, 1, '', NULL),
(76, 1, 2, 0, 12, 'SON20140707', '2014-07-07', 'd', 1, 1, 5, 2, 0, 3.1305, 1, 0, 'vcv s', 7, 5, 2.7, -122, 60.7, 16, '2014-07-07 06:04:17', 0, '2014-07-10 04:02:58', 0, 1, '', NULL),
(77, 1, 0, 0, 12, 'SON20140711', '2014-07-07', 'we', 2, 15, 7, 4, 0, 3.1305, 1, 0, 'sdw', 7, 6, 27.36, 7535.36, 7535.36, 16, '2014-06-30 00:42:25', 0, '2014-07-11 02:34:42', 0, 1, '', NULL),
(80, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asfa45', 1, 10, 7, 2, 0, 3.23, 1, 0, 'fdasdfafd', 7, 73, 864, 493.96, 493.96, 16, '2014-07-11 08:51:41', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(81, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asdf2345', 1, 2, 6, 1, 0, 2.34, 1, 0, '', 6, 73, 33145.02, 491.84, 1889.6799999999998, 16, '2014-07-11 08:59:06', 0, '2014-07-11 08:59:34', 0, 1, '', NULL),
(82, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asdf2345', 1, 1, 5, 1, 0, 3.44, 1, 0, '', 6, 74, 33, 0, 0, 16, '2014-07-11 09:00:31', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(83, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asdf2345', 1, 1, 5, 1, 0, 0, 1, 0, '', 6, 74, 72, 0, 0, 16, '2014-07-11 09:01:29', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(84, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'adfa2345', 1, 10, 5, 1, 0, 0, 1, 0, '', 7, 5, 72, 0, 0, 16, '2014-07-11 09:02:05', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(85, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asfasgf324543', 1, 10, 5, 1, 0, 4.33, 1, 0, '', 6, 73, 1, 0, 0, 16, '2014-07-11 09:03:17', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(86, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'sadfas2345', 1, 2, 6, 1, 0, 0, 1, 0, '', 6, 73, 31, 0, 0, 16, '2014-07-11 09:08:40', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(87, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'adfas2345', 1, 2, 6, 1, 0, 3.33, 1, 0, '', 6, 74, 31, 0, 0, 16, '2014-07-11 09:29:31', 0, '2014-07-17 06:56:38', 0, 0, '', NULL),
(88, 1, 1, 0, 12, 'SON20140711', '2014-07-11', 'asdf324523', 1, 1, 6, 1, 0, 3.44, 1, 0, '', 6, 73, 2, 0, 0, 16, '2014-07-11 09:30:18', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(89, 1, 1, 0, 12, 'SON20140714', '2014-07-14', 'asdf234523', 1, 10, 6, 1, 0, 3.1305, 1, 0, 'sd adadf afd', 6, 74, 2, 480.18, 480.18, 16, '2014-07-14 00:47:46', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(90, 1, 1, 0, 12, 'SON20140714', '2014-07-14', 'fsfsaf453', 2, 15, 6, 1, 0, 3.24, 1, 0, 'sdfggfs', 6, 73, 72, 0, 0, 16, '2014-07-14 00:50:58', 0, '0000-00-00 00:00:00', 0, 1, '', NULL),
(91, 1, 2, 0, 12, 'SON20140714', '2014-07-14', 'asa', 1, 10, 5, 1, 0, 3.1305, 1, 0, 'eqwwe', 7, 5, 0.06, 2.06, 0, 16, '2014-07-14 06:42:06', 0, '2014-07-14 06:48:09', 0, 1, '', NULL),
(92, 1, 2, 0, 15, 'SON20140714', '2014-07-14', 'asa', 1, 17, 5, 1, 0, 3.1305, 1, 0, 'asa sdas', 6, 8, 6.666666666666668e18, 341.26, 1.1777777777777779e20, 16, '2014-07-14 06:55:31', 0, '2014-07-14 06:58:13', 0, 1, '', NULL),
(93, 1, 2, 0, 12, 'SON20140714', '2014-07-14', 'sa', 1, 2, 7, 1, 0, 3.1305, 1, 0, 'sas', 6, 5, 7.319999999999999, 1.06, 129.32, 16, '2014-07-14 07:08:01', 0, '2014-07-14 07:08:35', 0, 1, '', NULL),
(94, 1, 2, 0, 12, 'SON20140714', '2014-07-14', 'asa', 1, 10, 5, 1, 0, 3.1305, 1, 0, 'eqwwe', 7, 5, 0.06, 2.06, 0, 16, '2014-07-14 06:42:06', 0, '2014-07-14 06:48:09', 0, 1, '', NULL),
(95, 1, 1, 0, 12, 'SON20140716', '2014-06-12', 'asdfrtrt', 1, 1, 5, 1, 0, 2.34, 1, 0, '', 6, 73, 434.7, 7679.7, 7679.7, 16, '2014-07-16 04:29:50', 0, '2014-07-16 04:30:49', 0, 1, '', NULL),
(96, 1, 2, 0, 15, 'SON20140714', '2014-07-14', 'asa', 1, 17, 5, 1, 0, 3.1305, 1, 0, 'asa sdas', 6, 8, 6.666666666666668e18, 341.26, 1.1777777777777779e20, 16, '2014-07-14 06:55:31', 0, '2014-07-14 06:58:13', 0, 1, '', NULL),
(97, 81, 1, 0, 33, 'SON', '2014-07-21', '001', 9, 22, 17, 1, 0, 0, 11, 0, '', 21, 6, 0, 0, 0, 29, '2014-07-21 04:01:52', 0, '0000-00-00 00:00:00', 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=102 ;

--
-- 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'),
(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'),
(47, 21, 1, 100, 'asa', 0, 5, 0, 1, 1, 0, 0, 0, 0, 16, '2014-07-03 04:28:29', 0, '2014-07-07 02:33:20'),
(48, 35, 1, 101, 'asdfasdfa fas', 23425, 1, 6, 1405.5, 24830.5, 0, 0, 0, 0, 16, '2014-07-04 03:43:21', 0, '0000-00-00 00:00:00'),
(49, 36, 1, 101, 'adadf12313', 234, 1, 6, 14.04, 248.04, 0, 0, 0, 0, 16, '2014-07-04 03:45:10', 0, '0000-00-00 00:00:00'),
(50, 36, 2, 102, 'asdfas245235342', 0, 1, 6, 207.18, 3453, 0, 0, 0, 0, 16, '2014-07-04 03:47:24', 0, '0000-00-00 00:00:00'),
(51, 37, 1, 101, 'ASDFASDF', 24545, 1, 6, 1472.7, 26017.7, 0, 0, 0, 0, 16, '2014-07-04 03:53:16', 0, '0000-00-00 00:00:00'),
(52, 38, 1, 100, 'trr', 300, 1, 6, 18, 318, 0, 0, 0, 0, 16, '2014-07-07 06:06:10', 16, '2014-07-08 09:06:34'),
(53, 39, 1, 100, 'sd', 1, 5, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 06:13:13', 0, '0000-00-00 00:00:00'),
(54, 39, 2, 101, 'hasdfasfd245435', 234, 1, 6, 14.04, 248.04, 0, 0, 0, 0, 16, '2014-07-07 06:13:50', 16, '2014-07-09 07:51:24'),
(55, 41, 1, 101, 'sfgsdfg35356', 0, 1, 6, 272.7, 4545, 0, 0, 0, 0, 16, '2014-07-07 06:45:33', 0, '0000-00-00 00:00:00'),
(56, 39, 3, 102, 'WWWWWWWWWWW', 1, 2, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 06:55:27', 16, '2014-07-07 06:59:17'),
(58, 19, 1, 101, 'asdfasd324523', 456, 1, 6, 27.36, 483.36, 0, 0, 0, 0, 16, '2014-07-08 02:21:57', 0, '0000-00-00 00:00:00'),
(59, 19, 2, 101, 'sadf352345', 654, 1, 6, 39.24, 693.24, 0, 0, 0, 0, 16, '2014-07-08 02:22:26', 0, '0000-00-00 00:00:00'),
(81, 75, 1, 100, 'trr', 0, 1, 6, 0.72, 12, 0, 0, 0, 0, 16, '2014-07-07 06:06:10', 0, '0000-00-00 00:00:00'),
(84, 76, 1, 100, 'trr', 300, 1, 6, 18, 318, 0, 0, 0, 0, 16, '2014-07-07 06:06:10', 16, '2014-07-08 09:06:34'),
(85, 75, 2, 101, 'safg3245', 456, 1, 6, 27.36, 483.36, 0, 0, 0, 0, 16, '2014-07-09 03:07:01', 0, '0000-00-00 00:00:00'),
(86, 0, 2, 101, 'afdasdf345345', 456, 1, 6, 27.36, 483.36, 0, 0, 0, 0, 16, '2014-07-11 01:20:10', 0, '0000-00-00 00:00:00'),
(87, 29, 1, 101, 'sadf2345', 400, 1, 6, 24, 424, 0, 0, 0, 0, 16, '2014-07-11 02:22:15', 16, '2014-07-11 02:23:16'),
(91, 77, 1, 101, 'sadf2345', 400, 1, 6, 24, 424, 0, 0, 0, 0, 16, '2014-07-11 02:22:15', 16, '2014-07-11 02:23:16'),
(92, 78, 1, 101, 'dsfgsd2345', 345, 1, 6, 20.7, 365.7, 0, 0, 0, 0, 16, '2014-07-11 08:25:59', 0, '0000-00-00 00:00:00'),
(93, 79, 1, 101, 'asfd23452', 456, 1, 6, 27.36, 483.36, 0, 0, 0, 0, 16, '2014-07-11 08:38:18', 0, '0000-00-00 00:00:00'),
(94, 80, 1, 101, 'asfasdf3245', 466, 1, 6, 27.96, 493.96, 0, 0, 0, 0, 16, '2014-07-11 08:51:42', 0, '0000-00-00 00:00:00'),
(95, 81, 1, 101, 'asfsa234523', 464, 1, 6, 27.84, 491.84, 0, 0, 0, 0, 16, '2014-07-11 08:59:06', 0, '0000-00-00 00:00:00'),
(96, 81, 2, 102, 'qwer245', 0, 1, 6, 27.18, 453, 0, 0, 0, 0, 16, '2014-07-11 08:59:34', 0, '0000-00-00 00:00:00'),
(97, 89, 1, 101, 'asfsad3452354', 453, 1, 6, 27.18, 480.18, 0, 0, 0, 0, 16, '2014-07-14 00:47:46', 0, '0000-00-00 00:00:00'),
(98, 92, 1, 100, 'sds', 1.1111111111111111e20, 1, 6, 6.666666666666668e18, 1.1777777777777779e20, 0, 0, 0, 0, 16, '2014-07-14 06:58:13', 0, '0000-00-00 00:00:00'),
(100, 95, 1, 101, 'asdf2345', 0, 1, 6, 2.7, 45, 0, 0, 0, 0, 16, '2014-07-16 04:30:27', 0, '0000-00-00 00:00:00'),
(101, 96, 1, 100, 'sds', 1.1111111111111111e20, 1, 6, 6.666666666666668e18, 1.1777777777777779e20, 0, 0, 0, 0, 16, '2014-07-14 06:58:13', 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,
  `doID` 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=141 ;

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

INSERT INTO `comp_sales_invoice_detail` (`ID`, `invoiceID`, `doID`, `lineNo`, `itemID`, `quantity`, `unitPrice`, `amountExcludedTax`, `taxID`, `taxRate`, `taxAmount`, `amountIncludedTax`, `accountID`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`) VALUES
(21, 18, 0, 1, 7, 1, 1212, 1212, 1, 6, 72.72, 1284.72, 0, 16, '2014-07-07 01:54:09', 0, '0000-00-00 00:00:00'),
(22, 18, 0, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 9, 1, 652, 652, 5, 0, 0, 652, 0, 16, '2014-07-11 02:27:17', 16, '0000-00-00 00:00:00'),
(35, 31, 0, 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, 0, 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, 0, 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'),
(38, 33, 0, 1, 1, 3, 321, 963, 12, 6, 57.78, 1020.78, 0, 16, '2014-07-02 06:40:16', 0, '0000-00-00 00:00:00'),
(39, 34, 0, 1, 1, 8, 321, 2568, 12, 6, 154.08, 2722.08, 0, 16, '2014-07-02 07:54:56', 0, '0000-00-00 00:00:00'),
(40, 34, 0, 2, 7, 3, 120, 360, 14, 6, 21.6, 381.6, 0, 16, '2014-07-02 07:55:49', 0, '0000-00-00 00:00:00'),
(41, 37, 0, 1, 1, 120, 120, 14400, 12, 0, 720, 15120, 0, 16, '2014-07-04 03:53:16', 0, '0000-00-00 00:00:00'),
(42, 37, 0, 2, 2, 250, 90, 22500, 13, 0, 1350, 23850, 0, 16, '2014-07-04 03:53:16', 0, '0000-00-00 00:00:00'),
(47, 31, 0, 3, 7, 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-07 05:52:21', 16, '0000-00-00 00:00:00'),
(48, 38, 0, 1, 7, 155, 45, 6, 1, 6, 418.5, 7, 0, 16, '2014-07-08 09:06:01', 16, '0000-00-00 00:00:00'),
(49, 39, 0, 1, 1, 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-07 06:16:42', 16, '0000-00-00 00:00:00'),
(50, 39, 0, 2, 4, 2, 1, 2, 0, 0, 0, 2, 0, 16, '2014-07-07 06:16:08', 0, '0000-00-00 00:00:00'),
(51, 39, 0, 3, 1, 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-07 06:29:34', 0, '0000-00-00 00:00:00'),
(52, 40, 0, 1, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-07 06:42:29', 0, '0000-00-00 00:00:00'),
(53, 40, 0, 2, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-07 06:42:29', 0, '0000-00-00 00:00:00'),
(54, 41, 0, 1, 1, 1200, 30, 36000, 1, 0, 2160, 38160, 0, 16, '2014-07-07 06:45:19', 0, '0000-00-00 00:00:00'),
(55, 41, 0, 2, 8, 120, 122, 14640, 10, 0, 878.4, 15518.4, 0, 16, '2014-07-07 06:45:19', 0, '0000-00-00 00:00:00'),
(93, 75, 0, 1, 7, 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-07-09 02:10:00', 16, '0000-00-00 00:00:00'),
(94, 76, 0, 1, 7, 155, 45, 6, 1, 6, 418.5, 7, 0, 16, '2014-07-08 09:06:01', 16, '0000-00-00 00:00:00'),
(95, 75, 0, 2, 1, 11, 4, 44, 11, 10, 4.4, 48.4, 0, 16, '2014-07-09 03:13:35', 16, '0000-00-00 00:00:00'),
(96, 155, 0, 1, 1, 15, 321, 4815, 1, 6, 288.9, 5103.9, 0, 16, '2014-07-09 06:58:54', 0, '0000-00-00 00:00:00'),
(97, 0, 0, 1, 1, 15, 321, 4, 1, 6, 288.9, 5, 0, 16, '2014-07-10 08:49:38', 16, '0000-00-00 00:00:00'),
(98, 29, 0, 1, 7, 44, 45, 1980, 1, 6, 0, 1980, 0, 16, '2014-07-11 02:29:40', 0, '0000-00-00 00:00:00'),
(99, 29, 0, 2, 7, 45, 34, 1530, 1, 6, 91.8, 1621.8, 0, 16, '2014-07-11 02:31:12', 0, '0000-00-00 00:00:00'),
(100, 29, 0, 3, 1, 5, 324, 1620, 1, 6, 97.2, 1717.2, 0, 16, '2014-07-11 02:31:46', 0, '0000-00-00 00:00:00'),
(103, 77, 0, 0, 9, 1, 652, 652, 5, 0, 0, 652, 0, 16, '2014-07-11 02:27:17', 16, '0000-00-00 00:00:00'),
(104, 77, 0, 1, 7, 44, 45, 1980, 1, 6, 0, 1980, 0, 16, '2014-07-11 02:29:40', 0, '0000-00-00 00:00:00'),
(105, 77, 0, 2, 7, 45, 34, 1530, 1, 6, 91.8, 1621.8, 0, 16, '2014-07-11 02:31:12', 0, '0000-00-00 00:00:00'),
(106, 77, 0, 3, 1, 5, 324, 1620, 1, 6, 97.2, 1717.2, 0, 16, '2014-07-11 02:31:46', 0, '0000-00-00 00:00:00'),
(107, 78, 0, 1, 1, 120, 120, 14400, 1, 0, 864, 15264, 0, 16, '2014-07-11 08:25:59', 0, '0000-00-00 00:00:00'),
(108, 78, 0, 2, 2, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 08:25:59', 0, '0000-00-00 00:00:00'),
(109, 78, 0, 3, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-11 08:25:59', 0, '0000-00-00 00:00:00'),
(110, 78, 0, 4, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 08:25:59', 0, '0000-00-00 00:00:00'),
(111, 79, 0, 1, 1, 120, 120, 14400, 1, 0, 864, 15264, 0, 16, '2014-07-11 08:38:18', 0, '0000-00-00 00:00:00'),
(112, 79, 0, 2, 2, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 08:38:18', 0, '0000-00-00 00:00:00'),
(113, 79, 0, 3, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-11 08:38:18', 0, '0000-00-00 00:00:00'),
(114, 79, 0, 4, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 08:38:18', 0, '0000-00-00 00:00:00'),
(115, 80, 0, 1, 1, 120, 120, 14400, 1, 0, 864, 15264, 0, 16, '2014-07-11 08:51:41', 0, '0000-00-00 00:00:00'),
(116, 81, 0, 1, 2, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 08:59:06', 0, '0000-00-00 00:00:00'),
(117, 81, 0, 2, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 08:59:06', 0, '0000-00-00 00:00:00'),
(118, 82, 0, 1, 2, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 09:00:31', 0, '0000-00-00 00:00:00'),
(119, 82, 0, 2, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 09:00:31', 0, '0000-00-00 00:00:00'),
(120, 83, 0, 1, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-11 09:01:30', 0, '0000-00-00 00:00:00'),
(121, 84, 0, 1, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-11 09:02:05', 0, '0000-00-00 00:00:00'),
(122, 85, 0, 1, 2, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 09:03:17', 0, '0000-00-00 00:00:00'),
(123, 85, 0, 2, 1, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-11 09:03:17', 0, '0000-00-00 00:00:00'),
(124, 86, 0, 1, 2, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 09:08:40', 0, '0000-00-00 00:00:00'),
(125, 87, 0, 1, 8, 2300, 230, 529000, 1, 0, 31740, 560740, 0, 16, '2014-07-11 09:29:31', 0, '0000-00-00 00:00:00'),
(126, 88, 0, 1, 1, 120, 120, 14400, 1, 0, 864, 15264, 0, 16, '2014-07-11 09:30:18', 0, '0000-00-00 00:00:00'),
(127, 88, 0, 2, 3, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-11 09:30:18', 0, '0000-00-00 00:00:00'),
(128, 89, 0, 1, 1, 120, 120, 14400, 1, 0, 864, 15264, 0, 16, '2014-07-14 00:47:46', 0, '0000-00-00 00:00:00'),
(129, 89, 0, 2, 3, 250, 90, 22500, 1, 0, 1350, 23850, 0, 16, '2014-07-14 00:47:46', 0, '0000-00-00 00:00:00'),
(130, 90, 0, 1, 7, 10, 120, 1200, 1, 0, 72, 1272, 0, 16, '2014-07-14 00:50:58', 0, '0000-00-00 00:00:00'),
(131, 91, 0, 1, 7, 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 06:42:06', 0, '0000-00-00 00:00:00'),
(132, 91, 0, 2, 10, 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 06:48:08', 0, '0000-00-00 00:00:00'),
(133, 92, 0, 1, 7, 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 06:55:31', 0, '0000-00-00 00:00:00'),
(134, 92, 0, 2, 1, 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 06:56:35', 0, '0000-00-00 00:00:00'),
(135, 93, 0, 1, 7, 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-07-14 07:08:01', 0, '0000-00-00 00:00:00'),
(136, 94, 0, 1, 7, 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 06:42:06', 0, '0000-00-00 00:00:00'),
(137, 94, 0, 2, 10, 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 06:48:08', 0, '0000-00-00 00:00:00'),
(138, 95, 1, 1, 1, 60, 120, 7200, 1, 0, 432, 7632, 0, 16, '2014-07-16 04:30:49', 0, '0000-00-00 00:00:00'),
(139, 96, 0, 1, 7, 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 06:55:31', 0, '0000-00-00 00:00:00'),
(140, 96, 0, 2, 1, 1, 321, 321, 1, 6, 19.26, 340.26, 0, 16, '2014-07-14 06:56:35', 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,
  `invoiceID` 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=9 ;

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

INSERT INTO `comp_sales_order` (`ID`, `companyID`, `invoiceID`, `customerID`, `OrderNo`, `formNo`, `currencyID`, `exchangeRate`, `salesOrderDate`, `dateRequired`, `deliveryToID`, `salesPerson`, `memo`, `supplierID`, `totalAmount`, `totalReceivable`, `status`, `createdBy`, `createdTS`, `updatedBy`, `updatedTS`, `is_delete`) VALUES
(1, 1, 0, 12, 'SON20140718', NULL, 1, 1, '2014-06-11', NULL, 8, 6, 'test memo', NULL, 29400, NULL, 1, 1, '2014-07-18 07:16:58', 1, '0000-00-00 00:00:00', 0),
(2, 1, 0, 15, 'SON20140718', NULL, 2, 1, '2014-06-18', NULL, 7, 0, '', NULL, 542540, NULL, 1, 1, '2014-07-18 07:16:58', 1, '0000-00-00 00:00:00', 0),
(3, 1, 0, 12, 'SON20140718', NULL, 1, 1, '2014-06-18', NULL, 7, 0, '', NULL, 530200, NULL, 1, 1, '2014-07-18 07:16:58', 1, '0000-00-00 00:00:00', 0),
(4, 1, 0, 16, 'SON20140718', NULL, 1, 1, '2014-06-18', NULL, 0, 0, '', NULL, 1000000, NULL, 1, 1, '2014-07-18 07:16:58', 0, '0000-00-00 00:00:00', 0),
(5, 1, 0, 20, 'SON20140718', NULL, 1, 1, '2014-06-18', NULL, 0, 0, '', NULL, 35000, NULL, 1, 1, '2014-07-18 07:16:58', 0, '0000-00-00 00:00:00', 0),
(6, 15, 0, 17, 'SON20140718', NULL, 1, 1, '2014-07-17', NULL, 6, 9, '', NULL, 250, NULL, 1, 16, '2014-07-18 07:16:58', 0, '0000-00-00 00:00:00', 0),
(7, 1, 0, 12, 'SON20140718', NULL, 1, 1, '2014-07-18', NULL, 7, 0, '', NULL, 69, NULL, 1, 16, '2014-07-18 07:16:58', 0, '0000-00-00 00:00:00', 0),
(8, 1, 0, 12, 'SON20140718', NULL, 1, 1, '2014-07-18', NULL, 7, 6, '', NULL, 584, NULL, 1, 16, '2014-07-18 07:16:58', 16, '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=12 ;

--
-- 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', 121, 16, 1, '2014-06-05 08:56:27', '2014-07-21 03:28:39'),
(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'),
(4, 1, 15, 1, 2, 2, '2014-07-21', '2014-07-21', 345.44, 0, 16, '2014-07-21 03:38:48', '2014-07-21 03:38:48'),
(5, 1, 15, 1, 2, 2, '2014-07-21', '2014-07-21', 3345, 0, 16, '2014-07-21 03:47:42', '2014-07-21 03:47:42'),
(6, 1, 15, 1, 0, 2, '2014-07-21', '2014-07-21', 245234, 0, 16, '2014-07-21 04:03:07', '2014-07-21 04:03:07'),
(7, 1, 12, 13, 0, 2, '2014-07-21', '2014-07-21', 1111, 0, 16, '2014-07-21 04:03:44', '2014-07-21 04:03:44'),
(9, 1, 12, 1, 0, 2, '2014-07-21', '2014-07-21', 54321, 0, 16, '2014-07-21 04:15:45', '2014-07-21 04:15:45'),
(10, 1, 12, 1, 0, 13, '2014-07-21', '2014-07-30', 1234567, 0, 16, '2014-07-21 04:16:46', '2014-07-21 04:16:46'),
(11, 1, 16, 1, 1, 8, '2014-07-21', '2014-07-31', 543210, 0, 16, '2014-07-21 04:22:00', '2014-07-21 04:22:00');

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

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

--
-- 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'),
(67, 1, 1, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(68, 1, 20, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(69, 1, 23, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(70, 1, 24, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(71, 27, 25, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(72, 15, 26, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(73, 15, 27, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(74, 15, 28, '2014-07-03', 0, 0, 0, 0, '2014-07-02 16:00:00'),
(82, 1, 1, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(83, 1, 20, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(84, 1, 23, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(85, 1, 24, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(86, 27, 25, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(87, 15, 26, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(88, 15, 27, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(89, 15, 28, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(90, 45, 29, '2014-07-04', 0, 0, 0, 0, '2014-07-03 16:00:18'),
(97, 1, 1, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(98, 1, 20, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(99, 1, 23, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(100, 1, 24, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(101, 27, 25, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(102, 15, 26, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(103, 15, 27, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(104, 15, 28, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(105, 45, 29, '2014-07-05', 0, 0, 0, 0, '2014-07-04 16:00:05'),
(112, 1, 1, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(113, 1, 20, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(114, 1, 23, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(115, 1, 24, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(116, 27, 25, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(117, 15, 26, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(118, 15, 27, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(119, 15, 28, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(120, 45, 29, '2014-07-06', 0, 0, 0, 0, '2014-07-05 16:00:00'),
(127, 1, 1, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(128, 1, 20, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(129, 1, 23, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(130, 1, 24, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(131, 27, 25, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(132, 15, 26, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(133, 15, 27, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(134, 15, 28, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(135, 45, 29, '2014-07-07', 0, 0, 0, 0, '2014-07-06 16:00:00'),
(142, 1, 1, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(143, 1, 20, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(144, 1, 23, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(145, 1, 24, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(146, 27, 25, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(147, 15, 26, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(148, 15, 27, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(149, 15, 28, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(150, 45, 29, '2014-07-08', 0, 0, 0, 0, '2014-07-07 16:00:00'),
(157, 1, 1, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(158, 1, 20, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(159, 1, 23, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(160, 1, 24, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(161, 27, 25, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(162, 15, 26, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(163, 15, 27, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(164, 15, 28, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(165, 45, 29, '2014-07-09', 0, 0, 0, 0, '2014-07-08 16:00:00'),
(172, 1, 1, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(173, 1, 20, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(174, 1, 23, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(175, 1, 24, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(176, 27, 25, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(177, 15, 26, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(178, 15, 27, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(179, 15, 28, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(180, 45, 29, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(181, 57, 30, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(182, 1, 31, '2014-07-10', 0, 0, 0, 0, '2014-07-09 16:00:00'),
(187, 1, 1, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(188, 1, 20, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(189, 1, 23, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(190, 1, 24, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(191, 27, 25, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(192, 15, 26, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(193, 15, 27, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(194, 15, 28, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(195, 45, 29, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(196, 57, 30, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(197, 1, 31, '2014-07-11', 0, 0, 0, 0, '2014-07-10 16:00:28'),
(202, 1, 1, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(203, 1, 20, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(204, 1, 23, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(205, 1, 24, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(206, 27, 25, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(207, 15, 26, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(208, 15, 27, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(209, 15, 28, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(210, 45, 29, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(211, 57, 30, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(212, 1, 31, '2014-07-12', 0, 0, 0, 0, '2014-07-11 16:00:04'),
(217, 1, 1, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(218, 1, 20, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(219, 1, 23, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(220, 1, 24, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(221, 27, 25, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(222, 15, 26, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(223, 15, 27, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(224, 15, 28, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(225, 45, 29, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(226, 57, 30, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(227, 1, 31, '2014-07-13', 0, 0, 0, 0, '2014-07-12 16:00:00'),
(232, 1, 1, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(233, 1, 20, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(234, 1, 23, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(235, 1, 24, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(236, 27, 25, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(237, 15, 26, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(238, 15, 27, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(239, 15, 28, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(240, 45, 29, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(241, 57, 30, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(242, 1, 31, '2014-07-14', 0, 0, 0, 0, '2014-07-13 16:00:00'),
(247, 1, 1, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(248, 1, 20, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(249, 1, 23, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(250, 1, 24, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(251, 27, 25, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(252, 15, 26, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(253, 15, 27, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(254, 15, 28, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(255, 45, 29, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(256, 57, 30, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(257, 1, 31, '2014-07-15', 0, 0, 0, 0, '2014-07-14 16:00:00'),
(262, 1, 1, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(263, 1, 20, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(264, 1, 23, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(265, 1, 24, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(266, 27, 25, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(267, 15, 26, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(268, 15, 27, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(269, 15, 28, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(270, 45, 29, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(271, 57, 30, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(272, 1, 31, '2014-07-16', 0, 0, 0, 0, '2014-07-15 16:00:00'),
(277, 1, 1, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(278, 1, 20, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(279, 1, 23, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(280, 1, 24, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(281, 27, 25, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(282, 15, 26, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(283, 15, 27, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(284, 15, 28, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(285, 45, 29, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(286, 57, 30, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(287, 1, 31, '2014-07-17', 0, 0, 0, 0, '2014-07-16 16:00:00'),
(292, 1, 1, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(293, 1, 20, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(294, 1, 23, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(295, 1, 24, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(296, 27, 25, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(297, 15, 26, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(298, 15, 27, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(299, 15, 28, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(300, 45, 29, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(301, 57, 30, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(302, 1, 31, '2014-07-18', 0, 0, 0, 0, '2014-07-17 16:00:30'),
(307, 1, 1, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(308, 1, 20, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(309, 1, 23, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(310, 1, 24, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(311, 27, 25, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(312, 15, 26, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(313, 15, 27, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(314, 15, 28, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(315, 45, 29, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(316, 57, 30, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(317, 1, 31, '2014-07-19', 0, 0, 0, 0, '2014-07-18 16:00:03'),
(322, 1, 1, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(323, 1, 20, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(324, 1, 23, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(325, 1, 24, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(326, 27, 25, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(327, 15, 26, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(328, 15, 27, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(329, 15, 28, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(330, 45, 29, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(331, 57, 30, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(332, 1, 31, '2014-07-20', 0, 0, 0, 0, '2014-07-19 16:00:00'),
(337, 1, 1, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(338, 1, 20, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(339, 1, 23, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(340, 1, 24, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(341, 27, 25, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(342, 15, 26, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(343, 15, 27, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(344, 15, 28, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(345, 45, 29, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(346, 57, 30, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(347, 1, 31, '2014-07-21', 0, 0, 0, 0, '2014-07-20 16:00:00'),
(352, 1, 1, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(353, 1, 20, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(354, 1, 23, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(355, 1, 24, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(356, 27, 25, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(357, 15, 26, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(358, 15, 27, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(359, 15, 28, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(360, 45, 29, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(361, 57, 30, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(362, 1, 31, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(363, 81, 32, '2014-07-22', 0, 0, 0, 0, '2014-07-21 16:00:00'),
(367, 1, 1, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(368, 1, 20, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(369, 1, 23, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(370, 1, 24, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(371, 27, 25, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(372, 15, 26, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(373, 15, 27, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(374, 15, 28, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(375, 45, 29, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(376, 57, 30, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(377, 1, 31, '2014-07-23', 0, 0, 0, 0, '2014-07-22 16:00:00'),
(378, 81, 32, '2014-07-23', 0, 0, 0, 0, '2014-07-22 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=26 ;

--
-- 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-07-09 04:12:56', 0, 0, ''),
(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, 1268, '0', 366.96, 29734.96, 0, 16, '2014-06-24 01:28:45', 0, '2014-07-07 02:41:38', 0, 1, ''),
(21, 1, 1, 'PCN', '2014-07-14', 71, 17, 0, 0, 1, 0, '', 0, 0, 0, '0', 0.06, 1.06, 0, 16, '2014-07-14 04:45:59', 0, '2014-07-14 04:45:59', 0, 1, ''),
(22, 1, 1, 'PCN', '2014-07-14', 71, 15, 0, 0, 1, 0, '', 0, 0, 5.0600000000000005, '0', 0.06, 1.06, 0, 16, '2014-07-14 04:55:42', 0, '2014-07-14 04:56:38', 0, 1, ''),
(23, 1, 1, 'PCN', '2014-07-14', 71, 17, 0, 0, 1, 0, 'sds', 0, 0, 1.06, '0', 0.06, 1.06, 0, 16, '2014-07-14 05:03:55', 0, '2014-07-14 05:03:55', 0, 1, ''),
(24, 1, 1, 'PCN', '2014-07-14', 72, 1, 0, 0, 1, 0, '', 0, 0, 1.01, '0', 0.0006, 1, 0, 16, '2014-07-14 05:08:21', 0, '2014-07-14 05:08:53', 0, 1, ''),
(25, 1, 1, 'PCN', '2014-07-14', 71, 1, 0, 0, 1, 0, 'juo', 0, 0, 23555555558.5, '0', 1333333333.4999998, 2.12, 0, 16, '2014-07-14 05:10:22', 0, '2014-07-14 06:04:58', 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=34 ;

--
-- 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'),
(23, 20, 3, 101, '', 'JKGGGM DGW', 0, 0, 1, 3, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 01:52:24', 0, '0000-00-00 00:00:00'),
(24, 20, 4, 102, '', 'SD', 0, 0, 1, 2, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 01:54:24', 0, '0000-00-00 00:00:00'),
(25, 20, 5, 101, '', 'DSD', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-07 02:03:58', 0, '0000-00-00 00:00:00'),
(26, 20, 6, 101, '', 'DSD', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-07 02:06:24', 16, '2014-07-07 02:41:01'),
(28, 20, 8, 99, '', 'SD', 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 16, '2014-07-07 02:10:41', 0, '0000-00-00 00:00:00'),
(31, 20, 7, 101, '', 'sds', 0, 0, 1221, 1, 0, 73.26, 1294.26, 0, 0, 0, 0, 16, '2014-07-07 02:41:38', 0, '0000-00-00 00:00:00'),
(32, 25, 1, 101, '', 'sdad', 0, 0, 22222222222, 1, 0, 1333333333.32, 23555555555.32, 0, 0, 0, 0, 16, '2014-07-14 05:11:15', 16, '2014-07-14 06:04:58'),
(33, 25, 2, 100, '', 'as', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-14 05:19:34', 16, '2014-07-14 06:01:39');

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

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

--
-- 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'),
(31, 20, 3, 1, '', 'Teak wooden chair with natural finish', 1, 0, 10, 0, 6, 0.6, 10.6, 0, 16, '2014-07-07 04:12:19', 16, '0000-00-00 00:00:00'),
(32, 21, 1, 1, '0', 'Teak wooden chair with natural finish', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 04:45:59', 0, '0000-00-00 00:00:00'),
(33, 21, 2, 1, '', 'Teak wooden chair with natural finish', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 04:52:24', 0, '0000-00-00 00:00:00'),
(34, 22, 1, 1, '0', 'Teak wooden chair with natural finish', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 04:55:42', 0, '0000-00-00 00:00:00'),
(35, 22, 2, 4, '', 'Plastic Chair - Blue', 2, 2, 4, 1, 0, 0, 4, 0, 16, '2014-07-14 04:56:38', 0, '0000-00-00 00:00:00'),
(36, 23, 1, 7, '0', 'Plastic Chair - Red', 1, 1, 1, 1, 6, 0.06, 1.06, 0, 16, '2014-07-14 05:03:55', 0, '0000-00-00 00:00:00'),
(37, 24, 1, 7, '0', 'Plastic Chair - Red', 1, 1, 1, 0, 0, 0, 1, 0, 16, '2014-07-14 05:08:21', 0, '0000-00-00 00:00:00'),
(38, 24, 2, 1, '', 'Teak wooden chair with natural finish', 1, 0.01, 0, 0, 6, 0.0006, 0.01, 0, 16, '2014-07-14 05:08:53', 0, '0000-00-00 00:00:00'),
(39, 25, 1, 1, '0', 'Teak wooden chair with natural finish', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 05:10:22', 0, '0000-00-00 00:00:00'),
(40, 25, 2, 1, '', 'Teak wooden chair with natural finish', 1, 1, 1, 0, 6, 0.06, 1.06, 0, 16, '2014-07-14 05:18:41', 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=34 ;

--
-- 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.06, '0', 0.06, 1.06, 0, 16, '2014-06-23 09:50:16', 0, '2014-07-14 05:19:34', 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, 26, '0', 1.56, 0, 0, 16, '2014-06-24 04:21:28', 0, '2014-07-09 04:09:10', 0, 0, 'AP20140600000014'),
(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, ''),
(32, 1, 1, 'PDN', '2014-07-14', 72, 15, 0, 1, 1, 0, 'asd', 0, 0, 15323.77, '0', 756.77, 2368.45, 0, 16, '2014-07-14 03:37:34', 0, '2014-07-14 03:41:14', 0, 1, ''),
(33, 1, 20, 'PDN', '2014-07-14', 76, 15, 0, 1, 1, 0, 'sds', 0, 0, 4.24, '0', 0.24, 1.06, 0, 16, '2014-07-14 03:42:17', 0, '2014-07-14 04:20:09', 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=51 ;

--
-- 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'),
(41, 0, 2, 102, '', 'SDS', 0, 0, 12, 4, 0, 0, 12, 0, 0, 0, 0, 16, '2014-07-04 06:39:50', 0, '0000-00-00 00:00:00'),
(42, 0, 2, 101, '', 'SD', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-04 06:40:41', 0, '0000-00-00 00:00:00'),
(43, 30, 2, 101, '', 'asa', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-04 06:44:55', 0, '0000-00-00 00:00:00'),
(47, 30, 3, 101, '', 'vvc', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-04 07:25:54', 0, '0000-00-00 00:00:00'),
(48, 32, 1, 101, '', 'asa', 0, 0, 11111, 1, 0, 666.66, 11777.66, 0, 0, 0, 0, 16, '2014-07-14 03:41:14', 0, '0000-00-00 00:00:00'),
(49, 33, 1, 102, '', 'sds', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-14 03:42:17', 0, '0000-00-00 00:00:00'),
(50, 33, 2, 102, '', 'aq', 0, 0, 1, 1, 0, 0.06, 1.06, 0, 0, 0, 0, 16, '2014-07-14 03:42:56', 16, '2014-07-14 04:13:43');

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

--
