-- Table structure for table `comp_location_transfer`
--

CREATE TABLE `comp_location_transfer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL,
  `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;

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


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

CREATE TABLE `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;

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


--
-- Table structure for table `comp_opening_balance`
--

CREATE TABLE `comp_opening_balance` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `year` int(11) NOT NULL,
  `debit` double NOT NULL,
  `credit` double NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `createdBy` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`),
  KEY `accountID` (`accountID`),
  KEY `year` (`year`),
  KEY `debit` (`debit`),
  KEY `credit` (`credit`)
) ENGINE=InnoDB AUTO_INCREMENT=559 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_opening_balance`
--

INSERT INTO `comp_opening_balance` VALUES (1,3,1,2016,0,0,'2016-07-21 08:46:24',75),(2,3,2,2016,0,0,'2016-07-21 08:46:24',75),(3,3,3,2016,29210,0,'2016-07-21 08:46:24',75),(4,3,4,2016,484943805.49,0,'2016-07-21 08:46:24',75),(5,3,5,2016,0,0,'2016-07-21 08:46:24',75),(6,3,6,2016,305000,0,'2016-07-21 08:46:24',75),(7,3,7,2016,0,0,'2016-07-21 08:46:24',75),(8,3,8,2016,280000,0,'2016-07-21 08:46:24',75),(9,3,9,2016,0,0,'2016-07-21 08:46:24',75),(10,3,10,2016,0,0,'2016-07-21 08:46:24',75),(11,3,11,2016,0,29210,'2016-07-21 08:46:24',75),(12,3,12,2016,0,479359331.94,'2016-07-21 08:46:24',75),(13,3,13,2016,0,0,'2016-07-21 08:46:24',75),(14,3,14,2016,0,305000,'2016-07-21 08:46:24',75),(15,3,15,2016,0,0,'2016-07-21 08:46:24',75),(16,3,16,2016,0,227500,'2016-07-21 08:46:24',75),(17,3,17,2016,0,0,'2016-07-21 08:46:24',75),(18,3,18,2016,0,0,'2016-07-21 08:46:24',75),(19,3,19,2016,0,0,'2016-07-21 08:46:24',75),(20,3,20,2016,0,0,'2016-07-21 08:46:24',75),(21,3,21,2016,0,0,'2016-07-21 08:46:24',75),(22,3,22,2016,0,0,'2016-07-21 08:46:24',75),(23,3,23,2016,0,0,'2016-07-21 08:46:24',75),(24,3,24,2016,0,0,'2016-07-21 08:46:24',75),(25,3,25,2016,0,0,'2016-07-21 08:46:24',75),(26,3,26,2016,0,0,'2016-07-21 08:46:24',75),(27,3,27,2016,0,0,'2016-07-21 08:46:24',75),(28,3,28,2016,0,0,'2016-07-21 08:46:24',75),(29,3,29,2016,0,0,'2016-07-21 08:46:24',75),(30,3,30,2016,0,0,'2016-07-21 08:46:24',75),(31,3,31,2016,0,0,'2016-07-21 08:46:24',75),(32,3,32,2016,0,0,'2016-07-21 08:46:24',75),(33,3,33,2016,0,0,'2016-07-21 08:46:24',75),(34,3,34,2016,0,0,'2016-07-21 08:46:24',75),(35,3,35,2016,0,0,'2016-07-21 08:46:24',75),(36,3,36,2016,0,0,'2016-07-21 08:46:24',75),(37,3,37,2016,0,0,'2016-07-21 08:46:24',75),(38,3,38,2016,0,0,'2016-07-21 08:46:24',75),(39,3,39,2016,0,0,'2016-07-21 08:46:24',75),(40,3,40,2016,0,0,'2016-07-21 08:46:24',75),(41,3,41,2016,0,0,'2016-07-21 08:46:24',75),(42,3,42,2016,0,0,'2016-07-21 08:46:24',75),(43,3,43,2016,0,0,'2016-07-21 08:46:24',75),(44,3,44,2016,0,0,'2016-07-21 08:46:24',75),(45,3,45,2016,0,0,'2016-07-21 08:46:24',75),(46,3,46,2016,0,0,'2016-07-21 08:46:24',75),(47,3,47,2016,0,0,'2016-07-21 08:46:24',75),(48,3,48,2016,0,0,'2016-07-21 08:46:24',75),(49,3,49,2016,0,0,'2016-07-21 08:46:24',75),(50,3,50,2016,1456831.64,0,'2016-07-21 08:46:24',75),(51,3,51,2016,0,0,'2016-07-21 08:46:24',75),(52,3,52,2016,0,0,'2016-07-21 08:46:24',75),(53,3,53,2016,0,0,'2016-07-21 08:46:24',75),(54,3,54,2016,0,0,'2016-07-21 08:46:24',75),(55,3,55,2016,0,0,'2016-07-21 08:46:24',75),(56,3,56,2016,2905350.17,0,'2016-07-21 08:46:24',75),(57,3,57,2016,0,0,'2016-07-21 08:46:24',75),(58,3,58,2016,0,0,'2016-07-21 08:46:24',75),(59,3,59,2016,0,0,'2016-07-21 08:46:24',75),(60,3,60,2016,0,0,'2016-07-21 08:46:24',75),(61,3,61,2016,0,0,'2016-07-21 08:46:24',75),(62,3,62,2016,0,0,'2016-07-21 08:46:24',75),(63,3,63,2016,0,0,'2016-07-21 08:46:24',75),(64,3,64,2016,0,0,'2016-07-21 08:46:24',75),(65,3,65,2016,0,0,'2016-07-21 08:46:24',75),(66,3,66,2016,0,0,'2016-07-21 08:46:24',75),(67,3,67,2016,0,0,'2016-07-21 08:46:24',75),(68,3,68,2016,0,0,'2016-07-21 08:46:24',75),(69,3,69,2016,0,0,'2016-07-21 08:46:24',75),(70,3,70,2016,437825,0,'2016-07-21 08:46:24',75),(71,3,71,2016,0,0,'2016-07-21 08:46:24',75),(72,3,72,2016,0,0,'2016-07-21 08:46:24',75),(73,3,73,2016,0,0,'2016-07-21 08:46:24',75),(74,3,74,2016,0,0,'2016-07-21 08:46:24',75),(75,3,75,2016,0,0,'2016-07-21 08:46:24',75),(76,3,76,2016,0,0,'2016-07-21 08:46:24',75),(77,3,77,2016,0,0,'2016-07-21 08:46:24',75),(78,3,78,2016,0,0,'2016-07-21 08:46:24',75),(79,3,79,2016,1032268.66,0,'2016-07-21 08:46:24',75),(80,3,80,2016,0,0,'2016-07-21 08:46:24',75),(81,3,81,2016,0,0,'2016-07-21 08:46:24',75),(82,3,82,2016,0,0,'2016-07-21 08:46:24',75),(83,3,83,2016,0,0,'2016-07-21 08:46:24',75),(84,3,84,2016,0,0,'2016-07-21 08:46:24',75),(85,3,85,2016,0,0,'2016-07-21 08:46:24',75),(86,3,86,2016,0,0,'2016-07-21 08:46:24',75),(87,3,87,2016,0,0,'2016-07-21 08:46:24',75),(88,3,88,2016,0,0,'2016-07-21 08:46:24',75),(89,3,89,2016,0,0,'2016-07-21 08:46:24',75),(90,3,90,2016,0,0,'2016-07-21 08:46:24',75),(91,3,91,2016,0,0,'2016-07-21 08:46:24',75),(92,3,92,2016,0,0,'2016-07-21 08:46:24',75),(93,3,93,2016,0,0,'2016-07-21 08:46:24',75),(94,3,94,2016,0,0,'2016-07-21 08:46:24',75),(95,3,95,2016,43171.5,0,'2016-07-21 08:46:24',75),(96,3,96,2016,0,0,'2016-07-21 08:46:24',75),(97,3,97,2016,0,0,'2016-07-21 08:46:24',75),(98,3,98,2016,0,0,'2016-07-21 08:46:24',75),(99,3,99,2016,0,0,'2016-07-21 08:46:24',75),(100,3,100,2016,0,0,'2016-07-21 08:46:24',75),(101,3,101,2016,0,0,'2016-07-21 08:46:24',75),(102,3,102,2016,0,0,'2016-07-21 08:46:24',75),(103,3,103,2016,0,0,'2016-07-21 08:46:24',75),(104,3,104,2016,0,0,'2016-07-21 08:46:24',75),(105,3,105,2016,0,0,'2016-07-21 08:46:24',75),(106,3,106,2016,0,0,'2016-07-21 08:46:24',75),(107,3,107,2016,0,0,'2016-07-21 08:46:24',75),(108,3,108,2016,0,0,'2016-07-21 08:46:24',75),(109,3,109,2016,0,0,'2016-07-21 08:46:24',75),(110,3,110,2016,0,0,'2016-07-21 08:46:24',75),(111,3,111,2016,0,0,'2016-07-21 08:46:24',75),(112,3,112,2016,0,0,'2016-07-21 08:46:24',75),(113,3,113,2016,0,0,'2016-07-21 08:46:24',75),(114,3,114,2016,31031.49,0,'2016-07-21 08:46:24',75),(115,3,115,2016,0,0,'2016-07-21 08:46:24',75),(116,3,116,2016,0,0,'2016-07-21 08:46:24',75),(117,3,117,2016,0,0,'2016-07-21 08:46:24',75),(118,3,118,2016,0,0,'2016-07-21 08:46:24',75),(119,3,119,2016,0,0,'2016-07-21 08:46:24',75),(120,3,120,2016,0,0,'2016-07-21 08:46:24',75),(121,3,121,2016,0,0,'2016-07-21 08:46:24',75),(122,3,122,2016,0,0,'2016-07-21 08:46:24',75),(123,3,123,2016,0,0,'2016-07-21 08:46:24',75),(124,3,124,2016,0,0,'2016-07-21 08:46:24',75),(125,3,125,2016,0,0,'2016-07-21 08:46:24',75),(126,3,126,2016,0,0,'2016-07-21 08:46:24',75),(127,3,127,2016,0,0,'2016-07-21 08:46:24',75),(128,3,128,2016,0,0,'2016-07-21 08:46:24',75),(129,3,129,2016,0,0,'2016-07-21 08:46:24',75),(130,3,130,2016,0,0,'2016-07-21 08:46:24',75),(131,3,131,2016,0,0,'2016-07-21 08:46:24',75),(132,3,132,2016,0,0,'2016-07-21 08:46:24',75),(133,3,133,2016,0,0,'2016-07-21 08:46:24',75),(134,3,134,2016,0,0,'2016-07-21 08:46:24',75),(135,3,135,2016,0,0,'2016-07-21 08:46:24',75),(136,3,136,2016,0,0,'2016-07-21 08:46:24',75),(137,3,137,2016,4226243.47,0,'2016-07-21 08:46:24',75),(138,3,138,2016,0,0,'2016-07-21 08:46:24',75),(139,3,139,2016,0,0,'2016-07-21 08:46:24',75),(140,3,140,2016,0,0,'2016-07-21 08:46:24',75),(141,3,141,2016,0,0,'2016-07-21 08:46:24',75),(142,3,142,2016,0,0,'2016-07-21 08:46:24',75),(143,3,143,2016,0,15000000,'2016-07-21 08:46:24',75),(144,3,144,2016,0,0,'2016-07-21 08:46:24',75),(145,3,145,2016,0,0,'2016-07-21 08:46:24',75),(146,3,146,2016,19241422.58,0,'2016-07-21 08:46:24',75),(147,3,147,2016,0,138967,'2016-07-21 08:46:24',75),(148,3,148,2016,0,0,'2016-07-21 08:46:24',75),(149,3,149,2016,0,0,'2016-07-21 08:46:24',75),(150,3,150,2016,0,0,'2016-07-21 08:46:24',75),(151,3,151,2016,0,0,'2016-07-21 08:46:24',75),(152,3,152,2016,0,0,'2016-07-21 08:46:24',75),(153,3,153,2016,0,0,'2016-07-21 08:46:24',75),(154,3,154,2016,0,0,'2016-07-21 08:46:24',75),(155,3,155,2016,0,0,'2016-07-21 08:46:24',75),(156,3,156,2016,0,0,'2016-07-21 08:46:24',75),(157,3,157,2016,0,0,'2016-07-21 08:46:24',75),(158,3,158,2016,0,0,'2016-07-21 08:46:24',75),(159,3,159,2016,0,0,'2016-07-21 08:46:24',75),(160,3,160,2016,0,0,'2016-07-21 08:46:24',75),(161,3,161,2016,0,0,'2016-07-21 08:46:24',75),(162,3,162,2016,0,0,'2016-07-21 08:46:24',75),(163,3,163,2016,0,0,'2016-07-21 08:46:24',75),(164,3,164,2016,0,0,'2016-07-21 08:46:24',75),(165,3,165,2016,0,0,'2016-07-21 08:46:24',75),(166,3,166,2016,0,0,'2016-07-21 08:46:24',75),(167,3,167,2016,0,0,'2016-07-21 08:46:24',75),(168,3,168,2016,0,0,'2016-07-21 08:46:24',75),(169,3,169,2016,0,0,'2016-07-21 08:46:24',75),(170,3,170,2016,0,0,'2016-07-21 08:46:24',75),(171,3,171,2016,0,0,'2016-07-21 08:46:24',75),(172,3,172,2016,0,0,'2016-07-21 08:46:24',75),(173,3,173,2016,0,0,'2016-07-21 08:46:24',75),(174,3,174,2016,0,0,'2016-07-21 08:46:24',75),(175,3,175,2016,0,0,'2016-07-21 08:46:24',75),(176,3,176,2016,0,0,'2016-07-21 08:46:24',75),(177,3,177,2016,0,0,'2016-07-21 08:46:24',75),(178,3,178,2016,0,0,'2016-07-21 08:46:24',75),(179,3,179,2016,0,0,'2016-07-21 08:46:24',75),(180,3,180,2016,0,0,'2016-07-21 08:46:24',75),(181,3,181,2016,0,0,'2016-07-21 08:46:24',75),(182,3,182,2016,0,0,'2016-07-21 08:46:24',75),(183,3,183,2016,0,0,'2016-07-21 08:46:24',75),(184,3,184,2016,0,0,'2016-07-21 08:46:24',75),(185,3,185,2016,0,0,'2016-07-21 08:46:24',75),(186,3,186,2016,0,1330272.37,'2016-07-21 08:46:24',75),(187,3,187,2016,0,0,'2016-07-21 08:46:24',75),(188,3,188,2016,0,0,'2016-07-21 08:46:24',75),(189,3,189,2016,0,0,'2016-07-21 08:46:24',75),(190,3,190,2016,0,0,'2016-07-21 08:46:24',75),(191,3,191,2016,0,0,'2016-07-21 08:46:24',75),(192,3,192,2016,0,0,'2016-07-21 08:46:24',75),(193,3,193,2016,0,0,'2016-07-21 08:46:24',75),(194,3,194,2016,0,0,'2016-07-21 08:46:24',75),(195,3,195,2016,0,0,'2016-07-21 08:46:24',75),(196,3,196,2016,0,0,'2016-07-21 08:46:24',75),(197,3,197,2016,0,0,'2016-07-21 08:46:24',75),(198,3,198,2016,0,0,'2016-07-21 08:46:24',75),(199,3,199,2016,0,0,'2016-07-21 08:46:24',75),(200,3,200,2016,0,0,'2016-07-21 08:46:24',75),(201,3,201,2016,0,0,'2016-07-21 08:46:24',75),(202,3,202,2016,0,0,'2016-07-21 08:46:24',75),(203,3,203,2016,0,0,'2016-07-21 08:46:24',75),(204,3,204,2016,0,0,'2016-07-21 08:46:24',75),(205,3,205,2016,0,0,'2016-07-21 08:46:24',75),(206,3,206,2016,0,0,'2016-07-21 08:46:24',75),(207,3,207,2016,0,0,'2016-07-21 08:46:24',75),(208,3,208,2016,0,0,'2016-07-21 08:46:24',75),(209,3,209,2016,0,0,'2016-07-21 08:46:24',75),(210,3,210,2016,0,0,'2016-07-21 08:46:24',75),(211,3,211,2016,0,0,'2016-07-21 08:46:24',75),(212,3,212,2016,0,0,'2016-07-21 08:46:24',75),(213,3,213,2016,0,0,'2016-07-21 08:46:24',75),(214,3,214,2016,0,0,'2016-07-21 08:46:24',75),(215,3,215,2016,0,0,'2016-07-21 08:46:24',75),(216,3,216,2016,0,0,'2016-07-21 08:46:24',75),(217,3,217,2016,0,0,'2016-07-21 08:46:24',75),(218,3,218,2016,0,0,'2016-07-21 08:46:24',75),(219,3,219,2016,0,672530.99,'2016-07-21 08:46:24',75),(220,3,220,2016,0,0,'2016-07-21 08:46:24',75),(221,3,221,2016,0,0,'2016-07-21 08:46:24',75),(222,3,222,2016,0,0,'2016-07-21 08:46:24',75),(223,3,223,2016,0,0,'2016-07-21 08:46:24',75),(224,3,224,2016,0,0,'2016-07-21 08:46:24',75),(225,3,225,2016,0,0,'2016-07-21 08:46:24',75),(226,3,226,2016,0,745923,'2016-07-21 08:46:24',75),(227,3,227,2016,0,0,'2016-07-21 08:46:24',75),(228,3,228,2016,0,0,'2016-07-21 08:46:24',75),(229,3,229,2016,0,0,'2016-07-21 08:46:24',75),(230,3,230,2016,0,0,'2016-07-21 08:46:24',75),(231,3,231,2016,0,0,'2016-07-21 08:46:24',75),(232,3,232,2016,0,0,'2016-07-21 08:46:24',75),(233,3,233,2016,112893.33,0,'2016-07-21 08:46:24',75),(234,3,234,2016,0,0,'2016-07-21 08:46:24',75),(235,3,235,2016,0,0,'2016-07-21 08:46:24',75),(236,3,236,2016,0,0,'2016-07-21 08:46:24',75),(237,3,237,2016,0,0,'2016-07-21 08:46:24',75),(238,3,238,2016,0,0,'2016-07-21 08:46:24',75),(239,3,239,2016,0,0,'2016-07-21 08:46:24',75),(240,3,240,2016,0,0,'2016-07-21 08:46:24',75),(241,3,241,2016,0,0,'2016-07-21 08:46:24',75),(242,3,242,2016,0,0,'2016-07-21 08:46:24',75),(243,3,243,2016,0,0,'2016-07-21 08:46:24',75),(244,3,244,2016,0,0,'2016-07-21 08:46:24',75),(245,3,245,2016,0,0,'2016-07-21 08:46:24',75),(246,3,246,2016,0,0,'2016-07-21 08:46:24',75),(247,3,247,2016,0,0,'2016-07-21 08:46:24',75),(248,3,248,2016,0,0,'2016-07-21 08:46:24',75),(249,3,249,2016,0,0,'2016-07-21 08:46:24',75),(250,3,250,2016,0,0,'2016-07-21 08:46:24',75),(251,3,251,2016,0,0,'2016-07-21 08:46:24',75),(252,3,252,2016,0,0,'2016-07-21 08:46:24',75),(253,3,253,2016,0,0,'2016-07-21 08:46:24',75),(254,3,254,2016,0,0,'2016-07-21 08:46:24',75),(255,3,255,2016,0,0,'2016-07-21 08:46:24',75),(256,3,256,2016,0,0,'2016-07-21 08:46:24',75),(257,3,257,2016,0,0,'2016-07-21 08:46:24',75),(258,3,258,2016,0,0,'2016-07-21 08:46:24',75),(259,3,259,2016,0,0,'2016-07-21 08:46:24',75),(260,3,260,2016,0,0,'2016-07-21 08:46:24',75),(261,3,261,2016,0,0,'2016-07-21 08:46:24',75),(262,3,262,2016,0,0,'2016-07-21 08:46:24',75),(263,3,263,2016,0,0,'2016-07-21 08:46:24',75),(264,3,264,2016,0,0,'2016-07-21 08:46:24',75),(265,3,265,2016,0,0,'2016-07-21 08:46:24',75),(266,3,266,2016,0,0,'2016-07-21 08:46:24',75),(267,3,267,2016,0,0,'2016-07-21 08:46:24',75),(268,3,268,2016,0,0,'2016-07-21 08:46:24',75),(269,3,269,2016,0,0,'2016-07-21 08:46:24',75),(270,3,270,2016,0,0,'2016-07-21 08:46:24',75),(271,3,271,2016,0,0,'2016-07-21 08:46:24',75),(272,3,272,2016,0,0,'2016-07-21 08:46:24',75),(273,3,273,2016,0,0,'2016-07-21 08:46:24',75),(274,3,274,2016,0,0,'2016-07-21 08:46:24',75),(275,3,275,2016,0,0,'2016-07-21 08:46:24',75),(276,3,276,2016,0,0,'2016-07-21 08:46:24',75),(277,3,277,2016,0,0,'2016-07-21 08:46:24',75),(278,3,278,2016,0,0,'2016-07-21 08:46:24',75),(279,3,279,2016,0,0,'2016-07-21 08:46:24',75),(280,3,280,2016,0,0,'2016-07-21 08:46:24',75),(281,3,281,2016,0,0,'2016-07-21 08:46:24',75),(282,3,282,2016,0,0,'2016-07-21 08:46:24',75),(283,3,283,2016,0,0,'2016-07-21 08:46:24',75),(284,3,284,2016,0,0,'2016-07-21 08:46:24',75),(285,3,285,2016,0,0,'2016-07-21 08:46:24',75),(286,3,286,2016,0,0,'2016-07-21 08:46:24',75),(287,3,287,2016,0,0,'2016-07-21 08:46:24',75),(288,3,288,2016,0,0,'2016-07-21 08:46:24',75),(289,3,289,2016,0,0,'2016-07-21 08:46:24',75),(290,3,290,2016,0,0,'2016-07-21 08:46:24',75),(291,3,291,2016,0,0,'2016-07-21 08:46:24',75),(292,3,292,2016,0,0,'2016-07-21 08:46:24',75),(293,3,293,2016,0,0,'2016-07-21 08:46:24',75),(294,3,294,2016,0,0,'2016-07-21 08:46:24',75),(295,3,295,2016,0,0,'2016-07-21 08:46:24',75),(296,3,296,2016,0,0,'2016-07-21 08:46:24',75),(297,3,297,2016,0,0,'2016-07-21 08:46:24',75),(298,3,298,2016,0,0,'2016-07-21 08:46:24',75),(299,3,299,2016,0,0,'2016-07-21 08:46:24',75),(300,3,300,2016,0,3764732.34,'2016-07-21 08:46:24',75),(301,3,301,2016,0,10475642.8,'2016-07-21 08:46:24',75),(302,3,302,2016,7094975.61,0,'2016-07-21 08:46:24',75),(303,3,303,2016,0,0,'2016-07-21 08:46:24',75),(304,3,304,2016,0,0,'2016-07-21 08:46:24',75),(305,3,305,2016,0,301603.47,'2016-07-21 08:46:24',75),(306,3,306,2016,0,0,'2016-07-21 08:46:24',75),(307,3,307,2016,0,0,'2016-07-21 08:46:24',75),(308,3,308,2016,0,0,'2016-07-21 08:46:24',75),(309,3,309,2016,0,0,'2016-07-21 08:46:24',75),(310,3,310,2016,0,0,'2016-07-21 08:46:24',75),(311,3,311,2016,0,0,'2016-07-21 08:46:24',75),(312,3,312,2016,0,0,'2016-07-21 08:46:24',75),(313,3,313,2016,0,0,'2016-07-21 08:46:24',75),(314,3,314,2016,0,2641.51,'2016-07-21 08:46:24',75),(315,3,315,2016,0,0,'2016-07-21 08:46:24',75),(316,3,316,2016,0,3752.29,'2016-07-21 08:46:24',75),(317,3,317,2016,0,0,'2016-07-21 08:46:24',75),(318,3,318,2016,5316000,0,'2016-07-21 08:46:24',75),(319,3,319,2016,0,19500000,'2016-07-21 08:46:24',75),(320,3,320,2016,0,0,'2016-07-21 08:46:24',75),(321,3,321,2016,0,4260.7,'2016-07-21 08:46:24',75),(322,3,322,2016,0,0,'2016-07-21 08:46:24',75),(323,3,323,2016,0,0,'2016-07-21 08:46:24',75),(324,3,324,2016,0,0,'2016-07-21 08:46:24',75),(325,3,325,2016,0,0,'2016-07-21 08:46:24',75),(326,3,326,2016,0,0,'2016-07-21 08:46:24',75),(327,3,327,2016,0,0,'2016-07-21 08:46:24',75),(328,3,328,2016,0,0,'2016-07-21 08:46:24',75),(329,3,329,2016,0,0,'2016-07-21 08:46:24',75),(330,3,330,2016,0,0,'2016-07-21 08:46:24',75),(331,3,331,2016,0,0,'2016-07-21 08:46:24',75),(332,3,332,2016,0,0,'2016-07-21 08:46:24',75),(333,3,333,2016,906.14,0,'2016-07-21 08:46:24',75),(334,3,334,2016,0,0,'2016-07-21 08:46:24',75),(335,3,335,2016,0,0,'2016-07-21 08:46:24',75),(336,3,336,2016,0,0,'2016-07-21 08:46:24',75),(337,3,337,2016,0,0,'2016-07-21 08:46:24',75),(338,3,338,2016,0,0,'2016-07-21 08:46:24',75),(339,3,339,2016,0,0,'2016-07-21 08:46:24',75),(340,3,340,2016,0,0,'2016-07-21 08:46:24',75),(341,3,341,2016,0,0,'2016-07-21 08:46:24',75),(342,3,342,2016,0,0,'2016-07-21 08:46:24',75),(343,3,343,2016,0,0,'2016-07-21 08:46:24',75),(344,3,344,2016,0,0,'2016-07-21 08:46:24',75),(345,3,345,2016,71599,0,'2016-07-21 08:46:24',75),(346,3,346,2016,0,0,'2016-07-21 08:46:24',75),(347,3,347,2016,443929.39,0,'2016-07-21 08:46:24',75),(348,3,348,2016,0,0,'2016-07-21 08:46:24',75),(349,3,349,2016,15500,0,'2016-07-21 08:46:24',75),(350,3,350,2016,0,0,'2016-07-21 08:46:24',75),(351,3,351,2016,0,0,'2016-07-21 08:46:24',75),(352,3,352,2016,0,0,'2016-07-21 08:46:24',75),(353,3,353,2016,0,0,'2016-07-21 08:46:24',75),(354,3,354,2016,452795.15,0,'2016-07-21 08:46:24',75),(355,3,355,2016,0,0,'2016-07-21 08:46:24',75),(356,3,356,2016,0,0,'2016-07-21 08:46:24',75),(357,3,357,2016,0,0,'2016-07-21 08:46:24',75),(358,3,358,2016,11250,0,'2016-07-21 08:46:24',75),(359,3,359,2016,0,0,'2016-07-21 08:46:24',75),(360,3,360,2016,0,0,'2016-07-21 08:46:24',75),(361,3,361,2016,0,0,'2016-07-21 08:46:24',75),(362,3,362,2016,0,0,'2016-07-21 08:46:24',75),(363,3,363,2016,0,0,'2016-07-21 08:46:24',75),(364,3,364,2016,0,0,'2016-07-21 08:46:24',75),(365,3,365,2016,0,0,'2016-07-21 08:46:24',75),(366,3,366,2016,0,0,'2016-07-21 08:46:24',75),(367,3,367,2016,0,0,'2016-07-21 08:46:24',75),(368,3,368,2016,0,0,'2016-07-21 08:46:24',75),(369,3,369,2016,0,0,'2016-07-21 08:46:24',75),(370,3,370,2016,0,0,'2016-07-21 08:46:24',75),(371,3,371,2016,0,0,'2016-07-21 08:46:24',75),(372,3,372,2016,46664.04,0,'2016-07-21 08:46:24',75),(373,3,373,2016,641250,0,'2016-07-21 08:46:24',75),(374,3,374,2016,89762.52,0,'2016-07-21 08:46:24',75),(375,3,375,2016,0,0,'2016-07-21 08:46:24',75),(376,3,376,2016,0,0,'2016-07-21 08:46:24',75),(377,3,377,2016,0,0,'2016-07-21 08:46:24',75),(378,3,378,2016,915872.7,0,'2016-07-21 08:46:24',75),(379,3,379,2016,0,0,'2016-07-21 08:46:24',75),(380,3,380,2016,0,0,'2016-07-21 08:46:24',75),(381,3,381,2016,921.15,0,'2016-07-21 08:46:24',75),(382,3,382,2016,0,0,'2016-07-21 08:46:24',75),(383,3,383,2016,4230,0,'2016-07-21 08:46:24',75),(384,3,384,2016,0,0,'2016-07-21 08:46:24',75),(385,3,385,2016,3961.1,0,'2016-07-21 08:46:24',75),(386,3,386,2016,0,0,'2016-07-21 08:46:24',75),(387,3,387,2016,0,0,'2016-07-21 08:46:24',75),(388,3,388,2016,0,0,'2016-07-21 08:46:24',75),(389,3,389,2016,174.08,0,'2016-07-21 08:46:24',75),(390,3,390,2016,0,0,'2016-07-21 08:46:24',75),(391,3,391,2016,0,0,'2016-07-21 08:46:24',75),(392,3,392,2016,0,0,'2016-07-21 08:46:24',75),(393,3,393,2016,0,0,'2016-07-21 08:46:24',75),(394,3,394,2016,0,0,'2016-07-21 08:46:24',75),(395,3,395,2016,0,0,'2016-07-21 08:46:24',75),(396,3,396,2016,0,0,'2016-07-21 08:46:24',75),(397,3,397,2016,0,0,'2016-07-21 08:46:24',75),(398,3,398,2016,0,0,'2016-07-21 08:46:24',75),(399,3,399,2016,0,0,'2016-07-21 08:46:24',75),(400,3,400,2016,0,0,'2016-07-21 08:46:24',75),(401,3,401,2016,0,0,'2016-07-21 08:46:24',75),(402,3,402,2016,0,0,'2016-07-21 08:46:24',75),(403,3,403,2016,0,0,'2016-07-21 08:46:24',75),(404,3,404,2016,0,0,'2016-07-21 08:46:24',75),(405,3,405,2016,0,0,'2016-07-21 08:46:24',75),(406,3,406,2016,0,0,'2016-07-21 08:46:24',75),(407,3,407,2016,0,0,'2016-07-21 08:46:24',75),(408,3,408,2016,0,0,'2016-07-21 08:46:24',75),(409,3,409,2016,0,0,'2016-07-21 08:46:24',75),(410,3,410,2016,0,0,'2016-07-21 08:46:24',75),(411,3,411,2016,0,0,'2016-07-21 08:46:24',75),(412,3,412,2016,0,0,'2016-07-21 08:46:24',75),(413,3,413,2016,0,0,'2016-07-21 08:46:24',75),(414,3,414,2016,0,0,'2016-07-21 08:46:24',75),(415,3,415,2016,0,0,'2016-07-21 08:46:24',75),(416,3,416,2016,0,0,'2016-07-21 08:46:24',75),(417,3,417,2016,0,0,'2016-07-21 08:46:24',75),(418,3,418,2016,0,0,'2016-07-21 08:46:24',75),(419,3,419,2016,0,0,'2016-07-21 08:46:24',75),(420,3,420,2016,0,0,'2016-07-21 08:46:24',75),(421,3,421,2016,0,0,'2016-07-21 08:46:24',75),(422,3,422,2016,0,0,'2016-07-21 08:46:24',75),(423,3,423,2016,0,0,'2016-07-21 08:46:24',75),(424,3,424,2016,0,0,'2016-07-21 08:46:24',75),(425,3,425,2016,0,0,'2016-07-21 08:46:24',75),(426,3,426,2016,0,0,'2016-07-21 08:46:24',75),(427,3,427,2016,0,0,'2016-07-21 08:46:24',75),(428,3,428,2016,0,11684.94,'2016-07-21 08:46:24',75),(429,3,429,2016,0,0,'2016-07-21 08:46:24',75),(430,3,430,2016,745923,0,'2016-07-21 08:46:24',75),(431,3,431,2016,164377,0,'2016-07-21 08:46:24',75),(432,3,432,2016,0,0,'2016-07-21 08:46:24',75),(433,3,433,2016,0,0,'2016-07-21 08:46:24',75),(434,3,434,2016,0,0,'2016-07-21 08:46:24',75),(435,3,435,2016,0,0,'2016-07-21 08:46:24',75),(436,3,436,2016,0,0,'2016-07-21 08:46:24',75),(437,3,437,2016,0,0,'2016-07-21 08:46:24',75),(438,3,438,2016,0,0,'2016-07-21 08:46:24',75),(439,3,439,2016,0,0,'2016-07-21 08:46:24',75),(440,3,440,2016,0,0,'2016-07-21 08:46:24',75),(441,3,441,2016,0,0,'2016-07-21 08:46:24',75),(442,3,442,2016,0,0,'2016-07-21 08:46:24',75),(443,3,443,2016,0,0,'2016-07-21 08:46:24',75),(444,3,444,2016,0,0,'2016-07-21 08:46:24',75),(445,3,445,2016,0,0,'2016-07-21 08:46:24',75),(446,3,446,2016,0,0,'2016-07-21 08:46:24',75),(447,3,447,2016,0,0,'2016-07-21 08:46:24',75),(448,3,448,2016,0,0,'2016-07-21 08:46:24',75),(449,3,449,2016,0,0,'2016-07-21 08:46:24',75),(450,3,450,2016,0,0,'2016-07-21 08:46:24',75),(451,3,451,2016,0,0,'2016-07-21 08:46:24',75),(452,3,452,2016,0,0,'2016-07-21 08:46:24',75),(453,3,453,2016,0,0,'2016-07-21 08:46:24',75),(454,3,454,2016,0,0,'2016-07-21 08:46:24',75),(455,3,455,2016,0,0,'2016-07-21 08:46:24',75),(456,3,456,2016,0,0,'2016-07-21 08:46:24',75),(457,3,457,2016,0,0,'2016-07-21 08:46:24',75),(458,3,458,2016,0,0,'2016-07-21 08:46:24',75),(459,3,459,2016,0,0,'2016-07-21 08:46:24',75),(460,3,460,2016,0,0,'2016-07-21 08:46:24',75),(461,3,461,2016,0,0,'2016-07-21 08:46:24',75),(462,3,462,2016,461000,0,'2016-07-21 08:46:24',75),(463,3,463,2016,260257,0,'2016-07-21 08:46:24',75),(464,3,464,2016,40484,0,'2016-07-21 08:46:24',75),(465,3,465,2016,0,0,'2016-07-21 08:46:24',75),(466,3,466,2016,0,0,'2016-07-21 08:46:24',75),(467,3,467,2016,4572.14,0,'2016-07-21 08:46:24',75),(468,3,468,2016,606,0,'2016-07-21 08:46:24',75),(469,3,469,2016,40990,0,'2016-07-21 08:46:24',75),(470,3,470,2016,0,0,'2016-07-21 08:46:24',75),(471,3,471,2016,0,0,'2016-07-21 08:46:24',75),(472,3,472,2016,0,0,'2016-07-21 08:46:24',75),(473,3,473,2016,0,0,'2016-07-21 08:46:24',75),(474,3,474,2016,0,0,'2016-07-21 08:46:24',75),(475,3,475,2016,0,0,'2016-07-21 08:46:24',75),(476,3,476,2016,0,0,'2016-07-21 08:46:24',75),(477,3,477,2016,0,0,'2016-07-21 08:46:24',75),(478,3,478,2016,0,0,'2016-07-21 08:46:24',75),(479,3,479,2016,0,0,'2016-07-21 08:46:24',75),(480,3,480,2016,0,0,'2016-07-21 08:46:24',75),(481,3,481,2016,0,0,'2016-07-21 08:46:24',75),(482,3,482,2016,0,0,'2016-07-21 08:46:24',75),(483,3,483,2016,0,0,'2016-07-21 08:46:24',75),(484,3,484,2016,0,0,'2016-07-21 08:46:24',75),(485,3,485,2016,0,0,'2016-07-21 08:46:24',75),(486,3,486,2016,0,0,'2016-07-21 08:46:24',75),(487,3,487,2016,0,0,'2016-07-21 08:46:24',75),(488,3,488,2016,0,0,'2016-07-21 08:46:24',75),(489,3,489,2016,0,0,'2016-07-21 08:46:24',75),(490,3,490,2016,0,0,'2016-07-21 08:46:24',75),(491,3,491,2016,0,0,'2016-07-21 08:46:24',75),(492,3,492,2016,0,0,'2016-07-21 08:46:24',75),(493,3,493,2016,0,0,'2016-07-21 08:46:24',75),(494,3,494,2016,0,0,'2016-07-21 08:46:24',75),(495,3,495,2016,0,0,'2016-07-21 08:46:24',75),(496,3,497,2016,0,0,'2016-07-21 08:46:24',75),(497,3,498,2016,0,0,'2016-07-21 08:46:24',75),(498,3,499,2016,0,0,'2016-07-21 08:46:24',75),(499,3,500,2016,0,0,'2016-07-21 08:46:24',75),(500,3,501,2016,0,0,'2016-07-21 08:46:24',75),(501,3,502,2016,0,0,'2016-07-21 08:46:24',75),(502,3,503,2016,0,0,'2016-07-21 08:46:24',75),(503,3,504,2016,0,0,'2016-07-21 08:46:24',75),(504,3,505,2016,0,0,'2016-07-21 08:46:24',75),(505,3,506,2016,0,0,'2016-07-21 08:46:24',75),(506,3,507,2016,0,0,'2016-07-21 08:46:24',75),(507,3,508,2016,0,0,'2016-07-21 08:46:24',75),(508,3,509,2016,0,0,'2016-07-21 08:46:24',75),(509,3,510,2016,0,0,'2016-07-21 08:46:24',75),(510,3,511,2016,0,0,'2016-07-21 08:46:24',75),(511,3,512,2016,0,0,'2016-07-21 08:46:24',75),(512,3,513,2016,0,0,'2016-07-21 08:46:24',75),(513,3,514,2016,0,0,'2016-07-21 08:46:24',75),(514,3,515,2016,0,0,'2016-07-21 08:46:24',75),(515,3,516,2016,0,0,'2016-07-21 08:46:24',75),(516,3,517,2016,0,0,'2016-07-21 08:46:24',75),(517,3,518,2016,0,0,'2016-07-21 08:46:24',75),(518,3,519,2016,0,0,'2016-07-21 08:46:24',75),(519,3,520,2016,0,0,'2016-07-21 08:46:24',75),(520,3,521,2016,0,0,'2016-07-21 08:46:24',75),(521,3,522,2016,0,0,'2016-07-21 08:46:24',75),(522,3,523,2016,0,0,'2016-07-21 08:46:24',75),(523,3,524,2016,0,0,'2016-07-21 08:46:24',75),(524,3,525,2016,0,0,'2016-07-21 08:46:24',75),(525,3,526,2016,0,0,'2016-07-21 08:46:24',75),(526,3,527,2016,0,0,'2016-07-21 08:46:24',75),(527,3,528,2016,0,0,'2016-07-21 08:46:24',75),(528,3,529,2016,0,0,'2016-07-21 08:46:24',75),(529,3,530,2016,0,0,'2016-07-21 08:46:24',75),(530,3,531,2016,0,0,'2016-07-21 08:46:24',75),(531,3,532,2016,0,0,'2016-07-21 08:46:24',75),(532,3,533,2016,0,0,'2016-07-21 08:46:24',75),(533,3,534,2016,0,0,'2016-07-21 08:46:24',75),(534,3,535,2016,0,0,'2016-07-21 08:46:24',75),(535,3,536,2016,0,0,'2016-07-21 08:46:24',75),(536,3,537,2016,0,0,'2016-07-21 08:46:24',75),(537,3,538,2016,0,0,'2016-07-21 08:46:24',75),(538,3,539,2016,0,0,'2016-07-21 08:46:24',75),(539,3,540,2016,0,0,'2016-07-21 08:46:24',75),(540,3,541,2016,0,0,'2016-07-21 08:46:24',75),(541,3,542,2016,0,0,'2016-07-21 08:46:24',75),(542,3,543,2016,0,0,'2016-07-21 08:46:24',75),(543,3,544,2016,0,0,'2016-07-21 08:46:24',75),(544,3,545,2016,0,0,'2016-07-21 08:46:24',75),(545,3,546,2016,0,0,'2016-07-21 08:46:24',75),(546,3,547,2016,0,0,'2016-07-21 08:46:24',75),(547,3,548,2016,0,0,'2016-07-21 08:46:24',75),(548,3,549,2016,0,0,'2016-07-21 08:46:24',75),(549,3,550,2016,0,0,'2016-07-21 08:46:24',75),(550,3,551,2016,0,0,'2016-07-21 08:46:24',75),(551,3,552,2016,0,0,'2016-07-21 08:46:24',75),(552,3,553,2016,0,0,'2016-07-21 08:46:24',75),(553,3,554,2016,0,0,'2016-07-21 08:46:24',75),(554,3,555,2016,0,0,'2016-07-21 08:46:24',75),(555,3,556,2016,0,0,'2016-07-21 08:46:24',75),(556,3,557,2016,0,0,'2016-07-21 08:46:24',75),(557,3,558,2016,0,0,'2016-07-21 08:46:24',75),(558,3,559,2016,0,0,'2016-07-21 08:46:24',75);

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

CREATE TABLE `comp_payment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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,
  `bankReconcileID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`),
  KEY `supplierID` (`supplierID`),
  KEY `updateAble` (`updateAble`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment` VALUES (1,1,3,3,0,1330272.37,69,'810404',1,0,0,'PP20160824','2016-08-15',0,1,1,0,'',0,0,0,1330272.37,0,0,76,'2016-08-24 02:45:27',0,'2016-08-24 02:45:57',0,'0',0,'AP20160800000017',0),(2,2,3,3,0,1270744.03,69,'810405',1,0,0,'PP20160824','2016-08-24',0,1,1,0,'',0,0,0,1270744.03,0,0,76,'2016-08-24 03:49:27',0,'2016-08-24 03:50:10',0,'0',0,'AP20160800000018',0),(3,3,3,5,0,146770.14,69,'810406',1,0,0,'PP20160824','2016-08-24',0,1,1,0,'',0,0,0,146770.14,0,0,76,'2016-08-24 04:44:19',0,'2016-11-08 00:42:18',0,'0',0,'AP20160800000035',0),(4,4,3,6,0,64125,69,'810407',1,0,0,'PP20160824','2016-08-24',1,1,1,0,'',0,0,0,0,64125,0,76,'2016-08-24 05:55:05',0,'2016-11-08 02:51:09',1,'0',0,'',0),(5,5,3,2,0,265,69,'810410',1,0,0,'PP20160905','2016-09-05',0,1,1,0,'Payment made to En Khairul because he paid to NIOSH in advance for the training on 30.08.2016 and claim back to BAKIPC.',0,0,0,265,0,0,76,'2016-09-05 08:23:24',0,'2017-02-09 05:44:14',0,'0',0,'AP20160900000039',0),(6,6,3,4,0,999.8,69,'810411',1,0,0,'PP20160908','2016-09-08',0,1,1,0,'',0,0,0,999.8,0,0,76,'2016-09-08 04:35:48',0,'2016-12-17 06:13:10',0,'0',0,'AP20160900000037',0),(7,7,3,3,0,1199918.03,69,'810413',1,0,0,'PP20160927','2016-09-27',0,1,1,0,'',0,0,0,1199918.03,0,0,76,'2016-09-27 07:15:15',0,'2016-09-27 07:15:58',0,'0',0,'AP20160900000016',0),(8,8,3,3,0,1221859.84,69,'810416',1,0,0,'PP20161018','2016-10-19',0,1,1,0,'',0,0,0,1221859.84,0,0,76,'2016-10-18 04:12:34',0,'2016-10-18 04:16:46',0,'0',0,'AP20161000000001',0),(9,9,3,7,0,2363.8,69,'810417',2,0,0,'PP20161018','2016-10-18',0,1,1,0,'',0,0,0,2363.8,0,0,76,'2016-10-18 07:11:24',0,'2016-10-18 07:39:00',0,'0',0,'AP20161000000006',0),(10,10,3,8,0,11002.8,69,'810417',2,0,0,'PP20161018','2016-10-18',0,1,1,0,'',0,0,0,11002.8,0,0,76,'2016-10-18 07:12:48',0,'2016-10-18 07:39:01',0,'0',0,'AP20161000000007',0),(11,11,3,9,0,7971.2,69,'810417',2,0,0,'PP20161018','2016-10-18',0,1,1,0,'',0,0,0,7971.2,0,0,76,'2016-10-18 07:14:08',0,'2016-10-18 07:39:02',0,'0',0,'AP20161000000008',0),(12,12,3,3,0,2105.2,69,'810418',1,0,0,'PP20161018','2016-10-18',0,1,1,0,'',0,0,0,2105.2,0,0,76,'2016-10-18 07:38:36',0,'2016-10-18 09:58:30',0,'0',0,'AP20161000000011',0),(13,13,3,5,0,515973.34,69,'810419',1,0,0,'PP20161018','2016-10-18',0,1,1,0,'',0,0,0,0,515973.34,0,76,'2016-10-18 08:36:58',0,'2016-11-07 07:06:10',0,'0',0,'AP20161000000020',0),(14,14,3,3,0,1183216.83,69,'810458',1,0,0,'PP20161127','2016-11-27',0,1,1,0,'',0,0,0,1183216.83,0,0,76,'2016-11-27 06:41:41',0,'2016-11-27 06:59:17',0,'0',0,'AP20161100000010',0),(15,15,3,5,0,115337.3,69,'810459',1,0,0,'PP20161127','2016-11-27',0,1,1,0,'',0,0,0,115337.3,0,0,76,'2016-11-27 06:43:30',0,'2016-11-27 06:59:18',0,'0',0,'AP20161100000011',0),(16,16,3,5,0,116300.1,69,'844822',1,0,0,'PP20170101','2017-01-01',0,1,1,0,'',0,0,0,116300.1,0,0,76,'2017-01-01 03:56:25',0,'2017-01-01 03:58:30',0,'0',0,'AP20170100000001',0),(17,17,3,3,0,1212782.93,69,'844824',1,0,0,'PP20170101','2017-01-01',0,1,1,0,'',0,0,0,1212782.93,0,0,76,'2017-01-01 03:57:24',0,'2017-01-01 03:58:31',0,'0',0,'AP20170100000002',0),(18,18,3,3,0,4548.55,69,'844825',1,0,0,'PP20170101','2017-01-01',0,1,1,0,'',0,0,0,4548.55,0,0,76,'2017-01-01 03:58:11',0,'2017-01-01 03:58:32',0,'0',0,'AP20170100000003',0),(19,19,3,14,0,1113,69,'844842',1,0,0,'PP20170108','2017-01-08',0,1,1,0,'',0,0,0,1113,0,0,76,'2017-01-08 04:21:38',0,'2017-01-08 04:21:51',0,'0',0,'AP20170100000004',0),(20,20,3,15,0,9950,69,'844832',1,0,0,'PP20170108','2017-01-04',0,1,1,0,'',0,0,0,9950,0,0,76,'2017-01-08 06:31:14',0,'2017-01-08 06:31:22',0,'0',0,'AP20170100000009',0),(21,21,3,5,0,25588.6,69,'844845',1,0,0,'PP20170108','2017-01-08',0,1,1,0,'',0,0,0,25588.6,0,0,76,'2017-01-08 06:40:56',0,'2017-01-08 06:41:09',0,'0',0,'AP20170100000010',0),(22,22,3,15,0,2800,69,'844849',1,0,0,'PP20170114','2017-01-14',0,1,1,0,'',0,0,0,2800,0,0,76,'2017-01-14 08:26:31',0,'2017-01-14 09:12:46',0,'0',0,'AP20170100000020',0),(23,23,3,3,0,1242666.57,69,'844850',1,0,0,'PP20170114','2017-01-14',1,1,1,0,'',0,0,0,1242666.57,0,0,76,'2017-01-14 08:33:30',0,'2017-02-09 04:20:30',1,'0',0,'',0),(24,24,3,3,0,1242666.57,69,'170000001 RI 021',1,0,0,'PP20170209','2017-01-14',1,1,1,0,'',0,0,0,1242666.57,0,0,76,'2017-02-09 04:26:31',0,'2017-02-09 06:28:37',1,'0',0,'',0),(25,25,3,3,0,1204118.5,166,'1700004 RI 02154',1,0,0,'PP20170213','2017-02-13',0,1,1,0,'',0,0,0,1204118.5,0,0,76,'2017-02-13 05:19:02',0,'2017-02-13 05:19:15',0,'0',0,'AP20170200000008',0),(26,26,3,3,0,1316056.37,166,'O&M FEB 2017',1,0,0,'PP20170318','2017-03-27',0,1,1,0,'',0,0,0,1316056.37,0,0,76,'2017-03-18 04:01:15',0,'2017-03-18 04:03:20',0,'0',0,'AP20170300000007',0),(27,27,3,5,0,96761.3,69,'844883',1,0,0,'PP20170318','2017-03-18',0,1,1,0,'',0,0,0,96761.3,0,0,76,'2017-03-18 04:03:11',0,'2017-03-18 04:03:21',0,'0',0,'AP20170300000008',0),(28,28,3,3,0,1248604.51,166,'170000006 RI 021',1,0,0,'PP20170422','2017-04-22',0,1,1,0,'',0,0,0,1248604.51,0,0,76,'2017-04-22 03:46:30',0,'2017-04-22 03:49:20',0,'0',0,'AP20170400000003',0),(29,29,3,5,0,153353.3,69,'844890',1,0,0,'PP20170422','2017-04-22',0,1,1,0,'',0,0,0,153353.3,0,0,76,'2017-04-22 03:48:00',0,'2017-04-22 03:49:20',0,'0',0,'AP20170400000004',0),(30,30,3,3,0,1211767.8,166,'EFT',1,0,0,'PP20170518','2017-05-18',0,1,1,0,'',0,0,0,1211767.8,0,0,76,'2017-05-18 03:59:22',0,'2017-05-18 03:59:33',0,'0',0,'AP20170500000010',0),(31,31,3,5,0,123328.7,69,'844897',1,0,0,'PP20170518','2017-05-18',0,1,1,0,'',0,0,0,123328.7,0,0,76,'2017-05-18 04:02:18',0,'2017-05-18 04:02:33',0,'0',0,'AP20170500000011',0),(32,32,3,5,0,154494.6,69,'853603',1,0,0,'PP20170607','2017-06-07',0,1,1,0,'',0,0,0,154494.6,0,0,76,'2017-06-07 02:56:48',0,'2017-06-07 02:57:02',0,'0',0,'AP20170600000004',0),(33,33,3,3,0,1316447.59,166,'17000009 RI 0215',1,0,0,'PP20170611','2017-06-11',0,1,1,0,'',0,0,0,1316447.59,0,0,76,'2017-06-11 06:43:19',0,'2017-06-11 06:43:32',0,'0',0,'AP20170600000005',0),(34,34,3,3,0,1336031.97,69,'853615',1,0,0,'PP20170716','2017-07-16',0,1,1,0,'',0,0,0,1336031.97,0,0,76,'2017-07-16 03:33:24',0,'2017-07-16 03:39:59',0,'0',0,'AP20170700000004',0),(35,35,3,5,0,57469,69,'853616',1,0,0,'PP20170716','2017-07-16',0,1,1,0,'',0,0,0,57469,0,0,76,'2017-07-16 03:34:45',0,'2017-07-16 03:40:02',0,'0',0,'AP20170700000006',0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_cp_add_serialNo` BEFORE INSERT ON `comp_payment`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_payment 
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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,
  `debtRecoverID` int(11) NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` smallint(16) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment_detail` VALUES (1,2,1,1,1270744.03,1270744.03,0,1270744.03,0,76,'2016-08-24 03:49:27',0,'0000-00-00 00:00:00',0),(4,5,1,7,265,265,0,265,0,76,'2016-09-05 08:23:24',0,'0000-00-00 00:00:00',0),(5,6,1,8,999.8,999.8,0,999.8,0,76,'2016-09-08 04:35:48',0,'0000-00-00 00:00:00',0),(6,7,1,10,1199918.03,1199918.03,0,1199918.03,0,76,'2016-09-27 07:15:15',0,'0000-00-00 00:00:00',0),(7,8,1,11,1221859.84,1221859.84,0,1221859.84,0,76,'2016-10-18 04:12:34',0,'0000-00-00 00:00:00',0),(8,9,1,3,2363.8,2363.8,0,2363.8,0,76,'2016-10-18 07:11:24',0,'0000-00-00 00:00:00',0),(9,10,1,4,9412.8,9412.8,0,9412.8,0,76,'2016-10-18 07:12:48',0,'0000-00-00 00:00:00',0),(10,10,2,5,1590,1590,0,1590,0,76,'2016-10-18 07:12:48',0,'0000-00-00 00:00:00',0),(11,11,1,12,1674.8,1674.8,0,1674.8,0,76,'2016-10-18 07:14:08',0,'0000-00-00 00:00:00',0),(12,11,2,13,3031.6,3031.6,0,3031.6,0,76,'2016-10-18 07:14:09',0,'0000-00-00 00:00:00',0),(13,11,3,14,3264.8,3264.8,0,3264.8,0,76,'2016-10-18 07:14:09',0,'0000-00-00 00:00:00',0),(14,12,1,15,2063.1,2063.1,0,2063.1,0,76,'2016-10-18 07:38:36',0,'0000-00-00 00:00:00',0),(15,12,2,16,42.099999999999994,42.099999999999994,0,42.1,0,76,'2016-10-18 07:38:36',0,'0000-00-00 00:00:00',0),(16,13,1,17,206922.4,206922.4,0,206922.4,0,76,'2016-10-18 08:36:58',0,'0000-00-00 00:00:00',0),(17,13,2,18,185400.94,185400.94,0,185400.94,0,76,'2016-10-18 08:36:59',0,'0000-00-00 00:00:00',0),(18,13,3,19,123650,123650,0,123650,0,76,'2016-10-18 08:36:59',0,'0000-00-00 00:00:00',0),(19,4,0,2,0,0,0,64125,0,0,'2016-11-08 01:49:43',0,'0000-00-00 00:00:00',0),(20,14,1,28,1183216.83,1183216.83,0,1183216.83,0,76,'2016-11-27 06:41:41',0,'0000-00-00 00:00:00',0),(21,15,1,29,115337.3,115337.3,0,115337.3,0,76,'2016-11-27 06:43:30',0,'0000-00-00 00:00:00',0),(22,16,1,35,116300.1,116300.1,0,116300.1,0,76,'2017-01-01 03:56:25',0,'0000-00-00 00:00:00',0),(23,17,1,34,1212782.93,1212782.93,0,1212782.93,0,76,'2017-01-01 03:57:24',0,'0000-00-00 00:00:00',0),(24,18,1,37,4548.55,4548.55,0,4548.55,0,76,'2017-01-01 03:58:11',0,'0000-00-00 00:00:00',0),(25,19,1,38,1113,1113,0,1113,0,76,'2017-01-08 04:21:38',0,'0000-00-00 00:00:00',0),(26,20,1,39,9950,9950,0,9950,0,76,'2017-01-08 06:31:14',0,'0000-00-00 00:00:00',0),(27,21,1,40,25588.6,25588.6,0,25588.6,0,76,'2017-01-08 06:40:56',0,'0000-00-00 00:00:00',0),(28,22,1,41,2800,2800,0,2800,0,76,'2017-01-14 08:26:31',0,'0000-00-00 00:00:00',0),(29,23,1,42,1242666.57,1242666.57,0,1242666.57,0,76,'2017-01-14 08:33:30',0,'0000-00-00 00:00:00',0),(30,24,1,42,1242666.57,1242666.57,0,1242666.57,0,76,'2017-02-09 04:26:31',0,'0000-00-00 00:00:00',0),(31,25,1,43,1204118.5,1204118.5,0,1204118.5,0,76,'2017-02-13 05:19:03',0,'0000-00-00 00:00:00',0),(32,26,1,45,1316056.37,1316056.37,0,1316056.37,0,76,'2017-03-18 04:01:15',0,'0000-00-00 00:00:00',0),(33,27,1,44,96761.3,96761.3,0,96761.3,0,76,'2017-03-18 04:03:11',0,'0000-00-00 00:00:00',0),(34,28,1,46,1248604.51,1248604.51,0,1248604.51,0,76,'2017-04-22 03:46:30',0,'0000-00-00 00:00:00',0),(35,29,1,47,153353.3,153353.3,0,153353.3,0,76,'2017-04-22 03:48:00',0,'0000-00-00 00:00:00',0),(36,30,1,49,1211767.8,1211767.8,0,1211767.8,0,76,'2017-05-18 03:59:22',0,'0000-00-00 00:00:00',0),(37,31,1,48,123328.7,123328.7,0,123328.7,0,76,'2017-05-18 04:02:18',0,'0000-00-00 00:00:00',0),(38,32,1,50,154494.6,154494.6,0,154494.6,0,76,'2017-06-07 02:56:48',0,'0000-00-00 00:00:00',0),(39,33,1,51,1316757.59,1316447.59,0,1316447.59,0,76,'2017-06-11 06:43:19',0,'0000-00-00 00:00:00',0),(40,34,1,53,1336031.97,1336031.97,0,1336031.97,0,76,'2017-07-16 03:33:24',0,'0000-00-00 00:00:00',0),(41,35,1,52,57469,57469,0,57469,0,76,'2017-07-16 03:34:46',0,'0000-00-00 00:00:00',0);

--
-- Table structure for table `comp_payment_detail_creditnote`
--

CREATE TABLE `comp_payment_detail_creditnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `creditnoteID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_payment_detail_creditnote`
--


--
-- Table structure for table `comp_payment_detail_debitnote`
--

CREATE TABLE `comp_payment_detail_debitnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `debitnoteID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_payment_detail_debitnote`
--


--
-- Table structure for table `comp_payment_detail_historical_invoice`
--

CREATE TABLE `comp_payment_detail_historical_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `historicalinvoiceID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_payment_detail_historical_invoice`
--

INSERT INTO `comp_payment_detail_historical_invoice` VALUES (1,1,1,1330272.37,0),(2,3,2,146770.14,0);

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

CREATE TABLE `comp_payment_others` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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` varchar(32) 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,
  `simplifiedTax` int(1) NOT NULL DEFAULT '0',
  `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,
  `bankReconcileID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`),
  KEY `supplierID` (`journalNo`),
  KEY `updateAble` (`updateAble`)
) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment_others` VALUES (1,1,1,3,'VEOLIA WATER (DUNGUN) SDN BHD                                            ',0,1330272.37,69,'16000010 RI 02154',0,'OPN','2016-08-14',1,0,1,0,0,'',1,0,0,1,0,0,0,0,76,'2016-08-14 06:59:34',76,'2016-08-15 02:10:32',1,'',0,'',0,0),(2,2,1,3,'MAYBANK ISLAMIC KUALA TERENGGANU                                       ',0,15,68,'BANK STATEMENT JULY 2016',0,'OPN','2016-07-22',0,0,1,0,0,'CHEQUE BOOK STAMP DUTY',0,0,0,1,0,0,0,0,76,'2016-08-25 10:15:23',76,'2016-08-25 10:16:46',0,'',0,'AP20160700000003',0,0),(3,3,1,3,'PENGARAH KASTAM       ',0,0,69,'',0,'OPN','2016-08-29',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-08-29 05:24:54',0,'2016-08-29 06:23:15',1,'',0,'',0,0),(4,4,1,3,'KETUA PENGARAH KASTAM MALAYSIA                         ',0,81802.14,69,'810408',0,'OPN','2016-08-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-08-29 06:22:53',0,'2016-08-29 06:23:28',0,'',0,'AP20160800000023',0,0),(5,5,1,3,'ATEMIN BIN SULONG                                        ',0,500,69,'810409',0,'OPN','2016-09-05',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-09-05 04:54:09',76,'2016-09-08 04:23:40',0,'',0,'AP20160900000007',0,0),(6,6,1,3,'NADA CONSTRUCTION                                      ',0,2838,69,'810412',0,'OPN','2016-09-08',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-09-08 04:48:47',76,'2016-09-08 06:51:03',0,'',0,'AP20160900000014',0,0),(7,7,1,3,'VEOLIA WATER (DUNGUN) SDN. BHD.                                       ',0,9560.1,69,'810414',0,'OPN','2016-09-27',0,0,0,0,0,'',0,0,0,1,0,0,0,0,76,'2016-09-27 07:39:55',0,'2016-09-27 07:40:17',0,'',0,'AP20160900000017',0,0),(8,8,1,3,'MAYBANK ISLAMIC                                            ',0,0.53,68,'BANK STATEMENT AUGUST',0,'OPN','2016-08-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-09-27 08:14:51',76,'2017-04-10 03:13:53',0,'',0,'AP20160800000041',0,0),(9,9,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                            ',0,63639.2,69,'810415',0,'OPN','2016-09-28',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-09-28 00:17:18',0,'2016-09-28 00:18:15',0,'',0,'AP20160900000018',0,0),(10,10,1,3,'SYARIKAT AIR TERENGGANU SDN BHD                                            ',0,21337.8,69,'810417',0,'OPN','2016-10-18',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-10-18 07:16:10',76,'2016-10-18 07:25:47',1,'',0,'',0,0),(11,11,1,3,'SYARIKAT AIR TERENGGANU SDN   BHD                                            ',0,21337.8,69,'810422',0,'OPN','2016-10-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-10-18 07:28:08',76,'2016-11-07 08:34:08',0,'',0,'AP20161000000023',0,0),(12,12,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                            ',0,69446.89,69,'810420',0,'OPN','2016-10-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-10-19 03:07:13',0,'2016-10-19 03:07:33',0,'',0,'AP20161000000012',0,0),(13,13,1,3,'ATEMIN BIN SULONG                                            ',0,500,69,'810421',0,'OPN','2016-10-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-10-19 03:35:17',76,'2016-10-19 03:37:03',0,'',0,'AP20161000000013',0,0),(14,14,1,3,'MAJLIS PERBANDARAN DUNGUN                                          ',0,641250,69,'810407',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-08 03:31:27',0,'2016-11-08 05:18:36',0,'',0,'AP20161000000026',0,0),(15,15,1,3,'ZAKARIA BIN MOHAMED (580220-11-5111)',0,2145.6,69,'810442',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 08:56:13',76,'2016-11-14 00:24:05',0,'',0,'AP20161000000031',0,0),(16,16,1,3,'MAD DAIK BIN HITAM (570511-11-5139)                                        ',0,1696,69,'810428',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:05:11',0,'2016-11-14 00:24:04',0,'',0,'AP20161000000030',0,0),(17,17,1,3,'ABDUL RAZAK BIN BOTOK (570618-11-5147                                            ',0,1952,69,'810453',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:07:15',76,'2016-11-14 00:24:03',0,'',0,'AP20161000000029',0,0),(18,18,1,3,'AHMAD KHAIRUL ANUAR BIN ALIAS (850622-11-5509)                                           ',0,1648,69,'810430',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:10:56',0,'2016-11-14 00:24:02',0,'',0,'AP20161000000028',0,0),(19,19,1,3,'CHE WAN ZABIDI BIN CHE WAN NGAH (731126-11-5153)                                       ',0,1696,69,'810431',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:16:51',0,'2016-11-14 00:24:01',0,'',0,'AP20161000000027',0,0),(20,20,1,3,'MOHD ZAQUAN AL-HAFIZ BIN ZAKARIA (980129-46-5033)                                            ',0,1696,69,'810454',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:19:01',76,'2016-11-14 00:50:19',0,'',0,'AP20161000000042',0,0),(21,21,1,3,'CHE WAN ZUNAIDI BIN CHE WAN CHIK (730127-11-5177)                                            ',0,1696,69,'810433',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:20:44',0,'2016-11-14 00:24:13',0,'',0,'AP20161000000040',0,0),(22,22,1,3,'ABDUL TALIB BIN HITAM (711222-11-5163)                                            ',0,1696,69,'810434',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:22:40',76,'2016-11-14 00:24:12',0,'',0,'AP20161000000039',0,0),(23,23,1,3,'MOHAMAD AZHAN BIN AB WAHAB (700608-11-5357)                                            ',0,1696,69,'810450',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:24:53',76,'2016-11-14 00:24:11',0,'',0,'AP20161000000038',0,0),(24,24,1,3,'ZULKAPLI BIN MAT JUSOH (670801-03-5717)                                            ',0,2083.2,69,'810436',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:27:18',0,'2016-11-14 00:24:10',0,'',0,'AP20161000000037',0,0),(25,25,1,3,'MAHMUD ANAK ABOI (710711-13-5179)                                            ',0,2544,69,'810437',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:34:04',0,'2016-11-14 00:24:09',0,'',0,'AP20161000000036',0,0),(26,26,1,3,' CHE WAN  MOHAMAD NORDIN BIN CHE WAN MAT ZIN  (710311-11-5267)                                  ',0,2544,69,'810445',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:35:46',76,'2016-11-14 00:24:08',0,'',0,'AP20161000000035',0,0),(27,27,1,3,'ABDUL NASIR BIN HARUN (600102-11-5415)                                           ',0,2544,69,'810451',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:38:18',76,'2016-11-14 00:24:07',0,'',0,'AP20161000000034',0,0),(28,28,1,3,'MOHD AZRI BIN AHMAD (890701-11-5407)                                            ',0,2544,69,'810440',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:39:56',0,'2016-11-14 00:24:06',0,'',0,'AP20161000000033',0,0),(29,29,1,3,'MOHD ZULKIFLI BIN YUSOF (980325-11-5137)                                        ',0,1088,69,'810447',0,'OPN','2016-10-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-12 09:41:27',76,'2016-11-14 00:24:06',0,'',0,'AP20161000000032',0,0),(30,30,1,3,'Y.B Dato\' Haji Wan Nawawi bin Wan Ismail                                        ',0,1000,69,'810455',0,'OPN','2016-11-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-20 02:12:12',76,'2016-12-15 02:24:41',0,'',0,'AP20161100000025',0,0),(31,31,1,3,'Y.B Dato\' A. Rahim bin Jusoh                                            ',0,1000,69,'810456',0,'OPN','2016-11-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-20 02:31:53',76,'2016-12-15 02:24:40',0,'',0,'AP20161100000024',0,0),(32,32,1,3,'Encik Wan Zalizan bin Wan Jusoh                                            ',0,1000,69,'810457',0,'OPN','2016-11-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-20 02:33:27',76,'2016-12-15 02:23:10',0,'',0,'AP20161100000023',0,0),(33,33,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                            ',0,63445.62,69,'810460',0,'OPN','2016-11-27',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-11-27 06:56:55',76,'2016-11-27 06:58:04',0,'',0,'AP20161100000006',0,0),(34,34,1,3,'Maybank Islamic KTRG                                           ',0,20.67,68,'Bank Statement 11',0,'OPN','2016-11-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-13 07:49:50',0,'2016-12-13 08:24:39',0,'',0,'AP20161100000016',0,0),(35,35,1,3,'Pengarah RELA Negeri Terengganu                                           ',0,28363.2,69,'810448',0,'OPN','2016-11-10',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-13 08:07:33',0,'2016-12-13 08:24:38',0,'',0,'AP20161100000015',0,0),(36,36,1,3,'Pengarah RELA Negeri Terengganu                                            ',0,28016,69,'810425',0,'OPN','2016-11-10',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-13 08:09:38',0,'2016-12-13 08:24:37',0,'',0,'AP20161100000014',0,0),(37,37,1,3,'Pengarah RELA Negeri Terengganu                                            ',0,28312,69,'810452',0,'OPN','2016-11-10',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-13 08:11:55',0,'2016-12-13 08:24:37',0,'',0,'AP20161100000013',0,0),(38,38,1,3,'BEKALAN AIR KIPC SDN BHD - BANK MUAMALAT                                            ',0,3000000,69,'810423',0,'OPN','2016-11-01',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-13 08:20:47',0,'2016-12-13 08:24:36',0,'',0,'AP20161100000012',0,0),(39,39,1,3,'TETUAN SERIKANDI                                            ',0,200000,69,'810481',0,'OPN','2016-12-14',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-14 01:11:45',76,'2016-12-18 03:29:56',0,'',0,'AP20161200000033',0,0),(40,40,1,3,'KHAIRUL ANUAR B. MOHAMAD                                            ',0,46.5,68,'9 2016 Bil 11',0,'OPN','2016-11-23',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 06:19:21',76,'2016-12-15 02:13:09',0,'',0,'AP20161100000022',0,0),(41,41,1,3,'POS LAJU                                            ',0,7.15,68,'458-11141002-8-1158580-5',0,'OPN','2016-11-28',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 06:35:45',76,'2016-12-15 02:13:08',0,'',0,'AP20161100000021',0,0),(42,42,1,3,'KEDAI MAKAN TAMAN TASIK                                            ',0,301.4,68,'2129',0,'OPN','2016-11-23',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:10:21',76,'2016-12-15 02:13:07',0,'',0,'AP20161100000020',0,0),(43,43,1,3,'MALAYAN BANKING BERHAD                                            ',0,500,68,'CDM SLIPT',0,'OPN','2016-12-01',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:15:17',76,'2016-12-15 02:12:48',0,'',0,'AP20161200000011',0,0),(44,44,1,3,'POS LAJU                                            ',0,10.5,68,'458-11141002-8-1178602-7',0,'OPN','2016-12-07',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:19:28',76,'2016-12-15 02:12:47',0,'',0,'AP20161200000010',0,0),(45,45,1,3,' POS LAJU                                           ',0,7.15,68,'458-11141002-8-1182584-17',0,'OPN','2016-12-11',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:21:54',76,'2016-12-15 02:12:46',0,'',0,'AP20161200000009',0,0),(46,46,1,3,'MOHD FAUZAN MAJNUN ENTERPRISE                                            ',0,60,68,'9 2016 BIL 12',0,'OPN','2016-12-08',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:24:55',76,'2016-12-15 02:12:45',0,'',0,'AP20161200000008',0,0),(47,47,1,3,' MOHD FAUZAN MAJNUN ENTERPRISE                                           ',0,108,68,'9 2016 BIL 13',0,'OPN','2016-12-08',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-14 07:26:27',76,'2016-12-15 02:12:45',0,'',0,'AP20161200000007',0,0),(48,48,1,3,'Security - Zakaria bin Mohamed                                            ',0,2000,69,'810462',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:17:18',0,'2016-12-17 06:20:22',0,'',0,'AP20161200000013',0,0),(49,49,1,3,'Security - Mohd Zaquan Al-Hafiz b. Zakaria                                            ',0,1568,69,'810463',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:20:11',0,'2016-12-17 06:20:21',0,'',0,'AP20161200000012',0,0),(50,50,1,3,'Security - Mohamad Azhan b. AB Wahab                                            ',0,1568,69,'810464',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:24:39',0,'2016-12-17 06:55:30',0,'',0,'AP20161200000025',0,0),(51,51,1,3,'Security - Mohd Zulkipli bin Yusof                                            ',0,1520,69,'810465',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:26:44',0,'2016-12-17 06:55:30',0,'',0,'AP20161200000024',0,0),(52,52,1,3,'Security - Md Daik b. Hitam                                            ',0,1568,69,'810466',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:30:13',0,'2016-12-17 06:55:29',0,'',0,'AP20161200000023',0,0),(53,53,1,3,'Security - Abdul Razak bin Botok                                         ',0,1568,69,'810482',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:33:32',76,'2016-12-18 03:22:39',0,'',0,'AP20161200000030',0,0),(54,54,1,3,'Security - Ahmad Khairul Anuar b. Alias                                           ',0,1568,69,'810468',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:37:59',0,'2016-12-17 06:55:28',0,'',0,'AP20161200000021',0,0),(55,55,1,3,'Security - Che Wan Zunaidi bin Che Wan Chik                                            ',0,1568,69,'810469',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:40:35',0,'2016-12-17 06:55:27',0,'',0,'AP20161200000020',0,0),(56,56,1,3,'Security - Mohd Firdaus bin Ibrahim                                            ',0,1568,69,'810470',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:43:04',0,'2016-12-17 06:55:26',0,'',0,'AP20161200000019',0,0),(57,57,1,3,'Security - Zulkapli bin Mat Jusoh                                            ',0,2000,69,'810483',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:44:25',76,'2016-12-18 03:24:49',0,'',0,'AP20161200000031',0,0),(58,58,1,3,'Security - Abdul Talib bin Hitam                                            ',0,2352,69,'810484',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:48:27',76,'2016-12-18 03:26:39',0,'',0,'AP20161200000032',0,0),(59,59,1,3,'Security - Abdul Nasir bin Harun                                            ',0,2352,69,'810473',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:50:32',0,'2016-12-17 06:55:24',0,'',0,'AP20161200000016',0,0),(60,60,1,3,'Security - Che Wan Mohamad Noordin  b. Che Wan Mat Zin                                            ',0,2352,69,'810474',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:53:02',0,'2016-12-17 06:55:23',0,'',0,'AP20161200000015',0,0),(61,61,1,3,'Security - Mohd Azri bin Ahmad                                            ',0,2352,69,'810475',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 06:55:09',0,'2016-12-17 06:55:22',0,'',0,'AP20161200000014',0,0),(62,62,1,3,'Security - Che Wan Zabidi b. Che Wan Ngah                                            ',0,1568,69,'810476',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 07:04:03',0,'2016-12-17 07:04:09',0,'',0,'AP20161200000026',0,0),(63,63,1,3,'Suruhanjaya Tenaga                                           ',0,3000,69,'810477',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 07:15:51',0,'2016-12-17 07:20:51',0,'',0,'AP20161200000029',0,0),(64,64,1,3,'Suruhanjaya Tenaga                                            ',0,3000,69,'810478',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 07:17:52',0,'2016-12-17 07:20:49',0,'',0,'AP20161200000028',0,0),(65,65,1,3,'Suruhanjaya Tenaga                                           ',0,165,69,'810479',0,'OPN','2016-12-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-17 07:20:29',0,'2016-12-17 07:20:49',0,'',0,'AP20161200000027',0,0),(66,66,1,3,'Syarikat Air Terengganu Sdn. Bhd.                                            ',0,530000,69,'810487',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 04:35:41',0,'2016-12-18 04:36:24',0,'',0,'AP20161200000034',0,0),(67,67,1,3,'Y.B Dato\' Haji Wan Nawawi bin Wan Ismail                                            ',0,10000,69,'810488',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 08:37:58',0,'2016-12-18 08:56:23',0,'',0,'AP20161200000038',0,0),(68,68,1,3,'Y.B Dato\' A. Rahim bin Jusoh                                            ',0,7500,69,'810489',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 08:52:46',0,'2016-12-18 08:56:23',0,'',0,'AP20161200000037',0,0),(69,69,1,3,'En Wan Zalizan bin Wan Jusoh                                           ',0,7500,69,'810490',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 08:54:08',0,'2016-12-18 08:56:22',0,'',0,'AP20161200000036',0,0),(70,70,1,3,'IR. Haji Atemin Bin Sulong',0,7500,69,'810491',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 08:55:42',76,'2016-12-18 08:56:21',0,'',0,'AP20161200000035',0,0),(71,71,1,3,'BANK RAKYAT                                            ',0,1000000,69,'810499',0,'OPN','2016-12-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-18 10:18:54',76,'2016-12-20 08:29:08',0,'',0,'AP20161200000043',0,0),(72,72,1,3,'Ir Haji Atemin bin Sulong                                            ',0,169500,69,'844811',0,'OPN','2016-12-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-20 08:23:32',76,'2016-12-20 08:48:32',0,'',0,'AP20161200000046',0,0),(73,73,1,3,'Ir. Haji Atemin Bin Sulong                                            ',0,390000,69,'844809',0,'OPN','2016-12-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-20 08:25:59',76,'2016-12-20 08:48:32',0,'',0,'AP20161200000045',0,0),(74,74,1,3,'Ir. Haji Atemin bin Sulong                                            ',0,165900,69,'844808',0,'OPN','2016-12-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-20 08:27:57',76,'2016-12-20 08:48:31',0,'',0,'AP20161200000044',0,0),(75,75,1,3,'Board members (Claim by Ir Haji Fakhrurazi)                                            ',0,900,68,'9 2016 Bil 3',0,'OPN','2016-12-22',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-22 00:45:21',76,'2016-12-22 00:45:49',0,'',0,'AP20161200000047',0,0),(76,76,1,3,'CSR- Bantuan Persekolahan Kepada Keluarga Polis Gong Badak                                                 ',0,19800,69,'844813',0,'OPN','2016-12-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-22 06:26:25',76,'2016-12-26 01:52:04',0,'',0,'AP20161200000050',0,0),(77,77,1,3,'Pn Rohaidah Bt Mohamad                                           ',0,16.9,68,'9 2016 Bil (14)',0,'OPN','2016-12-27',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-27 01:10:05',76,'2016-12-27 01:23:33',0,'',0,'AP20161200000053',0,0),(78,78,1,3,'Mohd Fauzan Majnun Enterprise (Kak yah)                                       ',0,120,68,'9 2016 Bil 8',0,'OPN','2016-11-15',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2016-12-27 02:10:49',0,'2017-01-01 06:09:32',0,'',0,'AP20161100000029',0,0),(79,79,1,3,'KETUA PENGARAH KASTAM                                             ',0,76664.92,69,'844816',0,'OPN','2016-12-28',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2016-12-28 11:35:58',76,'2016-12-28 11:37:36',0,'',0,'AP20161200000054',0,0),(80,80,1,3,' MOHD FAUZAN MAJNUN                                           ',0,120,68,'9 2016 BIL 8',0,'OPN','2016-11-15',1,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 06:09:05',0,'2017-01-01 06:09:29',1,'',0,'',0,0),(81,81,1,3,'POS MALAYSIA BERHAD                                           ',0,7.16,68,'11057437',0,'OPN','2016-12-19',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:13:26',0,'2017-01-01 07:31:22',0,'',0,'AP20161200000062',0,0),(82,82,1,3,'PUSTAKA SERI INTAN                                            ',0,67.2,68,'P5-1465858',0,'OPN','2016-12-27',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:15:22',0,'2017-01-01 07:31:21',0,'',0,'AP20161200000061',0,0),(83,83,1,3,'NIRWANA MAJU SDN BHD                                          ',0,7,68,'Resit Nirwana',0,'OPN','2016-12-27',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:17:10',0,'2017-01-01 07:31:21',0,'',0,'AP20161200000060',0,0),(84,84,1,3,'PUSTAKA SERI INTAN                                          ',0,25.6,68,'RESIT PSI',0,'OPN','2016-12-20',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:20:03',0,'2017-01-01 07:31:20',0,'',0,'AP20161200000059',0,0),(85,85,1,3,'MYDIN                                            ',0,132,68,'Resit Mydin',0,'OPN','2016-12-28',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:26:07',0,'2017-01-01 07:31:19',0,'',0,'AP20161200000058',0,0),(86,86,1,3,'MOHD FAUZAN MAJNUN ENTERPRISE                                            ',0,100,68,'9 2016 Bil 14',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:30:21',0,'2017-01-01 07:31:18',0,'',0,'AP20161200000057',0,0),(87,87,1,3,'MOHD FAUZAN MAJNUN                                            ',0,50,68,'9 2016 BIL 9',0,'OPN','2016-11-13',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-01 07:58:00',0,'2017-01-01 07:58:18',0,'',0,'AP20161100000030',0,0),(88,88,1,3,'REIMBURSEMENT PETTY CASH                                            ',0,1000,69,'844828',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-01 08:28:49',0,'2017-01-01 08:29:07',0,'',0,'AP20161200000063',0,0),(89,89,1,3,'RESTORAN AAIQAL                                           ',0,300,69,'844827',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-02 23:59:31',0,'2017-01-02 23:59:47',0,'',0,'AP20161200000064',0,0),(90,90,1,3,'ATEMIN BIN SULONG                                            ',0,64500,69,'844843',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 04:35:09',0,'2017-01-08 04:37:15',0,'',0,'AP20161200000067',0,0),(91,91,1,3,'PUSPANITA CAWANGAN NEGERI TERENGGANU                                            ',0,100000,69,'844833',0,'OPN','2016-12-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 04:36:51',0,'2017-01-08 04:37:14',0,'',0,'AP20161200000066',0,0),(92,92,1,3,'YB. DATO\' HAJI WAN NAWAWI BIN WAN ISMAIL                                            ',0,5000,69,'844818',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 04:45:23',0,'2017-01-08 06:20:31',0,'',0,'AP20161200000069',0,0),(93,93,1,3,'YB. DATO\' A.RAHIM BIN JUSOH                                           ',0,4500,69,'844838',0,'OPN','2017-01-08',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 04:54:16',76,'2017-01-08 05:00:05',0,'',0,'AP20170100000008',0,0),(94,94,1,3,' Y. BHG. TUAN IR. HAJI ATEMIN BIN SULONG                                           ',0,4500,69,'844840',0,'OPN','2017-01-08',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 04:56:14',76,'2017-01-08 05:00:04',0,'',0,'AP20170100000007',0,0),(95,95,1,3,'SECURIFORCE SDN. BHD.                                            ',0,561.8,69,'844829',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-08 06:20:10',0,'2017-01-08 06:20:30',0,'',0,'AP20161200000068',0,0),(96,96,1,3,'ATEMIN BIN SULONG                                            ',0,61500,69,'844846',0,'OPN','2016-12-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-10 05:48:40',0,'2017-01-10 05:48:54',0,'',0,'AP20161200000072',0,0),(97,97,1,3,'MAYBANK ISLAMIC KUALA TERENGGANU (KTBC)                                            ',0,435000,69,'810498',0,'OPN','2016-12-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-14 03:38:28',0,'2017-01-14 03:38:47',0,'',0,'AP20161200000073',0,0),(98,98,1,3,'SHAMSIAH ENTERPRISE                                            ',0,60,68,'08751',0,'OPN','2017-01-11',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 07:59:06',0,'2017-01-14 08:08:53',0,'',0,'AP20170100000012',0,0),(99,99,1,3,'DYNABYTES KOMPUTER (TRG) SDN. BHD.                                           ',0,286,68,'T02/021340',0,'OPN','2017-01-12',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:07:21',0,'2017-01-14 08:08:52',0,'',0,'AP20170100000011',0,0),(100,100,1,3,'MUMTAZ MURAD ALI SDN. BHD.                                           ',0,137800,69,'844848',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-14 08:12:49',76,'2017-01-15 04:06:44',0,'',0,'AP20161200000078',0,0),(101,101,1,3,'PUSTAKA SERI INTAN                                            ',0,41.2,68,'P5-1477397',0,'OPN','2017-01-10',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:36:21',0,'2017-01-14 08:46:01',0,'',0,'AP20170100000019',0,0),(102,102,1,3,'POS MALAYSIA BERHAD                                            ',0,7.15,68,'458-11141002-7-1243933-8',0,'OPN','2017-01-01',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:38:52',0,'2017-01-14 08:46:00',0,'',0,'AP20170100000018',0,0),(103,103,1,3,'PRINTLAB MARKETING SDN. BHD.                                            ',0,80,68,'015657',0,'OPN','2017-01-12',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:42:24',0,'2017-01-14 08:45:59',0,'',0,'AP20170100000017',0,0),(104,104,1,3,'PRINTLAB MARKETING SDN. BHD.                                        ',0,80,68,'015658',0,'OPN','2017-01-12',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:43:46',0,'2017-01-14 08:45:58',0,'',0,'AP20170100000016',0,0),(105,105,1,3,'PRINTLAB MARKETING SDN. BHD.                                            ',0,46,68,'015659',0,'OPN','2017-01-12',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-14 08:44:53',0,'2017-01-14 08:45:57',0,'',0,'AP20170100000015',0,0),(106,106,1,3,'MAYBANK ISLAMIC                                            ',0,417.11,68,'BANK STATEMENT 12',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-15 04:03:54',0,'2017-01-15 04:06:43',0,'',0,'AP20161200000077',0,0),(107,107,1,3,'ZAKARIA BIN MOHAMED (580220-11-5111)                                            ',0,2036.8,69,'844851',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 06:57:15',0,'2017-01-16 06:57:29',0,'',0,'AP20161200000079',0,0),(108,108,1,3,'MOHD ZAQUAN AL-HAFIZ BIN ZAKARIA (980129-46-5033)                                            ',0,1472,69,'844853',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:10:46',0,'2017-01-16 07:10:57',0,'',0,'AP20161200000080',0,0),(109,109,1,3,'MOHAMAD AZHAN BIN AB WAHAB (700608-11-5357)                                            ',0,1792,69,'844854',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:15:43',0,'2017-01-16 07:16:01',0,'',0,'AP20161200000081',0,0),(110,110,1,3,'MOHD ZULKIPLI BIN YUSOF (980325-11-5137)                                          ',0,1664,69,'844855',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:19:22',0,'2017-01-16 07:19:40',0,'',0,'AP20161200000082',0,0),(111,111,1,3,'MAD DAIK BIN HITAM (570511-11-5139                                            ',0,1712,69,'844856',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:23:32',0,'2017-01-16 07:23:46',0,'',0,'AP20161200000083',0,0),(112,112,1,3,'ABDUL RAZAK BIN BOTOK (570618-11-5147)                                            ',0,1712,69,'844857',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:32:02',0,'2017-01-16 07:34:13',0,'',0,'AP20161200000084',0,0),(113,113,1,3,'AHMAD KHAIRUL ANUAR BIN ALIAS (850622-11-5509)                                            ',0,1616,69,'844858',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:52:18',0,'2017-01-16 07:52:52',0,'',0,'AP20161200000085',0,0),(114,114,1,3,'CHE WAN ZUNAIDI BIN CHE WAN CHIK (730127-11-5177)                                            ',0,1712,69,'844859',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 07:57:54',0,'2017-01-16 07:58:01',0,'',0,'AP20161200000086',0,0),(115,115,1,3,'CHE WAN ZABIDI BIN CHE WAN NGAH (731126-11-5153)                                            ',0,1712,69,'844860',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:00:28',0,'2017-01-16 08:00:33',0,'',0,'AP20161200000087',0,0),(116,116,1,3,'MOHD FIRDAUS BIN IBRAHIM (980331-11-6099)                                          ',0,1712,69,'844861',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:03:33',0,'2017-01-16 08:03:41',0,'',0,'AP20161200000088',0,0),(117,117,1,3,'ZULKAPLI BIN MAT JUSOH (670801-03-5717)                                            ',0,2161.6,69,'844862',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:08:23',0,'2017-01-16 08:08:31',0,'',0,'AP20161200000089',0,0),(118,118,1,3,'SHAHRIN BIN MD SHARIF (770907-02-5021)                                           ',0,2520,69,'844863',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:12:31',0,'2017-01-16 08:12:48',0,'',0,'AP20161200000090',0,0),(119,119,1,3,'MOHD NORDIN BIN MUDA (670621-11-5031)                                            ',0,2520,69,'844864',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:16:39',0,'2017-01-16 08:16:45',0,'',0,'AP20161200000091',0,0),(120,120,1,3,'ABDUL TALIB BIN HITAM (711222-11-5163)                                           ',0,2616,69,'844865',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:19:58',76,'2017-01-16 08:23:47',0,'',0,'AP20161200000094',0,0),(121,121,1,3,'ABDUL NASIR BIN HARUN (600102-11-5415)                                         ',0,2616,69,'844866',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-16 08:22:45',0,'2017-01-16 08:22:52',0,'',0,'AP20161200000093',0,0),(122,122,1,3,'ATEMIN BIN SULONG                                            ',0,1000,69,'844867',0,'OPN','2017-01-17',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-17 01:34:31',0,'2017-01-17 01:34:41',0,'',0,'AP20170100000023',0,0),(123,123,1,3,'TERENGGANU INCORPORATED SDN BHD                                          ',0,773.8,69,'844869',0,'OPN','2017-01-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-18 06:37:07',76,'2017-01-18 06:56:54',0,'',0,'AP20170100000026',0,0),(124,124,1,3,'CHE WAN MOHAMAD NOORDIN BIN CHE WAN MAT ZIN (710311-11-5267)                                          ',0,2412,69,'844870',0,'OPN','2017-01-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-19 06:43:20',0,'2017-01-19 06:43:32',0,'',0,'AP20170100000027',0,0),(125,125,1,3,'PRINTLAB MARKETING SDN. BHD                                          ',0,53,68,'015744',0,'OPN','2017-01-18',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-21 03:39:10',0,'2017-01-21 03:45:14',0,'',0,'AP20170100000030',0,0),(126,126,1,3,'JABATAN PENGANGKUTAN JALAN TERENGGANU                                             ',0,250,68,'011101117A16920',0,'OPN','2017-01-17',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-21 03:44:13',0,'2017-01-21 03:45:13',0,'',0,'AP20170100000029',0,0),(127,127,1,3,'MOUSE                                           ',0,15.9,68,'T02/021786',0,'OPN','2017-01-21',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-01-21 03:45:06',0,'2017-01-21 03:45:12',0,'',0,'AP20170100000028',0,0),(128,128,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                        ',0,51408.38,69,'844871',0,'OPN','2017-01-24',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-24 07:44:06',0,'2017-01-24 07:44:35',0,'',0,'AP20170100000031',0,0),(129,129,1,3,'MBSB                                            ',0,2000000,69,'844872',0,'OPN','2017-01-24',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-01-24 07:51:27',0,'2017-01-24 07:51:41',0,'',0,'AP20170100000032',0,0),(130,130,1,3,'ATEMIN BIN SULONG                                            ',0,2100,69,'844873',0,'OPN','2017-02-01',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-01 00:57:31',0,'2017-02-01 00:57:49',0,'',0,'AP20170200000001',0,0),(131,131,1,3,'ATEMIN BIN SULONG                                            ',0,18000,69,'844874',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-01 02:26:10',76,'2017-02-01 02:35:43',0,'',0,'AP20161200000096',0,0),(132,132,1,3,'KELAB WARTAWAN MEDIA TERENGGANU                                      ',0,100000,69,'844875',0,'OPN','2016-12-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-02 03:07:50',0,'2017-02-02 03:08:04',0,'',0,'AP20161200000097',0,0),(133,133,1,3,'SAR AUTO SERVICE                                            ',0,900,69,'844876',0,'OPN','2017-02-02',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-02 04:07:38',76,'2017-07-23 07:31:25',0,'',0,'AP20170200000026',0,0),(134,134,1,3,'NADA CONSTRUCTION                                          ',0,17853.46,69,'844877',0,'OPN','2017-02-06',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-06 06:43:04',0,'2017-02-06 06:43:16',0,'',0,'AP20170200000003',0,0),(135,135,1,3,'Maybank Islamic Berhad                                          ',0,101.76,68,'January 2017 Bank Statement',0,'OPN','2017-01-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-11 03:25:49',76,'2017-02-11 04:06:52',0,'',0,'AP20170100000037',0,0),(136,136,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                ',0,153144,69,'844879',0,'OPN','2017-02-12',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-12 02:32:08',76,'2017-04-06 00:49:08',0,'',0,'AP20170200000025',0,0),(137,137,1,3,'YANG DIPERTUA, MAJLIS PERBANDARAN DUNGUN                        ',0,641250,69,'844878',0,'OPN','2017-02-13',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-13 04:22:35',0,'2017-03-19 09:33:43',0,'',0,'AP20170200000024',0,0),(138,138,1,3,'VEOLIA WATER (DUNGUN) SDN BHD                                         ',0,2487,166,'17000002 RI 02154',0,'OPN','2017-02-13',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-13 05:15:40',76,'2017-02-13 05:21:00',0,'',0,'AP20170200000009',0,0),(139,139,1,3,'RESTORAN MAAIDAH UPTOWN                                   ',0,124,68,'217970',0,'OPN','2017-02-06',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-02-15 00:00:30',0,'2017-02-15 00:03:39',0,'',0,'AP20170200000011',0,0),(140,140,1,3,'MAJLIS PERBANDARAN DUNGUN                                  ',0,8,68,'17020238',0,'OPN','2017-02-15',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-02-15 00:03:32',76,'2017-02-15 00:11:51',0,'',0,'AP20170200000012',0,0),(141,141,1,3,'ATEMIN BIN SULONG                                   ',0,1000,68,'844880',0,'OPN','2017-02-16',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-16 08:42:24',0,'2017-02-16 08:43:10',0,'',0,'AP20170200000013',0,0),(142,142,1,3,'JABATAN PENGANGKUTAN JALAN                                       ',0,779.6,68,'RESIT JPJ',0,'OPN','2017-02-19',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-02-19 07:57:27',0,'2017-02-19 07:57:36',0,'',0,'AP20170200000014',0,0),(143,143,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                   ',0,66108.11,166,'',0,'OPN','2017-02-20',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-20 08:22:24',0,'2017-02-20 08:22:33',0,'',0,'AP20170200000015',0,0),(144,144,1,3,'SYARIKAT PERCETAKAN YAYASAN ISLAM TERENGGANU SDN. BHD.                                      ',0,530,166,'00048786',0,'OPN','2017-03-01',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-28 08:34:35',0,'2017-03-13 08:37:11',1,'',0,'',0,0),(145,145,1,3,'ASMADI, AZMI & ASSOCIATES                                   ',0,7206.1,69,'844881',0,'OPN','2017-02-28',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-28 08:37:57',76,'2017-03-13 08:13:11',0,'',0,'AP20170200000016',0,0),(146,146,1,3,'SYARIKAT PERCETAKAN YAYASAN ISLAM TERENGGANU SDN. BHD.                                           ',0,530,166,'00048786',0,'OPN','2017-02-28',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-02-28 08:49:39',0,'2017-02-28 08:50:13',0,'',0,'AP20170200000018',0,0),(147,147,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                   ',0,153144,69,'844882',0,'OPN','2017-03-07',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-07 09:44:28',76,'2017-04-06 00:53:31',0,'',0,'AP20170300000028',0,0),(148,148,1,3,'Maybank Islamic Berhad                                            ',0,551.73,68,'Bank statement Feb 2017',0,'OPN','2017-02-28',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-12 09:02:53',0,'2017-03-12 09:11:22',0,'',0,'AP20170200000019',0,0),(149,149,1,3,'Maybank Islamic Berhad                                      ',0,27.03,68,'Letter from CIMB',0,'OPN','2017-02-27',0,0,1,0,0,'',0,0,0,4,0,0,0,0,76,'2017-03-13 04:23:59',0,'2017-03-13 04:26:36',0,'',0,'AP20170200000022',0,0),(150,150,1,3,'POS MALAYSIA BHD                                          ',0,21,68,'458-11141002-8-1352475-9',0,'OPN','2017-03-16',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-03-18 03:46:00',0,'2017-03-18 03:56:39',0,'',0,'AP20170300000006',0,0),(151,151,1,3,'JABATAN PENGANGKUTAN JALAN MALAYSIA                                 ',0,50,68,'011108117A32369',0,'OPN','2017-03-14',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-03-18 03:49:08',0,'2017-03-18 03:56:37',0,'',0,'AP20170300000005',0,0),(152,152,1,3,'SURUHANJAYA SYARIKAT MALAYSIA (SSM)                            ',0,15.9,68,'10770364',0,'OPN','2017-03-02',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-03-18 03:54:33',0,'2017-03-18 03:56:36',0,'',0,'AP20170300000004',0,0),(153,153,1,3,'SUARUHANJAYA SYARIKAT MALAYSIA (SSM)                            ',0,15.9,68,'10795338',0,'OPN','2017-03-07',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-03-18 03:55:37',0,'2017-03-18 03:56:35',0,'',0,'AP20170300000003',0,0),(154,154,1,3,'SYARIKAT AIR TERENGGANU SDN. BHD.                                     ',0,265003.18,166,'TINV20170319(1)',0,'OPN','2017-03-19',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-19 02:09:00',0,'2017-04-05 07:19:04',1,'',0,'',0,0),(155,155,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                               ',0,153144,69,'844884',0,'OPN','2017-03-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-19 02:20:43',76,'2017-04-06 00:53:30',0,'',0,'AP20170300000027',0,0),(156,156,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                    ',0,83374.08,166,'GST 03 - FEB 2017',0,'OPN','2017-03-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-19 09:30:38',0,'2017-03-19 09:30:49',0,'',0,'AP20170300000011',0,0),(157,157,1,3,'MOHD FAUZAN MAJNUN ENTERPRISE                               ',0,95,68,'51409 & 52754',0,'OPN','2017-03-26',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-03-26 04:35:20',0,'2017-03-26 05:01:30',0,'',0,'AP20170300000020',0,0),(158,158,1,3,'NORAZMI BIN ISHAK@YUSOF                               ',0,699.6,69,'844885',0,'OPN','2017-03-26',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-26 04:47:55',0,'2017-04-05 04:19:32',0,'',0,'AP20170300000015',0,0),(159,159,1,3,'SIMPANG TOKKU AIRCOND AND ACCESSORY CARS                         ',0,760,69,'844886',0,'OPN','2017-03-26',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-26 04:53:05',0,'2017-04-05 04:25:00',0,'',0,'AP20170300000014',0,0),(160,160,1,3,'SYARIKAT FATT LEE BATTERY SERVICE                   ',0,201.4,69,'844887',0,'OPN','2017-03-26',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-26 04:55:27',0,'2017-04-05 04:22:03',0,'',0,'AP20170300000013',0,0),(161,161,1,3,'HIN LONG HANG SDN. BHD.                              ',0,2694.52,69,'844888',0,'OPN','2017-03-26',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-03-26 04:58:03',0,'2017-03-26 04:58:44',0,'',0,'AP20170300000012',0,0),(162,162,1,3,'ATEMIN BIN SULONG                                      ',0,2000,69,'844889',0,'OPN','2017-04-03',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-03 05:48:57',0,'2017-04-05 03:14:04',1,'',0,'',0,0),(163,163,1,3,'MAYBANK ISLAMIC BERHAD                     ',0,63,68,'99130BGR6192090',0,'OPN','2017-03-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-05 03:33:11',0,'2017-04-05 03:38:24',0,'',0,'AP20170300000023',0,0),(164,164,1,3,'MAYBANK ISLAMIC BERHAD                                            ',0,1197.2,68,'99130BGU6192089',0,'OPN','2017-03-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-05 03:35:35',0,'2017-04-05 03:38:23',0,'',0,'AP20170300000022',0,0),(165,165,1,3,'MAYBANK ISLAMIC BERHAD                                     ',0,2013.4,68,'99130BGR6192091',0,'OPN','2017-03-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-05 03:37:32',0,'2017-04-05 03:38:22',0,'',0,'AP20170300000021',0,0),(166,166,1,3,'MAYBANK ISLAMIC BERHAD                                     ',0,91.69,68,'BANK STATEMENT MARCH 2017',0,'OPN','2017-03-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-05 03:44:44',0,'2017-04-05 03:44:52',0,'',0,'AP20170300000024',0,0),(167,167,1,3,'PUSTAKA SERI INTAN                                      ',0,29.9,68,'P5 1541176',0,'OPN','2017-04-10',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-04-15 23:50:15',0,'2017-04-15 23:50:30',0,'',0,'AP20170400000002',0,0),(168,168,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                           ',0,68139.96,166,'GST 03 MARCH 2017',0,'OPN','2017-04-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-22 03:44:52',0,'2017-04-22 03:57:30',0,'',0,'AP20170400000006',0,0),(169,169,1,3,'TENAGA NASIONAL BERHAD                                       ',0,319100,69,'844891',0,'OPN','2017-04-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-22 03:57:18',0,'2017-04-22 03:57:29',0,'',0,'AP20170400000005',0,0),(170,170,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                       ',0,153144,69,'844892',0,'OPN','2017-04-23',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-04-23 08:46:34',0,'2017-04-23 08:46:51',0,'',0,'AP20170400000007',0,0),(171,171,1,3,'MALAYSIA BUILDING SOCIETY BERHAD                                  ',0,3000000,69,'844893',0,'OPN','2017-05-03',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-03 10:16:24',0,'2017-05-03 10:16:35',0,'',0,'AP20170500000001',0,0),(172,172,1,3,'POS MALAYSIA BERHAD                                 ',0,7.15,68,'458-11141002-7-1473408-12',0,'OPN','2017-04-27',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-05-07 02:59:20',0,'2017-05-07 03:02:18',0,'',0,'AP20170400000008',0,0),(173,173,1,3,'POS MALAYSIA BERHAD                         ',0,7.15,68,'458-11141002-7-1484606-6',0,'OPN','2017-05-04',0,0,1,0,0,'',0,0,0,3,0,0,0,0,76,'2017-05-07 03:02:00',0,'2017-05-07 03:02:11',0,'',0,'AP20170500000002',0,0),(174,174,1,3,'MAYBANK KUALA TERENGGANU                                     ',0,83.74,166,'BANK STATEMENT 4',0,'OPN','2017-04-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-07 03:29:39',0,'2017-05-07 03:29:51',0,'',0,'AP20170400000009',0,0),(175,175,1,3,'TRIPLE A TRAINING                                ',0,700,166,'A170508',0,'OPN','2017-05-09',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-09 06:54:55',0,'2017-05-09 06:55:06',0,'',0,'AP20170500000003',0,0),(176,176,1,3,'MTJ DEVELOPMENT SDN BHD                  ',0,1072.72,166,'ICKL/150517/SL/0002',0,'OPN','2017-05-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-11 02:43:09',76,'2017-05-15 08:56:50',0,'',0,'AP20170500000005',0,0),(177,177,1,3,'HAFIZATUL NAJMI BIN PIZAT (880107115229)                                           ',0,380,69,'844896',0,'OPN','2017-05-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-15 09:50:19',76,'2017-05-15 10:13:27',0,'',0,'AP20170500000008',0,0),(178,178,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                       ',0,153144,69,'844895',0,'OPN','2017-05-15',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-15 10:00:59',0,'2017-05-15 10:01:04',0,'',0,'AP20170500000006',0,0),(179,179,1,3,'KETUA PENGARAH KASTAM MALAYSIA                    ',0,56167.57,166,'6934259200',0,'OPN','2017-05-18',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-18 03:39:14',0,'2017-05-18 03:39:37',0,'',0,'AP20170500000009',0,0),(180,180,1,3,'SALIHIN BUSINESS MANAGEMENT SDN BHD                                ',0,212,166,'SI[00001538]',0,'OPN','2017-05-18',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-18 04:20:27',0,'2017-05-30 04:27:06',1,'',0,'',0,0),(181,181,1,3,'BANK RAKYAT        ',0,4000000,69,'844898',0,'OPN','2017-05-29',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-05-29 02:03:56',0,'2017-05-29 02:04:54',0,'',0,'AP20170500000013',0,0),(182,182,1,3,'MALAYAN BANKING BERHAD                                  ',0,95.4,166,'',0,'OPN','2017-05-31',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-01 06:37:51',0,'2017-06-01 07:13:52',0,'',0,'AP20170500000014',0,0),(183,183,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                         ',0,6814,166,'21343929602',0,'OPN','2017-06-07',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-07 02:17:11',76,'2017-07-06 04:59:00',0,'',0,'AP20170600000018',0,0),(184,184,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                      ',0,153144,69,'853601',0,'OPN','2017-06-07',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-07 02:30:11',0,'2017-06-07 02:31:30',0,'',0,'AP20170600000002',0,0),(185,185,1,3,'KETUA PENGARAH KASTAM MALAYSIA                           ',0,86567.56,166,'',0,'OPN','2017-06-07',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-07 02:44:05',0,'2017-06-07 02:44:24',0,'',0,'AP20170600000003',0,0),(186,186,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                      ',0,681.4,166,'11413464321',0,'OPN','2017-06-21',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-21 00:26:05',0,'2017-06-21 00:29:38',0,'',0,'AP20170600000006',0,0),(187,187,1,3,'ATEMIN BIN SULONG                                        ',0,2100,69,'853605',0,'OPN','2017-06-21',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-21 05:06:48',0,'2017-06-21 05:07:04',0,'',0,'AP20170600000007',0,0),(188,188,1,3,'Y.B DATO\' WAN NAWAWI BIN WAN ISMAIL                                  ',0,40000,69,'853606',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 03:57:48',0,'2017-07-23 08:16:37',0,'',0,'AP20170600000020',0,0),(189,189,1,3,'Y. BHG DATO\' A.RAHIM BIN JUSOH                                         ',0,30000,69,'853607',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 04:01:14',0,'2017-07-23 08:16:36',0,'',0,'AP20170600000019',0,0),(190,190,1,3,'IR. HAJI ATEMIN BIN SULONG                  ',0,30000,69,'853608',0,'OPN','2017-06-22',1,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 04:05:44',0,'2017-07-06 04:51:39',1,'',0,'',0,0),(191,191,1,3,'Y. BHG DATO\' TENGKU DIN BIN TENGKU MOHD                                  ',0,20000,69,'853609',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 04:08:43',0,'2017-06-22 04:16:37',0,'',0,'AP20170600000010',0,0),(192,192,1,3,'Y.B DATO\' WAN NAWAWI BIN WAN ISMAIL                                           ',0,20000,69,'853610',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 04:10:41',0,'2017-06-22 04:16:36',0,'',0,'AP20170600000009',0,0),(193,193,1,3,'Y. BHG DATO\' KOH TAT KIM                                         ',0,20000,69,'853611',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-06-22 04:13:43',0,'2017-06-22 04:16:36',0,'',0,'AP20170600000008',0,0),(194,194,1,3,'MAYBANK                                       ',0,92.22,166,'BANK STATEMENT JUNE 2017',0,'OPN','2017-06-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-02 04:23:55',0,'2017-07-02 04:24:56',0,'',0,'AP20170600000014',0,0),(195,195,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                     ',0,68.14,166,'EFT June 2017',0,'OPN','2017-06-30',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-06 01:53:18',0,'2017-07-06 01:53:33',0,'',0,'AP20170600000015',0,0),(196,196,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                       ',0,153144,69,'853612',0,'OPN','2017-07-16',0,0,0,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-16 01:07:52',0,'2017-07-16 03:40:02',0,'',0,'AP20170700000005',0,0),(197,197,1,3,'JALIL & CO.                                          ',0,19180,69,'853613',0,'OPN','2017-07-16',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-16 01:29:17',76,'2017-07-16 03:39:57',0,'',0,'AP20170700000003',0,0),(198,198,1,3,'ASMADI, AZMI & ASSOCIATES                       ',0,327.54,69,'853614',0,'OPN','2017-07-16',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-16 03:31:39',0,'2017-07-16 03:39:55',0,'',0,'AP20170700000002',0,0),(199,199,1,3,'KETUA PENGARAH KASTAM MALAYSIA                                       ',0,74964.32,69,'853617',0,'OPN','2017-07-16',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-16 03:39:25',0,'2017-07-16 03:39:53',0,'',0,'AP20170700000001',0,0),(200,200,1,3,'KETUA PENGARAH HASIL DALAM NEGERI                                       ',0,1984402.8,69,'853618',0,'OPN','2017-07-16',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-16 04:02:36',0,'2017-07-16 04:02:56',0,'',0,'AP20170700000007',0,0),(201,201,1,3,'SYARIKAT AIR TERENGGANU SDN. BHD.                                          ',0,265000,69,'853621',0,'OPN','2017-07-19',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-19 08:03:30',76,'2017-07-19 10:04:06',0,'',0,'AP20170700000012',0,0),(202,202,1,3,'IR. HAJI ATEMIN BIN SULONG                          ',0,30000,69,'853608',0,'OPN','2017-06-22',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-23 08:24:39',0,'2017-07-23 08:24:53',0,'',0,'AP20170600000021',0,0),(203,203,1,3,'MAJLIS PERBANDARAN DUNGUN                                        ',0,641250,69,'853623',0,'OPN','2017-07-25',0,0,1,0,0,'',0,0,0,1,0,0,0,0,76,'2017-07-25 07:47:18',76,'2017-07-25 07:53:00',0,'',0,'AP20170700000015',0,0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_payo_add_serialNo` BEFORE INSERT ON `comp_payment_others`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_payment_others 
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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,
  `umID` 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;

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


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

CREATE TABLE `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,
  `taxBL` double 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 AUTO_INCREMENT=212 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment_others_without_item` VALUES (1,1,1,505,'O&M June 2016',1254973.93,2637,0,6,75298.44,1330272.37,76,'2016-08-14 06:59:34',0,'0000-00-00 00:00:00'),(2,2,1,555,'JULY CHARGES',15,0,0,0,0,15,76,'2016-08-25 10:15:23',76,'2016-08-25 10:16:00'),(3,3,1,235,'Payment for GST July 2016',81802.14,0,0,0,0,0,76,'2016-08-29 05:24:54',76,'2016-08-29 05:25:27'),(4,4,1,235,'Payment for GST- July ',81802.14,0,0,0,0,81802.14,76,'2016-08-29 06:22:53',0,'0000-00-00 00:00:00'),(5,5,1,139,'Petty cash ',500,0,0,0,0,500,76,'2016-09-05 04:54:09',76,'2016-09-07 05:41:18'),(6,6,1,351,'Kebocoran paip ',2838,2642,0,0,0,2838,76,'2016-09-08 04:48:47',76,'2016-09-08 06:53:13'),(7,7,1,377,'PMA &PMT 2012-2014 , FIRE CERTIFICATE 2011-2014',9560.1,2643,0,0,0,9560.1,76,'2016-09-27 07:39:55',0,'0000-00-00 00:00:00'),(8,8,1,555,'BANK CHARGES- AUGUST',0.5,2641,0,6,0.03,0.53,76,'2016-09-27 08:14:52',76,'2017-04-10 03:13:24'),(9,9,1,235,'Payment for GST August',63639.2,0,0,0,0,63639.2,76,'2016-09-28 00:17:18',0,'0000-00-00 00:00:00'),(10,10,1,562,'TUNTUTAN CLAIM ',21337.8,0,0,0,0,21337.8,76,'2016-10-18 07:16:10',0,'0000-00-00 00:00:00'),(11,11,1,562,'TUNTUTAN BALIK PEMBELIAN',21337.8,2645,0,0,0,21337.8,76,'2016-10-18 07:28:08',75,'2016-11-07 08:33:50'),(12,12,1,235,'Being payment for GST 03- September 2016',69446.89,0,0,0,0,69446.89,76,'2016-10-19 03:07:13',0,'0000-00-00 00:00:00'),(13,13,1,139,'Being reimbursement Petty Cash - October 2016',500,0,0,0,0,500,76,'2016-10-19 03:35:17',0,'0000-00-00 00:00:00'),(14,14,1,190,'Payment for second term property tax assessment',641250,2645,0,0,0,641250,76,'2016-11-08 03:31:28',76,'2016-11-08 05:12:02'),(15,15,1,563,'Security - Okt 2016',2145.6,2645,0,0,0,2145.6,76,'2016-11-12 08:56:13',76,'2016-11-12 08:57:46'),(16,16,1,563,'Security - Oct 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:05:11',0,'0000-00-00 00:00:00'),(17,17,1,563,'Security - Oct 2016',1952,2645,0,0,0,1952,76,'2016-11-12 09:07:15',76,'2016-11-14 00:16:33'),(18,18,1,563,'Security - Oct 2016',1648,2645,0,0,0,1648,76,'2016-11-12 09:10:56',0,'0000-00-00 00:00:00'),(19,19,1,563,'Security - Oct 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:16:51',0,'0000-00-00 00:00:00'),(20,20,1,563,'SECURITY- OCT 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:19:02',0,'0000-00-00 00:00:00'),(21,21,1,563,'SECURITY - OCT 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:20:44',0,'0000-00-00 00:00:00'),(22,22,1,563,'SECURITY - OCT 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:22:41',0,'0000-00-00 00:00:00'),(23,23,1,563,'SECURITY - OCT 2016',1696,2645,0,0,0,1696,76,'2016-11-12 09:24:53',0,'0000-00-00 00:00:00'),(24,24,1,563,'SECURITY - OCT 2016',2083.2,2645,0,0,0,2083.2,76,'2016-11-12 09:27:18',0,'0000-00-00 00:00:00'),(25,25,1,563,'SECURITY - OCT 2016',2544,2645,0,0,0,2544,76,'2016-11-12 09:34:04',0,'0000-00-00 00:00:00'),(26,26,1,563,'SECURITY EXPENSES 0 OCT 2016',2544,2645,0,0,0,2544,76,'2016-11-12 09:35:46',0,'0000-00-00 00:00:00'),(27,27,1,563,'SECURITY - OCT 2016',2544,2645,0,0,0,2544,76,'2016-11-12 09:38:19',0,'0000-00-00 00:00:00'),(28,28,1,563,'SECURITY - OCT 2016',2544,2645,0,0,0,2544,76,'2016-11-12 09:39:56',0,'0000-00-00 00:00:00'),(29,29,1,563,'SECURITY - OCT 2016',1088,2645,0,0,0,1088,76,'2016-11-12 09:41:27',0,'0000-00-00 00:00:00'),(30,30,1,565,'Elaun Mesyuarat Lembaga Pengarah (1st)',1000,2645,0,0,0,1000,76,'2016-11-20 02:12:12',76,'2016-11-27 05:35:29'),(31,31,1,565,'Elaun Mesyuarat Lembaga Pengarah (1st)',1000,2645,0,0,0,1000,76,'2016-11-20 02:31:53',76,'2016-11-27 05:35:04'),(32,32,1,565,'Elaun Mesyuarat Lembaga Pengarah (1st)',1000,2645,0,0,0,1000,76,'2016-11-20 02:33:27',76,'2016-11-27 05:34:36'),(33,33,1,235,'GST 03 - OCT 2016',63445.62,0,0,0,0,63445.62,76,'2016-11-27 06:56:55',76,'2016-11-27 06:57:34'),(34,34,1,555,'Bank Charge - November 2016',19.5,2637,0,6,1.17,20.67,76,'2016-12-13 07:49:50',0,'0000-00-00 00:00:00'),(35,35,1,190,'Payment security RELA - July 2016',28363.2,2645,0,0,0,28363.2,76,'2016-12-13 08:07:33',0,'0000-00-00 00:00:00'),(36,36,1,190,'Payment security - Ogos RELA',28016,0,0,0,0,28016,76,'2016-12-13 08:09:38',0,'0000-00-00 00:00:00'),(37,37,1,190,'Payment Security - September 2016',28312,2645,0,0,0,28312,76,'2016-12-13 08:11:55',0,'0000-00-00 00:00:00'),(38,38,1,567,'Placement Fixed Deposit - Bank Muamalat',3000000,0,0,0,0,3000000,76,'2016-12-13 08:20:47',0,'0000-00-00 00:00:00'),(39,39,1,387,'PROGRAM TAHUNAN ISTERI WAKIL-WAKIL RAKYAT BN NEG. TRG',200000,2645,0,0,0,200000,76,'2016-12-14 01:11:45',0,'0000-00-00 00:00:00'),(40,40,1,560,'Purchase of Stationery - Loji Air Kemudi (Security)',43.8679,2637,0,6,2.63,46.5,76,'2016-12-14 06:19:21',76,'2016-12-14 09:03:41'),(41,41,1,390,'Courier CJ Bio- Bank Guarantee',6.745,2637,0,6,0.4,7.15,76,'2016-12-14 06:35:45',0,'0000-00-00 00:00:00'),(42,42,1,382,'LAWATAN KERJA PENGARAH BEKALAN AIR NEG. TRG KE LOJI AIR KEMUDI',301.4,2645,0,0,0,301.4,76,'2016-12-14 07:10:21',0,'0000-00-00 00:00:00'),(43,43,1,137,'DEPOSIT BALANCE MEETING ALLOWANCE',500,2645,0,0,0,500,76,'2016-12-14 07:15:17',76,'2016-12-15 02:11:42'),(44,44,1,390,'COURIER - NSE RESOURCES (LETTERS)',9.91,2637,0,6,0.59,10.5,76,'2016-12-14 07:19:28',0,'0000-00-00 00:00:00'),(45,45,1,390,'COURIER MAYBANK 2E-MAYBANK',6.745,2637,0,6,0.4,7.15,76,'2016-12-14 07:21:54',0,'0000-00-00 00:00:00'),(46,46,1,382,'MESYUARAT TEKNIKAL BAKIPC BIL 5/2016',60,2645,0,0,0,60,76,'2016-12-14 07:24:55',0,'0000-00-00 00:00:00'),(47,47,1,382,'MESYUARAT KOORDINASI BAKIPC BIL 3/2016',108,2645,0,0,0,108,76,'2016-12-14 07:26:27',0,'0000-00-00 00:00:00'),(48,48,1,190,'Security - Nov 2016',2000,2645,0,0,0,2000,76,'2016-12-17 06:17:18',0,'0000-00-00 00:00:00'),(49,49,1,190,'Secutity - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:20:11',0,'0000-00-00 00:00:00'),(50,50,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:24:39',0,'0000-00-00 00:00:00'),(51,51,1,190,'Security - Nov 2016',1520,2645,0,0,0,1520,76,'2016-12-17 06:26:44',0,'0000-00-00 00:00:00'),(52,52,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:30:13',0,'0000-00-00 00:00:00'),(53,53,1,190,'Security Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:33:32',0,'0000-00-00 00:00:00'),(54,54,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:37:59',0,'0000-00-00 00:00:00'),(55,55,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:40:35',0,'0000-00-00 00:00:00'),(56,56,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 06:43:05',0,'0000-00-00 00:00:00'),(57,57,1,190,'Security - Nov 2016',2000,2645,0,0,0,2000,76,'2016-12-17 06:44:25',0,'0000-00-00 00:00:00'),(58,58,1,190,'Security - Nov 2016',2352,2645,0,0,0,2352,76,'2016-12-17 06:48:27',0,'0000-00-00 00:00:00'),(59,59,1,190,'Security - Nov 2016',2352,2645,0,0,0,2352,76,'2016-12-17 06:50:33',0,'0000-00-00 00:00:00'),(60,60,1,190,'Security - Nov 2016',2352,2645,0,0,0,2352,76,'2016-12-17 06:53:02',0,'0000-00-00 00:00:00'),(61,61,1,190,'Security - Nov 2016',2352,2645,0,0,0,2352,76,'2016-12-17 06:55:09',0,'0000-00-00 00:00:00'),(62,62,1,190,'Security - Nov 2016',1568,2645,0,0,0,1568,76,'2016-12-17 07:04:03',0,'0000-00-00 00:00:00'),(63,63,1,190,'Renew Pepasangan Elektrik - Kg Serdang KM 13',3000,2645,0,0,0,3000,76,'2016-12-17 07:15:51',0,'0000-00-00 00:00:00'),(64,64,1,190,'Renew Pepasangan - Intake Works',3000,2645,0,0,0,3000,76,'2016-12-17 07:17:52',0,'0000-00-00 00:00:00'),(65,65,1,377,'Renew Pepasangan- Jln GPP 5&6 Off',165,2645,0,0,0,165,76,'2016-12-17 07:20:29',0,'0000-00-00 00:00:00'),(66,66,1,190,'Payment management fee Julai 2016 - Disember 2016',500000,2637,0,6,30000,530000,76,'2016-12-18 04:35:41',0,'0000-00-00 00:00:00'),(67,67,1,514,'Payment for \'Pemberian Imbuhan Kewangan\'',10000,2645,0,0,0,10000,76,'2016-12-18 08:37:58',0,'0000-00-00 00:00:00'),(68,68,1,514,'Payment \'Pemberian Imbuhan Kewangan\'',7500,2645,0,0,0,7500,76,'2016-12-18 08:52:46',0,'0000-00-00 00:00:00'),(69,69,1,514,'Payment for \'Pemberian Imbuhan Kewangan\'',7500,0,0,0,0,7500,76,'2016-12-18 08:54:08',0,'0000-00-00 00:00:00'),(70,70,1,514,'Payment for \'Pemberian Imbuhan Kewangan\'',7500,2645,0,0,0,7500,76,'2016-12-18 08:55:42',0,'0000-00-00 00:00:00'),(71,71,1,567,'Being placement fixed deposit at Bank Rakyat',1000000,2645,0,0,0,1000000,76,'2016-12-18 10:18:54',0,'0000-00-00 00:00:00'),(72,72,1,387,'CSR- Bantuan Persekolahan Kepada Keluarga 18 RAMD ',169500,0,0,0,0,169500,76,'2016-12-20 08:23:32',0,'0000-00-00 00:00:00'),(73,73,1,387,'CSR - Bantuan Kepada Nelayan dan Buruh DUN Seberang Takir',390000,2645,0,0,0,390000,76,'2016-12-20 08:25:59',76,'2016-12-20 08:28:34'),(74,74,1,387,'CSR - Bantuan Persekolahan Kepada Keluarga Bn 9 PGA ',165900,2645,0,0,0,165900,76,'2016-12-20 08:27:57',0,'0000-00-00 00:00:00'),(75,75,1,565,'Bayaran untuk mesyuarat Jawatankuasa Sebutharga pada 13/12/2016 (kawalan keselamatan di Loji Kemudi)',900,2645,0,0,0,900,76,'2016-12-22 00:45:22',0,'0000-00-00 00:00:00'),(76,76,1,387,'CSR- Bantuan Persekolahan Kepada Keluarga Polis Gong Badak                                         ',19800,2645,0,0,0,19800,76,'2016-12-22 06:26:25',76,'2016-12-26 01:48:39'),(77,77,1,560,'Purchase power glue',15.94,2637,0,6,0.96,16.9,76,'2016-12-27 01:10:05',76,'2016-12-27 01:21:49'),(78,78,1,382,'Meeting Teknikal BAKIPC Bil 3/2016 - Pagi & T/hari',120,2645,0,0,0,120,76,'2016-12-27 02:10:49',0,'0000-00-00 00:00:00'),(79,79,1,235,'Payment GST 03 - November 2016',76664.92,0,0,0,0,0,76,'2016-12-28 11:35:58',0,'0000-00-00 00:00:00'),(80,80,1,382,'Mesyuarat Teknikal BAKIPC Bil 3/2016',120,2645,0,0,0,120,76,'2017-01-01 06:09:05',0,'0000-00-00 00:00:00'),(81,81,1,390,'Courier - Suruhanjaya Tenaga',6.75,2637,0,6,0.41,7.16,76,'2017-01-01 07:13:26',0,'0000-00-00 00:00:00'),(82,82,1,560,'Sticker - CSR Programme',63.4,2637,0,6,3.8,67.2,76,'2017-01-01 07:15:22',0,'0000-00-00 00:00:00'),(83,83,1,560,'Glue - CSR Programme',6.6,2637,0,6,0.4,7,76,'2017-01-01 07:17:10',0,'0000-00-00 00:00:00'),(84,84,1,560,'File',24.15,2637,0,6,1.45,25.6,76,'2017-01-01 07:20:03',0,'0000-00-00 00:00:00'),(85,85,1,560,'Beg (CSR)',124.53,2637,0,6,7.47,132,76,'2017-01-01 07:26:07',0,'0000-00-00 00:00:00'),(86,86,1,382,'Mesyuarat Teknikal BAKIPC (6/2016) & NSE Resources (1/2016)',100,2645,0,0,0,100,76,'2017-01-01 07:30:21',0,'0000-00-00 00:00:00'),(87,87,1,382,'Mesyuarat Teknikal BAKIPC Bil 4/2016',50,2645,0,0,0,50,76,'2017-01-01 07:58:00',0,'0000-00-00 00:00:00'),(88,88,1,139,'Reimbursement Disember  2016',1000,2645,0,0,0,1000,76,'2017-01-01 08:28:49',0,'0000-00-00 00:00:00'),(89,89,1,382,'Meeting Programmed CSR',300,2645,0,0,0,300,76,'2017-01-02 23:59:31',0,'0000-00-00 00:00:00'),(90,90,1,387,'SUMBANGAN KEPADA WARTAWAN',64500,2645,0,0,0,64500,76,'2017-01-08 04:35:09',0,'0000-00-00 00:00:00'),(91,91,1,387,'SUMBANGAN PUSPANITA',100000,2645,0,0,0,100000,76,'2017-01-08 04:36:51',0,'0000-00-00 00:00:00'),(92,92,1,561,'LOUNGE SUITE',5000,2645,0,0,0,5000,76,'2017-01-08 04:45:23',0,'0000-00-00 00:00:00'),(93,93,1,561,'LOUNGE SUIT',4500,2644,0,0,0,4500,76,'2017-01-08 04:54:16',76,'2017-01-08 04:59:53'),(94,94,1,561,'LOUNGE SUIT',4500,2644,0,0,0,4500,76,'2017-01-08 04:56:14',76,'2017-01-08 04:59:16'),(95,95,1,352,'CIT CSR PROGRAMMED',530,2637,1.8000000000000007,6,31.8,561.8,76,'2017-01-08 06:20:10',0,'0000-00-00 00:00:00'),(96,96,1,387,'Sumbangan kepada penoreh getah pada 12 Januari 2017',61500,2644,0,0,0,61500,76,'2017-01-10 05:48:41',0,'0000-00-00 00:00:00'),(97,97,1,70,'BANK GUARANTEE - MAYBANK KTBC',435000,2645,0,0,0,435000,76,'2017-01-14 03:38:28',0,'0000-00-00 00:00:00'),(98,98,1,382,'CSR- Makan pagi (Penoreh Getah)',60,2644,0,0,0,60,76,'2017-01-14 07:59:06',0,'0000-00-00 00:00:00'),(99,99,1,560,'PURCHASE OF CATRIDGE (BLACK)',269.81,2637,0,6,16.19,286,76,'2017-01-14 08:07:21',0,'0000-00-00 00:00:00'),(100,100,1,387,'BAKUL MAKANAN - CSR NELAYAN & BURUH',130000,2637,0,6,7800,137800,76,'2017-01-14 08:12:49',0,'0000-00-00 00:00:00'),(101,101,1,560,'FILE, STICKER',38.87,2637,0,6,2.33,41.2,76,'2017-01-14 08:36:21',0,'0000-00-00 00:00:00'),(102,102,1,390,'NSE RESOURCES (PERTUKARAN METER)',6.745,2637,0,6,0.4,7.15,76,'2017-01-14 08:38:52',0,'0000-00-00 00:00:00'),(103,103,1,333,'PURCSAHE OF RUBBER STAMP',80,2642,0,0,0,80,76,'2017-01-14 08:42:24',0,'0000-00-00 00:00:00'),(104,104,1,333,'PURCHASE OF RUBBER STAMP',80,2642,0,0,0,80,76,'2017-01-14 08:43:46',0,'0000-00-00 00:00:00'),(105,105,1,333,'PURCHASE OF RUBBER STAMP',46,2642,0,0,0,46,76,'2017-01-14 08:44:53',0,'0000-00-00 00:00:00'),(106,106,1,555,'BANK CHARGES DECEMBER 16',393.5,2637,0,6,23.61,417.11,76,'2017-01-15 04:03:54',0,'0000-00-00 00:00:00'),(107,107,1,563,'Security - December 2016',2036.8,2645,0,0,0,2036.8,76,'2017-01-16 06:57:15',0,'0000-00-00 00:00:00'),(108,108,1,563,'SECURITY- DECEMBER 2016',1472,2645,0,0,0,1472,76,'2017-01-16 07:10:46',0,'0000-00-00 00:00:00'),(109,109,1,563,'SECURITY - DECE,BER 2016',1792,2645,0,0,0,1792,76,'2017-01-16 07:15:43',0,'0000-00-00 00:00:00'),(110,110,1,563,'DECEMBER 2016',1664,2645,0,0,0,1664,76,'2017-01-16 07:19:22',0,'0000-00-00 00:00:00'),(111,111,1,563,'SECURITY - DECEMBER 2016',1712,2645,0,0,0,1712,76,'2017-01-16 07:23:32',0,'0000-00-00 00:00:00'),(112,112,1,563,'SECURITY-DECEMBER 2016',1712,2645,0,0,0,1712,76,'2017-01-16 07:32:02',0,'0000-00-00 00:00:00'),(113,113,1,563,'SECURITY - DECEMBER 2016',1616,2645,0,0,0,1616,76,'2017-01-16 07:52:18',0,'0000-00-00 00:00:00'),(114,114,1,563,'SECURITY - DECEMBER 2016',1712,2645,0,0,0,1712,76,'2017-01-16 07:57:54',0,'0000-00-00 00:00:00'),(115,115,1,563,'SECURITY - DECEMBER 2016',1712,2645,0,0,0,1712,76,'2017-01-16 08:00:28',0,'0000-00-00 00:00:00'),(116,116,1,563,'SECURITY - DECEMBER 2016',1712,2645,0,0,0,1712,76,'2017-01-16 08:03:33',0,'0000-00-00 00:00:00'),(117,117,1,563,'SECURITY - DECEMBER 2016',2161.6,2645,0,0,0,2161.6,76,'2017-01-16 08:08:23',0,'0000-00-00 00:00:00'),(118,118,1,563,'SECURITY - DECEMBER 2016',2520,2645,0,0,0,2520,76,'2017-01-16 08:12:31',0,'0000-00-00 00:00:00'),(119,119,1,563,'SECURITY - DECEMBER 2016',2520,2645,0,0,0,2520,76,'2017-01-16 08:16:39',0,'0000-00-00 00:00:00'),(120,120,1,563,'SECURITY-DECEMEBER 2016',2616,2645,0,0,0,2616,76,'2017-01-16 08:19:58',0,'0000-00-00 00:00:00'),(121,121,1,563,'SECURITY - DECEMBER 2016',2616,2645,0,0,0,2616,76,'2017-01-16 08:22:45',0,'0000-00-00 00:00:00'),(122,122,1,139,'REIMBURSEMENT PETTY CASH',1000,2644,0,0,0,1000,76,'2017-01-17 01:34:31',0,'0000-00-00 00:00:00'),(123,123,1,514,'Payment Secretarial Fee (1.10..2016-31.12.2016)',730,2637,13.799999999999997,6,43.8,773.8,76,'2017-01-18 06:37:07',0,'0000-00-00 00:00:00'),(124,124,1,514,'SUMMON SECURITY TERMINATE EN NORDIN',2412,2645,0,0,0,2412,76,'2017-01-19 06:43:20',0,'0000-00-00 00:00:00'),(125,125,1,333,'PURCHASE OF RUBBER STAMP',53,2645,0,0,0,53,76,'2017-01-21 03:39:10',0,'0000-00-00 00:00:00'),(126,126,1,383,'SALINAN PERAKUAN PENDAFTARAN KENDERAAN (TBP7791,WJN566,WJP5063, T/BA8630,BFX8784)',250,2645,0,0,0,250,76,'2017-01-21 03:44:13',0,'0000-00-00 00:00:00'),(127,127,1,560,'MOUSE',15,2637,0,6,0.9,15.9,76,'2017-01-21 03:45:06',0,'0000-00-00 00:00:00'),(128,128,1,235,'PAYMENT GST DECEMBER 2016',51408.38,2645,0,0,0,51408.38,76,'2017-01-24 07:44:06',0,'0000-00-00 00:00:00'),(129,129,1,567,'PLACEMENT FIXED DEPOSIT MBSB',2000000,2644,0,0,0,2000000,76,'2017-01-24 07:51:28',0,'0000-00-00 00:00:00'),(130,130,1,565,'BOD Meeting 1/2017',2100,2644,0,0,0,2100,76,'2017-02-01 00:57:31',0,'0000-00-00 00:00:00'),(131,131,1,387,'SUMBANGAN KEPADA WARTAWAN',18000,2644,0,0,0,18000,76,'2017-02-01 02:26:10',76,'2017-02-01 02:35:11'),(132,132,1,387,'SUMBANGAN CSR KEPADA KELAB WARTAWAN MEDIA TERENGGANU',100000,2644,0,0,0,100000,76,'2017-02-02 03:07:50',0,'0000-00-00 00:00:00'),(133,133,1,383,'TOWING KEMBARA & PAJERO FROM LOJI KEMUDI TO WORKSHOP',900,2642,0,0,0,900,76,'2017-02-02 04:07:38',76,'2017-07-23 07:31:05'),(134,134,1,351,'HOT TAPPING DI LOT Q, KERTEH',17853.46,2644,0,0,0,17853.46,76,'2017-02-06 06:43:05',0,'0000-00-00 00:00:00'),(135,135,1,555,'BANK CHARGE - JANUARY 2017',96,2637,0,6,5.76,101.76,76,'2017-02-11 03:25:49',76,'2017-02-11 04:04:40'),(136,136,1,226,'ANSURAN 1/12 ANGGARAN CUKAI 2017',153144,2644,0,0,0,153144,76,'2017-02-12 02:32:09',76,'2017-04-06 00:48:50'),(137,137,1,373,'PROPERTY TAXES JAN-JUN 2017',641250,2644,0,0,0,641250,76,'2017-02-13 04:22:36',0,'0000-00-00 00:00:00'),(138,138,1,377,'JKKP 2016 & BOMBA',2487,2644,0,0,0,2487,76,'2017-02-13 05:15:41',76,'2017-02-13 05:20:47'),(139,139,1,382,'MEETING WITH BROKER INSURANCE - ANTAH ',116.98,2637,0,6,7.02,124,76,'2017-02-15 00:00:30',0,'0000-00-00 00:00:00'),(140,140,1,390,'PURCHASE TRANSFER FORM OF ASSET',7.55,2637,0,6,0.45,8,76,'2017-02-15 00:03:32',76,'2017-02-15 00:11:30'),(141,141,1,139,'REIMBURSEMENT FEBRUARY',1000,2644,0,0,0,1000,76,'2017-02-16 08:42:24',0,'0000-00-00 00:00:00'),(142,142,1,383,'ROAD TAX WJN 566 - RM360 TBP7791 - RM419.60',779.6,2644,0,0,0,779.6,76,'2017-02-19 07:57:27',0,'0000-00-00 00:00:00'),(143,143,1,235,'GST 03 JAN 2017',66108.11,2644,0,0,0,66108.11,76,'2017-02-20 08:22:24',0,'0000-00-00 00:00:00'),(144,144,1,560,'PURCHASE OF ENVELOPE 2ND BATCH',500,2637,0,6,30,530,76,'2017-02-28 08:34:35',0,'0000-00-00 00:00:00'),(145,145,1,349,'BANK GUARANTEE MAYBANK',212,2644,0,0,0,212,76,'2017-02-28 08:37:57',0,'0000-00-00 00:00:00'),(146,145,2,349,'BANK GUARANTEE - MAYBANK',3795,2637,197.7,6,227.7,4022.7,76,'2017-02-28 08:38:33',0,'0000-00-00 00:00:00'),(147,145,3,349,'BANK GUARANTEE - MAYBANK',2971.4,2644,0,0,0,2971.4,76,'2017-02-28 08:39:17',0,'0000-00-00 00:00:00'),(148,146,1,560,'PURCHASE OF ENVELOPE - CSR',500,2637,0,6,30,530,76,'2017-02-28 08:49:39',0,'0000-00-00 00:00:00'),(149,147,1,226,'ANSURAN 2/12 ANGGARAN CUKAI 2017',153144,2644,0,0,0,153144,76,'2017-03-07 09:44:28',76,'2017-04-06 00:52:57'),(150,148,1,555,'Feb charge bank',520.5,2637,1.2300000000000004,6,31.23,551.73,76,'2017-03-12 09:02:53',0,'0000-00-00 00:00:00'),(151,149,1,555,'Bank charge Bank Guarantee CIMB',25.5,2637,0,6,1.53,27.03,76,'2017-03-13 04:23:59',0,'0000-00-00 00:00:00'),(152,150,1,390,'Courier Sign Lette BG to Maybank Kuantan & Original BG Bakipc to TNB',19.811,2637,0,6,1.19,21,76,'2017-03-18 03:46:00',0,'0000-00-00 00:00:00'),(153,151,1,383,'Road tax Kembara (WJP5063)',50,2644,0,0,0,50,76,'2017-03-18 03:49:08',0,'0000-00-00 00:00:00'),(154,152,1,382,'Carian SSM',15,2637,0,6,0.9,15.9,76,'2017-03-18 03:54:33',0,'0000-00-00 00:00:00'),(155,153,1,382,'Carian SSM',15,2637,0,6,0.9,15.9,76,'2017-03-18 03:55:37',0,'0000-00-00 00:00:00'),(156,154,1,190,'1st Quarter 2017',250003,2637,0,6,15000.18,265003.18,76,'2017-03-19 02:09:00',0,'0000-00-00 00:00:00'),(157,155,1,226,'ANSURAN 3/12 ANGGARAN CUKAI 2017',153144,2645,0,0,0,153144,76,'2017-03-19 02:20:43',76,'2017-04-06 00:52:21'),(158,156,1,235,'PAYMENT GST 03 - FEBRUARY 2017',83374.08,2645,0,0,0,83374.08,76,'2017-03-19 09:30:38',0,'0000-00-00 00:00:00'),(159,157,1,382,'Perbincangan GST dengan Veolia  (15/3/2017)',15,2644,0,0,0,15,76,'2017-03-26 04:35:20',0,'0000-00-00 00:00:00'),(160,157,2,382,'Mesyuarat Koordinasi Kali 1/2017',80,2644,0,0,0,80,76,'2017-03-26 04:36:01',0,'0000-00-00 00:00:00'),(161,158,1,383,'Polish Pajero WJN 566 (Invoice 080)',350,2637,0,6,21,371,76,'2017-03-26 04:47:55',0,'0000-00-00 00:00:00'),(162,158,2,383,'Puspakom & servis Perodua Kembara (Invoice 081)',310,2637,9.600000000000001,6,18.6,328.6,76,'2017-03-26 04:49:01',0,'0000-00-00 00:00:00'),(163,159,1,383,'Tinted & Door Visor Pajero WJN 566',760,2642,0,0,0,760,76,'2017-03-26 04:53:05',0,'0000-00-00 00:00:00'),(164,160,1,383,'Battery Kembara',190,2637,0,6,11.4,201.4,76,'2017-03-26 04:55:27',0,'0000-00-00 00:00:00'),(165,161,1,383,'Tukar Tayar, balancing & alignment Pajero WJN 566',2542,2637,122.52000000000001,6,152.52,2694.52,76,'2017-03-26 04:58:03',0,'0000-00-00 00:00:00'),(166,162,1,139,'REIMBURSEMENT APRIL 2017',2000,2644,0,0,0,2000,76,'2017-04-03 05:48:57',0,'0000-00-00 00:00:00'),(167,163,1,471,'BG RM5,000',50,2637,0,6,3,53,76,'2017-04-05 03:33:11',0,'0000-00-00 00:00:00'),(168,163,2,471,'BG 5,000',10,2644,0,0,0,10,76,'2017-04-05 03:33:40',0,'0000-00-00 00:00:00'),(169,164,1,471,'BG RM160,000.00',1120,2637,37.2,6,67.2,1187.2,76,'2017-04-05 03:35:35',0,'0000-00-00 00:00:00'),(170,164,2,471,'BG RM160,000.00',10,2644,0,0,0,10,76,'2017-04-05 03:36:04',0,'0000-00-00 00:00:00'),(171,165,1,471,'BG RM270,000.00',1890,2637,83.4,6,113.4,2003.4,76,'2017-04-05 03:37:32',0,'0000-00-00 00:00:00'),(172,165,2,471,'BG RM270,000.00',10,2644,0,0,0,10,76,'2017-04-05 03:38:03',0,'0000-00-00 00:00:00'),(173,166,1,555,'BANK CHARGE - MARCH 2017',86.5,2637,0,6,5.19,91.69,76,'2017-04-05 03:44:44',0,'0000-00-00 00:00:00'),(174,167,1,560,'KERTAS PAYMENT VOUCHER, PEMADAM,LIQUID PAPER',28.21,2637,0,6,1.69,29.9,76,'2017-04-15 23:50:16',0,'0000-00-00 00:00:00'),(175,168,1,235,'GST 03 MARCH 2017',68139.96,2644,0,0,0,68139.96,76,'2017-04-22 03:44:52',0,'0000-00-00 00:00:00'),(176,169,1,70,'DEPOSIT ELECTRICITY LOJI AIR KEMUDI',319100,2644,0,0,0,319100,76,'2017-04-22 03:57:18',0,'0000-00-00 00:00:00'),(177,170,1,226,'4th Tax installment 2017',153144,2644,0,0,0,153144,76,'2017-04-23 08:46:34',0,'0000-00-00 00:00:00'),(178,171,1,567,'PLACEMENT FD AT MBSB (RM 3MILLION, 3 MONTH)',3000000,2644,0,0,0,3000000,76,'2017-05-03 10:16:24',0,'0000-00-00 00:00:00'),(179,172,1,390,'Board resolution (Changes group B to A)',6.7452,2637,0,6,0.4,7.15,76,'2017-05-07 02:59:20',0,'0000-00-00 00:00:00'),(180,173,1,390,'Deposit TNB Dungun',6.745,2637,0,6,0.4,7.15,76,'2017-05-07 03:02:00',0,'0000-00-00 00:00:00'),(181,174,1,555,'Bank charge - April 2017 ',79,2637,0,6,4.74,83.74,76,'2017-05-07 03:29:39',0,'0000-00-00 00:00:00'),(182,175,1,335,'Implications of Companies Act 2016 - Dato\' Koh Tat Kim',700,2642,0,0,0,700,76,'2017-05-09 06:54:55',0,'0000-00-00 00:00:00'),(183,176,1,568,'TRIPLE A TRAINING - DATO\' KOH TAT KIM',1012,2637,30.36,6,60.72,1072.72,76,'2017-05-11 02:43:09',76,'2017-05-15 08:55:41'),(184,177,1,383,'TUKAR TAYAR WJN 566',380,2642,0,0,0,380,76,'2017-05-15 09:50:19',0,'0000-00-00 00:00:00'),(185,178,1,226,'5th installment 2017',153144,2649,0,0,0,153144,76,'2017-05-15 10:00:59',0,'0000-00-00 00:00:00'),(186,179,1,235,'PAYMENT GST 03 - APRIL 2017',56167.57,2644,0,0,0,56167.57,76,'2017-05-18 03:39:14',0,'0000-00-00 00:00:00'),(187,180,1,349,'PAYMENT REINSTALLATION AND BACKUP DATA TO NEW PC MACHINE',200,2637,0,6,12,212,76,'2017-05-18 04:20:27',0,'0000-00-00 00:00:00'),(188,181,1,567,'BEING PLACEMENT FIXED DEPOSIT FOR 1 MONTH ',4000000,2644,0,0,0,4000000,76,'2017-05-29 02:03:57',0,'0000-00-00 00:00:00'),(189,182,1,555,'CHARGE MAY 2017 ',90,2637,0,6,5.4,95.4,76,'2017-06-01 06:37:51',0,'0000-00-00 00:00:00'),(190,183,1,526,'PAYMENT PENALTY LATE PAYMENT GST MARCH 2017',6814,2644,0,0,0,6814,76,'2017-06-07 02:17:11',76,'2017-07-06 04:58:09'),(191,184,1,226,'ANNSURAN 6/12 - ANGGARAN CUKAI 2017',153144,2644,0,0,0,153144,76,'2017-06-07 02:30:11',0,'0000-00-00 00:00:00'),(192,185,1,235,'PAYMENT GST 03 MAY 2017',86567.56,2644,0,0,0,86567.56,76,'2017-06-07 02:44:05',0,'0000-00-00 00:00:00'),(193,186,1,526,'PENALTY 10% LATE PAYMENT GST 03/2017',681.4,2644,0,0,0,681.4,76,'2017-06-21 00:26:06',0,'0000-00-00 00:00:00'),(194,187,1,565,'AGM Account 2016',2100,2644,0,0,0,2100,76,'2017-06-21 05:06:49',0,'0000-00-00 00:00:00'),(195,188,1,569,'DIRECTOR\'S FEE 2016',40000,2644,0,0,0,40000,76,'2017-06-22 03:57:48',0,'0000-00-00 00:00:00'),(196,189,1,569,'DIRECTOR\'S FEE 2016',30000,2644,0,0,0,30000,76,'2017-06-22 04:01:14',0,'0000-00-00 00:00:00'),(197,190,1,569,'DIRECTOR\'S FEE 2016',30000,2644,0,0,0,30000,76,'2017-06-22 04:05:44',0,'0000-00-00 00:00:00'),(198,191,1,569,'DIRECTOR\'S FEE 2017',20000,2644,0,0,0,20000,76,'2017-06-22 04:08:43',0,'0000-00-00 00:00:00'),(199,192,1,569,'DIRECTOR\'S FEE 2017',20000,2644,0,0,0,20000,76,'2017-06-22 04:10:41',0,'0000-00-00 00:00:00'),(200,193,1,569,'DIRECTOR\'S FEE 2017',20000,2644,0,0,0,20000,76,'2017-06-22 04:13:43',0,'0000-00-00 00:00:00'),(201,194,1,555,'CHARGE BANK JUNE 2017',87,2637,0,6,5.22,92.22,76,'2017-07-02 04:23:55',0,'0000-00-00 00:00:00'),(202,195,1,526,'PENALTY 1% GST',68.14,2644,0,0,0,68.14,76,'2017-07-06 01:53:18',0,'0000-00-00 00:00:00'),(203,196,1,226,'ANSURAN CUKAI 7/12 - ANGGARAH CUKAI 2017',153144,2649,0,0,0,153144,76,'2017-07-16 01:07:52',0,'0000-00-00 00:00:00'),(204,197,1,514,'PAYMENT AUDIT FEE 2016',18000,2637,0,6,1080,19080,76,'2017-07-16 01:29:17',0,'0000-00-00 00:00:00'),(205,197,2,0,'Claim Stationery By Jalil & Co',100,0,0,0,0,100,76,'2017-07-16 03:22:06',76,'2017-07-16 03:22:32'),(206,198,1,349,'DISCHARGE BG AT SSM',309,2637,0,6,18.54,327.54,76,'2017-07-16 03:31:39',0,'0000-00-00 00:00:00'),(207,199,1,235,'PAYMENT GST 03 - JUNE 2017',74964.32,2645,0,0,0,74964.32,76,'2017-07-16 03:39:25',0,'0000-00-00 00:00:00'),(208,200,1,226,'PAYMENT CUKAI 2016 (AUDITED)',1984402.8,2645,0,0,0,1984402.8,76,'2017-07-16 04:02:36',0,'0000-00-00 00:00:00'),(209,201,1,45,'MANAGEMENT FEE JAN 2017 - JUN 2017',250000,2637,0,6,15000,265000,76,'2017-07-19 08:03:30',76,'2017-07-19 10:03:51'),(210,202,1,569,'DIRECTOR\'S FEE 2016',30000,2644,0,0,0,30000,76,'2017-07-23 08:24:39',0,'0000-00-00 00:00:00'),(211,203,1,46,'PAYMENT 2ND TERM 2017 CUKAI TAKSIRAN',641250,2642,0,0,0,641250,76,'2017-07-25 07:47:18',0,'0000-00-00 00:00:00');

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

CREATE TABLE `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;

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


--
-- Table structure for table `comp_purchase_bad_debt`
--

CREATE TABLE `comp_purchase_bad_debt` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `valueBadDebt` double NOT NULL,
  `gstBadDebt` double NOT NULL,
  `transDate` date NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(255) 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;

--
-- Dumping data for table `comp_purchase_bad_debt`
--


--
-- Table structure for table `comp_purchase_debt_recover`
--

CREATE TABLE `comp_purchase_debt_recover` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `suppID` int(11) NOT NULL,
  `valueDebtRecover` double NOT NULL,
  `gstDebtRecover` double NOT NULL,
  `transDate` date NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(255) 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' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_purchase_debt_recover`
--


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

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

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

INSERT INTO `comp_purchase_order` VALUES (1,1,3,1,2,0,4,'','','PO20160815','2016-08-15',1,6,1,76,'2016-08-15 07:03:27',0,0,'2016-08-15 07:05:58','',0,''),(2,2,3,1,4,0,3,'','','PO20160815','2016-08-15',1,6,1,76,'2016-08-15 07:26:42',0,0,'2016-08-15 07:31:51','',0,'');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `mytrigerfopobeforeinsert` BEFORE INSERT ON `comp_purchase_order`
 FOR EACH ROW set new.serialNo = 
(select nextSerialNo from view_serial_comp_purchase_order 
	where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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,
  `umID` int(11) NOT NULL,
  `quantityOrder` int(11) NOT NULL,
  `quantityReceivedTotal` int(11) NOT NULL DEFAULT '0',
  `amountExcludedTax` double NOT NULL,
  `taxID` int(11) NOT NULL,
  `taxRate` double NOT NULL,
  `taxAmount` double NOT NULL,
  `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 AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_purchase_order_detail` VALUES (2,1,1,4,'','','OIL & GAS SAFETY PASSPORT LEVEL 1',250,16,1,1,250,2637,6,15,265,76,'2016-08-15 07:03:27',0,'2016-09-06 06:37:51'),(3,2,1,5,'','','Safety shoes',340,18,2,2,680,0,0,0,680,76,'2016-08-15 07:26:42',0,'2016-09-07 06:01:53'),(4,2,2,5,'','','Flame retardant coverall',140,18,2,2,280,0,0,0,280,76,'2016-08-15 07:28:05',0,'2016-09-07 06:01:54'),(5,2,3,5,'','','Safety helmet',19.9,18,2,2,39.8,0,0,0,39.8,76,'2016-08-15 07:29:24',0,'2016-09-07 06:01:55');

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

CREATE TABLE `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,
  `currencyID` int(11) NOT NULL,
  `umID` int(11) NOT NULL,
  `price` double NOT NULL,
  `startDate` date NOT NULL,
  `endDate` date NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` varchar(50) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

CREATE TABLE `comp_quotation` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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;

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

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_cq_add_serialNo` BEFORE INSERT ON `comp_quotation`
 FOR EACH ROW set new.serialNo = 
(select nextSerialNo from view_serial_comp_quotation 
	where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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;

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


--
-- Table structure for table `comp_receive_delivery_conn`
--

CREATE TABLE `comp_receive_delivery_conn` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `receiveDetailID` int(11) NOT NULL,
  `deliveryDetailID` int(11) NOT NULL,
  `type` int(11) NOT NULL COMMENT '1 = DO, 2 = LocTrans, 3 = salesDebitNote, 4 = supplierDebitNote, 5 = cashSale, 6 = item adjustment',
  `qty` bigint(20) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_delivery_conn`
--


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

CREATE TABLE `comp_receive_item` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `companyID` int(11) NOT NULL,
  `opening_balance` tinyint(1) NOT NULL DEFAULT '0',
  `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',
  `isDelete` tinyint(1) NOT NULL DEFAULT '0',
  `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 AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_item` VALUES (1,1,3,0,'No deliver order (training)',1,2,'GRN','2016-08-30',80,0,1,1,1,'',0,0,0,'',0,0,0,'2016-09-06 06:37:51',0,'2016-09-06 06:39:51'),(2,2,3,0,'TG044519-CR',0,2,'GRN','2016-09-05',80,0,1,1,3,'',0,0,0,'',1,0,76,'2016-09-06 09:23:39',0,'0000-00-00 00:00:00'),(3,3,3,0,'INV-0816-120',2,4,'GRN','2016-08-21',80,0,1,1,1,'',0,0,0,'',0,0,0,'2016-09-07 06:01:53',0,'2016-09-07 06:02:48');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `triger_BEFORE_Insert_addSerialForReceiveItem` BEFORE INSERT ON `comp_receive_item`
 FOR EACH ROW set new.serialNo = 
(select nextSerialNo from view_serial_comp_receive_item 
	where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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',
  `standUM` int(11) NOT NULL,
  `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 AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_item_detail` VALUES (1,1,0,1,2,4,'','','OIL & GAS SAFETY PASSPORT LEVEL 1',250,1,1,16,16,250,1,76,'2016-09-06 06:37:51',0,'0000-00-00 00:00:00'),(2,2,7,1,-1,4,'','','OIL & GAS SAFETY PASSPORT LEVEL 1',250,1,1,0,0,250,1,76,'2016-09-06 09:23:39',0,'0000-00-00 00:00:00'),(3,3,0,1,3,5,'','','Safety shoes',340,2,2,18,18,680,2,76,'2016-09-07 06:01:53',0,'2016-09-08 04:35:00'),(4,3,0,2,4,5,'','','Flame retardant coverall',140,2,2,18,18,280,2,76,'2016-09-07 06:01:54',0,'2016-09-08 04:35:00'),(5,3,0,2,5,5,'','','Safety helmet',19.9,2,2,18,18,39.8,2,76,'2016-09-07 06:01:55',0,'2016-09-08 04:35:00');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 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 `comp_receive_payment` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `companyID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `projectID` int(11) NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` varchar(32) 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 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,
  `is_delete` smallint(6) NOT NULL DEFAULT '0',
  `journalNo` varchar(32) NOT NULL,
  `bankReconcileID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`),
  KEY `customerID` (`customerID`),
  KEY `journalNO` (`journalNo`),
  KEY `is_delete` (`is_delete`),
  KEY `updateAble` (`updateAble`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment` VALUES (1,1,3,104,0,69,'IF012000007181',1,0,'RP','2016-07-14',1,1,0,'Payment for Feb 16 invoice',0,0,0,18181.8,18181.8,0,0,76,'2016-08-25 02:25:03',0,'2016-08-25 02:25:57',0,'AR20160700000013',0),(2,2,3,93,0,69,'R160715632105S',1,0,'RP','2016-07-15',1,1,0,'Payment for Jun 2016 invoice',0,0,0,241579.31,241579.31,0,0,76,'2016-08-25 02:28:14',0,'2016-08-25 02:28:42',0,'AR20160700000014',0),(3,3,3,95,0,69,'00171611000000',1,0,'RP','2016-07-21',1,1,0,'Payment for Jun 2016 invoice',0,0,0,366565.81,366565.81,0,0,76,'2016-08-25 07:18:49',0,'2016-08-25 07:19:14',0,'AR20160700000015',0),(4,4,3,94,0,69,'PVUOB/1607/04600006',1,0,'RP','2016-07-26',1,1,0,'',0,0,0,3205.44,3205.44,0,0,76,'2016-08-25 07:21:12',0,'2016-08-25 07:25:36',0,'AR20160700000018',0),(5,5,3,97,0,69,'I0000001707618',1,0,'RP','2016-07-27',1,1,0,'PAYMENT FOR JUN 2016 INVOICE',0,0,0,18751.82,18751.82,0,0,76,'2016-08-25 07:22:36',0,'2016-08-25 07:25:35',0,'AR20160700000017',0),(6,6,3,101,0,69,'IF012000025789',1,0,'RP','2016-07-28',1,1,0,'PAYMENT FOR JUN 2016 INVOICE',0,0,0,49690.2,49690.2,0,0,76,'2016-08-25 07:25:15',0,'2016-08-25 07:25:35',0,'AR20160700000016',0),(7,7,3,107,0,69,'Byself',1,0,'RP','2016-07-11',1,1,0,'',0,0,0,10000,10000,0,0,76,'2016-08-25 09:12:05',0,'2016-08-25 09:12:23',0,'AR20160700000019',0),(8,8,3,107,0,69,'003036',1,0,'RP','2016-08-08',1,1,0,'',0,0,0,10000,10000,0,0,76,'2016-09-27 07:44:15',0,'2016-09-27 07:53:45',0,'AR20160800000029',0),(9,9,3,97,0,69,'I0000001721060',1,0,'RP','2016-08-10',1,1,0,'',0,0,0,16712.81,16712.81,0,0,76,'2016-09-27 07:46:58',0,'2016-09-27 07:53:45',0,'AR20160800000028',0),(10,10,3,102,0,69,'I160816050722S',1,0,'RP','2016-08-16',1,1,0,'',0,0,0,1272019.5,1272019.5,0,0,76,'2016-09-27 07:48:38',0,'2016-09-27 07:53:44',0,'AR20160800000027',0),(11,11,3,95,0,69,'TINV20160803',1,0,'RP','2016-08-22',1,1,0,'',0,0,0,404844.1,404844.1,0,0,76,'2016-09-27 07:49:40',0,'2016-09-27 07:53:43',0,'AR20160800000026',0),(12,12,3,101,0,69,'TINV20160802',1,0,'RP','2016-08-29',1,1,0,'',0,0,0,59407.49,59407.49,0,0,76,'2016-09-27 07:50:49',0,'2016-09-27 07:53:43',0,'AR20160800000025',0),(13,13,3,93,0,69,'R160830949800S',1,0,'RP','2016-08-30',1,1,0,'',0,0,0,166711.08,166711.08,0,0,76,'2016-09-27 07:52:58',0,'2016-09-27 07:53:41',0,'AR20160800000024',0),(14,14,3,94,0,69,'Bank statement 8',1,0,'RP','2016-09-05',1,1,0,'',0,0,0,1758.11,1758.11,0,0,76,'2016-10-27 02:23:21',0,'2016-10-27 04:12:31',0,'AR20160900000021',0),(15,15,3,107,0,69,'Deposit slipt',1,0,'RP','2016-09-06',1,1,0,'',0,0,0,8164.88,8164.88,0,0,76,'2016-10-27 02:59:58',0,'2016-10-27 04:12:30',0,'AR20160900000020',0),(16,16,3,99,0,69,'REJ 6700004416NPY',1,0,'RP','2016-09-07',1,1,0,'',0,0,0,697200,697200,0,0,76,'2016-10-27 03:31:08',0,'2016-10-27 04:12:29',0,'AR20160900000018',0),(17,17,3,99,0,69,'IF012000074012',1,0,'RP','2016-09-07',1,1,0,'',0,0,0,709352,709352,0,0,76,'2016-10-27 03:32:33',0,'2016-10-27 04:12:30',0,'AR20160900000019',0),(18,18,3,93,0,69,'R160926124278S',1,0,'RP','2016-09-26',1,1,0,'',0,0,0,140960.7,140960.7,0,0,76,'2016-10-27 03:36:09',0,'2016-10-27 04:12:28',0,'AR20160900000017',0),(19,19,3,95,0,69,'IBG Payment',1,0,'RP','2016-09-27',1,1,0,'',0,0,0,379844.64,379844.64,0,0,76,'2016-10-27 03:37:26',0,'2016-10-27 04:12:28',0,'AR20160900000016',0),(20,20,3,97,0,69,'I0000001769898',1,0,'RP','2016-09-28',1,1,0,'',0,0,0,17618.05,17618.05,0,0,76,'2016-10-27 03:38:31',0,'2016-10-27 04:12:27',0,'AR20160900000015',0),(21,21,3,101,0,69,'TINV20160904',1,0,'RP','2016-09-29',1,1,0,'',0,0,0,54927.29,54927.29,0,0,76,'2016-10-27 03:39:46',0,'2016-10-27 04:12:27',0,'AR20160900000014',0),(22,22,3,99,0,69,'TINV20160904',1,0,'RP','2016-09-30',1,1,0,'',0,0,0,632184,632184,0,0,76,'2016-10-27 03:40:25',0,'2016-10-27 04:12:26',0,'AR20160900000013',0),(23,23,3,110,0,69,'Bank statement 9',1,0,'RP','2016-09-02',1,1,0,'',0,0,0,31031.49,31031.49,0,0,76,'2016-10-27 04:29:17',0,'2016-10-27 04:29:33',0,'AR20160900000022',0),(24,24,3,102,0,69,'Bank statement bln 9',1,0,'RP','2016-10-11',1,1,0,'',0,0,0,1161640.2,1161640.2,0,0,76,'2016-11-07 05:40:48',0,'2016-11-07 06:19:23',0,'AR20161000000031',0),(25,25,3,102,0,69,'Bank statement 10',1,0,'RP','2016-10-13',1,1,0,'',0,0,0,2218621.55,2218621.55,0,0,76,'2016-11-07 05:42:20',0,'2016-11-07 06:19:22',0,'AR20161000000030',0),(26,26,3,93,0,69,'Bank statement 10',1,0,'RP','2016-10-18',1,1,0,'',0,0,0,147722.44,147722.44,0,0,76,'2016-11-07 05:43:13',0,'2016-11-07 06:19:19',0,'AR20161000000029',0),(27,27,3,95,0,69,'Bank statement 10',1,0,'RP','2016-10-19',1,1,0,'',0,0,0,151373.94,151373.94,0,0,76,'2016-11-07 05:43:49',0,'2016-11-07 06:19:17',0,'AR20161000000026',0),(28,28,3,94,0,69,'Bank statement 10',1,0,'RP','2016-10-19',1,1,0,'',0,0,0,4543.74,4543.74,0,0,76,'2016-11-07 05:44:36',0,'2016-11-07 06:19:18',0,'AR20161000000027',0),(29,29,3,110,0,69,'Bank statement bln 10',1,0,'RP','2016-10-19',1,1,0,'',0,0,0,112893.33,112893.33,0,0,76,'2016-11-07 06:00:38',0,'2016-11-07 06:19:18',0,'AR20161000000028',0),(30,30,3,97,0,69,'BANK STATEMENT OCT 2016',1,0,'RP','2016-10-21',1,1,0,'',0,0,0,15941.13,15941.13,0,0,76,'2016-11-07 06:15:15',0,'2016-11-07 06:19:16',0,'AR20161000000025',0),(31,31,3,99,0,69,'BANK STATEMENT OCT 2016',1,0,'RP','2016-10-26',1,1,0,'',0,0,0,761292,761292,0,0,76,'2016-11-07 06:16:27',0,'2016-11-07 06:19:15',0,'AR20161000000024',0),(32,32,3,101,0,69,'BANK STATEMENT BLN 10',1,0,'RP','2016-10-27',1,1,0,'',0,0,0,59934.31,59934.31,0,0,76,'2016-11-07 06:17:24',0,'2016-11-07 06:19:15',0,'AR20161000000023',0),(33,33,3,108,0,69,'Bank statement 11',1,0,'RP','2016-11-03',1,1,0,'',0,0,0,71952.5,71952.5,0,0,76,'2016-12-13 07:26:29',0,'2016-12-13 07:45:39',0,'AR20161100000030',0),(34,34,3,108,0,69,'Bank statement 11',1,0,'RP','2016-11-21',1,1,0,'',0,0,0,14390.5,14390.5,0,0,76,'2016-12-13 07:30:11',0,'2016-12-13 07:45:38',0,'AR20161100000029',0),(35,35,3,94,0,69,'Bank statement 11',1,0,'RP','2016-11-23',1,1,0,'',0,0,0,1530.12,1530.12,0,0,76,'2016-12-13 07:32:13',0,'2016-12-13 07:45:36',0,'AR20161100000027',0),(36,36,3,97,0,69,'Bank statement 11',1,0,'RP','2016-11-23',1,1,0,'',0,0,0,19340.97,19340.97,0,0,76,'2016-12-13 07:38:41',0,'2016-12-13 07:45:37',0,'AR20161100000028',0),(37,37,3,95,0,69,'Bank statement 11',1,0,'RP','2016-11-24',1,1,0,'',0,0,0,323237.46,323237.46,0,0,76,'2016-12-13 07:39:38',0,'2016-12-13 07:45:35',0,'AR20161100000026',0),(38,38,3,99,0,69,'Bank statement 11',1,0,'RP','2016-11-29',1,1,0,'',0,0,0,641088,641088,0,0,76,'2016-12-13 07:41:05',0,'2016-12-13 07:45:34',0,'AR20161100000024',0),(39,39,3,101,0,69,'Bank statement 11',1,0,'RP','2016-11-29',1,1,0,'',0,0,0,48655.91,48655.91,0,0,76,'2016-12-13 07:41:53',0,'2016-12-13 07:45:35',0,'AR20161100000025',0),(40,40,3,102,0,68,'B. STATEMENT 12',1,0,'RP','2016-12-02',1,1,0,'',0,0,0,1050777.36,1050777.36,0,0,76,'2017-01-15 03:20:02',0,'2017-01-15 04:00:59',0,'AR20161200000023',0),(41,41,3,93,0,68,'B. STATEMENT 12/2016',1,0,'RP','2016-12-06',1,1,0,'',0,0,0,122307.46,122307.46,0,0,76,'2017-01-15 03:22:31',0,'2017-01-15 04:00:58',0,'AR20161200000022',0),(42,42,3,97,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-07',1,1,0,'',0,0,0,24615.11,24615.11,0,0,76,'2017-01-15 03:24:04',0,'2017-01-15 04:00:57',0,'AR20161200000020',0),(43,43,3,94,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-07',1,1,0,'',0,0,0,1957.8,1957.8,0,0,76,'2017-01-15 03:30:40',0,'2017-01-15 04:00:57',0,'AR20161200000021',0),(44,44,3,108,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-09',1,1,0,'',0,0,0,43171.5,43171.5,0,0,76,'2017-01-15 03:35:19',0,'2017-01-15 04:00:56',0,'AR20161200000019',0),(45,45,3,102,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-15',1,1,0,'',0,0,0,1128918.87,1128918.87,0,0,76,'2017-01-15 03:36:12',0,'2017-01-15 04:00:55',0,'AR20161200000018',0),(46,46,3,95,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-22',1,1,0,'',0,0,0,449123.7,449123.7,0,0,76,'2017-01-15 03:37:31',0,'2017-01-15 04:00:55',0,'AR20161200000017',0),(47,47,3,98,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-27',1,1,0,'',0,0,0,194484.11,194484.11,0,0,76,'2017-01-15 03:49:03',0,'2017-01-15 04:00:54',0,'AR20161200000016',0),(48,48,3,99,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-28',1,1,0,'',0,0,0,693028,693028,0,0,76,'2017-01-15 03:50:33',0,'2017-01-15 04:00:53',0,'AR20161200000015',0),(49,49,3,101,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-29',1,1,0,'',0,0,0,54994.07,54994.07,0,0,76,'2017-01-15 03:51:45',0,'2017-01-15 04:00:52',0,'AR20161200000014',0),(50,50,3,93,0,68,'B.STATEMENT 12',1,0,'RP','2016-12-21',1,1,0,'',0,0,0,117390.97,117390.97,0,0,76,'2017-01-15 05:01:22',0,'2017-01-15 05:02:53',0,'AR20161200000024',0),(51,51,3,101,0,68,'26014',1,0,'RP','2017-01-26',1,1,0,'',0,0,0,54879.8,54879.8,0,0,76,'2017-02-09 03:38:27',0,'2017-02-09 03:49:30',0,'AR20170100000014',0),(52,52,3,99,0,68,'26014',1,0,'RP','2017-01-25',1,1,0,'',0,0,0,802844,802844,0,0,76,'2017-02-09 03:39:40',0,'2017-02-09 03:49:31',0,'AR20170100000015',0),(53,53,3,95,0,68,'26014',1,0,'RP','2017-01-23',1,1,0,'',0,0,0,479524.92,479524.92,0,0,76,'2017-02-09 03:40:28',0,'2017-02-09 03:49:32',0,'AR20170100000016',0),(54,54,3,93,0,68,'26014',1,0,'RP','2017-01-20',1,1,0,'',0,0,0,114445.02,114445.02,0,0,76,'2017-02-09 03:41:36',0,'2017-02-09 03:49:32',0,'AR20170100000017',0),(55,55,3,102,0,68,'26104',1,0,'RP','2017-01-12',1,1,0,'',0,0,0,1244540.28,1244540.28,0,0,76,'2017-02-09 03:44:03',0,'2017-02-09 03:49:35',0,'AR20170100000019',0),(56,56,3,97,0,68,'26104',1,0,'RP','2017-01-11',1,1,0,'',0,0,0,25536.67,25536.67,0,0,76,'2017-02-09 03:44:40',0,'2017-02-09 03:49:35',0,'AR20170100000020',0),(57,57,3,94,0,68,'26014',1,0,'RP','2017-01-09',1,1,0,'',0,0,0,5027.18,5027.18,0,0,76,'2017-02-09 03:45:28',0,'2017-02-09 03:49:36',0,'AR20170100000021',0),(58,58,3,98,0,69,'28027',1,0,'RP','2017-01-17',1,1,0,'',0,0,0,97242.07,97242.07,0,0,76,'2017-02-09 03:48:58',0,'2017-02-09 03:49:34',0,'AR20170100000018',0),(59,59,3,94,0,166,'Bank statemet',1,0,'RP','2017-02-10',1,1,0,'',0,0,0,1691.23,1691.23,0,0,76,'2017-03-12 08:08:25',0,'2017-03-12 08:46:47',0,'AR20170200000022',0),(60,60,3,102,0,166,'Bank statement',1,0,'RP','2017-02-16',1,1,0,'',0,0,0,1067488.69,1067488.69,0,0,76,'2017-03-12 08:10:43',0,'2017-03-12 08:46:46',0,'AR20170200000021',0),(61,61,3,95,0,166,'Bank statement',1,0,'RP','2017-02-21',1,1,0,'',0,0,0,368546.95,368546.95,0,0,76,'2017-03-12 08:14:00',0,'2017-03-12 08:46:45',0,'AR20170200000020',0),(62,62,3,97,0,166,'Bank statement',1,0,'RP','2017-02-23',1,1,0,'',0,0,0,26115.43,26115.43,0,0,76,'2017-03-12 08:15:02',0,'2017-03-12 08:46:44',0,'AR20170200000019',0),(63,63,3,101,0,166,'Bank statement',1,0,'RP','2017-02-27',1,1,0,'',0,0,0,43151.75,43151.75,0,0,76,'2017-03-12 08:16:40',0,'2017-03-12 08:46:43',0,'AR20170200000018',0),(64,64,3,93,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-01',1,1,0,'',0,0,0,138317.92,138317.92,0,0,76,'2017-04-05 04:42:40',0,'2017-04-05 04:58:59',0,'AR20170300000020',0),(65,65,3,99,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-01',1,1,0,'',0,0,0,630700,630700,0,0,76,'2017-04-05 04:44:22',0,'2017-04-05 04:59:00',0,'AR20170300000021',0),(66,66,3,94,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-10',1,1,0,'',0,0,0,2715.9,2715.9,0,0,76,'2017-04-05 04:45:43',0,'2017-04-05 04:58:58',0,'AR20170300000019',0),(67,67,3,97,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-15',1,1,0,'',0,0,0,25496.6,25496.6,0,0,76,'2017-04-05 04:46:30',0,'2017-04-05 04:58:58',0,'AR20170300000018',0),(68,68,3,95,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-21',1,1,0,'',0,0,0,435945.78,435945.78,0,0,76,'2017-04-05 04:47:10',0,'2017-04-05 04:58:57',0,'AR20170300000017',0),(69,69,3,93,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-22',1,1,0,'',0,0,0,154984.93,154984.93,0,0,76,'2017-04-05 04:50:43',0,'2017-04-05 04:58:56',0,'AR20170300000016',0),(70,70,3,102,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-23',1,1,0,'',0,0,0,1242833.68,1242833.68,0,0,76,'2017-04-05 04:56:33',0,'2017-04-05 04:58:55',0,'AR20170300000015',0),(71,71,3,101,0,166,'Bank statement 3/2017',1,0,'RP','2017-03-30',1,1,0,'',0,0,0,55243.38,55243.38,0,0,76,'2017-04-05 04:57:15',0,'2017-04-05 04:58:55',0,'AR20170300000014',0),(72,72,3,99,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-03',1,1,0,'',0,0,0,765744,765744,0,0,76,'2017-05-07 03:15:10',0,'2017-05-07 03:33:06',0,'AR20170400000021',0),(73,73,3,102,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-20',1,1,0,'',0,0,0,1108104.28,1108104.28,0,0,76,'2017-05-07 03:16:29',0,'2017-05-07 03:33:06',0,'AR20170400000020',0),(74,74,3,97,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-21',1,1,0,'',0,0,0,20731.48,20731.48,0,0,76,'2017-05-07 03:17:36',0,'2017-05-07 03:33:05',0,'AR20170400000018',0),(75,75,3,94,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-21',1,1,0,'',0,0,0,3437.55,3437.55,0,0,76,'2017-05-07 03:18:27',0,'2017-05-07 03:33:05',0,'AR20170400000019',0),(76,76,3,95,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-25',1,1,0,'',0,0,0,398146.81,398146.81,0,0,76,'2017-05-07 03:19:00',0,'2017-05-07 03:33:04',0,'AR20170400000017',0),(77,77,3,101,0,166,'BANK STATEMENT 4',1,0,'RP','2017-04-27',1,1,0,'',0,0,0,54148.19,54148.19,0,0,76,'2017-05-07 03:19:45',0,'2017-05-07 03:33:03',0,'AR20170400000016',0),(78,78,3,99,0,166,'B. STATEMENT MEI 2017',1,0,'RP','2017-05-05',1,1,0,'',0,0,0,685608,685608,0,0,76,'2017-06-01 06:04:51',0,'2017-06-01 06:23:32',0,'AR20170500000016',0),(79,79,3,119,0,166,'HOUSE CHEQUE',1,0,'RP','2017-05-08',1,1,0,'',0,0,0,28.2,28.2,0,0,76,'2017-06-01 06:07:54',0,'2017-06-01 06:23:31',0,'AR20170500000015',0),(80,80,3,97,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-11',1,1,0,'',0,0,0,23454.62,23454.62,0,0,76,'2017-06-01 06:10:20',0,'2017-06-01 06:23:39',0,'AR20170500000026',0),(81,81,3,93,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-16',1,1,0,'',0,0,0,107769.98,107769.98,0,0,76,'2017-06-01 06:14:41',0,'2017-06-01 06:23:37',0,'AR20170500000023',0),(82,82,3,117,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-16',1,1,0,'',0,0,0,606.11,606.11,0,0,76,'2017-06-01 06:15:17',0,'2017-06-01 06:23:38',0,'AR20170500000024',0),(83,83,3,117,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-16',1,1,0,'',0,0,0,228.96,228.96,0,0,76,'2017-06-01 06:16:29',0,'2017-06-01 06:23:39',0,'AR20170500000025',0),(84,84,3,102,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-18',1,1,0,'',0,0,0,995256.47,995256.47,0,0,76,'2017-06-01 06:19:29',0,'2017-06-01 06:23:37',0,'AR20170500000022',0),(85,85,3,99,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-22',1,1,0,'',0,0,0,560952,560952,0,0,76,'2017-06-01 06:20:14',0,'2017-06-01 06:23:36',0,'AR20170500000021',0),(86,86,3,94,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-23',1,1,0,'',0,0,0,2949.36,2949.36,0,0,76,'2017-06-01 06:21:01',0,'2017-06-01 06:23:35',0,'AR20170500000020',0),(87,87,3,93,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-24',1,1,0,'',0,0,0,102026.06,102026.06,0,0,76,'2017-06-01 06:21:46',0,'2017-06-01 06:23:33',0,'AR20170500000019',0),(88,88,3,101,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-25',1,1,0,'',0,0,0,51408.73,51408.73,0,0,76,'2017-06-01 06:22:28',0,'2017-06-01 06:23:32',0,'AR20170500000017',0),(89,89,3,95,0,166,'B.STATEMENT 5',1,0,'RP','2017-05-25',1,1,0,'',0,0,0,432528.12,432528.12,0,0,76,'2017-06-01 06:22:57',0,'2017-06-01 06:23:33',0,'AR20170500000018',0),(90,90,3,118,0,166,'B. STATEMENT JUNE',1,0,'RP','2017-06-02',1,1,0,'',0,0,0,80844.5,80844.5,0,0,76,'2017-07-02 03:53:55',0,'2017-07-02 04:06:26',0,'AR20170600000042',0),(91,91,3,97,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-14',1,1,0,'',0,0,0,30834.55,30834.55,0,0,76,'2017-07-02 03:54:35',0,'2017-07-02 04:06:25',0,'AR20170600000041',0),(92,92,3,93,0,166,'B. STATEMENT JUNE',1,0,'RP','2017-06-15',1,1,0,'',0,0,0,118435.92,118435.92,0,0,76,'2017-07-02 03:56:27',0,'2017-07-02 04:06:22',0,'AR20170600000039',0),(93,93,3,117,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-15',1,1,0,'',0,0,0,421.25,421.25,0,0,76,'2017-07-02 03:58:29',0,'2017-07-02 04:06:24',0,'AR20170600000040',0),(94,94,3,119,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-20',1,1,0,'',0,0,0,43.04,43.04,0,0,76,'2017-07-02 03:59:14',0,'2017-07-02 04:06:20',0,'AR20170600000036',0),(95,95,3,95,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-20',1,1,0,'',0,0,0,555568.05,555568.05,0,0,76,'2017-07-02 03:59:55',0,'2017-07-02 04:06:21',0,'AR20170600000037',0),(96,96,3,102,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-20',1,1,0,'',0,0,0,1210187.16,1210187.16,0,0,76,'2017-07-02 04:01:20',0,'2017-07-02 04:06:21',0,'AR20170600000038',0),(97,97,3,118,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-21',1,1,0,'',0,0,0,46875.96,46875.96,0,0,76,'2017-07-02 04:02:11',0,'2017-07-02 04:06:18',0,'AR20170600000034',0),(98,98,3,99,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-21',1,1,0,'',0,0,0,795424,795424,0,0,76,'2017-07-02 04:03:07',0,'2017-07-02 04:06:19',0,'AR20170600000035',0),(99,99,3,94,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-23',1,1,0,'',0,0,0,2818.87,2818.87,0,0,76,'2017-07-02 04:04:06',0,'2017-07-02 04:06:18',0,'AR20170600000033',0),(100,100,3,101,0,166,'B.STATEMENT JUNE',1,0,'RP','2017-06-29',1,1,0,'',0,0,0,60710.44,60710.44,0,0,76,'2017-07-02 04:05:56',0,'2017-07-02 04:06:17',0,'AR20170600000032',0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_rpay_add_serialNo` BEFORE INSERT ON `comp_receive_payment`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_receive_payment
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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,
  `debtRecoverID` int(11) NOT NULL DEFAULT '0',
  `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 AUTO_INCREMENT=136 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment_detail` VALUES (1,9,1,11,0,0,0,16712.81,0,0,'2016-09-27 07:46:58',0,'0000-00-00 00:00:00'),(2,10,1,8,0,0,0,1272019.5,0,0,'2016-09-27 07:48:38',0,'0000-00-00 00:00:00'),(3,11,1,10,0,0,0,404844.1,0,0,'2016-09-27 07:49:40',0,'0000-00-00 00:00:00'),(4,12,1,7,0,0,0,59407.49,0,0,'2016-09-27 07:50:49',0,'0000-00-00 00:00:00'),(5,13,1,1,0,0,0,64053.89,0,0,'2016-09-27 07:52:58',0,'0000-00-00 00:00:00'),(6,13,2,2,0,0,0,22235.62,0,0,'2016-09-27 07:52:58',0,'0000-00-00 00:00:00'),(7,13,3,3,0,0,0,19619.12,0,0,'2016-09-27 07:52:59',0,'0000-00-00 00:00:00'),(8,13,4,4,0,0,0,60554.41,0,0,'2016-09-27 07:52:59',0,'0000-00-00 00:00:00'),(9,13,5,5,0,0,0,248.04,0,0,'2016-09-27 07:52:59',0,'0000-00-00 00:00:00'),(10,14,1,17,0,0,0,1758.11,0,0,'2016-10-27 02:23:21',0,'0000-00-00 00:00:00'),(11,17,1,6,0,0,0,709352,0,0,'2016-10-27 03:32:33',0,'0000-00-00 00:00:00'),(12,18,1,21,0,0,0,56820.24,0,0,'2016-10-27 03:36:09',0,'0000-00-00 00:00:00'),(13,18,2,22,0,0,0,21189.61,0,0,'2016-10-27 03:36:09',0,'0000-00-00 00:00:00'),(14,18,3,23,0,0,0,16946.64,0,0,'2016-10-27 03:36:09',0,'0000-00-00 00:00:00'),(15,18,4,24,0,0,0,46004.21,0,0,'2016-10-27 03:36:09',0,'0000-00-00 00:00:00'),(16,19,1,18,0,0,0,379844.64,0,0,'2016-10-27 03:37:26',0,'0000-00-00 00:00:00'),(17,20,1,19,0,0,0,17618.05,0,0,'2016-10-27 03:38:31',0,'0000-00-00 00:00:00'),(18,21,1,15,0,0,0,54927.29,0,0,'2016-10-27 03:39:46',0,'0000-00-00 00:00:00'),(19,22,1,14,0,0,0,632184,0,0,'2016-10-27 03:40:25',0,'0000-00-00 00:00:00'),(20,25,1,16,0,0,0,999675.82,0,0,'2016-11-07 05:42:20',0,'0000-00-00 00:00:00'),(21,25,2,27,0,0,0,1218945.73,0,0,'2016-11-07 05:42:20',0,'0000-00-00 00:00:00'),(22,26,1,32,0,0,0,62082.08,0,0,'2016-11-07 05:43:13',0,'0000-00-00 00:00:00'),(23,26,2,33,0,0,0,22360.06,0,0,'2016-11-07 05:43:13',0,'0000-00-00 00:00:00'),(24,26,3,34,0,0,0,20707.1,0,0,'2016-11-07 05:43:13',0,'0000-00-00 00:00:00'),(25,26,4,35,0,0,0,382.87,0,0,'2016-11-07 05:43:13',0,'0000-00-00 00:00:00'),(26,26,5,36,0,0,0,42190.33,0,0,'2016-11-07 05:43:13',0,'0000-00-00 00:00:00'),(27,27,1,29,0,0,0,151373.94,0,0,'2016-11-07 05:43:49',0,'0000-00-00 00:00:00'),(28,28,1,28,0,0,0,4543.74,0,0,'2016-11-07 05:44:36',0,'0000-00-00 00:00:00'),(29,30,1,30,0,0,0,15941.13,0,0,'2016-11-07 06:15:15',0,'0000-00-00 00:00:00'),(30,31,1,25,0,0,0,761292,0,0,'2016-11-07 06:16:28',0,'0000-00-00 00:00:00'),(31,32,1,26,0,0,0,59934.31,0,0,'2016-11-07 06:17:24',0,'0000-00-00 00:00:00'),(32,33,1,38,0,0,0,14390.5,0,0,'2016-12-13 07:26:30',0,'0000-00-00 00:00:00'),(33,33,2,39,0,0,0,14390.5,0,0,'2016-12-13 07:26:30',0,'0000-00-00 00:00:00'),(34,33,3,40,0,0,0,14390.5,0,0,'2016-12-13 07:26:30',0,'0000-00-00 00:00:00'),(35,33,4,42,0,0,0,14390.5,0,0,'2016-12-13 07:26:30',0,'0000-00-00 00:00:00'),(36,33,5,43,0,0,0,14390.5,0,0,'2016-12-13 07:26:30',0,'0000-00-00 00:00:00'),(37,34,1,44,0,0,0,14390.5,0,0,'2016-12-13 07:30:11',0,'0000-00-00 00:00:00'),(38,35,1,48,0,0,0,1530.12,0,0,'2016-12-13 07:32:13',0,'0000-00-00 00:00:00'),(39,36,1,50,0,0,0,19340.97,0,0,'2016-12-13 07:38:41',0,'0000-00-00 00:00:00'),(40,37,1,49,0,0,0,323237.46,0,0,'2016-12-13 07:39:38',0,'0000-00-00 00:00:00'),(41,38,1,46,0,0,0,641088,0,0,'2016-12-13 07:41:05',0,'0000-00-00 00:00:00'),(42,39,1,47,0,0,0,48655.91,0,0,'2016-12-13 07:41:53',0,'0000-00-00 00:00:00'),(43,40,1,45,0,0,0,1050777.36,0,0,'2017-01-15 03:20:02',0,'0000-00-00 00:00:00'),(44,41,1,52,0,0,0,17477.92,0,0,'2017-01-15 03:22:31',0,'0000-00-00 00:00:00'),(45,41,2,53,0,0,0,49582.98,0,0,'2017-01-15 03:22:32',0,'0000-00-00 00:00:00'),(46,41,3,54,0,0,0,18290.51,0,0,'2017-01-15 03:22:32',0,'0000-00-00 00:00:00'),(47,41,4,55,0,0,0,36956.05,0,0,'2017-01-15 03:22:32',0,'0000-00-00 00:00:00'),(48,42,1,63,0,0,0,24615.11,0,0,'2017-01-15 03:24:04',0,'0000-00-00 00:00:00'),(49,43,1,57,0,0,0,1957.8,0,0,'2017-01-15 03:30:40',0,'0000-00-00 00:00:00'),(50,44,1,56,0,0,0,14390.5,0,0,'2017-01-15 03:35:19',0,'0000-00-00 00:00:00'),(51,44,2,73,0,0,0,14390.5,0,0,'2017-01-15 03:35:20',0,'0000-00-00 00:00:00'),(52,44,3,74,0,0,0,14390.5,0,0,'2017-01-15 03:35:20',0,'0000-00-00 00:00:00'),(53,45,1,60,0,0,0,1128918.87,0,0,'2017-01-15 03:36:12',0,'0000-00-00 00:00:00'),(54,46,1,62,0,0,0,449123.7,0,0,'2017-01-15 03:37:31',0,'0000-00-00 00:00:00'),(55,48,1,58,0,0,0,693028,0,0,'2017-01-15 03:50:33',0,'0000-00-00 00:00:00'),(56,49,1,59,0,0,0,54994.07,0,0,'2017-01-15 03:51:45',0,'0000-00-00 00:00:00'),(57,50,1,64,0,0,0,18395.88,0,0,'2017-01-15 05:01:22',0,'0000-00-00 00:00:00'),(58,50,2,65,0,0,0,49582.98,0,0,'2017-01-15 05:01:22',0,'0000-00-00 00:00:00'),(59,50,3,66,0,0,0,20351.79,0,0,'2017-01-15 05:01:22',0,'0000-00-00 00:00:00'),(60,50,4,67,0,0,0,28698.65,0,0,'2017-01-15 05:01:22',0,'0000-00-00 00:00:00'),(61,50,5,68,0,0,0,361.67,0,0,'2017-01-15 05:01:22',0,'0000-00-00 00:00:00'),(62,51,1,76,0,0,0,54879.8,0,0,'2017-02-09 03:38:27',0,'0000-00-00 00:00:00'),(63,52,1,75,0,0,0,802844,0,0,'2017-02-09 03:39:40',0,'0000-00-00 00:00:00'),(64,53,1,79,0,0,0,479524.92,0,0,'2017-02-09 03:40:29',0,'0000-00-00 00:00:00'),(65,54,1,82,0,0,0,20584.14,0,0,'2017-02-09 03:41:36',0,'0000-00-00 00:00:00'),(66,54,2,83,0,0,0,22885.4,0,0,'2017-02-09 03:41:36',0,'0000-00-00 00:00:00'),(67,54,3,84,0,0,0,21042.7,0,0,'2017-02-09 03:41:36',0,'0000-00-00 00:00:00'),(68,54,4,85,0,0,0,349.8,0,0,'2017-02-09 03:41:36',0,'0000-00-00 00:00:00'),(69,54,5,86,0,0,0,49582.98,0,0,'2017-02-09 03:41:36',0,'0000-00-00 00:00:00'),(70,55,1,77,0,0,0,1244540.28,0,0,'2017-02-09 03:44:03',0,'0000-00-00 00:00:00'),(71,56,1,80,0,0,0,25536.67,0,0,'2017-02-09 03:44:40',0,'0000-00-00 00:00:00'),(72,57,1,9,0,0,0,2992.69,0,0,'2017-02-09 03:45:28',0,'0000-00-00 00:00:00'),(73,57,2,78,0,0,0,2034.49,0,0,'2017-02-09 03:45:28',0,'0000-00-00 00:00:00'),(74,59,1,90,0,0,0,1691.23,0,0,'2017-03-12 08:08:25',0,'0000-00-00 00:00:00'),(75,60,1,91,0,0,0,1067488.69,0,0,'2017-03-12 08:10:43',0,'0000-00-00 00:00:00'),(76,61,1,89,0,0,0,368546.95,0,0,'2017-03-12 08:14:01',0,'0000-00-00 00:00:00'),(77,62,1,88,0,0,0,26115.43,0,0,'2017-03-12 08:15:02',0,'0000-00-00 00:00:00'),(78,63,1,92,0,0,0,43151.75,0,0,'2017-03-12 08:16:40',0,'0000-00-00 00:00:00'),(79,64,1,94,0,0,0,30177.78,0,0,'2017-04-05 04:42:40',0,'0000-00-00 00:00:00'),(80,64,2,95,0,0,0,17650.06,0,0,'2017-04-05 04:42:40',0,'0000-00-00 00:00:00'),(81,64,3,96,0,0,0,17593.46,0,0,'2017-04-05 04:42:40',0,'0000-00-00 00:00:00'),(82,64,4,97,0,0,0,23313.64,0,0,'2017-04-05 04:42:41',0,'0000-00-00 00:00:00'),(83,64,5,98,0,0,0,49582.98,0,0,'2017-04-05 04:42:41',0,'0000-00-00 00:00:00'),(84,65,1,93,0,0,0,630700,0,0,'2017-04-05 04:44:23',0,'0000-00-00 00:00:00'),(85,66,1,102,0,0,0,2715.9,0,0,'2017-04-05 04:45:43',0,'0000-00-00 00:00:00'),(86,67,1,104,0,0,0,25496.6,0,0,'2017-04-05 04:46:32',0,'0000-00-00 00:00:00'),(87,68,1,103,0,0,0,435945.78,0,0,'2017-04-05 04:47:10',0,'0000-00-00 00:00:00'),(88,69,1,106,0,0,0,20953.23,0,0,'2017-04-05 04:50:43',0,'0000-00-00 00:00:00'),(89,69,2,107,0,0,0,19606.4,0,0,'2017-04-05 04:50:43',0,'0000-00-00 00:00:00'),(90,69,3,109,0,0,0,44838,0,0,'2017-04-05 04:50:43',0,'0000-00-00 00:00:00'),(91,69,4,110,0,0,0,20004.32,0,0,'2017-04-05 04:50:43',0,'0000-00-00 00:00:00'),(92,69,5,111,0,0,0,49582.98,0,0,'2017-04-05 04:50:43',0,'0000-00-00 00:00:00'),(93,70,1,101,0,0,0,1242833.68,0,0,'2017-04-05 04:56:33',0,'0000-00-00 00:00:00'),(94,71,1,100,0,0,0,55243.38,0,0,'2017-04-05 04:57:15',0,'0000-00-00 00:00:00'),(95,72,1,99,0,0,0,765744,0,0,'2017-05-07 03:15:10',0,'0000-00-00 00:00:00'),(96,73,1,118,0,0,0,1108104.28,0,0,'2017-05-07 03:16:29',0,'0000-00-00 00:00:00'),(97,74,1,121,0,0,0,20731.48,0,0,'2017-05-07 03:17:36',0,'0000-00-00 00:00:00'),(98,75,1,119,0,0,0,3437.55,0,0,'2017-05-07 03:18:27',0,'0000-00-00 00:00:00'),(99,76,1,120,0,0,0,398146.81,0,0,'2017-05-07 03:19:00',0,'0000-00-00 00:00:00'),(100,77,1,117,0,0,0,54148.19,0,0,'2017-05-07 03:19:45',0,'0000-00-00 00:00:00'),(101,78,1,116,0,0,0,685608,0,0,'2017-06-01 06:04:51',0,'0000-00-00 00:00:00'),(102,79,1,142,0,0,0,28.2,0,0,'2017-06-01 06:07:54',0,'0000-00-00 00:00:00'),(103,80,1,134,0,0,0,23454.62,0,0,'2017-06-01 06:10:20',0,'0000-00-00 00:00:00'),(104,81,1,123,0,0,0,20227.34,0,0,'2017-06-01 06:14:41',0,'0000-00-00 00:00:00'),(105,81,2,124,0,0,0,20504.22,0,0,'2017-06-01 06:14:41',0,'0000-00-00 00:00:00'),(106,81,3,125,0,0,0,17455.44,0,0,'2017-06-01 06:14:42',0,'0000-00-00 00:00:00'),(107,81,4,126,0,0,0,49582.98,0,0,'2017-06-01 06:14:42',0,'0000-00-00 00:00:00'),(108,82,1,114,0,0,0,606.11,0,0,'2017-06-01 06:15:17',0,'0000-00-00 00:00:00'),(109,83,1,127,0,0,0,228.96,0,0,'2017-06-01 06:16:29',0,'0000-00-00 00:00:00'),(110,84,1,131,0,0,0,995256.47,0,0,'2017-06-01 06:19:29',0,'0000-00-00 00:00:00'),(111,85,1,129,0,0,0,560952,0,0,'2017-06-01 06:20:14',0,'0000-00-00 00:00:00'),(112,86,1,132,0,0,0,2949.36,0,0,'2017-06-01 06:21:01',0,'0000-00-00 00:00:00'),(113,87,1,136,0,0,0,49582.98,0,0,'2017-06-01 06:21:46',0,'0000-00-00 00:00:00'),(114,87,2,137,0,0,0,18003.89,0,0,'2017-06-01 06:21:46',0,'0000-00-00 00:00:00'),(115,87,3,138,0,0,0,17331,0,0,'2017-06-01 06:21:46',0,'0000-00-00 00:00:00'),(116,87,4,139,0,0,0,17108.19,0,0,'2017-06-01 06:21:46',0,'0000-00-00 00:00:00'),(117,88,1,130,0,0,0,51408.73,0,0,'2017-06-01 06:22:28',0,'0000-00-00 00:00:00'),(118,89,1,133,0,0,0,432528.12,0,0,'2017-06-01 06:22:57',0,'0000-00-00 00:00:00'),(119,90,1,115,0,0,0,13449.49,0,0,'2017-07-02 03:53:55',0,'0000-00-00 00:00:00'),(120,90,2,128,0,0,0,32598.18,0,0,'2017-07-02 03:53:55',0,'0000-00-00 00:00:00'),(121,90,3,141,0,0,0,34796.83,0,0,'2017-07-02 03:53:56',0,'0000-00-00 00:00:00'),(122,91,1,148,0,0,0,30834.55,0,0,'2017-07-02 03:54:35',0,'0000-00-00 00:00:00'),(123,92,1,151,0,0,0,21591.14,0,0,'2017-07-02 03:56:27',0,'0000-00-00 00:00:00'),(124,92,2,152,0,0,0,24929.08,0,0,'2017-07-02 03:56:27',0,'0000-00-00 00:00:00'),(125,92,3,153,0,0,0,22332.72,0,0,'2017-07-02 03:56:27',0,'0000-00-00 00:00:00'),(126,92,4,155,0,0,0,49582.98,0,0,'2017-07-02 03:56:27',0,'0000-00-00 00:00:00'),(127,93,1,140,0,0,0,296.59,0,0,'2017-07-02 03:58:29',0,'0000-00-00 00:00:00'),(128,93,2,154,0,0,0,124.66,0,0,'2017-07-02 03:58:29',0,'0000-00-00 00:00:00'),(129,94,1,150,0,0,0,43.04,0,0,'2017-07-02 03:59:14',0,'0000-00-00 00:00:00'),(130,95,1,147,0,0,0,555568.05,0,0,'2017-07-02 03:59:55',0,'0000-00-00 00:00:00'),(131,96,1,145,0,0,0,1210187.16,0,0,'2017-07-02 04:01:20',0,'0000-00-00 00:00:00'),(132,97,1,156,0,0,0,46875.96,0,0,'2017-07-02 04:02:11',0,'0000-00-00 00:00:00'),(133,98,1,143,0,0,0,795424,0,0,'2017-07-02 04:03:07',0,'0000-00-00 00:00:00'),(134,99,1,146,0,0,0,2818.87,0,0,'2017-07-02 04:04:06',0,'0000-00-00 00:00:00'),(135,100,1,144,0,0,0,60710.44,0,0,'2017-07-02 04:05:56',0,'0000-00-00 00:00:00');

--
-- Table structure for table `comp_receive_payment_detail_creditnote`
--

CREATE TABLE `comp_receive_payment_detail_creditnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `creditnoteID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_payment_detail_creditnote`
--


--
-- Table structure for table `comp_receive_payment_detail_debitnote`
--

CREATE TABLE `comp_receive_payment_detail_debitnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `debitnoteID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_payment_detail_debitnote`
--


--
-- Table structure for table `comp_receive_payment_detail_historical_invoice`
--

CREATE TABLE `comp_receive_payment_detail_historical_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `paymentID` int(11) NOT NULL,
  `historicalinvoiceID` int(11) NOT NULL,
  `amountApplied` double NOT NULL,
  `debtRecoverID` int(11) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_payment_detail_historical_invoice`
--

INSERT INTO `comp_receive_payment_detail_historical_invoice` VALUES (1,1,9,18181.8,0),(2,2,10,127661.52,0),(3,2,11,23465.86,0),(4,2,12,19099.72,0),(5,2,13,274.12,0),(6,2,14,71078.09,0),(7,3,7,366565.81,0),(8,4,6,3205.44,0),(9,5,8,18751.82,0),(10,6,4,49690.2,0),(11,7,21,10000,0),(12,8,21,10000,0),(13,15,21,8164.88,0),(14,16,3,697200,0),(15,23,22,31031.49,0),(16,24,5,1161640.2,0),(17,29,23,112893.33,0),(18,47,16,97242.04,0),(19,47,17,97242.07,0),(20,58,15,97242.07,0);

--
-- Table structure for table `comp_receive_payment_others`
--

CREATE TABLE `comp_receive_payment_others` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `companyID` int(11) NOT NULL,
  `receiveFrom` varchar(128) NOT NULL,
  `projectID` int(11) NOT NULL,
  `paymentMethodID` int(11) NOT NULL,
  `referenceNo` varchar(32) 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,
  `updateAble` smallint(1) 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,
  `is_delete` smallint(6) NOT NULL DEFAULT '0',
  `journalNo` varchar(32) NOT NULL,
  `bankReconcileID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_payment_others`
--

INSERT INTO `comp_receive_payment_others` VALUES (1,1,3,'CIMB (Bank guarantee TNB)                                            ',0,69,'800513',1,0,'ORI','2017-02-27',0,1,0,'',0,0,0,434972.82,0,0,76,'2017-03-12 08:28:33',76,'2017-03-13 03:49:48',0,'AR20170200000023',0),(2,2,3,'MAYBANK KUALA TERENGGANU                                           ',0,166,'BANK STATEMENT 4',1,0,'ORI','2017-04-12',0,1,0,'',0,0,0,435000,0,0,76,'2017-05-07 03:22:34',0,'2017-05-07 03:22:49',0,'AR20170400000015',0),(3,3,3,'BANK MUAMALAT                            ',0,166,'BANK STATEMENT 5',1,0,'ORI','2017-05-18',0,1,0,'',0,0,0,3056371.75,0,0,76,'2017-06-01 06:29:14',0,'2017-06-01 06:29:39',0,'AR20170500000027',0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_rpay_add_others_serialNo` BEFORE INSERT ON `comp_receive_payment_others`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_receive_payment_others
			   where companyID = new.companyID) */;;
DELIMITER ;

--
-- Table structure for table `comp_receive_payment_others_detail`
--

CREATE TABLE `comp_receive_payment_others_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `receivePaymentOthersID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `description` 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 AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_receive_payment_others_detail`
--

INSERT INTO `comp_receive_payment_others_detail` VALUES (1,1,1,70,'CIMB (Bank guarantee TNB)       ',434972.82,2630,0,0,434972.82,76,'2017-03-12 08:28:33',76,'2017-03-13 03:48:32'),(2,2,1,70,'UPLIFT MENT FD AT MAYBANK',435000,2630,0,0,435000,76,'2017-05-07 03:22:34',0,'0000-00-00 00:00:00'),(3,3,1,567,'MATURITY OF FD BANK MUAMALAT',3056371.75,2630,0,0,3056371.75,76,'2017-06-01 06:29:14',0,'0000-00-00 00:00:00');

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

CREATE TABLE `comp_sales_agent` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `agentCode` varchar(32) 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,
  `is_delete` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


--
-- Table structure for table `comp_sales_bad_debt`
--

CREATE TABLE `comp_sales_bad_debt` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `custID` int(11) NOT NULL,
  `valueBadDebt` double NOT NULL,
  `gstBadDebt` double NOT NULL,
  `transDate` date NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(255) 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;

--
-- Dumping data for table `comp_sales_bad_debt`
--


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

CREATE TABLE `comp_sales_creditnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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`),
  KEY `companyID` (`companyID`),
  KEY `journalNO` (`journalNo`),
  KEY `customerID` (`customerID`),
  KEY `is_delete` (`is_delete`),
  KEY `updateAble` (`updateAble`),
  KEY `creditNoteDate` (`creditNoteDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_scn_add_serialNo` BEFORE INSERT ON `comp_sales_creditnote`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_sales_creditnote
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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`),
  KEY `creditNoteID` (`creditNoteID`),
  KEY `taxID` (`taxID`),
  KEY `accountNoID` (`accountNoID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

CREATE TABLE `comp_sales_creditnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditnoteID` int(11) NOT NULL,
  `invoiceDetailID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `umID` 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`),
  KEY `taxID` (`taxID`),
  KEY `itemID` (`itemID`),
  KEY `creditNoteID` (`creditnoteID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

CREATE TABLE `comp_sales_debitnote` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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`),
  KEY `companyID` (`companyID`),
  KEY `journalNO` (`journalNo`),
  KEY `customerID` (`customerID`),
  KEY `is_delete` (`is_delete`),
  KEY `updateAble` (`updateAble`),
  KEY `debitNoteDate` (`debitNoteDate`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_debitnote` VALUES (1,1,3,98,'SDN','2016-11-30',12,0,0,1,1,0,'',0,0,1593.17,0,0,1593.17,1593.17,76,'2016-12-01 02:58:19',0,'2016-12-01 03:13:50',0,0,'AR20161100000013'),(2,2,3,98,'SDN','2016-11-30',20,0,0,1,1,0,'',0,0,1056.34,0,0,1056.34,1056.34,76,'2016-12-01 03:02:45',0,'2016-12-01 03:13:50',0,0,'AR20161100000014'),(3,3,3,98,'SDN','2016-11-30',31,0,0,1,1,0,'',0,0,536.83,0,0,536.83,536.83,76,'2016-12-01 03:04:18',0,'2016-12-01 03:13:51',0,0,'AR20161100000015'),(4,4,3,98,'SDN','2016-11-30',69,0,0,1,1,0,'',0,0,2164.64,0,0,2164.64,2164.64,76,'2016-12-06 05:42:24',0,'2016-12-06 06:01:27',0,0,'AR20161100000020'),(5,5,3,98,'SDN','2016-11-30',70,0,0,1,1,0,'',0,0,2718.78,0,0,2718.78,2718.78,76,'2016-12-06 05:48:59',0,'2016-12-06 06:01:28',0,0,'AR20161100000021'),(6,6,3,98,'SDN','2016-11-30',71,0,0,1,1,0,'',0,0,3220.98,0,0,3220.98,3220.98,76,'2016-12-06 05:50:27',0,'2016-12-06 06:01:29',0,0,'AR20161100000022'),(7,7,3,98,'SDN','2016-11-30',72,0,0,1,1,0,'',0,0,1106.96,0,0,1106.96,1106.96,76,'2016-12-06 05:51:38',0,'2016-12-06 06:01:30',0,0,'AR20161100000023');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_sdn_add_serialNo` BEFORE INSERT ON `comp_sales_debitnote`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_sales_debitnote
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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`),
  KEY `debitNoteID` (`debitNoteID`),
  KEY `taxID` (`taxID`),
  KEY `accountNoID` (`accountNoID`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_debitnote_charges` VALUES (1,1,1,316,'Penalty invoice 31.07.2016',1593.17,2630,0,0,1593.17,0,0,0,0,76,'2016-12-01 02:58:19',0,'0000-00-00 00:00:00'),(3,2,1,316,'Penalty invoice 31.08.2016',1056.34,2630,0,0,1056.34,0,0,0,0,76,'2016-12-01 03:02:45',0,'0000-00-00 00:00:00'),(4,3,1,316,'Penalty invoice 30.09.2016',536.83,2630,0,0,536.83,0,0,0,0,76,'2016-12-01 03:04:18',0,'0000-00-00 00:00:00'),(5,4,1,316,'Penalty invoice 28.06.2016',2164.64,2630,0,0,2164.64,0,0,0,0,76,'2016-12-06 05:42:24',0,'0000-00-00 00:00:00'),(6,5,1,316,'Penalty Invoice 26.05.2016',2718.78,2630,0,0,2718.78,0,0,0,0,76,'2016-12-06 05:48:59',0,'0000-00-00 00:00:00'),(7,6,1,316,'Penalty invoice 28.04.2016',3220.98,2630,0,0,3220.98,0,0,0,0,76,'2016-12-06 05:50:27',0,'0000-00-00 00:00:00'),(8,7,1,316,'Penalty invoice 28.03.2016',1106.96,2630,0,0,1106.96,0,0,0,0,76,'2016-12-06 05:51:38',0,'0000-00-00 00:00:00');

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

CREATE TABLE `comp_sales_debitnote_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitnoteID` int(11) NOT NULL,
  `invoiceDetailID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `itemID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `umID` 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`),
  KEY `taxID` (`taxID`),
  KEY `itemID` (`itemID`),
  KEY `debitNoteID` (`debitnoteID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


--
-- Table structure for table `comp_sales_debt_recover`
--

CREATE TABLE `comp_sales_debt_recover` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `custID` int(11) NOT NULL,
  `valueDebtRecover` double NOT NULL,
  `gstDebtRecover` double NOT NULL,
  `transDate` date NOT NULL,
  `updateAble` tinyint(1) NOT NULL DEFAULT '1',
  `journalNo` varchar(255) 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' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_sales_debt_recover`
--


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

CREATE TABLE `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,
  `umID` int(11) NOT NULL,
  `standUM` int(11) NOT 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;

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


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

CREATE TABLE `comp_sales_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `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,
  `showSaleAgent` tinyint(4) 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,
  `badDebtID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  KEY `companyID` (`companyID`),
  KEY `customerID` (`customerID`),
  KEY `invoiceDate` (`salesInvoiceDate`),
  KEY `journalNO` (`journalNo`),
  KEY `is_delete` (`is_delete`),
  KEY `updateAble` (`updateAble`)
) ENGINE=InnoDB AUTO_INCREMENT=175 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_invoice` VALUES (1,1,3,2,0,93,'TINV20160801','2016-07-31','Bukit Bauk',77,0,6,1,1,1,0,0,'SALES TO SATU (BUKIT BAUK) - JULY 2016',0,0,0,3625.69,0,64053.89,76,'2016-08-01 09:07:42',0,'2016-09-27 07:52:58',0,0,'AR20160700000001',NULL,0),(2,2,3,2,0,93,'TINV20160802','2016-07-31','GPP 5&6',77,0,6,1,1,1,0,0,'',0,0,0,1258.62,0,22235.62,76,'2016-08-02 06:36:51',0,'2016-09-27 07:52:58',0,0,'AR20160700000002',NULL,0),(3,3,3,2,0,93,'TINV20160802','2016-07-31','Kumpal',77,0,6,1,1,1,0,0,'',0,0,0,1110.52,0,19619.12,76,'2016-08-02 06:50:33',0,'2016-09-27 07:52:59',0,0,'AR20160700000003',NULL,0),(4,4,3,2,0,93,'TINV20160802','2016-07-31','Bukit Chatak',77,0,6,1,1,1,0,0,'',0,0,0,3427.61,0,60554.41,76,'2016-08-02 07:28:21',0,'2016-09-27 07:52:59',0,0,'AR20160700000004',NULL,0),(5,5,3,2,0,93,'TINV20160802','2016-07-31','Bukit Besi - Booster pump',77,0,6,1,1,1,0,0,'',0,0,0,14.04,0,248.04,76,'2016-08-02 07:32:34',0,'2016-09-27 07:52:59',0,0,'AR20160700000005',NULL,0),(6,6,3,2,0,99,'TINV20160802','2016-07-31','Optimal chemicals',77,0,6,2,1,1,0,0,'',0,0,0,40152,0,709352,76,'2016-08-02 08:19:44',0,'2016-10-27 03:32:33',0,0,'AR20160700000006',NULL,0),(7,7,3,2,0,101,'TINV20160802','2016-07-31','PETLIN',77,0,6,4,1,1,0,0,'',0,0,0,3362.69,0,59407.49,76,'2016-08-02 08:40:40',0,'2016-09-27 07:50:49',0,0,'AR20160700000007',NULL,0),(8,8,3,2,0,102,'TINV20160802','2016-07-31','CUF',77,0,6,5,1,1,0,0,'',0,0,0,72001.1,0,1272019.5,76,'2016-08-02 08:47:28',0,'2016-09-27 07:48:38',0,0,'AR20160700000008',NULL,0),(9,9,3,2,0,94,'TINV20160803','2016-07-31','HI - Essence',77,0,6,6,1,1,0,0,'',0,0,0,169.4,0,2992.69,76,'2016-08-03 00:16:02',0,'2017-02-09 03:45:28',0,0,'AR20160700000009',NULL,0),(10,10,3,2,0,95,'TINV20160803','2016-07-31','',77,0,6,7,1,1,0,0,'',0,0,0,22915.7,0,404844.1,76,'2016-08-03 00:31:26',0,'2016-09-27 07:49:40',0,0,'AR20160700000010',NULL,0),(11,11,3,2,0,97,'TINV20160803','2016-07-31','',77,0,6,8,1,1,0,0,'',0,0,0,946.01,0,16712.81,76,'2016-08-03 00:46:56',0,'2016-09-27 07:46:59',0,0,'AR20160700000011',NULL,0),(12,12,3,2,0,98,'TINV20160803','2016-07-31','',77,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2016-08-03 00:52:40',0,'2016-08-08 05:48:56',0,0,'AR20160700000012',NULL,0),(14,13,3,2,0,99,'TINV20160904','2016-08-31','',80,0,6,3,1,1,0,0,'',0,0,0,35784,0,632184,76,'2016-09-04 06:36:50',0,'2016-10-27 03:40:25',0,0,'AR20160800000014',NULL,0),(15,14,3,2,0,101,'TINV20160904','2016-08-31','',80,0,6,4,1,1,0,0,'',0,0,0,3109.09,0,54927.29,76,'2016-09-04 06:45:35',0,'2016-10-27 03:39:46',0,0,'AR20160800000015',NULL,0),(16,15,3,2,0,102,'TINV20160904','2016-08-31','',80,0,6,5,1,1,0,0,'',0,0,0,56585.42,0,999675.82,76,'2016-09-04 06:49:39',0,'2016-11-07 05:42:20',0,0,'AR20160800000016',NULL,0),(17,16,3,2,0,94,'TINV20160904','2016-08-31','',80,0,6,6,1,1,0,0,'',0,0,0,99.52,0,1758.11,76,'2016-09-04 07:19:24',0,'2016-10-27 02:23:21',0,0,'AR20160800000017',NULL,0),(18,17,3,2,0,95,'TINV20160904','2016-08-31','',80,0,6,7,1,1,0,0,'',0,0,0,21500.64,0,379844.64,76,'2016-09-04 07:23:38',0,'2016-10-27 03:37:26',0,0,'AR20160800000018',NULL,0),(19,18,3,2,0,97,'TINV20160904','2016-08-31','',80,0,6,10,1,1,0,0,'',0,0,0,997.25,0,17618.05,76,'2016-09-04 07:25:52',0,'2016-10-27 03:38:31',0,0,'AR20160800000019',NULL,0),(20,19,3,2,0,98,'TINV20160904','2016-08-31','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2016-09-04 07:28:29',0,'2016-09-05 00:08:52',0,0,'AR20160800000020',NULL,0),(21,20,3,2,0,93,'TINV20160904','2016-08-31','',80,0,6,1,1,1,0,0,'',0,0,0,3216.24,0,56820.24,76,'2016-09-04 07:30:40',0,'2016-10-27 03:36:09',0,0,'AR20160800000021',NULL,0),(22,21,3,2,0,93,'TINV20160904','2016-08-31','',80,0,6,1,1,1,0,0,'',0,0,0,1199.41,0,21189.61,76,'2016-09-04 07:32:31',0,'2016-10-27 03:36:09',0,0,'AR20160800000022',NULL,0),(23,22,3,2,0,93,'TINV20160904','2016-08-31','',80,0,6,1,1,1,0,0,'',0,0,0,959.24,0,16946.64,76,'2016-09-04 07:34:54',0,'2016-10-27 03:36:09',0,0,'AR20160800000023',NULL,0),(24,23,3,2,0,93,'TINV20160904','2016-08-31','',80,0,6,1,1,1,0,0,'',0,0,0,2604.01,0,46004.21,76,'2016-09-04 07:37:08',0,'2016-10-27 03:36:09',0,0,'AR20160800000013',NULL,0),(25,24,3,2,0,99,'TINV20161004','2016-09-30','',80,0,6,3,1,1,0,0,'',0,0,0,43092,0,761292,76,'2016-10-04 06:14:17',0,'2016-11-07 06:16:28',0,0,'AR20160900000003',NULL,0),(26,25,3,2,0,101,'TINV20161004','2016-09-30','',80,0,6,4,1,1,0,0,'',0,0,0,3392.51,0,59934.31,76,'2016-10-04 06:17:55',0,'2016-11-07 06:17:24',0,0,'AR20160900000004',NULL,0),(27,26,3,2,0,102,'TINV20161004','2016-09-30','',80,0,6,5,1,1,0,0,'',0,0,0,68996.93,0,1218945.73,76,'2016-10-04 06:20:04',0,'2016-11-07 05:42:20',0,0,'AR20160900000005',NULL,0),(28,27,3,2,0,94,'TINV20161004','2016-09-30','',80,0,6,6,1,1,0,0,'',0,0,0,257.19,0,4543.74,76,'2016-10-04 06:23:25',0,'2016-11-07 05:44:37',0,0,'AR20160900000006',NULL,0),(29,28,3,2,0,95,'TINV20161004','2016-09-30','',80,0,6,7,1,1,0,0,'',0,0,0,8568.34,0,151373.94,76,'2016-10-04 06:27:27',0,'2016-11-07 05:43:49',0,0,'AR20160900000007',NULL,0),(30,29,3,2,0,97,'TINV20161004','2016-09-30','',80,0,6,8,1,1,0,0,'',0,0,0,902.33,0,15941.13,76,'2016-10-04 06:29:28',0,'2016-11-07 06:15:15',0,0,'AR20160900000008',NULL,0),(31,30,3,2,0,98,'TINV20161004','2016-09-30','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2016-10-04 06:30:50',0,'2016-10-04 07:16:15',0,0,'AR20160900000009',NULL,0),(32,31,3,2,0,93,'TINV20161004','2016-09-30','',80,0,6,1,1,1,0,0,'',0,0,0,3514.08,0,62082.08,76,'2016-10-04 06:36:38',0,'2016-11-07 05:43:13',0,0,'AR20160900000010',NULL,0),(33,32,3,2,0,93,'TINV20161004','2016-09-30','',80,0,6,1,1,1,0,0,'',0,0,0,1265.66,0,22360.06,76,'2016-10-04 06:38:20',0,'2016-11-07 05:43:13',0,0,'AR20160900000011',NULL,0),(34,33,3,2,0,93,'TINV20161004','2016-09-30','',80,0,6,1,1,1,0,0,'',0,0,0,1172.1,0,20707.1,76,'2016-10-04 06:42:28',0,'2016-11-07 05:43:13',0,0,'AR20160900000012',NULL,0),(35,34,3,2,0,93,'TINV20161004','2016-09-30','',80,0,6,1,1,1,0,0,'',0,0,0,21.67,0,382.87,76,'2016-10-04 06:44:53',0,'2016-11-07 05:43:13',0,0,'AR20160900000001',NULL,0),(36,35,3,2,0,93,'TINV20161004','2016-09-30','',80,0,6,1,1,1,0,0,'',0,0,0,2388.13,0,42190.33,76,'2016-10-04 06:46:09',0,'2016-11-07 05:43:13',0,0,'AR20160900000002',NULL,0),(37,36,3,2,0,108,'TINV20161005','2016-10-05','',84,0,6,11,1,1,0,0,'',0,0,0,0,14390.5,14390.5,76,'2016-10-05 02:55:35',0,'2016-10-05 03:01:45',1,1,'',NULL,0),(38,37,3,2,0,108,'TINV20161005','2016-10-05','',81,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:11:26',0,'2016-12-13 07:26:30',0,0,'AR20161000000011',NULL,0),(39,38,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:48:33',0,'2016-12-13 07:26:30',0,0,'AR20161000000004',NULL,0),(40,39,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:49:39',0,'2016-12-13 07:26:30',0,0,'AR20161000000005',NULL,0),(41,40,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,14390.5,14390.5,76,'2016-10-05 03:51:12',0,'2016-10-05 04:00:01',1,1,'',NULL,0),(42,41,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:52:02',0,'2016-12-13 07:26:30',0,0,'AR20161000000007',NULL,0),(43,42,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:53:34',0,'2016-12-13 07:26:30',0,0,'AR20161000000010',NULL,0),(44,43,3,2,0,108,'TINV20161005','2016-10-05','',77,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-10-05 03:54:25',0,'2016-12-13 07:30:11',0,0,'AR20161000000009',NULL,0),(45,44,3,2,0,102,'TINV20161107','2016-10-31','',80,0,6,5,1,1,0,0,'',0,0,0,59477.96,0,1050777.36,76,'2016-11-07 02:44:21',0,'2017-01-15 03:20:02',0,0,'AR20161000000012',NULL,0),(46,45,3,2,0,99,'TINV20161107','2016-10-31','',80,0,6,3,1,1,0,0,'',0,0,0,36288,0,641088,76,'2016-11-07 02:46:04',0,'2016-12-13 07:41:05',0,0,'AR20161000000013',NULL,0),(47,46,3,2,0,101,'TINV20161107','2016-10-31','',80,0,6,4,1,1,0,0,'',0,0,0,2754.11,0,48655.91,76,'2016-11-07 02:47:31',0,'2016-12-13 07:41:53',0,0,'AR20161000000014',NULL,0),(48,47,3,2,0,94,'TINV20161107','2016-10-31','',80,0,6,6,1,1,0,0,'',0,0,0,86.61,0,1530.12,76,'2016-11-07 02:49:12',0,'2016-12-13 07:32:13',0,0,'AR20161000000015',NULL,0),(49,48,3,2,0,95,'TINV20161107','2016-10-31','',80,0,6,7,1,1,0,0,'',0,0,0,18296.46,0,323237.46,76,'2016-11-07 02:54:13',0,'2016-12-13 07:39:38',0,0,'AR20161000000016',NULL,0),(50,49,3,2,0,97,'TINV20161107','2016-10-31','',80,0,6,10,1,1,0,0,'',0,0,0,1094.77,0,19340.97,76,'2016-11-07 02:58:45',0,'2016-12-13 07:38:41',0,0,'AR20161000000017',NULL,0),(51,50,3,2,0,98,'TINV20161107','2016-10-31','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2016-11-07 03:00:19',0,'2016-11-07 03:48:05',0,0,'AR20161000000018',NULL,0),(52,51,3,2,0,93,'TINV20161107','2016-10-31','',80,0,6,1,1,1,0,0,'',0,0,0,989.32,0,17477.92,76,'2016-11-07 03:02:17',0,'2017-01-15 03:22:32',0,0,'AR20161000000019',NULL,0),(53,52,3,2,0,93,'TINV20161107','2016-10-31','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2016-11-07 03:05:21',0,'2017-01-15 03:22:32',0,0,'AR20161000000020',NULL,0),(54,53,3,2,0,93,'TINV20161107','2016-10-31','',80,0,6,1,1,1,0,0,'',0,0,0,1035.31,0,18290.51,76,'2016-11-07 03:07:05',0,'2017-01-15 03:22:32',0,0,'AR20161000000021',NULL,0),(55,54,3,2,0,93,'TINV20161107','2016-10-31','',80,0,6,1,1,1,0,0,'',0,0,0,2091.85,0,36956.05,76,'2016-11-07 03:08:17',0,'2017-01-15 03:22:32',0,0,'AR20161000000022',NULL,0),(56,55,3,2,0,108,'TINV20161108','2016-10-31','',84,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-11-08 05:54:32',0,'2017-01-15 03:35:19',0,0,'AR20161000000032',NULL,0),(57,56,3,2,0,94,'TINV20161129','2016-11-29','',80,0,6,6,1,1,0,0,'',0,0,0,110.82,0,1957.8,76,'2016-11-29 00:57:28',0,'2017-01-15 03:30:40',0,0,'AR20161100000001',NULL,0),(58,57,3,2,0,99,'TINV20161129','2016-11-29','',80,0,6,3,1,1,0,0,'',0,0,0,39228,0,693028,76,'2016-11-29 01:00:01',0,'2017-01-15 03:50:33',0,0,'AR20161100000002',NULL,0),(59,58,3,2,0,101,'TINV20161129','2016-11-29','',80,0,6,4,1,1,0,0,'',0,0,0,3112.87,0,54994.07,76,'2016-11-29 01:03:00',0,'2017-01-15 03:51:45',0,0,'AR20161100000003',NULL,0),(60,59,3,2,0,102,'TINV20161129','2016-11-29','',80,0,6,5,1,1,0,0,'',0,0,0,63901.07,0,1128918.87,76,'2016-11-29 01:05:29',0,'2017-01-15 03:36:12',0,0,'AR20161100000004',NULL,0),(61,60,3,2,0,98,'TINV20161129','2016-11-29','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2016-11-29 01:14:48',0,'2016-11-29 01:27:04',0,0,'AR20161100000005',NULL,0),(62,61,3,2,0,95,'TINV20161129','2016-11-29','',80,0,6,7,1,1,0,0,'',0,0,0,25422.1,0,449123.7,76,'2016-11-29 01:16:48',0,'2017-01-15 03:37:31',0,0,'AR20161100000006',NULL,0),(63,62,3,2,0,97,'TINV20161129','2016-11-29','',80,0,6,10,1,1,0,0,'',0,0,0,1393.31,0,24615.11,76,'2016-11-29 01:18:29',0,'2017-01-15 03:24:04',0,0,'AR20161100000007',NULL,0),(64,63,3,2,0,93,'TINV20161129','2016-11-29','',80,0,6,1,1,1,0,0,'',0,0,0,1041.28,0,18395.88,76,'2016-11-29 01:20:20',0,'2017-01-15 05:01:22',0,0,'AR20161100000008',NULL,0),(65,64,3,2,0,93,'TINV20161129','2016-11-29','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2016-11-29 01:22:21',0,'2017-01-15 05:01:22',0,0,'AR20161100000009',NULL,0),(66,65,3,2,0,93,'TINV20161129','2016-11-29','',80,0,6,1,1,1,0,0,'',0,0,0,1151.99,0,20351.79,76,'2016-11-29 01:23:30',0,'2017-01-15 05:01:22',0,0,'AR20161100000010',NULL,0),(67,66,3,2,0,93,'TINV20161129','2016-11-29','',80,0,6,1,1,1,0,0,'',0,0,0,1624.45,0,28698.65,76,'2016-11-29 01:24:52',0,'2017-01-15 05:01:22',0,0,'AR20161100000011',NULL,0),(68,67,3,2,0,93,'TINV20161129','2016-11-29','',80,0,6,1,1,1,0,0,'',0,0,0,20.47,0,361.67,76,'2016-11-29 01:26:23',0,'2017-01-15 05:01:22',0,0,'AR20161100000012',NULL,0),(69,68,3,2,0,98,'0017161100000065','2016-11-30','',80,0,6,9,1,1,0,0,'',0,0,0,0,0,0,76,'2016-12-06 05:23:50',0,'2016-12-06 05:38:33',0,0,'AR20161100000016',NULL,0),(70,69,3,2,0,98,'0017161100000052','2016-11-30','',80,0,6,9,1,1,0,0,'',0,0,0,0,0,0,76,'2016-12-06 05:34:23',0,'2016-12-06 05:38:33',0,0,'AR20161100000017',NULL,0),(71,70,3,2,0,98,'0017161100000044','2016-11-30','',80,0,6,9,1,1,0,0,'',0,0,0,0,0,0,76,'2016-12-06 05:35:56',0,'2016-12-06 05:38:33',0,0,'AR20161100000018',NULL,0),(72,71,3,2,0,98,'0017161100000032','2016-11-30','',80,0,6,9,1,1,0,0,'',0,0,0,0,0,0,76,'2016-12-06 05:37:41',0,'2016-12-06 05:38:34',0,0,'AR20161100000019',NULL,0),(73,72,3,2,0,108,'TINV20161215','2016-11-30','',80,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-12-15 06:12:33',0,'2017-01-15 03:35:20',0,0,'AR20161100000031',NULL,0),(74,73,3,2,0,108,'TINV20161215','2016-12-15','',80,0,6,11,1,1,0,0,'',0,0,0,0,0,14390.5,76,'2016-12-15 06:13:45',0,'2017-01-15 03:35:20',0,0,'AR20161200000001',NULL,0),(75,74,3,2,0,99,'TINV20170102','2016-12-31','',80,0,6,2,1,1,0,0,'',0,0,0,45444,0,802844,76,'2017-01-02 02:14:52',0,'2017-02-09 03:39:40',0,0,'AR20161200000004',NULL,0),(76,75,3,2,0,101,'TINV20170102','2016-12-31','',80,0,6,4,1,1,0,0,'',0,0,0,3106.4,0,54879.8,76,'2017-01-02 02:16:50',0,'2017-02-09 03:38:27',0,0,'AR20161200000005',NULL,0),(77,76,3,2,0,102,'TINV20170102','2016-12-31','',80,0,6,5,1,1,0,0,'',0,0,0,70445.68,0,1244540.28,76,'2017-01-02 02:18:10',0,'2017-02-09 03:44:03',0,0,'AR20161200000006',NULL,0),(78,77,3,2,0,94,'TINV20170102','2016-12-31','',80,0,6,6,1,1,0,0,'',0,0,0,115.16,0,2034.49,76,'2017-01-02 02:20:40',0,'2017-02-09 03:45:28',0,0,'AR20161200000007',NULL,0),(79,78,3,2,0,95,'TINV20170102','2016-12-31','',80,0,6,7,1,1,0,0,'',0,0,0,27142.92,0,479524.92,76,'2017-01-02 02:22:04',0,'2017-02-09 03:40:29',0,0,'AR20161200000008',NULL,0),(80,79,3,2,0,97,'TINV20170102','2016-12-31','',80,0,6,8,1,1,0,0,'',0,0,0,1445.47,0,25536.67,76,'2017-01-02 02:23:33',0,'2017-02-09 03:44:40',0,0,'AR20161200000009',NULL,0),(81,80,3,2,0,98,'TINV20170102','2016-12-31','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2017-01-02 02:26:07',0,'2017-01-02 06:05:38',0,0,'AR20161200000010',NULL,0),(82,81,3,2,0,93,'TINV20170102','2016-12-31','',80,0,6,1,1,1,0,0,'',0,0,0,1165.14,0,20584.14,76,'2017-01-02 02:27:34',0,'2017-02-09 03:41:36',0,0,'AR20161200000011',NULL,0),(83,82,3,2,0,93,'TINV20170102','2016-12-31','',80,0,6,1,1,1,0,0,'',0,0,0,1295.4,0,22885.4,76,'2017-01-02 02:28:47',0,'2017-02-09 03:41:36',0,0,'AR20161200000012',NULL,0),(84,83,3,2,0,93,'TINV20170102','2016-12-31','',80,0,6,1,1,1,0,0,'',0,0,0,1191.1,0,21042.7,76,'2017-01-02 02:30:08',0,'2017-02-09 03:41:36',0,0,'AR20161200000013',NULL,0),(85,84,3,2,0,93,'TINV20170102','2016-12-31','',80,0,6,1,1,1,0,0,'',0,0,0,19.8,0,349.8,76,'2017-01-02 02:31:17',0,'2017-02-09 03:41:36',0,0,'AR20161200000002',NULL,0),(86,85,3,2,0,93,'TINV20170102','2016-12-31','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-01-02 02:33:39',0,'2017-02-09 03:41:36',0,0,'AR20161200000003',NULL,0),(87,86,3,2,0,98,'TINV20170202','2017-01-31','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2017-02-02 01:52:09',0,'2017-02-02 06:58:50',0,0,'AR20170100000001',NULL,0),(88,87,3,2,0,97,'TINV20170202','2017-01-31','',80,0,6,8,1,1,0,0,'',0,0,0,1478.23,0,26115.43,76,'2017-02-02 01:53:31',0,'2017-03-12 08:15:02',0,0,'AR20170100000002',NULL,0),(89,88,3,2,0,95,'TINV20170202','2017-01-31','',80,0,6,7,1,1,0,0,'',0,0,0,20861.15,0,368546.95,76,'2017-02-02 01:54:36',0,'2017-03-12 08:14:01',0,0,'AR20170100000003',NULL,0),(90,89,3,2,0,94,'TINV20170202','2017-01-31','',80,0,6,6,1,1,0,0,'',0,0,0,95.73,0,1691.23,76,'2017-02-02 01:57:04',0,'2017-03-12 08:08:25',0,0,'AR20170100000004',NULL,0),(91,90,3,2,0,102,'TINV20170202','2017-01-31','',80,0,6,5,1,1,0,0,'',0,0,0,60423.89,0,1067488.69,76,'2017-02-02 06:25:28',0,'2017-03-12 08:10:43',0,0,'AR20170100000005',NULL,0),(92,91,3,2,0,101,'TINV20170202','2017-01-31','',80,0,6,4,1,1,0,0,'',0,0,0,2442.55,0,43151.75,76,'2017-02-02 06:26:54',0,'2017-03-12 08:16:40',0,0,'AR20170100000006',NULL,0),(93,92,3,2,0,99,'TINV20170202','2017-01-31','',80,0,6,3,1,1,0,0,'',0,0,0,35700,0,630700,76,'2017-02-02 06:29:16',0,'2017-04-05 04:44:23',0,0,'AR20170100000007',NULL,0),(94,93,3,2,0,93,'TINV20170202','2017-01-31','',80,0,6,1,1,1,0,0,'',0,0,0,1708.18,0,30177.78,76,'2017-02-02 06:31:01',0,'2017-04-05 04:42:40',0,0,'AR20170100000008',NULL,0),(95,94,3,2,0,93,'TINV20170202','2017-01-31','',80,0,6,1,1,1,0,0,'',0,0,0,999.06,0,17650.06,76,'2017-02-02 06:32:09',0,'2017-04-05 04:42:40',0,0,'AR20170100000009',NULL,0),(96,95,3,2,0,93,'TINV20170202','2017-01-31','',80,0,6,1,1,1,0,0,'',0,0,0,995.86,0,17593.46,76,'2017-02-02 06:33:02',0,'2017-04-05 04:42:41',0,0,'AR20170100000010',NULL,0),(97,96,3,2,0,93,'TINV20170202','2017-01-31','',80,0,6,1,1,1,0,0,'',0,0,0,1319.64,0,23313.64,76,'2017-02-02 06:56:29',0,'2017-04-05 04:42:41',0,0,'AR20170100000011',NULL,0),(98,97,3,2,0,93,'TINV20170202','2017-01-31','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-02-02 06:57:50',0,'2017-04-05 04:42:41',0,0,'AR20170100000013',NULL,0),(99,98,3,2,0,99,'TINV20170301','2017-02-28','',80,0,6,2,1,1,0,0,'',0,0,0,43344,0,765744,76,'2017-03-01 03:45:26',0,'2017-05-07 03:15:10',0,0,'AR20170200000003',NULL,0),(100,99,3,2,0,101,'TINV20170301','2017-02-28','',80,0,6,4,1,1,0,0,'',0,0,0,3126.98,0,55243.38,76,'2017-03-01 03:47:18',0,'2017-04-05 04:57:15',0,0,'AR20170200000002',NULL,0),(101,100,3,2,0,102,'TINV20170301','2017-02-28','',80,0,6,5,1,1,0,0,'',0,0,0,70349.08,0,1242833.68,76,'2017-03-01 03:50:21',0,'2017-04-05 04:56:33',0,0,'AR20170200000001',NULL,0),(102,101,3,2,0,94,'TINV20170301','2017-02-28','',77,0,6,6,1,1,0,0,'',0,0,0,153.73,0,2715.9,76,'2017-03-01 04:45:21',0,'2017-04-05 04:45:43',0,0,'AR20170200000004',NULL,0),(103,102,3,2,0,95,'TINV20170301','2017-02-28','',80,0,6,7,1,1,0,0,'',0,0,0,24676.18,0,435945.78,76,'2017-03-01 04:49:26',0,'2017-04-05 04:47:10',0,0,'AR20170200000005',NULL,0),(104,103,3,2,0,97,'TINV20170301','2017-02-28','',80,0,6,8,1,1,0,0,'',0,0,0,1443.2,0,25496.6,76,'2017-03-01 04:51:13',0,'2017-04-05 04:46:32',0,0,'AR20170200000006',NULL,0),(105,104,3,2,0,98,'TINV20170301','2017-02-28','',80,0,6,9,1,1,0,0,'',0,0,0,5504.27,97242.07,97242.07,76,'2017-03-01 04:59:13',0,'2017-03-06 07:09:56',0,0,'AR20170200000007',NULL,0),(106,105,3,2,0,93,'TINV20170301','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,1186.03,0,20953.23,76,'2017-03-01 05:08:02',0,'2017-04-05 04:50:43',0,0,'AR20170200000008',NULL,0),(107,106,3,2,0,93,'TINV20170301','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,1109.8,0,19606.4,76,'2017-03-01 05:10:44',0,'2017-04-05 04:50:43',0,0,'AR20170200000009',NULL,0),(108,107,3,2,0,93,'TINV20170306','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,761.29,13449.49,13449.49,76,'2017-03-06 05:04:46',0,'2017-03-06 07:36:03',1,1,'',NULL,0),(109,108,3,2,0,93,'TINV20170306','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,2538,0,44838,76,'2017-03-06 05:06:52',0,'2017-04-05 04:50:43',0,0,'AR20170200000011',NULL,0),(110,109,3,2,0,93,'TINV20170306','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,1132.32,0,20004.32,76,'2017-03-06 05:08:12',0,'2017-04-05 04:50:43',0,0,'AR20170200000012',NULL,0),(111,110,3,2,0,93,'TINV20170306','2017-02-28','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-03-06 05:09:29',0,'2017-04-05 04:50:43',0,0,'AR20170200000013',NULL,0),(112,111,3,2,0,114,'TINV20170306','2017-02-28','',81,0,6,0,1,1,0,0,'',0,0,0,34.31,606.11,606.11,76,'2017-03-06 07:09:05',0,'2017-03-06 07:19:40',1,1,'',NULL,0),(113,112,3,2,0,114,'TINV20170306','2017-02-28','',80,0,6,12,1,1,0,0,'',0,0,0,34.31,606.11,606.11,76,'2017-03-06 07:20:44',0,'2017-03-06 07:25:21',1,1,'',NULL,0),(114,113,3,2,0,117,'TINV20170306','2017-02-28','',80,0,6,13,1,1,0,0,'',0,0,0,34.31,0,606.11,76,'2017-03-06 07:30:50',0,'2017-06-01 06:15:17',0,0,'AR20170200000024',NULL,0),(115,114,3,2,0,118,'TINV20170306','2017-02-28','',80,0,6,14,1,1,0,0,'',0,0,0,761.29,0,13449.49,76,'2017-03-06 07:40:16',0,'2017-07-02 03:53:55',0,0,'AR20170200000025',NULL,0),(116,115,3,2,0,99,'TINV20170330','2017-03-30','',80,0,6,2,1,1,0,0,'',0,0,0,38808,0,685608,76,'2017-03-30 09:03:17',0,'2017-06-01 06:04:51',0,0,'AR20170300000004',NULL,0),(117,116,3,2,0,101,'TINV20170330','2017-03-30','',80,0,6,4,1,1,0,0,'',0,0,0,3064.99,0,54148.19,76,'2017-03-30 09:05:05',0,'2017-05-07 03:19:45',0,0,'AR20170300000005',NULL,0),(118,117,3,2,0,102,'TINV20170330','2017-03-30','',80,0,6,5,1,1,0,0,'',0,0,0,62722.88,0,1108104.28,76,'2017-03-30 09:06:18',0,'2017-05-07 03:16:29',0,0,'AR20170300000006',NULL,0),(119,118,3,2,0,94,'TINV20170330','2017-03-30','',80,0,6,6,1,1,0,0,'',0,0,0,194.58,0,3437.55,76,'2017-03-30 09:09:05',0,'2017-05-07 03:18:27',0,0,'AR20170300000007',NULL,0),(120,119,3,2,0,95,'TINV20170330','2017-03-30','',80,0,6,7,1,1,0,0,'',0,0,0,22536.61,0,398146.81,76,'2017-03-30 09:15:39',0,'2017-05-07 03:19:00',0,0,'AR20170300000008',NULL,0),(121,120,3,2,0,97,'TINV20170330','2017-03-30','',80,0,6,10,1,1,0,0,'',0,0,0,1173.48,0,20731.48,76,'2017-03-30 09:16:41',0,'2017-05-07 03:17:36',0,0,'AR20170300000009',NULL,0),(122,121,3,2,0,98,'TINV20170330','2017-03-30','',80,0,6,9,1,1,0,0,'',0,0,0,2752.13,48621.03,48621.03,76,'2017-03-30 09:20:10',0,'2017-03-30 09:32:06',0,0,'AR20170300000010',NULL,0),(123,122,3,2,0,93,'TINV20170330','2017-03-30','',80,0,6,1,1,1,0,0,'',0,0,0,1144.94,0,20227.34,76,'2017-03-30 09:23:52',0,'2017-06-01 06:14:41',0,0,'AR20170300000011',NULL,0),(124,123,3,2,0,93,'TINV20170330','2017-03-30','',80,0,6,1,1,1,0,0,'',0,0,0,1160.62,0,20504.22,76,'2017-03-30 09:24:58',0,'2017-06-01 06:14:42',0,0,'AR20170300000012',NULL,0),(125,124,3,2,0,93,'TINV20170330','2017-03-30','',80,0,6,1,1,1,0,0,'',0,0,0,988.04,0,17455.44,76,'2017-03-30 09:26:15',0,'2017-06-01 06:14:42',0,0,'AR20170300000013',NULL,0),(126,125,3,2,0,93,'TINV20170330','2017-03-30','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-03-30 09:28:00',0,'2017-06-01 06:14:42',0,0,'AR20170300000001',NULL,0),(127,126,3,2,0,117,'TINV20170330','2017-03-30','',80,0,6,13,1,1,0,0,'',0,0,0,12.96,0,228.96,76,'2017-03-30 09:29:32',0,'2017-06-01 06:16:29',0,0,'AR20170300000002',NULL,0),(128,127,3,2,0,118,'TINV20170330','2017-03-30','',80,0,6,14,1,1,0,0,'',0,0,0,1845.18,0,32598.18,76,'2017-03-30 09:31:11',0,'2017-07-02 03:53:55',0,0,'AR20170300000003',NULL,0),(129,128,3,2,0,99,'TINV20170425','2017-04-25','',80,0,6,2,1,1,0,0,'',0,0,0,31752,0,560952,76,'2017-04-25 08:23:17',0,'2017-06-01 06:20:14',0,0,'AR20170400000005',NULL,0),(130,129,3,2,0,101,'TINV20170425','2017-04-25','',80,0,6,4,1,1,0,0,'',0,0,0,2909.93,0,51408.73,76,'2017-04-25 08:24:40',0,'2017-06-01 06:22:28',0,0,'AR20170400000006',NULL,0),(131,130,3,2,0,102,'TINV20170425','2017-04-25','',80,0,6,5,1,1,0,0,'',0,0,0,56335.27,0,995256.47,76,'2017-04-25 08:25:55',0,'2017-06-01 06:19:29',0,0,'AR20170400000007',NULL,0),(132,131,3,2,0,94,'TINV20170425','2017-04-25','',80,0,6,6,1,1,0,0,'',0,0,0,166.94,0,2949.36,76,'2017-04-25 08:28:23',0,'2017-06-01 06:21:01',0,0,'AR20170400000008',NULL,0),(133,132,3,2,0,95,'TINV20170425','2017-04-25','',80,0,6,7,1,1,0,0,'',0,0,0,24482.72,0,432528.12,76,'2017-04-25 08:29:45',0,'2017-06-01 06:22:57',0,0,'AR20170400000009',NULL,0),(134,133,3,2,0,97,'TINV20170425','2017-04-25','',80,0,6,8,1,1,0,0,'',0,0,0,1327.62,0,23454.62,76,'2017-04-25 08:31:01',0,'2017-06-01 06:10:20',0,0,'AR20170400000010',NULL,0),(135,134,3,2,0,98,'TINV20170425','2017-04-25','',80,0,6,9,1,1,0,0,'',0,0,0,27.47,485.27,485.27,76,'2017-04-25 08:32:14',0,'2017-04-25 09:13:31',0,0,'AR20170400000011',NULL,0),(136,135,3,2,0,93,'TINV20170425','2017-04-25','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-04-25 08:35:18',0,'2017-06-01 06:21:46',0,0,'AR20170400000012',NULL,0),(137,136,3,2,0,93,'TINV20170425','2017-04-25','',80,0,6,1,1,1,0,0,'',0,0,0,1019.09,0,18003.89,76,'2017-04-25 08:40:18',0,'2017-06-01 06:21:46',0,0,'AR20170400000013',NULL,0),(138,137,3,2,0,93,'TINV20170425','2017-04-25','',80,0,6,1,1,1,0,0,'',0,0,0,981,0,17331,76,'2017-04-25 08:55:33',0,'2017-06-01 06:21:46',0,0,'AR20170400000014',NULL,0),(139,138,3,2,0,93,'TINV20170425','2017-04-25','',80,0,6,1,1,1,0,0,'',0,0,0,968.39,0,17108.19,76,'2017-04-25 08:56:33',0,'2017-06-01 06:21:46',0,0,'AR20170400000001',NULL,0),(140,139,3,2,0,117,'TINV20170425','2017-04-25','',80,0,6,13,1,1,0,0,'',0,0,0,16.79,0,296.59,76,'2017-04-25 08:58:35',0,'2017-07-02 03:58:29',0,0,'AR20170400000002',NULL,0),(141,140,3,2,0,118,'TINV20170425','2017-04-25','',80,0,6,14,1,1,0,0,'',0,0,0,1969.63,0,34796.83,76,'2017-04-25 09:01:26',0,'2017-07-02 03:53:56',0,0,'AR20170400000003',NULL,0),(142,141,3,2,0,119,'TINV20170425','2017-04-25','',80,0,6,15,1,1,0,0,'',0,0,0,1.6,0,28.2,76,'2017-04-25 09:12:47',0,'2017-06-01 06:07:54',0,0,'AR20170400000022',NULL,0),(143,142,3,2,0,99,'TINV20170530','2017-05-30','',80,0,6,2,1,1,0,0,'',0,0,0,45024,0,795424,76,'2017-05-30 01:53:19',0,'2017-07-02 04:03:07',0,0,'AR20170500000005',NULL,0),(144,143,3,2,0,101,'TINV20170530','2017-05-30','',80,0,6,4,1,1,0,0,'',0,0,0,3436.44,0,60710.44,76,'2017-05-30 01:54:49',0,'2017-07-02 04:05:56',0,0,'AR20170500000006',NULL,0),(145,144,3,2,0,102,'TINV20170530','2017-05-30','',80,0,6,5,1,1,0,0,'',0,0,0,68501.16,0,1210187.16,76,'2017-05-30 01:56:03',0,'2017-07-02 04:01:20',0,0,'AR20170500000007',NULL,0),(146,145,3,2,0,94,'TINV20170530','2017-05-30','',80,0,6,6,1,1,0,0,'',0,0,0,159.56,0,2818.87,76,'2017-05-30 01:58:13',0,'2017-07-02 04:04:06',0,0,'AR20170500000008',NULL,0),(147,146,3,2,0,95,'TINV20170530','2017-05-30','',80,0,6,7,1,1,0,0,'',0,0,0,31447.25,0,555568.05,76,'2017-05-30 02:00:35',0,'2017-07-02 03:59:56',0,0,'AR20170500000009',NULL,0),(148,147,3,2,0,97,'TINV20170530','2017-05-30','',80,0,6,8,1,1,0,0,'',0,0,0,1745.35,0,30834.55,76,'2017-05-30 02:01:44',0,'2017-07-02 03:54:35',0,0,'AR20170500000010',NULL,0),(149,148,3,2,0,98,'TINV20170530','2017-05-30','',80,0,6,9,1,1,0,0,'',0,0,0,6.72,118.72,118.72,76,'2017-05-30 02:07:19',0,'2017-05-30 02:44:30',0,0,'AR20170500000011',NULL,0),(150,149,3,2,0,119,'TINV20170530','2017-05-30','',80,0,6,15,1,1,0,0,'',0,0,0,2.44,0,43.04,76,'2017-05-30 02:11:18',0,'2017-07-02 03:59:14',0,0,'AR20170500000012',NULL,0),(151,150,3,2,0,93,'TINV20170530','2017-05-30','',80,0,6,1,1,1,0,0,'',0,0,0,1222.14,0,21591.14,76,'2017-05-30 02:13:03',0,'2017-07-02 03:56:27',0,0,'AR20170500000013',NULL,0),(152,151,3,2,0,93,'TINV20170530','2017-05-30','',80,0,6,1,1,1,0,0,'',0,0,0,1411.08,0,24929.08,76,'2017-05-30 02:14:13',0,'2017-07-02 03:56:27',0,0,'AR20170500000014',NULL,0),(153,152,3,2,0,93,'TINV20170530','2017-05-30','',80,0,6,1,1,1,0,0,'',0,0,0,1264.12,0,22332.72,76,'2017-05-30 02:15:30',0,'2017-07-02 03:56:27',0,0,'AR20170500000001',NULL,0),(154,153,3,2,0,117,'TINV20170530','2017-05-30','',80,0,6,13,1,1,0,0,'',0,0,0,7.06,0,124.66,76,'2017-05-30 02:16:51',0,'2017-07-02 03:58:29',0,0,'AR20170500000002',NULL,0),(155,154,3,2,0,93,'TINV20170530','2017-05-30','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,0,49582.98,76,'2017-05-30 02:41:44',0,'2017-07-02 03:56:28',0,0,'AR20170500000003',NULL,0),(156,155,3,2,0,118,'TINV20170530','2017-05-30','',80,0,6,14,1,1,0,0,'',0,0,0,2653.36,0,46875.96,76,'2017-05-30 02:43:30',0,'2017-07-02 04:02:11',0,0,'AR20170500000004',NULL,0),(157,156,3,2,0,99,'TINV20170629','2017-06-29','',80,0,6,2,1,1,0,0,'',0,0,0,41664,736064,736064,76,'2017-06-29 04:07:00',0,'2017-07-06 04:14:00',0,0,'AR20170600000007',NULL,0),(158,157,3,2,0,101,'TINV20170629','2017-06-29','',80,0,6,4,1,1,0,0,'',0,0,0,3226.1,56994.5,56994.5,76,'2017-06-29 04:07:59',0,'2017-07-06 04:14:10',0,0,'AR20170600000008',NULL,0),(159,158,3,2,0,102,'TINV20170629','2017-06-29','',80,0,6,5,1,1,0,0,'',0,0,0,64366.93,1137149.13,1137149.13,76,'2017-06-29 04:10:38',0,'2017-07-06 04:14:16',0,0,'AR20170600000009',NULL,0),(160,159,3,2,0,94,'TINV20170629','2017-06-29','',80,0,6,6,1,1,0,0,'',0,0,0,158.17,2794.25,2794.25,76,'2017-06-29 05:29:09',0,'2017-07-06 04:14:22',0,0,'AR20170600000010',NULL,0),(161,160,3,2,0,95,'TINV20170629','2017-06-29','',80,0,6,7,1,1,0,0,'',0,0,0,27408.02,484208.42,484208.42,76,'2017-06-29 05:34:01',0,'2017-07-06 04:14:28',0,0,'AR20170600000011',NULL,0),(162,161,3,2,0,97,'TINV20170629','2017-06-29','',80,0,6,10,1,1,0,0,'',0,0,0,1527.2,26980.6,26980.6,76,'2017-06-29 05:35:26',0,'2017-07-06 04:17:56',0,0,'AR20170600000012',NULL,0),(163,162,3,2,0,98,'TINV20170629','2017-06-29','',80,0,6,0,1,1,0,0,'',0,0,0,0,0,0,76,'2017-06-29 05:36:15',0,'2017-07-06 04:18:06',0,0,'AR20170600000013',NULL,0),(164,163,3,2,0,119,'TINV20170629','2017-06-29','',80,0,6,15,1,1,0,0,'',0,0,0,0.92,16.32,16.32,76,'2017-06-29 05:37:03',0,'2017-07-06 04:18:13',0,0,'AR20170600000014',NULL,0),(165,164,3,2,0,93,'TINV20170629','2017-06-29','',80,0,6,1,1,1,0,0,'',0,0,0,938.22,16575.22,16575.22,76,'2017-06-29 05:41:01',0,'2017-07-06 04:18:20',0,0,'AR20170600000015',NULL,0),(166,165,3,2,0,93,'TINV20170629','2017-06-29','',80,0,6,1,1,1,0,0,'',0,0,0,1080.06,19081.06,19081.06,76,'2017-06-29 05:43:32',0,'2017-07-06 04:18:27',0,0,'AR20170600000016',NULL,0),(167,166,3,2,0,93,'TINV20170629','2017-06-29','',80,0,6,1,1,1,0,0,'',0,0,0,1100.47,19441.67,19441.67,76,'2017-06-29 05:44:35',0,'2017-07-06 04:06:57',0,0,'AR20170600000001',NULL,0),(168,167,3,2,0,93,'TINV20170629','2017-06-29','',80,0,6,1,1,1,0,0,'',0,0,0,0,0,0,76,'2017-06-29 05:50:03',0,'2017-07-06 04:07:03',0,0,'AR20170600000002',NULL,0),(169,168,3,2,0,117,'TINV20170629','2017-06-29','',80,0,6,13,1,1,0,0,'',0,0,0,1.3,22.9,22.9,76,'2017-06-29 05:51:03',0,'2017-07-06 04:07:18',0,0,'AR20170600000003',NULL,0),(170,169,3,2,0,93,'TINV20170629','2017-06-29','',80,0,6,1,1,1,0,0,'',0,0,0,2806.58,49582.98,49582.98,76,'2017-06-29 06:32:13',0,'2017-07-06 04:07:25',0,0,'AR20170600000004',NULL,0),(171,170,3,2,0,118,'TINV20170629','2017-06-29','',80,0,6,14,1,1,0,0,'',0,0,0,2222.9,39271.3,39271.3,76,'2017-06-29 06:33:30',0,'2017-07-06 04:07:31',0,0,'AR20170600000005',NULL,0),(172,171,3,2,0,120,'TINV20170629','2017-06-29','',80,0,6,16,1,1,0,0,'',0,0,0,4093.12,72311.72,72311.72,76,'2017-06-29 06:42:40',0,'2017-07-06 03:08:13',0,0,'AR20170600000043',NULL,0),(173,172,3,2,0,121,'TINV20170718','2017-07-18','',80,0,6,17,1,1,0,0,'',0,0,0,180,3180,3180,76,'2017-07-18 01:23:55',0,'2017-07-18 01:32:09',0,0,'AR20170700000001',NULL,0),(174,173,3,2,0,106,'TINV20170723','2017-07-23','',80,0,6,18,1,1,0,0,'',0,0,0,763.56,13489.56,13489.56,76,'2017-07-23 07:39:45',0,'2017-07-25 02:27:49',0,0,'AR20170700000005',NULL,0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trir_befor_inser_SI` BEFORE INSERT ON `comp_sales_invoice`
 FOR EACH ROW set new.serialNo = (select nextSerialNo 
			   from view_serial_comp_sales_invoice
			   where companyID = new.companyID) */;;
DELIMITER ;

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

CREATE TABLE `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`),
  KEY `invoice` (`invoiceID`),
  KEY `tax` (`taxID`),
  KEY `accountID` (`accountNoID`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_invoice_charges` VALUES (1,37,1,314,'Security Services - April 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 02:55:35',0,'0000-00-00 00:00:00'),(2,38,1,314,'Security Services - April 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:11:26',0,'0000-00-00 00:00:00'),(3,39,1,314,'Security Services - May 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:48:33',0,'0000-00-00 00:00:00'),(4,40,1,314,'Security Services - June 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:49:39',0,'0000-00-00 00:00:00'),(5,41,1,314,'Security Services - June 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:51:12',0,'0000-00-00 00:00:00'),(6,42,1,314,'Security Services - July 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:52:02',0,'0000-00-00 00:00:00'),(7,43,1,314,'Security Services - August 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:53:35',76,'2016-10-05 04:00:17'),(8,44,1,314,'Security Services - September 2016',14390.5,0,0,0,14390.5,0,0,0,0,76,'2016-10-05 03:54:25',0,'0000-00-00 00:00:00'),(9,56,1,314,'Security services - Oct 2016',14390.5,2630,0,0,14390.5,0,0,0,0,76,'2016-11-08 05:54:32',0,'0000-00-00 00:00:00'),(10,69,1,316,'HISTORICAL INVOICE - 0017161100000065 (28/06/2016)',0,2630,0,0,0,0,0,0,0,76,'2016-12-06 05:23:50',0,'0000-00-00 00:00:00'),(11,70,1,316,'HISTORICAL INVOICE 0017161100000052 - (26.5.2016)',0,2630,0,0,0,0,0,0,0,76,'2016-12-06 05:34:23',0,'0000-00-00 00:00:00'),(12,71,1,316,'HISTORICAL INVOICE -  0017161100000044 (28.04.2016)',0,2630,0,0,0,0,0,0,0,76,'2016-12-06 05:35:56',0,'0000-00-00 00:00:00'),(13,72,1,316,'HISTORICAL INVOICE- 0017161100000032 (28/03/2016)',0,2630,0,0,0,0,0,0,0,76,'2016-12-06 05:37:41',0,'0000-00-00 00:00:00'),(14,73,1,314,'Security Services - November 2016',14390.5,2630,0,0,14390.5,0,0,0,0,76,'2016-12-15 06:12:33',0,'0000-00-00 00:00:00'),(15,74,1,314,'Security Services - December 2016',14390.5,2630,0,0,14390.5,0,0,0,0,76,'2016-12-15 06:13:45',0,'0000-00-00 00:00:00');

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

CREATE TABLE `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,
  `itemdescription` text NOT NULL,
  `umID` int(11) NOT NULL,
  `quantity` double NOT NULL DEFAULT '0',
  `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`),
  KEY `item` (`itemID`),
  KEY `tax` (`taxID`),
  KEY `invoice` (`invoiceID`)
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_invoice_detail` VALUES (1,1,13,1,1,'Sales to SATU (Bukit Bauk) - July 2016',15,302141,0.2,60428.2,2624,6,3625.69,64053.89,0,76,'2016-08-08 05:48:44',76,'0000-00-00 00:00:00'),(2,2,14,1,1,'Sales to SATU (GPP 5&6) - July 2016',15,104885,0.2,20977,2624,6,1258.62,22235.62,0,76,'2016-08-08 05:48:45',76,'0000-00-00 00:00:00'),(3,3,15,1,1,'Sales to SATU (Kumpal) - July 2016',15,92543,0.2,18508.6,2624,6,1110.52,19619.12,0,76,'2016-08-08 05:48:46',0,'0000-00-00 00:00:00'),(4,4,16,1,1,'Sales to SATU (Bukit Chatak) - July 2016',15,285634,0.2,57126.8,2624,6,3427.61,60554.41,0,76,'2016-08-08 05:48:47',0,'0000-00-00 00:00:00'),(5,5,17,1,1,'Sales to SATU (Bukit Besi) - July 2016',15,1170,0.2,234,2624,6,14.04,248.04,0,76,'2016-08-08 05:48:48',0,'0000-00-00 00:00:00'),(6,6,18,1,1,'Sales to Pet Chem Derivatives - July 2016',15,478000,1.4,669200,2624,6,40152,709352,0,76,'2016-08-08 05:48:49',0,'0000-00-00 00:00:00'),(7,7,19,1,1,'Sales to Pet Chem LDPE - July 2016',15,40032,1.4,56044.8,2624,6,3362.69,59407.49,0,76,'2016-08-08 05:48:50',0,'0000-00-00 00:00:00'),(8,8,20,1,1,'Sales to PGB - July 2016',15,857156,1.4,1200018.4,2624,6,72001.1,1272019.5,0,76,'2016-08-08 05:48:51',0,'0000-00-00 00:00:00'),(9,9,21,1,1,'Sales to HI - ESSENCE - JULY 2016',15,2016.64,1.4,2823.3,2624,6,169.4,2992.69,0,76,'2016-08-08 05:48:52',76,'0000-00-00 00:00:00'),(10,10,22,1,1,'Sales to CJ BIO - July 2016',15,272806,1.4,381928.4,2624,6,22915.7,404844.1,0,76,'2016-08-08 05:48:53',76,'0000-00-00 00:00:00'),(11,11,23,1,1,'Sales to ARKEMA - July 2016',15,11262,1.4,15766.8,2624,6,946.01,16712.81,0,76,'2016-08-08 05:48:55',0,'0000-00-00 00:00:00'),(12,12,24,1,1,'Sales to NSE RESOURCES - July 2016',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2016-08-08 05:48:56',0,'0000-00-00 00:00:00'),(13,13,0,1,1,'SALES TO ',15,1000.98,15,15014.7,2624,6,900.88,15915.58,0,75,'2016-08-03 09:28:52',75,'0000-00-00 00:00:00'),(14,14,26,1,1,'SALES TO PET CHEM DERIVATIVES - AUGUST 2016',15,426000,1.4,596400,2624,6,35784,632184,0,76,'2016-09-05 00:08:44',76,'0000-00-00 00:00:00'),(15,15,27,1,1,'SALES TO PET CHEM LDPE - AUGUST 2016',15,37013,1.4,51818.2,2624,6,3109.09,54927.29,0,76,'2016-09-05 00:08:45',0,'0000-00-00 00:00:00'),(16,16,28,1,1,'SALES TO PGB - AUGUST 2016',15,673636,1.4,943090.4,2624,6,56585.42,999675.82,0,76,'2016-09-05 00:08:46',0,'0000-00-00 00:00:00'),(17,17,29,1,1,'SALES TO HI-ESSENCE - AUGUST 2016',15,1184.71,1.4,1658.59,2624,6,99.52,1758.11,0,76,'2016-09-05 00:08:47',0,'0000-00-00 00:00:00'),(18,18,30,1,1,'SALES TO CJ BIO - AUGUST 2016',15,255960,1.4,358344,2624,6,21500.64,379844.64,0,76,'2016-09-05 00:08:50',0,'0000-00-00 00:00:00'),(19,19,31,1,1,'SALES TO ARKEMA - AUGUST 2016',15,11872,1.4,16620.8,2624,6,997.25,17618.05,0,76,'2016-09-05 00:08:51',0,'0000-00-00 00:00:00'),(20,20,32,1,1,'SALES TO NSE RESOURCES - AUGUST 2016',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2016-09-05 00:08:52',0,'0000-00-00 00:00:00'),(21,21,33,1,1,'SALES TO SATU (BUKIT BAUK) - AUGUST 2016',15,268020,0.2,53604,2624,6,3216.24,56820.24,0,76,'2016-09-05 00:08:53',0,'0000-00-00 00:00:00'),(22,22,34,1,1,'SALES TO SATU (GPP 5&6) - AUGUST 2016',15,99951,0.2,19990.2,2624,6,1199.41,21189.61,0,76,'2016-09-05 00:08:54',0,'0000-00-00 00:00:00'),(23,23,35,1,1,'SALES TO SATU (KUMPAL) - AUGUST 2016',15,79937,0.2,15987.4,2624,6,959.24,16946.64,0,76,'2016-09-05 00:08:55',0,'0000-00-00 00:00:00'),(24,24,25,1,1,'SALES TO SATU (BUKIT CHATAK) - AUGUST 2016',15,217001,0.2,43400.2,2624,6,2604.01,46004.21,0,76,'2016-09-05 00:08:43',0,'0000-00-00 00:00:00'),(25,25,38,1,1,'SALES TO PET CHEM DERIVATIVES - SEPTEMBER 2016',15,513000,1.4,718200,2624,6,43092,761292,0,76,'2016-10-04 07:16:06',76,'0000-00-00 00:00:00'),(26,26,39,1,1,'SALES TO PET CHEM LDPE - SEPTEMBER 2016',15,40387,1.4,56541.8,2624,6,3392.51,59934.31,0,76,'2016-10-04 07:16:08',0,'0000-00-00 00:00:00'),(27,27,40,1,1,'SALES TO PETRONAS GAS BHD- SEPTEMBER 2016',15,821392,1.4,1149948.8,2624,6,68996.93,1218945.73,0,76,'2016-10-04 07:16:09',0,'0000-00-00 00:00:00'),(28,28,41,1,1,'SALES TO HI - ESSENCE CABLE - SEPTEMBER 2016',15,3061.82,1.4,4286.55,2624,6,257.19,4543.74,0,76,'2016-10-04 07:16:11',0,'0000-00-00 00:00:00'),(29,29,42,1,1,'SALES TO CJ BIO MALAYSIA - SEPTEMBER 2016',15,102004,1.4,142805.6,2624,6,8568.34,151373.94,0,76,'2016-10-04 07:16:12',0,'0000-00-00 00:00:00'),(30,30,43,1,1,'SALES TO ARKEMA THIOCHEMICAL - SEPTEMBER 2016',15,10742,1.4,15038.8,2624,6,902.33,15941.13,0,76,'2016-10-04 07:16:14',0,'0000-00-00 00:00:00'),(31,31,44,1,1,'SALES TO NSE RESOURCES - SEPTEMBER 2016',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2016-10-04 07:16:15',0,'0000-00-00 00:00:00'),(32,32,45,1,1,'SALES TO SATU  (BUKIT BAUK) - SEPTEMBER 2016',15,292840,0.2,58568,2624,6,3514.08,62082.08,0,76,'2016-10-04 07:16:16',0,'0000-00-00 00:00:00'),(33,33,46,1,1,'SALES TO SATU (GPP 5&6) - SEPTEMBER 2016',15,105472,0.2,21094.4,2624,6,1265.66,22360.06,0,76,'2016-10-04 07:16:18',0,'0000-00-00 00:00:00'),(34,34,47,1,1,'SALES TO SATU (KUMPAL) - SEPTEMBER 2016',15,97675,0.2,19535,2624,6,1172.1,20707.1,0,76,'2016-10-04 07:16:20',0,'0000-00-00 00:00:00'),(35,35,36,1,1,'SALES TO SATU (BUKIT BESI) - SEPTEMBER 2016',15,1806,0.2,361.2,2624,6,21.67,382.87,0,76,'2016-10-04 07:16:02',0,'0000-00-00 00:00:00'),(36,36,37,1,1,'SALES TO SATU (BUKIT CHATAK) - SEPTEMBER 2016',15,199011,0.2,39802.2,2624,6,2388.13,42190.33,0,76,'2016-10-04 07:16:04',0,'0000-00-00 00:00:00'),(37,45,48,1,1,'SALES TO  PGB - OCT 2016',15,708071,1.4,991299.4,2624,6,59477.96,1050777.36,0,76,'2016-11-07 03:47:58',0,'0000-00-00 00:00:00'),(38,46,49,1,1,'SALES TO PET CHEMICALS - OCT 2016',15,432000,1.4,604800,2624,6,36288,641088,0,76,'2016-11-07 03:47:59',0,'0000-00-00 00:00:00'),(39,47,50,1,1,'SALES TO PET CHEM LDPE - OCT 2016',15,32787,1.4,45901.8,2624,6,2754.11,48655.91,0,76,'2016-11-07 03:48:01',0,'0000-00-00 00:00:00'),(40,48,51,1,1,'SALES TO HI-ESSENCE CABKE - OCT 2016',15,1031.08,1.4,1443.51,2624,6,86.61,1530.12,0,76,'2016-11-07 03:48:02',0,'0000-00-00 00:00:00'),(41,49,52,1,1,'SALES TO CJ BIO - OCT 2016',15,217815,1.4,304941,2624,6,18296.46,323237.46,0,76,'2016-11-07 03:48:03',0,'0000-00-00 00:00:00'),(42,50,53,1,1,'SALES TO ARKEMA THIOCHEMICAL - OCT 2016',15,13033,1.4,18246.2,2624,6,1094.77,19340.97,0,76,'2016-11-07 03:48:04',0,'0000-00-00 00:00:00'),(43,51,54,1,1,'SALES TO NSE RESOURCES - OCT 2016',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2016-11-07 03:48:05',0,'0000-00-00 00:00:00'),(44,52,55,1,1,'SALES TO SATU (KUMAL) -  OCT 2016',15,82443,0.2,16488.6,2624,6,989.32,17477.92,0,76,'2016-11-07 03:48:07',0,'0000-00-00 00:00:00'),(45,53,56,1,1,'SALES TO SATU ( BUKIT CHATAK) - OCT 2016',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2016-11-07 03:48:08',0,'0000-00-00 00:00:00'),(46,54,57,1,1,'SALES TO SATU ( GPP 5&6)',15,86276,0.2,17255.2,2624,6,1035.31,18290.51,0,76,'2016-11-07 03:48:09',0,'0000-00-00 00:00:00'),(47,55,58,1,1,'SALES TO SATU ( BUKIT BAUK) - OCT 2016',15,174321,0.2,34864.2,2624,6,2091.85,36956.05,0,76,'2016-11-07 03:48:10',0,'0000-00-00 00:00:00'),(48,57,59,1,1,'SALES TO HI-ESSENCE (NOV 2016) ',15,1319.27,1.4,1846.98,2624,6,110.82,1957.8,0,76,'2016-11-29 01:26:59',0,'0000-00-00 00:00:00'),(49,58,60,1,1,'SALES TO PET CHEMICALS - NOV 2016',15,467000,1.4,653800,2624,6,39228,693028,0,76,'2016-11-29 01:27:01',0,'0000-00-00 00:00:00'),(50,59,61,1,1,'SALES TO PET CHEM LDPE - NOV 2016',15,37058,1.4,51881.2,2624,6,3112.87,54994.07,0,76,'2016-11-29 01:27:02',0,'0000-00-00 00:00:00'),(51,60,62,1,1,'SALES TO PGB - NOV 2016 ',15,760727,1.4,1065017.8,2624,6,63901.07,1128918.87,0,76,'2016-11-29 01:27:03',0,'0000-00-00 00:00:00'),(52,61,63,1,1,'SALES TO NSE RESOURCES - NOV 2016',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2016-11-29 01:27:04',0,'0000-00-00 00:00:00'),(53,62,64,1,1,'SALES TO CJ BIO - NOV 2016 ',15,302644,1.4,423701.6,2624,6,25422.1,449123.7,0,76,'2016-11-29 01:27:06',0,'0000-00-00 00:00:00'),(54,63,65,1,1,'SALES TO ARKEMA THIOCHEMICAL - NOV 2016 ',15,16587,1.4,23221.8,2624,6,1393.31,24615.11,0,76,'2016-11-29 01:27:07',0,'0000-00-00 00:00:00'),(55,64,66,1,1,'SALES TO SATU (KUMPAL)- NOV 2016',15,86773,0.2,17354.6,2624,6,1041.28,18395.88,0,76,'2016-11-29 01:27:08',0,'0000-00-00 00:00:00'),(56,65,67,1,1,'SALES TO SATU (B. CHATAK) - NOV 2016 ',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2016-11-29 01:27:09',0,'0000-00-00 00:00:00'),(57,66,68,1,1,'SALES TO SATU (GPP 5&6) - NOV 2016 ',15,95999,0.2,19199.8,2624,6,1151.99,20351.79,0,76,'2016-11-29 01:27:10',0,'0000-00-00 00:00:00'),(58,67,69,1,1,'SALES TO SATU (BUKIT BAUK) - NOV 2016 ',15,135371,0.2,27074.2,2624,6,1624.45,28698.65,0,76,'2016-11-29 01:27:11',0,'0000-00-00 00:00:00'),(59,68,70,1,1,'SALES TO SATU (BUKIT BESI BOOSTER PUMP) - NOV 2016 ',15,1706,0.2,341.2,2624,6,20.47,361.67,0,76,'2016-11-29 01:27:12',0,'0000-00-00 00:00:00'),(60,75,73,1,1,'SALES TO PET CHEM DERIVATIVES - DEC 16',15,541000,1.4,757400,2624,6,45444,802844,0,76,'2017-01-02 06:05:31',76,'0000-00-00 00:00:00'),(61,76,74,1,1,'SALES TO PET CHEM LDPE - DEC 16',15,36981,1.4,51773.4,2624,6,3106.4,54879.8,0,76,'2017-01-02 06:05:31',76,'0000-00-00 00:00:00'),(62,77,75,1,1,'SALES TO PGB - DEC 16',15,838639,1.4,1174094.6,2624,6,70445.68,1244540.28,0,76,'2017-01-02 06:05:32',76,'0000-00-00 00:00:00'),(63,78,76,1,1,'SALES TO HI-ESSENCE CABLE - DEC 16',15,1370.95,1.4,1919.33,2624,6,115.16,2034.49,0,76,'2017-01-02 06:05:33',76,'0000-00-00 00:00:00'),(64,79,77,1,1,'SALES TO CJ BIO - DEC 16',15,323130,1.4,452382,2624,6,27142.92,479524.92,0,76,'2017-01-02 06:05:35',76,'0000-00-00 00:00:00'),(65,80,78,1,1,'SALES TO ARKEMA - DEC 16',15,17208,1.4,24091.2,2624,6,1445.47,25536.67,0,76,'2017-01-02 06:05:37',76,'0000-00-00 00:00:00'),(66,81,79,1,1,'SALES TO NSE RESOURCES - DEC 16',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2017-01-02 06:05:38',0,'0000-00-00 00:00:00'),(67,82,80,1,1,'SALES TO SATU (B. BAUK) - DEC 16 ',15,97095,0.2,19419,2624,6,1165.14,20584.14,0,76,'2017-01-02 06:05:39',0,'0000-00-00 00:00:00'),(68,83,81,1,1,'SALES TO SATU (GPP 5&6) - DEC 16 ',15,107950,0.2,21590,2624,6,1295.4,22885.4,0,76,'2017-01-02 06:05:40',0,'0000-00-00 00:00:00'),(69,84,82,1,1,'SALES TO SATU (KUMPAL) - DEC 16',15,99258,0.2,19851.6,2624,6,1191.1,21042.7,0,76,'2017-01-02 06:05:40',0,'0000-00-00 00:00:00'),(70,85,71,1,1,'SALES TO SATU (BUKIT BESI) - DEC 16 ',15,1650,0.2,330,2624,6,19.8,349.8,0,76,'2017-01-02 06:05:29',0,'0000-00-00 00:00:00'),(71,86,72,1,1,'SALES TO SATU (BUKIT CHATAK) - DEC 16',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-01-02 06:05:30',0,'0000-00-00 00:00:00'),(72,87,83,1,1,'SALES TO NSE RESOURCES - JAN 2017',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2017-02-02 06:58:50',0,'0000-00-00 00:00:00'),(73,88,84,1,1,'SALES TO ARKEMA - JAN 2017 ',15,17598,1.4,24637.2,2624,6,1478.23,26115.43,0,76,'2017-02-02 06:58:51',0,'0000-00-00 00:00:00'),(74,89,85,1,1,'SALES TO CJ BIO - JAN 2017 ',15,248347,1.4,347685.8,2624,6,20861.15,368546.95,0,76,'2017-02-02 06:58:52',0,'0000-00-00 00:00:00'),(75,90,86,1,1,'SALES TO HI ESSENCE - JAN 2017 ',15,1139.64,1.4,1595.5,2624,6,95.73,1691.23,0,76,'2017-02-02 06:58:53',0,'0000-00-00 00:00:00'),(76,91,87,1,1,'SALES TO PET GAS BERHAD - JAN 2017 ',15,719332,1.4,1007064.8,2624,6,60423.89,1067488.69,0,76,'2017-02-02 06:58:54',0,'0000-00-00 00:00:00'),(77,92,88,1,1,'SALES TO PET CHEMICALS LDPE - JAN 2017 ',15,29078,1.4,40709.2,2624,6,2442.55,43151.75,0,76,'2017-02-02 06:58:55',0,'0000-00-00 00:00:00'),(78,93,89,1,1,'SALES TO PET CHEM DERIVATIVES - JAN 2017 ',15,425000,1.4,595000,2624,6,35700,630700,0,76,'2017-02-02 06:58:57',0,'0000-00-00 00:00:00'),(79,94,90,1,1,'SALES TO SATU (BUKIT BAUK)- JAN 2017 ',15,142348,0.2,28469.6,2624,6,1708.18,30177.78,0,76,'2017-02-02 06:58:59',0,'0000-00-00 00:00:00'),(80,95,91,1,1,'SALES TO SATU GPP 5&6 - JAN 2017 ',15,83255,0.2,16651,2624,6,999.06,17650.06,0,76,'2017-02-02 06:59:00',0,'0000-00-00 00:00:00'),(81,96,92,1,1,'SALES TO SATU (KUMPAL) - JAN 2017 ',15,82988,0.2,16597.6,2624,6,995.86,17593.46,0,76,'2017-02-02 06:59:01',0,'0000-00-00 00:00:00'),(82,97,93,1,1,'SALES TO SATU (BUKIT BESI) - JAN 2017 ',15,109970,0.2,21994,2624,6,1319.64,23313.64,0,76,'2017-02-02 06:59:02',0,'0000-00-00 00:00:00'),(83,98,95,1,1,'SALES TO SATU (BUKIT CHATAK) - JAN 2017',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-02-08 06:34:54',76,'0000-00-00 00:00:00'),(84,99,98,1,1,'SALES TO PET CHEM DERIVATIVES - FEBRUARY 2017',15,516000,1.4,722400,2624,6,43344,765744,0,76,'2017-03-01 04:22:26',0,'0000-00-00 00:00:00'),(85,100,97,1,1,'SALES TO PET CHEM LDPE - FEBRUARY 2017 ',15,37226,1.4,52116.4,2624,6,3126.98,55243.38,0,76,'2017-03-01 04:22:24',0,'0000-00-00 00:00:00'),(86,101,96,1,1,'SALES TO PGB',15,837489,1.4,1172484.6,2624,6,70349.08,1242833.68,0,76,'2017-03-01 04:22:23',0,'0000-00-00 00:00:00'),(87,102,99,1,1,'SALES TO HI-ESSENCE CABLE  - FEB 2017',15,1830.12,1.4,2562.17,2624,6,153.73,2715.9,0,76,'2017-03-06 07:09:52',76,'0000-00-00 00:00:00'),(88,103,100,1,1,'SALES TO CJ BIO MALAYSIA - FEB 2017',15,293764,1.4,411269.6,2624,6,24676.18,435945.78,0,76,'2017-03-06 07:09:53',76,'0000-00-00 00:00:00'),(89,104,101,1,1,'SALES TO ARKEMA - FEB 2017',15,17181,1.4,24053.4,2624,6,1443.2,25496.6,0,76,'2017-03-06 07:09:54',0,'0000-00-00 00:00:00'),(90,105,102,1,1,'SALES TO NSE RESOURCES - FEB 2017',15,65527,1.4,91737.8,2624,6,5504.27,97242.07,0,76,'2017-03-06 07:09:56',0,'0000-00-00 00:00:00'),(91,106,103,1,1,'SALES TO SATU (GPP 5&6) - FEB 2017 ',15,98836,0.2,19767.2,2624,6,1186.03,20953.23,0,76,'2017-03-06 07:09:57',0,'0000-00-00 00:00:00'),(92,107,104,1,1,'SALES TO SATU (BUKIT BAUK) - FEB 2017',15,92483,0.2,18496.6,2624,6,1109.8,19606.4,0,76,'2017-03-06 07:09:59',0,'0000-00-00 00:00:00'),(93,108,105,1,1,'SALES TO SATU (JERANGAU) - FEB 2017',15,63441,0.2,12688.2,2624,6,761.29,13449.49,0,76,'2017-03-06 07:10:00',0,'0000-00-00 00:00:00'),(94,109,106,1,1,'SALES TO SATU (B.BESI) - FEB 2017',15,211500,0.2,42300,2624,6,2538,44838,0,76,'2017-03-06 07:10:02',0,'0000-00-00 00:00:00'),(95,110,107,1,1,'SALES TO SATU (KUMPAL) - FEB 2017',15,94360,0.2,18872,2624,6,1132.32,20004.32,0,76,'2017-03-06 07:10:03',0,'0000-00-00 00:00:00'),(96,111,108,1,1,'SALES TO SATU (B.CHATAK) - FEB 2017',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-03-06 07:10:05',0,'0000-00-00 00:00:00'),(97,112,109,1,1,'SALES TO SATU KETENGAH (KETENGAH JAYA) - FEB 2017',15,2859,0.2,571.8,2624,6,34.31,606.11,0,76,'2017-03-06 07:10:06',0,'0000-00-00 00:00:00'),(98,113,110,1,1,'SALES TO SATU KETENGAH (KETENGAH JAYA) - FEB 2017',15,2859,0.2,571.8,2624,6,34.31,606.11,0,76,'2017-03-06 07:20:54',0,'0000-00-00 00:00:00'),(99,114,113,1,1,'SALES TO SATU KETENGAH (KETENGAH JAYA) - FEB 2017 ',15,2859,0.2,571.8,2624,6,34.31,606.11,0,76,'2017-03-16 07:23:37',0,'0000-00-00 00:00:00'),(100,115,114,1,1,'SALES TO SATU HULU TERENGGANU (JERANGAN) - FEB 2017',15,63441,0.2,12688.2,2624,6,761.29,13449.49,0,76,'2017-03-16 07:23:38',0,'0000-00-00 00:00:00'),(101,116,118,1,1,'SALES TO PET CHEM DERIVATIVES (MARCH 2017)',15,462000,1.4,646800,2624,6,38808,685608,0,76,'2017-03-30 09:31:58',0,'0000-00-00 00:00:00'),(102,117,119,1,1,'SALES TO PET CHEM LDPE - MARCH 2017 ',15,36488,1.4,51083.2,2624,6,3064.99,54148.19,0,76,'2017-03-30 09:31:59',0,'0000-00-00 00:00:00'),(103,118,120,1,1,'SALES TO PGB',15,746701,1.4,1045381.4,2624,6,62722.88,1108104.28,0,76,'2017-03-30 09:32:00',0,'0000-00-00 00:00:00'),(104,119,121,1,1,'SALES TO HI-ESSENCE CABLE - MARCH 2017',15,2316.41,1.4,3242.97,2624,6,194.58,3437.55,0,76,'2017-03-30 09:32:01',0,'0000-00-00 00:00:00'),(105,120,122,1,1,'SALES TO CJ BIO (MARCH 2017) ',15,268293,1.4,375610.2,2624,6,22536.61,398146.81,0,76,'2017-03-30 09:32:03',0,'0000-00-00 00:00:00'),(106,121,123,1,1,'SALES TO ARKEMA (MARCH 2017) ',15,13970,1.4,19558,2624,6,1173.48,20731.48,0,76,'2017-03-30 09:32:04',0,'0000-00-00 00:00:00'),(107,122,124,1,1,'SALES TO NSE RESOURCES (MARCH 2017) ',15,32763.5,1.4,45868.9,2624,6,2752.13,48621.03,0,76,'2017-03-30 09:32:06',0,'0000-00-00 00:00:00'),(108,123,125,1,1,'SALES TO SATU (BUKIT BAUK)\n - MARCH 2017 ',15,95412,0.2,19082.4,2624,6,1144.94,20227.34,0,76,'2017-03-30 09:32:08',0,'0000-00-00 00:00:00'),(109,124,126,1,1,'SALES TO SATU (GPP 5&6) - MARCH 2017 ',15,96718,0.2,19343.6,2624,6,1160.62,20504.22,0,76,'2017-03-30 09:32:09',0,'0000-00-00 00:00:00'),(110,125,127,1,1,'SALES TO SATU (KUMPAL) - MARCH 2017',15,82337,0.2,16467.4,2624,6,988.04,17455.44,0,76,'2017-03-30 09:32:10',0,'0000-00-00 00:00:00'),(111,126,115,1,1,'SALES TO SATU (BUKIT CHATAK) - MARCH 2017 ',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-03-30 09:31:54',0,'0000-00-00 00:00:00'),(112,127,116,1,1,'SALES TO SATU (KETENGAH JAYA) - MARCH 2017',15,1080,0.2,216,2624,6,12.96,228.96,0,76,'2017-03-30 09:31:55',0,'0000-00-00 00:00:00'),(113,128,117,1,1,'SALES TO SATU (JERANGAU) - MARCH 2017',15,153765,0.2,30753,2624,6,1845.18,32598.18,0,76,'2017-03-30 09:31:57',0,'0000-00-00 00:00:00'),(114,129,132,1,1,'SALES TO PET CHEM DERIVATIVES- APRIL 2017 ',15,378000,1.4,529200,2624,6,31752,560952,0,76,'2017-04-25 09:13:23',0,'0000-00-00 00:00:00'),(115,130,133,1,1,'SALES TO PET CHEM LDPE - APRIL 2017 ',15,34642,1.4,48498.8,2624,6,2909.93,51408.73,0,76,'2017-04-25 09:13:24',0,'0000-00-00 00:00:00'),(116,131,134,1,1,'SALES TO PGB - APRIL 2017 ',15,670658,1.4,938921.2,2624,6,56335.27,995256.47,0,76,'2017-04-25 09:13:26',0,'0000-00-00 00:00:00'),(117,132,135,1,1,'SALES TO HI-ESSENCE - APRIL 2017',15,1987.44,1.4,2782.42,2624,6,166.94,2949.36,0,76,'2017-04-25 09:13:27',0,'0000-00-00 00:00:00'),(118,133,136,1,1,'SALES TO CJ BIO - APRIL 2017',15,291461,1.4,408045.4,2624,6,24482.72,432528.12,0,76,'2017-04-25 09:13:28',0,'0000-00-00 00:00:00'),(119,134,137,1,1,'SALES TO ARKEMA - APRIL 2017 ',15,15805,1.4,22127,2624,6,1327.62,23454.62,0,76,'2017-04-25 09:13:29',0,'0000-00-00 00:00:00'),(120,135,138,1,1,'SALES TO NSE RESOURCES - APRIL 2017 ',15,327,1.4,457.8,2624,6,27.47,485.27,0,76,'2017-04-25 09:13:30',0,'0000-00-00 00:00:00'),(121,136,139,1,1,'SALES TO SATU (B.CHATAK) - APRIL 2017',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-04-25 09:13:32',0,'0000-00-00 00:00:00'),(122,137,140,1,1,'SALES TO SATU (B. BAUK) - APRIL 2017',15,84924,0.2,16984.8,2624,6,1019.09,18003.89,0,76,'2017-04-25 09:13:33',0,'0000-00-00 00:00:00'),(123,138,141,1,1,'SALES TO SATU (GPP 5&6) - APRIL 2017',15,81750,0.2,16350,2624,6,981,17331,0,76,'2017-04-25 09:13:34',0,'0000-00-00 00:00:00'),(124,139,128,1,1,'SALES TO SATU (KUMPAL) - APRIL 2017',15,80699,0.2,16139.8,2624,6,968.39,17108.19,0,76,'2017-04-25 09:13:19',0,'0000-00-00 00:00:00'),(125,140,129,1,1,'SALES TO SATU (KETENGAH\n JAYA) - APRIL 2017',15,1399,0.2,279.8,2624,6,16.79,296.59,0,76,'2017-04-25 09:13:20',0,'0000-00-00 00:00:00'),(126,141,130,1,1,'SALES TO SATU (JERANGAU) - APRIL 2017 ',15,164136,0.2,32827.2,2624,6,1969.63,34796.83,0,76,'2017-04-25 09:13:21',0,'0000-00-00 00:00:00'),(127,142,142,1,1,'SALES TO TNB - APRIL 2017',15,19,1.4,26.6,2624,6,1.6,28.2,0,76,'2017-05-07 07:59:07',76,'0000-00-00 00:00:00'),(128,143,147,1,1,'SALES TO PET CHEMICALS DERIVATIVES - MAY 2017',15,536000,1.4,750400,2624,6,45024,795424,0,76,'2017-05-30 02:44:22',0,'0000-00-00 00:00:00'),(129,144,148,1,1,'SALES TO PET CHEM LDPE - MAY 2017',15,40910,1.4,57274,2624,6,3436.44,60710.44,0,76,'2017-05-30 02:44:23',0,'0000-00-00 00:00:00'),(130,145,149,1,1,'SALES TO PGB - MAY 2017 ',15,815490,1.4,1141686,2624,6,68501.16,1210187.16,0,76,'2017-05-30 02:44:24',0,'0000-00-00 00:00:00'),(131,146,150,1,1,'SALES TO HI-ESSENCE CABLE - MAY 2017 ',15,1899.51,1.4,2659.31,2624,6,159.56,2818.87,0,76,'2017-05-30 02:44:25',0,'0000-00-00 00:00:00'),(132,147,151,1,1,'SALES TO CJ BIO MALAYSIA - MAY 2017 ',15,374372,1.4,524120.8,2624,6,31447.25,555568.05,0,76,'2017-05-30 02:44:27',0,'0000-00-00 00:00:00'),(133,148,152,1,1,'SALES TO ARKEMA - MAY 2017 ',15,20778,1.4,29089.2,2624,6,1745.35,30834.55,0,76,'2017-05-30 02:44:29',0,'0000-00-00 00:00:00'),(134,149,153,1,1,'SALES TO NSE RESOURCES - MAY 2017 ',15,80,1.4,112,2624,6,6.72,118.72,0,76,'2017-05-30 02:44:30',0,'0000-00-00 00:00:00'),(135,150,154,1,1,'SALES TO TNB - MAY 2017 ',15,29,1.4,40.6,2624,6,2.44,43.04,0,76,'2017-05-30 02:44:31',0,'0000-00-00 00:00:00'),(136,151,155,1,1,'SALES TO SATU B. BAUK - MAY 2017 ',15,101845,0.2,20369,2624,6,1222.14,21591.14,0,76,'2017-05-30 02:44:32',0,'0000-00-00 00:00:00'),(137,152,156,1,1,'SALES TO GPP 5&6 - MAY 2017 ',15,117590,0.2,23518,2624,6,1411.08,24929.08,0,76,'2017-05-30 02:44:33',0,'0000-00-00 00:00:00'),(138,153,143,1,1,'SALES TO SATU KUMPAL - MAY 2017',15,105343,0.2,21068.6,2624,6,1264.12,22332.72,0,76,'2017-05-30 02:44:17',0,'0000-00-00 00:00:00'),(139,154,144,1,1,'SALES TO SATU KETENGAH JAYA - MAY 2017',15,588,0.2,117.6,2624,6,7.06,124.66,0,76,'2017-05-30 02:44:18',0,'0000-00-00 00:00:00'),(140,155,145,1,1,'SALES TO SATU BUKIT CHATAK - MAY 2017',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-05-30 02:44:20',0,'0000-00-00 00:00:00'),(141,156,146,1,1,'SALES TO SATU JERANGAN\n - MAY 2017 ',15,221113,0.2,44222.6,2624,6,2653.36,46875.96,0,76,'2017-05-30 02:44:21',0,'0000-00-00 00:00:00'),(142,157,163,1,1,'SALES TO PET CHEM DERIVATIVES - JUN 2017 ',15,496000,1.4,694400,2624,6,41664,736064,0,76,'2017-06-29 06:43:06',0,'0000-00-00 00:00:00'),(143,158,164,1,1,'SALES TO PET CHEM LDPE - JUNE 2017 ',15,38406,1.4,53768.4,2624,6,3226.1,56994.5,0,76,'2017-06-29 06:43:07',0,'0000-00-00 00:00:00'),(144,159,165,1,1,'SALES TO PGB - JUNE 2017 ',15,766273,1.4,1072782.2,2624,6,64366.93,1137149.13,0,76,'2017-06-29 06:43:09',0,'0000-00-00 00:00:00'),(145,160,166,1,1,'SALES TO HI-ESSENCE - JUNE 2017 ',15,1882.92,1.4,2636.09,2624,6,158.17,2794.25,0,76,'2017-06-29 06:43:10',0,'0000-00-00 00:00:00'),(146,161,167,1,1,'SALES TO CJ BIO - JUNE 2017',15,326286,1.4,456800.4,2624,6,27408.02,484208.42,0,76,'2017-06-29 06:43:11',0,'0000-00-00 00:00:00'),(147,162,168,1,1,'SALES TO ARKEMA - JUNE 2017 ',15,18181,1.4,25453.4,2624,6,1527.2,26980.6,0,76,'2017-06-29 06:43:14',0,'0000-00-00 00:00:00'),(148,163,169,1,1,'SALES TO NSE RESOURCES - JUNE 2017 ',15,0,1.4,0,2624,6,0,0,0,76,'2017-06-29 06:43:15',0,'0000-00-00 00:00:00'),(149,164,170,1,1,'SALES TO TNB STATION - JUNE 2017 ',15,11,1.4,15.4,2624,6,0.92,16.32,0,76,'2017-06-29 06:43:16',0,'0000-00-00 00:00:00'),(150,165,171,1,1,'SALES TO SATU - BUKIT BAUK JUNE 2017',15,78185,0.2,15637,2624,6,938.22,16575.22,0,76,'2017-06-29 06:43:17',76,'0000-00-00 00:00:00'),(151,166,172,1,1,'SALES TO SATU - GPP 5 & 6 JUNE 2017',15,90005,0.2,18001,2624,6,1080.06,19081.06,0,76,'2017-06-29 06:43:18',76,'0000-00-00 00:00:00'),(152,167,157,1,1,'SALES TO SATU - KUMPAL JUNE 2017 ',15,91706,0.2,18341.2,2624,6,1100.47,19441.67,0,76,'2017-06-29 06:42:58',0,'0000-00-00 00:00:00'),(153,168,158,1,1,'SALES TO SATU - BOOSTER PUMP\n BUKIT BESI JUNE 2017 ',15,0,0.2,0,2624,6,0,0,0,76,'2017-06-29 06:43:00',0,'0000-00-00 00:00:00'),(154,169,159,1,1,'SALES TO SATU - KETENGAH JUNE 2017',15,108,0.2,21.6,2624,6,1.3,22.9,0,76,'2017-06-29 06:43:01',0,'0000-00-00 00:00:00'),(155,170,160,1,1,'SALES TO SATU - B. CHATAK JUNE 2017',15,233882,0.2,46776.4,2624,6,2806.58,49582.98,0,76,'2017-06-29 06:43:02',0,'0000-00-00 00:00:00'),(156,171,161,1,1,'SALES TO SATU JERANGAU- JUNE 2017 ',15,185242,0.2,37048.4,2624,6,2222.9,39271.3,0,76,'2017-06-29 06:43:04',0,'0000-00-00 00:00:00'),(157,172,173,1,1,'SALES TO SATU KEMAMAN - JUNE 2017 ',15,341093,0.2,68218.6,2624,6,4093.12,72311.72,0,76,'2017-07-06 03:08:12',0,'0000-00-00 00:00:00'),(158,173,174,1,1,'SALES TO JLP TEGUH - BUANG AIR KELUAR DARI TANGKI NO. 1 UNTUK KERJA-KERJA PEMBAIKIAN OUTLET BV TANGKI 1 PADA 13/07/2017 ',15,2142.86,1.4,3000,2624,6,180,3180,0,76,'2017-07-18 01:32:09',0,'0000-00-00 00:00:00'),(159,174,178,1,1,'PELEPASAN AIR DARI TANGKI 1 & TANGKI 5 UNTUK TUJUAN KERJA-KERJA WATER PROOFING BAHAGIAN DALAMAN TANGKI TERSEBUT',15,9090,1.4,12726,2624,6,763.56,13489.56,0,76,'2017-07-25 02:27:48',76,'0000-00-00 00:00:00');

--
