
--
-- 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`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_opening_balance` VALUES (1,2,1,2014,0,0,'2015-08-29 19:36:51',2),(2,2,2,2014,0,0,'2015-08-29 19:36:51',2),(3,2,3,2014,0,0,'2015-08-29 19:36:51',2),(4,2,4,2014,0,0,'2015-08-29 19:36:51',2),(5,2,5,2014,0,0,'2015-08-29 19:36:51',2),(6,2,6,2014,0,0,'2015-08-29 19:36:51',2),(7,2,7,2014,0,0,'2015-08-29 19:36:51',2),(8,2,8,2014,0,0,'2015-08-29 19:36:51',2),(9,2,9,2014,0,0,'2015-08-29 19:36:51',2),(10,2,10,2014,0,0,'2015-08-29 19:36:51',2),(11,2,11,2014,0,0,'2015-08-29 19:36:51',2),(12,2,12,2014,0,0,'2015-08-29 19:36:51',2),(13,2,13,2014,0,0,'2015-08-29 19:36:51',2),(14,2,14,2014,0,0,'2015-08-29 19:36:51',2),(15,2,15,2014,0,0,'2015-08-29 19:36:51',2),(16,2,16,2014,0,0,'2015-08-29 19:36:51',2),(17,2,17,2014,0,0,'2015-08-29 19:36:51',2),(18,2,18,2014,0,0,'2015-08-29 19:36:51',2),(19,2,19,2014,0,0,'2015-08-29 19:36:51',2),(20,2,20,2014,0,0,'2015-08-29 19:36:51',2),(21,2,21,2014,0,0,'2015-08-29 19:36:51',2),(22,2,22,2014,0,0,'2015-08-29 19:36:51',2),(23,2,23,2014,0,0,'2015-08-29 19:36:51',2),(24,2,24,2014,0,0,'2015-08-29 19:36:51',2),(25,2,25,2014,0,0,'2015-08-29 19:36:51',2),(26,2,26,2014,0,0,'2015-08-29 19:36:51',2),(27,2,27,2014,0,0,'2015-08-29 19:36:51',2),(28,2,28,2014,0,0,'2015-08-29 19:36:51',2),(29,2,29,2014,0,0,'2015-08-29 19:36:51',2),(30,2,30,2014,0,0,'2015-08-29 19:36:51',2),(31,2,31,2014,0,0,'2015-08-29 19:36:51',2),(32,2,32,2014,0,0,'2015-08-29 19:36:51',2),(33,2,33,2014,0,0,'2015-08-29 19:36:51',2),(34,2,34,2014,0,0,'2015-08-29 19:36:51',2),(35,2,35,2014,0,0,'2015-08-29 19:36:51',2),(36,2,36,2014,0,0,'2015-08-29 19:36:51',2),(37,2,37,2014,0,0,'2015-08-29 19:36:51',2),(38,2,38,2014,0,0,'2015-08-29 19:36:51',2),(39,2,39,2014,0,0,'2015-08-29 19:36:51',2),(40,2,40,2014,0,0,'2015-08-29 19:36:51',2),(41,2,41,2014,0,0,'2015-08-29 19:36:51',2),(42,2,42,2014,0,0,'2015-08-29 19:36:51',2),(43,2,43,2014,0,0,'2015-08-29 19:36:51',2),(44,2,44,2014,0,0,'2015-08-29 19:36:51',2),(45,2,45,2014,0,0,'2015-08-29 19:36:51',2),(46,2,46,2014,0,0,'2015-08-29 19:36:51',2),(47,2,47,2014,0,0,'2015-08-29 19:36:51',2),(48,2,48,2014,0,0,'2015-08-29 19:36:51',2),(49,2,49,2014,0,0,'2015-08-29 19:36:51',2),(50,2,50,2014,0,0,'2015-08-29 19:36:51',2),(51,2,51,2014,0,0,'2015-08-29 19:36:51',2),(52,2,52,2014,0,0,'2015-08-29 19:36:51',2),(53,2,53,2014,0,0,'2015-08-29 19:36:51',2),(54,2,54,2014,0,0,'2015-08-29 19:36:51',2),(55,2,55,2014,0,0,'2015-08-29 19:36:51',2),(56,2,56,2014,0,0,'2015-08-29 19:36:51',2),(57,2,57,2014,0,0,'2015-08-29 19:36:51',2),(58,2,58,2014,0,0,'2015-08-29 19:36:51',2),(59,2,59,2014,0,0,'2015-08-29 19:36:51',2),(60,2,60,2014,0,0,'2015-08-29 19:36:51',2),(61,2,61,2014,0,0,'2015-08-29 19:36:51',2),(62,2,62,2014,0,0,'2015-08-29 19:36:51',2),(63,2,63,2014,0,0,'2015-08-29 19:36:51',2),(64,2,64,2014,0,0,'2015-08-29 19:36:51',2),(65,2,65,2014,0,0,'2015-08-29 19:36:51',2),(66,2,66,2014,0,0,'2015-08-29 19:36:51',2),(67,2,67,2014,0,0,'2015-08-29 19:36:51',2),(68,2,68,2014,0,0,'2015-08-29 19:36:51',2),(69,2,69,2014,0,0,'2015-08-29 19:36:51',2),(70,2,70,2014,0,0,'2015-08-29 19:36:51',2),(71,2,71,2014,0,0,'2015-08-29 19:36:51',2),(72,2,72,2014,0,0,'2015-08-29 19:36:51',2),(73,2,73,2014,0,0,'2015-08-29 19:36:51',2),(74,2,74,2014,0,0,'2015-08-29 19:36:51',2),(75,2,75,2014,0,0,'2015-08-29 19:36:51',2),(76,2,76,2014,0,0,'2015-08-29 19:36:51',2),(77,2,77,2014,0,0,'2015-08-29 19:36:51',2),(78,2,78,2014,0,0,'2015-08-29 19:36:51',2),(79,2,79,2014,0,0,'2015-08-29 19:36:51',2),(80,2,80,2014,0,0,'2015-08-29 19:36:51',2),(81,2,81,2014,0,0,'2015-08-29 19:36:51',2),(82,2,82,2014,0,0,'2015-08-29 19:36:51',2),(83,2,83,2014,0,0,'2015-08-29 19:36:51',2),(84,2,84,2014,0,0,'2015-08-29 19:36:51',2),(85,2,85,2014,0,0,'2015-08-29 19:36:51',2),(86,2,86,2014,0,0,'2015-08-29 19:36:51',2),(87,2,87,2014,0,0,'2015-08-29 19:36:51',2),(88,2,88,2014,0,0,'2015-08-29 19:36:51',2),(89,2,89,2014,0,0,'2015-08-29 19:36:51',2),(90,2,90,2014,0,0,'2015-08-29 19:36:51',2),(91,2,91,2014,0,0,'2015-08-29 19:36:51',2),(92,2,92,2014,0,0,'2015-08-29 19:36:51',2),(93,2,93,2014,0,0,'2015-08-29 19:36:51',2),(94,2,94,2014,0,0,'2015-08-29 19:36:51',2),(95,2,95,2014,0,0,'2015-08-29 19:36:51',2),(96,2,96,2014,0,0,'2015-08-29 19:36:51',2),(97,2,97,2014,0,0,'2015-08-29 19:36:51',2),(98,2,98,2014,0,0,'2015-08-29 19:36:51',2),(99,2,99,2014,0,0,'2015-08-29 19:36:51',2),(100,2,100,2014,0,0,'2015-08-29 19:36:51',2),(101,2,101,2014,0,0,'2015-08-29 19:36:51',2),(102,2,102,2014,0,0,'2015-08-29 19:36:51',2),(103,2,103,2014,0,0,'2015-08-29 19:36:51',2),(104,2,104,2014,0,0,'2015-08-29 19:36:51',2),(105,2,105,2014,0,0,'2015-08-29 19:36:51',2),(106,2,106,2014,0,0,'2015-08-29 19:36:51',2),(107,2,107,2014,0,0,'2015-08-29 19:36:51',2),(108,2,108,2014,0,0,'2015-08-29 19:36:51',2),(109,2,109,2014,0,0,'2015-08-29 19:36:51',2),(110,2,110,2014,0,0,'2015-08-29 19:36:51',2),(111,2,111,2014,0,0,'2015-08-29 19:36:51',2),(112,2,112,2014,0,0,'2015-08-29 19:36:51',2),(113,2,113,2014,0,0,'2015-08-29 19:36:51',2),(114,2,114,2014,0,0,'2015-08-29 19:36:51',2),(115,2,115,2014,0,0,'2015-08-29 19:36:51',2),(116,2,116,2014,0,0,'2015-08-29 19:36:51',2),(117,2,117,2014,0,0,'2015-08-29 19:36:51',2),(118,2,118,2014,0,0,'2015-08-29 19:36:51',2),(119,2,119,2014,0,0,'2015-08-29 19:36:51',2),(120,2,120,2014,0,0,'2015-08-29 19:36:51',2),(121,2,121,2014,0,0,'2015-08-29 19:36:51',2),(122,2,122,2014,0,0,'2015-08-29 19:36:51',2),(123,2,123,2014,0,0,'2015-08-29 19:36:51',2),(124,2,124,2014,0,0,'2015-08-29 19:36:51',2),(125,2,125,2014,0,0,'2015-08-29 19:36:51',2),(126,2,256,2014,0,0,'2015-08-29 19:36:51',2),(127,2,257,2014,0,0,'2015-08-29 19:36:51',2),(128,2,258,2014,0,0,'2015-08-29 19:36:51',2),(129,2,259,2014,0,0,'2015-08-29 19:36:51',2),(130,2,260,2014,0,0,'2015-08-29 19:36:51',2),(131,2,261,2014,0,0,'2015-08-29 19:36:51',2),(132,2,262,2014,0,0,'2015-08-29 19:36:51',2),(133,2,263,2014,0,0,'2015-08-29 19:36:51',2),(134,2,264,2014,0,0,'2016-05-16 09:41:19',2),(135,2,265,2014,0,0,'2016-05-16 09:41:19',2),(136,2,266,2014,0,0,'2016-05-16 09:41:19',2);

--
-- 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`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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 DEFAULT CHARSET=latin1;

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


--
-- 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 DEFAULT CHARSET=latin1;

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


--
-- 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,
  `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`)
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment_others` VALUES (1,1,1,2,'MOHAMMED AZWAN',0,5500,69,'NH/1A-4A/verification-15',0,'OPN','2015-02-09',0,0,0,0,0,'Payment of referral fee (NH/1A-4A/verification)',0,0,0,1,0,0,0,0,2,'2015-07-24 16:24:57',0,'2015-08-01 16:11:52',0,'',0,'AP20150200000005',0,0),(2,2,1,2,'AZWAN',0,5500,69,'NH/1A-4A/verification-15',0,'OPN','2015-02-12',0,0,0,0,0,'Payment  made for referral fee (NH/1A-4A/verification-15',0,0,0,1,0,0,0,0,2,'2015-07-24 16:38:09',0,'2015-08-01 16:11:51',0,'',0,'AP20150200000004',0,0),(3,3,1,2,'NH',0,5000,69,'allowance',0,'OPN','2015-02-18',0,0,0,0,0,'ALLOWANCE PAID',0,0,0,1,0,0,0,0,2,'2015-07-24 16:42:08',0,'2015-08-01 16:11:50',0,'',0,'AP20150200000003',0,0),(4,4,1,2,'MAJLIS AGAMA ISLAM KEDAH',0,120,69,'MAIK',0,'OPN','2015-03-10',0,0,0,0,0,'Payment made for Practising annual certificate (Peguam syarie Kedah) to MAIK',0,0,0,1,0,0,0,0,2,'2015-07-26 13:04:48',0,'2015-08-01 16:13:54',0,'',0,'AP20150300000003',0,0),(5,5,1,2,'NH ',0,5000,69,'Allowance',0,'OPN','2015-04-03',0,0,0,0,0,'Paid allowance to NH',0,0,0,1,0,0,0,0,2,'2015-07-26 13:08:29',0,'2015-07-26 14:58:36',0,'',0,'AP20150400000004',0,0),(6,6,1,2,'AZWAN',0,2625,69,'NH/5A-11A,13A/verification-15',0,'OPN','2015-03-27',0,0,0,0,0,'Payment made to Azwan for referral fee (vetting/verification of ownership)\nNH/5A-11A, 13A/verification-15',0,0,0,1,0,0,0,0,2,'2015-07-26 13:26:21',0,'2015-08-01 16:13:53',0,'',0,'AP20150300000002',0,0),(7,7,1,2,'NH',0,6000,69,'allowance',0,'OPN','2015-04-25',0,0,0,0,0,'Payment of allowance to NH',0,0,0,1,0,0,0,0,2,'2015-07-26 14:32:16',2,'2015-07-26 14:58:35',0,'',0,'AP20150400000003',0,0),(8,8,1,2,'AZWAN',0,750,69,'NH/14A-verification-15',0,'OPN','2015-04-23',0,0,0,0,0,'Payment made to Azwan for referral fee',0,0,0,1,0,0,0,0,2,'2015-07-26 15:03:49',0,'2015-07-26 15:04:31',0,'',0,'AP20150400000005',0,0),(9,9,1,2,'NH',0,5000,69,'allowance',0,'OPN','2015-05-12',0,0,0,0,0,'Payment made to NH for allowance',0,0,0,1,0,0,0,0,2,'2015-07-26 15:07:23',0,'2015-07-26 15:25:50',0,'',0,'AP20150500000004',0,0),(10,10,1,2,'EKRAM',0,3000,69,'Referral fee',0,'OPN','2015-05-21',0,0,0,0,0,'Payment of referral fee to Ekram (for Kelantan Delights & Fast Airfreight)',0,0,0,1,0,0,0,0,2,'2015-07-26 15:10:57',0,'2015-07-26 15:25:49',0,'',0,'AP20150500000003',0,0),(11,11,1,2,'Salihin Business Managment Sdn Bhd',0,3052,69,'sps software',0,'OPN','2015-05-21',0,0,0,0,0,'Purchase of GST software (accounting software) fro Salihin.',0,0,0,1,0,0,0,0,2,'2015-07-26 15:24:59',2,'2015-07-26 15:36:54',0,'',0,'AP20150500000005',0,0),(12,12,1,2,'Ketua Pengarah Insolvensi ',0,3000,69,'deposit',0,'OPN','2015-06-04',0,0,0,0,0,'Payment of winding up petition deposit to Insolvency',0,0,0,1,0,0,0,0,2,'2015-07-26 15:44:40',0,'2015-07-26 15:45:11',0,'',0,'AP20150600000003',0,0),(13,13,1,2,'NH',0,1208.4,69,'reinburse for costs',0,'OPN','2015-06-17',0,0,0,0,0,'Reinburse costs for filing, affirmations, travelling, printing & others',0,0,0,1,0,0,0,0,2,'2015-07-26 15:53:01',2,'2015-07-28 15:00:46',0,'',0,'AP20150600000005',0,0),(14,14,1,2,'NH',0,5000,69,'allowance',0,'OPN','2015-06-17',0,0,0,0,0,'Payment of allowance made to NH',0,0,0,1,0,0,0,0,2,'2015-07-26 15:55:46',2,'2015-07-28 14:58:39',0,'',0,'AP20150600000004',0,0),(15,15,1,2,'NH ',0,106,69,'sps software',0,'OPN','2015-07-27',0,0,0,0,0,'Payment made to NH (reinburse) for the change of package (sps software) from 1 company to 3 companies & 1 user.',0,0,0,1,0,0,0,0,2,'2015-07-27 14:14:29',2,'2015-07-27 14:18:07',0,'',0,'AP20150700000001',0,0),(16,16,1,2,'NH',0,327.2,69,'expenses',0,'OPN','2015-07-28',0,0,0,0,0,'Payment made to NH for operating expenses & administration expenses.',0,0,0,1,0,0,0,0,2,'2015-07-28 13:43:55',2,'2015-07-28 14:57:44',0,'',0,'AP20150700000002',0,0),(17,17,1,2,'AZWAN',0,875,69,'Referral fee',0,'OPN','2015-06-03',0,0,0,0,0,'Payment made to Azwan for his referral fee (verification of ownership)',0,0,0,1,0,0,0,0,2,'2015-07-29 15:31:44',0,'2015-07-29 15:32:28',0,'',0,'AP20150600000006',0,0),(18,18,1,2,'Bar Council Malaysia',0,1020,69,'Bar council annual subscription',0,'OPN','2015-06-10',0,0,0,0,0,'Payment of Bar council annual subscription & disciplinary fund',0,0,0,1,0,0,0,0,2,'2015-07-29 15:49:02',2,'2015-07-29 15:52:19',0,'',0,'AP20150600000007',0,0),(19,19,1,2,'NH',0,404.95,69,'kopetro lunch',0,'OPN','2015-06-14',0,0,0,0,0,'Payment to NH(reinburse) for lunch with Kopetro',0,0,0,1,0,0,0,0,2,'2015-07-29 15:57:35',0,'2015-07-29 15:57:58',0,'',0,'AP20150600000008',0,0),(20,20,1,2,'Bar Council Malaysia',0,60,69,'Bar council compensation fund',0,'OPN','2015-06-10',0,0,0,0,0,'Bar council compensation fund',0,0,0,1,0,0,0,0,2,'2015-07-29 16:00:47',0,'2015-07-29 16:01:03',0,'',0,'AP20150600000009',0,0),(21,21,1,2,'NH',0,235.2,69,'expenses',0,'OPN','2015-08-02',0,0,0,0,0,'Payment for filing fees (NH/2/2014/kopetro; NH/18/15/anf; NH/3/2014/kopetro)\n- Perintah (10.00), Gazette (20.00), Lodge order (50.00), sijil pendaftar (5.00), AOS (2), \nPerintah dalam kamar (5.00) Order utk pinda (5.00) x 2 kes.',0,0,0,1,0,0,0,0,2,'2015-08-01 16:26:13',2,'2015-08-01 16:41:22',0,'',0,'AP20150800000001',0,0),(22,22,1,2,'NH',0,796,69,'(NH/9/14/cotrade)-RM96.00 Paymen',0,'OPN','2015-08-05',0,0,0,0,0,'Payment for filing of judgement, Perakuan ketidakhadiran, Affidavit of service, jds(NH/9/14/cotrade)-RM96.00\nPayment of filing of consent judgment, writ summons, Soc, AOS, Reply to defence (NH/4/2014/cotrade)-RM700',0,0,0,1,0,0,0,0,2,'2015-08-04 16:22:23',0,'2015-08-04 16:24:27',0,'',0,'AP20150800000002',0,0),(23,23,1,2,'NH',0,739.35,69,'NH/5/rainstar/15, NH/26/15/Juruk',0,'OPN','2015-08-30',0,0,0,0,0,'NH/5/rainstar/15- Meals and entertainment (meeting with client), NH/26/15/Jurukur Terra Consult- Meeting, meals and entertainment\nNH/27/15/ Prospect- Printing, Meals and entertainment-kopetro meeting, NH/9/14/cotrade- Service charge for process server serving JDS, \nMeals and entertainment- meeting software provider salihin, NH/5/rainstar/15- Parking fee(meeting at Insolvency), \nNH/13/15/amboss sdn bhd-parking fee (meeting at Insolvency on 28.7.15, 30.7.& 3.8.15, NH/36/15/dato azri-la- parking fee (meeting at his office),\nNH/4/2014/cotrade- service charge for process server at Kemaman to serve JDS pfc,NH/4/2014/cotrade- posting, NH/4/2014- cotrade-Filing fees for JDS and request for JDS',0,0,0,1,0,0,0,0,2,'2015-08-29 20:56:16',2,'2015-08-29 21:19:19',0,'',0,'AP20150800000003',0,0),(24,24,1,2,'NH',0,4000,68,'NH/36/DA/LA/15',0,'OPN','2015-10-23',0,0,0,0,0,'Payment of referral fee to Ms. Ernie for file no. NH/36/DA/LA/15 on 15.10.2015',0,0,0,1,0,0,0,0,2,'2015-10-23 04:29:02',2,'2015-10-23 05:10:13',0,'',0,'AP20151000000001',0,0),(25,25,1,2,'NH',0,106,69,'salihin software/change',0,'OPN','2015-07-28',0,0,0,0,0,'Payment made to Salihin of RM106.00 on 22.6.2015 for change of software package (reinburse NH) via cheque No.000028',0,0,0,1,0,0,0,0,2,'2015-10-26 03:32:10',2,'2015-10-26 03:37:01',0,'',0,'AP20150700000003',0,0),(26,26,1,2,'Salihin Tax Advisory Sdn Bhd',0,1219,69,'TAX SERVICE',0,'OPN','2015-07-20',0,0,0,0,0,'Payment made to Salihin Tax Advisory Sdn Bhd for tax service ',0,0,0,1,0,0,0,0,2,'2015-10-26 03:41:11',2,'2015-10-26 03:43:03',0,'',0,'AP20150700000004',0,0),(27,27,1,2,'Kastam diraja Malaysia',0,3502.64,69,'gst/1/2015',0,'gst/1/2015','2015-08-14',0,0,0,0,0,'Payment made to KASTAM DIRAJA MALAYSIA for gst (Period April-June) via cheque No. 000033',0,0,0,1,0,0,0,0,2,'2015-10-26 03:55:14',2,'2015-10-26 04:00:01',0,'',0,'AP20150800000004',0,0),(28,28,1,2,'NH',0,6000,69,'nh allowance',0,'OPN','2015-09-11',0,0,0,0,0,'Payment of allowance made to NH via cheque no. 000036',0,0,0,1,0,0,0,0,2,'2015-10-26 04:05:09',0,'2015-10-26 04:05:34',0,'',0,'AP20150900000001',0,0),(29,29,1,2,'NH',0,3000,69,'NH/37&38/DA/c1513& L-VIP/15',0,'OPN','2015-09-11',0,0,0,0,0,'Payment made to Ms. Ernie of RM3K for the referral fee by NH (Reinburse NH)',0,0,0,1,0,0,0,0,2,'2015-10-26 04:10:06',0,'2015-10-26 04:10:28',0,'',0,'AP20150900000002',0,0),(30,30,1,2,'MSC Trustgate',0,84.8,69,'Trustgate e-filing',0,'OPN','2015-10-08',0,0,0,0,0,'Payment of e-filing renewal fee to MSC Trustgate',0,0,0,1,0,0,0,0,2,'2015-10-26 04:14:36',0,'2015-10-26 04:14:55',0,'',0,'AP20151000000002',0,0),(31,31,1,2,'NH',0,3000,69,'NH/38/DA/LV-12-VIP-11/HB/15',0,'NH/38/DA/LV-12-VIP-11/HB/15','2015-10-12',0,0,0,0,0,'Payment made to Ms. Ernie for her referral fee charged on the firm of RM3K by NH (reinburse NH)',0,0,0,1,0,0,0,0,2,'2015-10-27 05:12:15',0,'2015-10-27 05:12:47',0,'',0,'AP20151000000003',0,0),(32,32,1,2,'NH (For all expenses incurred first from her pocket for Noor Hanani & Co)',0,2209.44,69,'Reg.post & etc',0,'OPN','2015-10-28',0,0,0,0,0,'Purchase of registered post slip (30 pieces), parking fee for meeting with KOPETRO at their office on 1.10.2015,Having lunch with clients (NH/37&38/15) at Secret Recipe on 25.10.2015, Having lunch with Ms.Ernie on 4.10.2015, Having lunch with Encik Hadi & Hasif from services company on 29.9.2015, Affirmation of SD for the renewal of Practising certificate on 15.10.2015,Payment of subscription fee made to Selangor Bar Committee for the renewal of PC, Payment made to Jardine Llyod Thompson for insurance of the company for year 2016, ',0,0,0,1,0,0,0,0,2,'2015-10-27 18:35:30',2,'2015-10-27 19:12:40',0,'',0,'AP20151000000004',0,0),(33,33,1,2,'NH',0,6000,69,'allowance ',0,'OPN','2015-10-02',0,0,0,0,0,'Payment allowance to NH',0,0,0,1,0,0,0,0,2,'2015-10-28 07:55:24',0,'2015-10-28 07:55:34',0,'',0,'AP20151000000005',0,0),(34,34,1,2,'NH',0,6000,69,'allowance',0,'OPN','2015-08-03',0,0,0,0,0,'Payment of allowance to NH',0,0,0,1,0,0,0,0,2,'2015-10-29 08:58:38',0,'2015-10-29 08:58:58',0,'',0,'AP20150800000005',0,0),(35,35,1,2,'Azuddin & Co (auditor)',0,424,69,'audit/14/ca',0,'audit','2015-08-24',0,0,0,0,0,'Payment made towards professional service in auditing client\'s account of Noor Hanani & Co',0,0,0,1,0,0,0,0,2,'2015-10-29 09:08:56',0,'2015-10-29 09:09:12',0,'',0,'AP20150800000006',0,0),(36,36,1,2,'NH',0,7000,69,'allowance',0,'OPN','2015-07-02',0,0,0,0,0,'Payment made to NH for allowance',0,0,0,1,0,0,0,0,2,'2015-10-29 09:14:54',0,'2015-10-29 09:15:08',0,'',0,'AP20150700000005',0,0),(37,37,1,2,'       NH (For all expenses paid first from her pocket for Noor Hanani & Co)                                     ',0,1422,69,'JDS,nh/68/maiwp/raja maziah/15, ',0,'OPN','2015-11-24',0,0,1,0,0,'Payment made to Tana for service of JDS to various places.\nPayment to Azwan for referral fee for verification of ownership matter.\nPurchase cakes for client \nFiling of JDS for 16 cases.',0,0,0,1,0,0,0,0,2,'2015-12-30 13:52:12',0,'2015-12-30 13:55:28',0,'',0,'AP20151100000001',0,0),(38,38,1,2,'           NH (for all expenses icurred for Noor Hanani & Co from her pocket)                                 ',0,2045.75,69,'various',0,'OPN','2015-12-30',0,0,1,0,0,'Service charge by pos laju (courier POD to Miri, Kuantan and Melaka) ref;NH/70/azlan/pod/15, NH/ 71/Daniel jerome/15, NH/43/Abd razak rasul/15\nService charge by pos laju (courier documents for renewal of syarie Penang certificate)\nHaving lunch with Encik Azwan (client) at secret recipe\nService charge by pos laju (courier documents to Johor Corporation for submission of panelship applicationrie Penang certificate)\nPurchase of christmas gift for KOPETRO at parkson\nPurchase meal for Encik Jamani (syariah client) and Iana, \nPurchase christmas gfit\npurchase stationery, IC search fee on 23.12.2015 (NH/5/rainstar/15), Purchase cakes for client (Salihin), Purchase Jurnal Hukum at JAKIM, Lodged Stay Order for Wiz Design matter at SSM on 16.12.2015\n\n',0,0,0,1,0,0,0,0,2,'2015-12-30 14:13:01',2,'2015-12-30 15:24:11',0,'',0,'AP20151200000001',0,0),(39,39,1,2,' NH (for all expenses icurred for Noor Hanani & Co from her pocket)                                                         ',0,1780,69,'various',0,'OPN','2015-11-25',0,0,1,0,0,'Payment made to Vanessa for referral fee (verification of ownership & vetting of documents), Payment land search for Dato Azri matter, Payment to Ikram of referral fee (Wiz Design matter)',0,0,0,1,0,0,0,0,2,'2015-12-30 15:30:21',2,'2015-12-30 15:33:23',0,'',0,'AP20151100000002',0,0),(40,40,1,2,'    AZWAN (for referral fee-verification of ownership)                                        ',0,1950,69,'000000050 (cheque no)',0,'OPN','2015-11-02',0,0,1,0,0,'AZWAN (for referral fee-verification of ownership)                                        ',0,0,0,1,0,0,0,0,2,'2015-12-30 16:00:19',0,'2015-12-30 16:01:29',0,'',0,'AP20151100000003',0,0),(41,41,1,2,' KASTAM DIRAJA MALAYSIA                          ',0,2904.95,69,'gst',0,'OPN','2015-10-31',0,0,1,0,0,'Payment of GST (Julai-Oktober)',0,0,0,1,0,0,0,0,2,'2015-12-30 16:13:52',0,'2015-12-30 16:14:31',0,'',0,'AP20151000000006',0,0),(42,42,1,2,'       NH (allowance)                          ',0,7000,69,'nh/allowance',0,'OPN','2015-11-02',0,0,1,0,0,'Payment to NH (allowance)',0,0,0,1,0,0,0,0,2,'2015-12-30 16:19:13',0,'2015-12-30 16:41:23',0,'',0,'AP20151100000005',0,0),(43,43,1,2,'        Pendaftar Mahkamah Tinggi Seremban                                   ',0,352,69,'nh/37&38/DA/hb/15',0,'OPN','2015-11-11',0,0,1,0,0,'Filing OS and Affidavit in Seremban High Court',0,0,0,1,0,0,0,0,2,'2015-12-30 16:40:55',0,'2015-12-30 16:41:22',0,'',0,'AP20151100000004',0,0),(44,44,1,2,'        NH (FOR ALL EXPENSES SPENT FIRST FROM HER POCKET FOR NOOR HANANI & CO)                                    ',0,1750,69,'VARIOUS EXPENSES',0,'OPN','2015-11-17',0,0,1,0,0,'Various expenses spent on files',0,0,0,1,0,0,0,0,2,'2015-12-31 01:21:03',0,'2015-12-31 01:21:25',0,'',0,'AP20151100000006',0,0),(45,45,1,2,'                              payment for renewal of syarie certificate penang              ',0,100,69,'renewal pp',0,'OPN','2015-11-04',0,0,1,0,0,'renewal of penang syariah certificate',0,0,0,1,0,0,0,0,2,'2015-12-31 01:30:05',0,'2015-12-31 01:30:27',0,'',0,'AP20151100000007',0,0),(46,46,1,2,'          nh (allowance                                  ',0,7000,69,'allowance',0,'OPN','2015-12-01',0,0,1,0,0,'allowance to nh',0,0,0,1,0,0,0,0,2,'2015-12-31 01:32:31',0,'2015-12-31 01:32:41',0,'',0,'AP20151200000002',0,0),(47,47,1,2,'                                bar council for sijil kelakuan baik           ',0,300,69,'skbaik',0,'OPN','2015-12-09',0,0,1,0,0,'apply sijil kelakuan baik from bar council',0,0,0,1,0,0,0,0,2,'2015-12-31 01:36:07',0,'2015-12-31 01:36:20',0,'',0,'AP20151200000003',0,0),(48,48,1,2,'        tana                                    ',0,647,69,'tana service',0,'OPN','2015-12-28',0,0,1,0,0,'payment to tana for various service',0,0,0,1,0,0,0,0,2,'2015-12-31 01:39:08',0,'2015-12-31 01:39:24',0,'',0,'AP20151200000004',0,0),(49,49,1,2,'                    nh (allowance)                        ',0,7000,69,'allowance',0,'OPN','2015-12-29',0,0,1,0,0,'Payment of allowance to NH',0,0,0,1,0,0,0,0,2,'2015-12-31 01:40:52',0,'2015-12-31 01:41:03',0,'',0,'AP20151200000005',0,0),(50,50,1,2,'                           Payment to azwan for referral fee (verification of ownership)                 ',0,500,69,'referral fee',0,'OPN','2015-12-29',0,0,1,0,0,'referral fee paid to azwan',0,0,0,1,0,0,0,0,2,'2015-12-31 01:43:26',0,'2015-12-31 01:43:36',0,'',0,'AP20151200000006',0,0),(51,51,1,2,'           SKM                                 ',0,1200,69,'',0,'OPN','2015-12-30',0,0,1,0,0,'Payment made to SKM for filing of tribunal cases (KOPETRO)',0,0,0,1,0,0,0,0,2,'2015-12-31 01:46:09',0,'2015-12-31 01:46:22',0,'',0,'AP20151200000007',0,0),(52,52,1,2,'NH                            ',0,1500,69,'office expenses & file expenses',0,'OPN','2016-02-18',0,0,1,0,0,'-Spent for meals for client (KOPETRO), Purchase of ink printer & papers, stationery, parking fee (meeting client), purchase of duty stamp, client\'s entertainment (individual client), Meals (meeting with client), wrapping paper (entertainment for client), purchase of jurnal hukum, purchase of printer\'s ink, & parking fee (Yap Kwan Seng,kopetro)',0,0,0,1,0,0,0,0,2,'2016-04-19 18:10:51',2,'2016-04-19 18:36:07',0,'',0,'AP20160200000001',0,0),(53,53,1,2,'    MAIK                                        ',0,120,69,'RENEWAL/maik',0,'OPN','2016-04-01',0,0,1,0,0,'Renewal fee for Kedah syarie certificate (2016)',0,0,0,1,0,0,0,0,2,'2016-04-19 18:48:53',0,'2016-04-19 18:49:15',0,'',0,'AP20160400000001',0,0),(54,54,1,2,'AZWAN                                           ',0,1125,69,'000068/16',0,'OPN','2016-01-11',0,0,1,0,0,'Payment of referral fees (Ler lum matter) to Encik Azwan',0,0,0,1,0,0,0,0,2,'2016-04-21 02:54:12',0,'2016-04-21 03:15:01',0,'',0,'AP20160100000002',0,0),(55,55,1,2,' SKM (Tribunal matter)                                   ',0,1300,69,'nh/100-110/16',0,'OPN','2016-01-14',0,0,1,0,0,'Filing fee for tribunal matters (13 cases) at SKM',0,0,0,1,0,0,0,0,2,'2016-04-21 03:14:27',0,'2016-04-21 03:15:00',0,'',0,'AP20160100000001',0,0),(56,56,1,2,'  NH                                          ',0,7000,69,'nh/allowance/16',0,'OPN','2016-01-26',0,0,1,0,0,'Payment of allowance to NH ',0,0,0,1,0,0,0,0,2,'2016-04-21 03:17:58',0,'2016-04-21 03:18:24',0,'',0,'AP20160100000003',0,0),(57,57,1,2,'      NH (Reinbursement)                                      ',0,444.77,69,'nh/reinbursement',0,'OPN','2016-03-10',1,0,1,0,0,'Payment made to NH (for reinbursement)- Binding, stamps & AR Registered, Envelopes, Meals client, entertainment client, and printer\'s ink.',0,0,0,1,0,0,0,0,2,'2016-04-21 17:42:25',2,'2016-04-21 17:50:08',1,'',0,'',0,0),(58,58,1,2,'                 NH                           ',0,444.77,69,'nh/reinburse',0,'OPN','2016-03-10',0,0,1,0,0,'Purchase of stationary, Purchase of client\'s meals & entertainment, Purchase of printer\'s ink, & binding documents service',0,0,0,1,0,0,0,0,2,'2016-04-21 17:53:59',0,'2016-04-21 18:01:06',0,'',0,'AP20160300000001',0,0),(59,59,1,2,'Kastam Diraja Malaysia                              ',0,1235.7,69,'gst/9-12',0,'OPN','2016-02-02',0,0,1,0,0,'Payment of GST to Kastam Diraja Malaysia',0,0,0,1,0,0,0,0,2,'2016-04-21 18:06:52',2,'2016-04-21 18:08:11',0,'',0,'AP20160200000002',0,0),(60,60,1,2,'   Azwan                                         ',0,1125,69,'az/referrral fee',0,'OPN','2016-02-16',0,0,1,0,0,'Payment to Azwan for referral fee (Ler Lum matter)',0,0,0,1,0,0,0,0,2,'2016-04-21 18:10:37',0,'2016-04-21 18:10:58',0,'',0,'AP20160200000003',0,0),(61,61,1,2,'NH (allowance)                                    ',0,7000,69,'nh/allowance',0,'OPN','2016-02-24',0,0,1,0,0,'Payment of allowance to NH ',0,0,0,1,0,0,0,0,2,'2016-04-21 18:13:39',0,'2016-04-21 18:14:05',0,'',0,'AP20160200000004',0,0),(62,62,1,2,'Azwan                                        ',0,1250,69,'az/referral fee',0,'OPN','2016-03-14',0,0,1,0,0,'Payment of referral fee to Azwan (Ler Lum matter)',0,0,0,1,0,0,0,0,2,'2016-04-21 18:17:06',0,'2016-04-21 18:17:33',0,'',0,'AP20160300000002',0,0),(63,63,1,2,'NH                                        ',0,7000,69,'nh/allowance',0,'OPN','2016-03-22',0,0,1,0,0,'Payment of allowance to NH',0,0,0,1,0,0,0,0,2,'2016-04-21 18:20:02',0,'2016-04-21 18:21:51',0,'',0,'AP20160300000003',0,0),(64,64,1,2,'NH                                       ',0,188,69,'nh/reinbursement',0,'OPN','2016-04-20',1,0,1,0,0,'Payment to NH (for reinbursement)',0,0,0,1,0,0,0,0,2,'2016-04-21 18:29:19',0,'2016-04-21 18:39:45',1,'',0,'',0,0),(65,65,1,2,'    NH                                       ',0,631.56,69,'',0,'OPN','2016-04-20',0,0,1,0,0,'Payment to NH (reinbursement of expenses)',0,0,0,1,0,0,0,0,2,'2016-04-21 18:53:02',0,'2016-04-21 19:11:32',0,'',0,'AP20160400000002',0,0),(66,66,1,2,'Azwan                                      ',0,2250,69,'az/referral fee',0,'OPN','2016-04-20',0,0,1,0,0,'Payment to Azwan for referral fee (Ler Lum matter)',0,0,0,1,0,0,0,0,2,'2016-04-21 19:13:30',0,'2016-04-21 19:13:47',0,'',0,'AP20160400000003',0,0),(67,67,1,2,'CIMB BANK BERHAD (DEPOSIT FOR WINDING UP TO KETUA PENGARAH INSOLVENSI)                                    ',0,6000,69,'NH/Star Everest Sdn Bhd/wup/16 &',0,'OPN','2016-04-06',0,0,1,0,0,'Preparing Bank Draft to be forwarded to Ketua Pengarah Insolvensi',0,0,0,1,0,0,0,0,2,'2016-04-23 15:04:27',0,'2016-04-23 15:05:18',0,'',0,'AP20160400000004',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=178 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_payment_others_without_item` VALUES (1,1,1,121,'Referral fee to azwan',5500,23,0,0,0,5500,2,'2015-07-24 16:24:57',0,'0000-00-00 00:00:00'),(2,2,1,121,'Payment made by cheque no.000002 to azwan for referral fee',5500,23,0,0,0,5500,2,'2015-07-24 16:38:10',0,'0000-00-00 00:00:00'),(3,3,1,120,'Payment of allowance to NH',5000,23,0,0,0,5000,2,'2015-07-24 16:42:08',0,'0000-00-00 00:00:00'),(4,4,1,78,'Payment made for practising certificate (Peguam syarie Kedah)',120,23,0,0,0,120,2,'2015-07-26 13:04:49',0,'0000-00-00 00:00:00'),(5,5,1,120,'Payment of allowance to NH',5000,23,0,0,0,5000,2,'2015-07-26 13:08:29',0,'0000-00-00 00:00:00'),(6,6,1,121,'Payment made to Azwan for referral fee (vetting/verification of ownership)',2625,23,0,0,0,2625,2,'2015-07-26 13:26:21',0,'0000-00-00 00:00:00'),(7,7,1,120,'Payment of allowance to NH',6000,23,0,0,0,6000,2,'2015-07-26 14:32:16',0,'0000-00-00 00:00:00'),(8,8,1,121,'Payment made to Azwan for referral fee',750,23,0,0,0,750,2,'2015-07-26 15:03:49',0,'0000-00-00 00:00:00'),(9,9,1,120,'Payment of allowance to NH',5000,23,0,0,0,5000,2,'2015-07-26 15:07:23',0,'0000-00-00 00:00:00'),(10,10,1,121,'Payment made to Ekram for referral fee',3000,23,0,0,0,3000,2,'2015-07-26 15:10:57',0,'0000-00-00 00:00:00'),(11,11,1,79,'Purchase of sps software (accounting & GST) software from Salihin',2879.25,15,0,6,172.75,3052,2,'2015-07-26 15:24:59',2,'2015-07-26 15:27:06'),(12,12,1,261,'Payment of winding up deposit',3000,23,0,0,0,3000,2,'2015-07-26 15:44:40',0,'0000-00-00 00:00:00'),(13,13,1,78,'Payment made to NH for filing fee, affirmations, travelling, printing & others',1140,15,0,6,68.4,1208.4,2,'2015-07-26 15:53:01',0,'0000-00-00 00:00:00'),(14,14,1,120,'Payment of allowance made to NH',5000,23,0,0,0,5000,2,'2015-07-26 15:55:46',0,'0000-00-00 00:00:00'),(15,15,1,79,'Payment made to NH for the change of package of sps software',100,15,0,6,6,106,2,'2015-07-27 14:14:30',0,'0000-00-00 00:00:00'),(16,16,1,263,'Purchase of Kingston Thumb drive',17.92,15,0,6,1.08,19,2,'2015-07-28 13:43:55',0,'0000-00-00 00:00:00'),(17,16,2,263,'Purchase of paper & pen',2,23,0,0,0,2,2,'2015-07-28 13:46:09',2,'2015-07-28 14:42:30'),(18,16,3,262,'Meeting Kopetro at their office',6.6,15,0,6,0.4,7,2,'2015-07-28 13:47:43',0,'0000-00-00 00:00:00'),(19,16,4,263,'Purchase of stationery',25,23,0,0,0,25,2,'2015-07-28 13:49:55',2,'2015-07-28 14:48:42'),(20,16,5,262,'Meeting at KL Insolvency for NH/19/15-kelantan Delights',5.19,15,0,6,0.31,5.5,2,'2015-07-28 14:17:51',0,'0000-00-00 00:00:00'),(21,16,6,98,'Meeting client for Amboss ',69.34,15,0,6,4.16,73.5,2,'2015-07-28 14:19:55',0,'0000-00-00 00:00:00'),(22,16,7,262,'Meeting client at KL Insolvency (Fast Airfreight & Forwarding)',7.55,15,0,6,0.45,8,2,'2015-07-28 14:21:21',0,'0000-00-00 00:00:00'),(23,16,8,262,'Meeting client for NH/19/15-kelantan Delights',5.19,15,0,6,0.31,5.5,2,'2015-07-28 14:22:56',0,'0000-00-00 00:00:00'),(24,16,9,262,'Meeting KOPETRO for Rainstar matter',2.83,15,0,6,0.17,3,2,'2015-07-28 14:24:45',0,'0000-00-00 00:00:00'),(25,16,10,262,'Collect documents from KOPETRO',2.83,15,0,6,0.17,3,2,'2015-07-28 14:26:02',0,'0000-00-00 00:00:00'),(26,16,11,98,'Lunch with client',45.75,15,0,6,2.75,48.5,2,'2015-07-28 14:27:33',0,'0000-00-00 00:00:00'),(27,16,12,262,'Meeting MAIWP to submit company\'s profile',5,23,0,0,0,5,2,'2015-07-28 14:28:40',0,'0000-00-00 00:00:00'),(28,16,13,98,'Meals & entertainment for Hariraya for KOPETRO',97.83,15,0,6,5.87,103.7,2,'2015-07-28 14:32:13',0,'0000-00-00 00:00:00'),(29,16,14,262,'Meeting Amboss at KL Insolvency on 9.6.15 & 23.6.2015',12.74,15,0,6,0.76,13.5,2,'2015-07-28 14:35:23',0,'0000-00-00 00:00:00'),(30,16,15,262,'Meeting KOPETRO on 30.6.2015',4.72,19,0,6,0.28,5,2,'2015-07-28 14:52:05',2,'2016-05-17 08:57:38'),(31,17,1,121,'Payment made to Azwan for his referral fee (verification of ownership)',875,23,0,0,0,875,2,'2015-07-29 15:31:44',0,'0000-00-00 00:00:00'),(32,18,1,78,'Payment of Bar council annual subscription ',920,23,0,0,0,920,2,'2015-07-29 15:49:02',0,'0000-00-00 00:00:00'),(33,18,2,78,'disciplinary fund',100,23,0,0,0,100,2,'2015-07-29 15:50:38',0,'0000-00-00 00:00:00'),(34,19,1,98,'Lunch with Kopetro',382.03,15,0,6,22.92,404.95,2,'2015-07-29 15:57:35',0,'0000-00-00 00:00:00'),(35,20,1,78,'Bar council compensation fund',60,23,0,0,0,60,2,'2015-07-29 16:00:48',0,'0000-00-00 00:00:00'),(36,21,1,259,'Payment for filing fees (NH/2/2014/kopetro; NH/18/15/anf; NH/3/2014/kopetro) - Perintah (10.00), Gazette (20.00), Lodge order (50.00), sijil pendaftar (5.00), AOS (2),  Perintah dalam kamar (5.00) Order utk pinda (5.00)',194,23,0,0,0,194,2,'2015-08-01 16:26:13',2,'2015-08-01 16:33:26'),(37,21,2,259,'Payment for POD filed against ANF',10,15,0,6,0.6,10.6,2,'2015-08-01 16:29:09',0,'0000-00-00 00:00:00'),(38,21,3,97,'Travelling expenses for NH/18/15/anf;',10,15,0,6,0.6,10.6,2,'2015-08-01 16:30:03',0,'0000-00-00 00:00:00'),(39,21,4,122,'Winding up search',20,23,0,0,0,20,2,'2015-08-01 16:37:01',0,'0000-00-00 00:00:00'),(40,22,1,122,'Payment of filing of consent judgment, writ summons, Soc, AOS, Reply to defence (NH/4/2014/cotrade)-RM700',660.38,15,0,6,39.62,700,2,'2015-08-04 16:22:24',0,'0000-00-00 00:00:00'),(41,22,2,259,'Payment for filing of judgement, Perakuan ketidakhadiran, Affidavit of service, jds(NH/9/14/cotrade)-RM96.00',90.57,15,0,6,5.43,96,2,'2015-08-04 16:23:51',0,'0000-00-00 00:00:00'),(42,23,1,98,'NH/5/rainstar/15- Meals and entertainment (meeting with client)',69.81,15,0,6,4.19,74,2,'2015-08-29 20:56:16',0,'0000-00-00 00:00:00'),(43,23,2,98,'NH/26/15/Jurukur Terra Consult- Meeting, meals and entertainment',40.8,15,0,6,2.45,43.25,2,'2015-08-29 20:57:21',0,'0000-00-00 00:00:00'),(44,23,3,256,'NH/27/15/ Prospect- Printing, ',4.76,15,0,6,0.29,5.05,2,'2015-08-29 20:58:13',0,'0000-00-00 00:00:00'),(45,23,4,98,'Meals and entertainment-kopetro meeting,',68.02,15,0,6,4.08,72.1,2,'2015-08-29 20:59:07',0,'0000-00-00 00:00:00'),(46,23,5,122,' NH/9/14/cotrade- Service charge for process server serving JDS, KCC',300,23,0,0,0,300,2,'2015-08-29 21:00:52',0,'0000-00-00 00:00:00'),(47,23,6,96,'Meals and entertainment- meeting software provider salihin',22.12,15,0,6,1.33,23.45,2,'2015-08-29 21:02:04',0,'0000-00-00 00:00:00'),(48,23,7,262,' NH/5/rainstar/15- Parking fee(meeting at Insolvency), ',12.26,15,0,6,0.74,13,2,'2015-08-29 21:03:01',0,'0000-00-00 00:00:00'),(49,23,8,262,'NH/13/15/amboss sdn bhd-parking fee (meeting at Insolvency on 28.7.15, 30.7.& 3.8.15',17.92,15,0,6,1.08,19,2,'2015-08-29 21:04:33',0,'0000-00-00 00:00:00'),(50,23,9,262,'NH/36/15/dato azri-la- parking fee (meeting at his office),',5.66,15,0,6,0.34,6,2,'2015-08-29 21:05:31',0,'0000-00-00 00:00:00'),(51,23,10,122,'NH/4/2014/cotrade- service charge for process server at Kemaman to serve JDS pfc, ',120,20,0,0,0,120,2,'2015-08-29 21:09:01',0,'0000-00-00 00:00:00'),(52,23,11,122,'NH/4/2014/cotrade- posting',7.08,15,0,6,0.42,7.5,2,'2015-08-29 21:10:14',0,'0000-00-00 00:00:00'),(53,23,12,259,'NH/4/2014- cotrade-Filing fees for JDS and request for JDS',56,23,0,0,0,56,2,'2015-08-29 21:15:48',0,'0000-00-00 00:00:00'),(55,24,2,121,'Payment of referral fee to ernie on 15.10.2015 ',4000,23,0,0,0,4000,2,'2015-10-23 04:47:43',2,'2015-10-23 05:08:45'),(56,25,1,79,'Payment made to Salihin by NH for change of software package on 28/7/2015',100,15,0,6,6,106,2,'2015-10-26 03:32:11',2,'2015-10-26 03:35:01'),(57,26,1,116,'Payment made to Salihin Tax Advisory Sdn Bhd for tax service ',1150,15,0,6,69,1219,2,'2015-10-26 03:41:11',0,'0000-00-00 00:00:00'),(58,27,1,39,'Payment made to KASTAM DIRAJA MALAYSIA for gst (Period April-June) via cheque No. 000033',3502.64,23,0,0,0,3502.64,2,'2015-10-26 03:55:15',0,'0000-00-00 00:00:00'),(59,28,1,120,'Payment of allowance made to NH via cheque no. 000036',6000,23,0,0,0,6000,2,'2015-10-26 04:05:09',0,'0000-00-00 00:00:00'),(60,29,1,121,'Payment made to Ms. Ernie of RM3K for the referral fee by NH (Reinburse NH)',3000,20,0,0,0,3000,2,'2015-10-26 04:10:06',0,'0000-00-00 00:00:00'),(61,30,1,78,'Payment of e-filing renewal fee to MSC Trustgate',80,15,0,6,4.8,84.8,2,'2015-10-26 04:14:36',0,'0000-00-00 00:00:00'),(62,31,1,121,'Payment made to Ms. Ernie for her referral fee charged on the firm of RM3K by NH (reinburse NH)',3000,20,0,0,0,3000,2,'2015-10-27 05:12:16',0,'0000-00-00 00:00:00'),(63,32,1,257,'Purchase of registered post slip (30 pieces), ',66,22,0,0,0,66,2,'2015-10-27 18:35:30',0,'0000-00-00 00:00:00'),(64,32,2,262,'parking fee for meeting with KOPETRO at their office on 1.10.2015,',8.49,15,0,6,0.51,9,2,'2015-10-27 18:37:40',0,'0000-00-00 00:00:00'),(65,32,3,98,'Having lunch with clients (NH/37&38/15) at Secret Recipe on 25.10.2015, ',94.81,15,0,6,5.69,100.5,2,'2015-10-27 18:40:28',0,'0000-00-00 00:00:00'),(66,32,4,98,'Having lunch with Ms.Ernie on 4.10.2015, ',56.08,15,0,6,3.37,59.45,2,'2015-10-27 18:42:50',0,'0000-00-00 00:00:00'),(67,32,5,98,'Having lunch with Encik Hadi & Hasif from services company on 29.9.2015, ',56.32,15,0,6,3.38,59.7,2,'2015-10-27 18:48:59',0,'0000-00-00 00:00:00'),(68,32,6,260,'Affirmation of SD for the renewal of Practising certificate on 15.10.2015,',6,21,0,0,0,6,2,'2015-10-27 18:51:25',0,'0000-00-00 00:00:00'),(69,32,7,78,'Payment of subscription fee made to Selangor Bar Committee for the renewal of PC, ',225,23,0,0,0,225,2,'2015-10-27 18:55:30',0,'0000-00-00 00:00:00'),(70,32,8,78,'Payment made to Jardine Llyod Thompson for insurance of the company for year 2016, ',1588.48,15,0,6,95.31,1683.79,2,'2015-10-27 19:00:23',0,'0000-00-00 00:00:00'),(71,33,1,120,'Payment allowance to NH',6000,23,0,0,0,6000,2,'2015-10-28 07:55:24',0,'0000-00-00 00:00:00'),(72,34,1,120,'Payment of allowance to NH',6000,23,0,0,0,6000,2,'2015-10-29 08:58:38',0,'0000-00-00 00:00:00'),(73,35,1,79,'Payment made towards professional service in auditing client\'s account of Noor Hanani & Co',400,15,0,6,24,424,2,'2015-10-29 09:08:56',0,'0000-00-00 00:00:00'),(74,36,1,120,'Payment made to NH for allowance',7000,23,0,0,0,7000,2,'2015-10-29 09:14:54',0,'0000-00-00 00:00:00'),(75,37,1,78,'Payment to Tana for his service in serving JDS to various places',412,0,0,0,0,412,2,'2015-12-30 13:52:12',0,'0000-00-00 00:00:00'),(76,37,2,98,'Purchase cakes for client',122.64,15,0,6,7.36,130,2,'2015-12-30 13:53:05',0,'0000-00-00 00:00:00'),(77,37,3,122,'Payment to Azwan for referral fee for verification of ownership matter.',600,0,0,0,0,600,2,'2015-12-30 13:53:54',0,'0000-00-00 00:00:00'),(78,37,4,259,'Filing of JDS for 16 cases.',280,0,0,0,0,280,2,'2015-12-30 13:54:38',0,'0000-00-00 00:00:00'),(79,38,1,78,'Service charge by pos laju (courier documents for renewal of syarie Penang certificate)',7.08,15,0,6,0.42,7.5,2,'2015-12-30 14:13:02',0,'0000-00-00 00:00:00'),(80,38,2,98,'Having lunch with Encik Azwan (client) at secret recipe',78.58,15,0,6,4.72,83.3,2,'2015-12-30 14:14:36',0,'0000-00-00 00:00:00'),(81,38,3,78,'Service charge by pos laju (courier documents to Johor Corporation for submission of panelship applicationrie Penang certificate)',7.08,15,0,6,0.42,7.5,2,'2015-12-30 14:16:05',0,'0000-00-00 00:00:00'),(82,38,4,98,'Purchase of christmas gift for KOPETRO at parkson',446.13,15,0,6,26.77,472.9,2,'2015-12-30 14:17:52',0,'0000-00-00 00:00:00'),(83,38,5,98,'Purchase meal for Encik Jamani (syariah client)',16.32,15,0,6,0.98,17.3,2,'2015-12-30 14:19:26',0,'0000-00-00 00:00:00'),(84,38,6,122,'Service charge by pos laju (courier POD to Miri, Kuantan and Melaka)',42.45,15,0,6,2.55,45,2,'2015-12-30 14:24:39',0,'0000-00-00 00:00:00'),(85,38,7,263,'Purchase stationery ',9.72,15,0,6,0.58,10.3,2,'2015-12-30 14:26:35',0,'0000-00-00 00:00:00'),(86,38,8,262,'Parking fee (collecting documents from KOPETRO)',2.83,15,0,6,0.17,3,2,'2015-12-30 14:27:42',0,'0000-00-00 00:00:00'),(87,38,9,262,'Parking fee (meeting at Insolvency KL for Wiz Design matter)',7.55,15,0,6,0.45,8,2,'2015-12-30 14:28:42',0,'0000-00-00 00:00:00'),(88,38,10,98,'Having lunch with Iana Sumar (syariah client) on 8/12/2015',45.94,15,0,6,2.76,48.7,2,'2015-12-30 14:30:09',0,'0000-00-00 00:00:00'),(89,38,11,98,'Purchase of christmas gift for KOPETRO at parkson on 23.12.15',339.62,15,0,6,20.38,360,2,'2015-12-30 14:38:41',0,'0000-00-00 00:00:00'),(90,38,12,122,'IC search fee on 23.12.2015 (NH/5/rainstar/15)',50,21,0,0,0,50,2,'2015-12-30 14:41:35',0,'0000-00-00 00:00:00'),(91,38,13,98,'Purchase cakes for client (Salihin)',93.02,15,0,6,5.58,98.6,2,'2015-12-30 14:42:31',0,'0000-00-00 00:00:00'),(92,38,14,78,'Purchase Jurnal Hukum at JAKIM',140,21,0,0,0,140,2,'2015-12-30 14:46:50',0,'0000-00-00 00:00:00'),(93,38,15,259,'Lodged Stay Order for Wiz Design matter at SSM on 16.12.2015',50,21,0,0,0,50,2,'2015-12-30 14:48:40',0,'0000-00-00 00:00:00'),(94,38,16,98,'Having lunch with a client for wasiat matter',50.61,15,0,6,3.04,53.65,2,'2015-12-30 14:52:51',0,'0000-00-00 00:00:00'),(95,38,17,122,'Payment made to Emi for his service of JDS at 2 different addreses at Teemerloh',150,20,0,0,0,150,2,'2015-12-30 14:57:22',0,'0000-00-00 00:00:00'),(96,38,18,122,'Payment made to Izwani for MOB chrages ',100,20,0,0,0,100,2,'2015-12-30 15:01:59',2,'2015-12-30 15:03:31'),(97,38,19,122,'Payment made to En.Zul for his service of JDS to Johor (2 addresses)',220,20,0,0,0,220,2,'2015-12-30 15:15:49',0,'0000-00-00 00:00:00'),(98,38,20,122,'Payment made to Shambadre fr his service of notice to Rosnayatimah (Rainstar matter) in Kelantan',120,20,0,0,0,120,2,'2015-12-30 15:22:04',0,'0000-00-00 00:00:00'),(99,39,1,121,'Payment made to Vanessa for referral fee (verification of ownership & vetting of documents),',650,20,0,0,0,650,2,'2015-12-30 15:30:22',0,'0000-00-00 00:00:00'),(100,39,2,122,'Payment land search for Dato Azri matter',130,21,0,0,0,130,2,'2015-12-30 15:31:07',0,'0000-00-00 00:00:00'),(101,39,3,121,'Payment to Ikram  referral fee (Wiz Design matter)',1000,20,0,0,0,1000,2,'2015-12-30 15:32:17',0,'0000-00-00 00:00:00'),(102,40,1,121,'AZWAN (for referral fee-verification of ownership)                                        ',1950,20,0,0,0,1950,2,'2015-12-30 16:00:19',0,'0000-00-00 00:00:00'),(103,41,1,39,'Payment of GST (Julai-Oktober)',2904.95,20,0,0,0,2904.95,2,'2015-12-30 16:13:52',0,'0000-00-00 00:00:00'),(104,42,1,120,'Payment to NH allowance',7000,23,0,0,0,7000,2,'2015-12-30 16:19:13',0,'0000-00-00 00:00:00'),(105,43,1,259,'Filing OS and Affidavit in Seremban High Court',352,20,0,0,0,352,2,'2015-12-30 16:40:55',0,'0000-00-00 00:00:00'),(106,44,1,78,'various expenses spent on files',1650.94,1,99.06,6,99.06,1750,2,'2015-12-31 01:21:03',0,'0000-00-00 00:00:00'),(107,45,1,78,'renewal of penang syariah certificate',100,20,0,0,0,100,2,'2015-12-31 01:30:05',0,'0000-00-00 00:00:00'),(108,46,1,78,'allowance to nh',7000,23,0,0,0,7000,2,'2015-12-31 01:32:31',0,'0000-00-00 00:00:00'),(109,47,1,78,'apply sijil kelakuan baik from bar council',300,21,0,0,0,300,2,'2015-12-31 01:36:08',0,'0000-00-00 00:00:00'),(110,48,1,78,'payment to tana for various service',647,20,0,0,0,647,2,'2015-12-31 01:39:08',0,'0000-00-00 00:00:00'),(111,49,1,120,'Payment of allowance to NH',7000,23,0,0,0,7000,2,'2015-12-31 01:40:52',0,'0000-00-00 00:00:00'),(112,50,1,121,'Payment of referral fee (azwan)',500,23,0,0,0,500,2,'2015-12-31 01:43:26',0,'0000-00-00 00:00:00'),(113,51,1,259,'Payment made to SKM for filing of tribunal cases (KOPETRO)',1200,21,0,0,0,1200,2,'2015-12-31 01:46:09',0,'0000-00-00 00:00:00'),(114,52,1,98,'Spent for meals for client (KOPETRO),',63.73,15,0,6,3.82,67.55,2,'2016-04-19 18:10:51',0,'0000-00-00 00:00:00'),(115,52,2,262,'parking fee (meeting client) on 6/1/2016',2.83,15,0,6,0.17,3,2,'2016-04-19 18:12:22',0,'0000-00-00 00:00:00'),(116,52,3,263,'Purchase of ink printer & papers on 10/1/16',137.55,15,0,6,8.25,145.8,2,'2016-04-19 18:15:28',0,'0000-00-00 00:00:00'),(117,52,4,263,'purchase of printer\'s ink on 13/1/16',43.4,15,0,6,2.6,46,2,'2016-04-19 18:16:33',0,'0000-00-00 00:00:00'),(118,52,5,78,'purchase of duty stamp on 15/1/16',40,21,0,0,0,40,2,'2016-04-19 18:18:38',0,'0000-00-00 00:00:00'),(119,52,6,78,'Payment of unifi (Jan) on 20.1.16',235.85,15,0,6,14.15,250,2,'2016-04-19 18:20:52',0,'0000-00-00 00:00:00'),(120,52,7,263,'Purchase of jurnal hukum on 11/2/16',610,15,14.470000000000002,6,36.6,646.6,2,'2016-04-19 18:21:51',0,'0000-00-00 00:00:00'),(122,52,9,98,'Meals (meeting with client) on 27/1/16',62.55,15,3.75,6,3.75,66.3,2,'2016-04-19 18:25:56',0,'0000-00-00 00:00:00'),(123,52,10,78,'Payment of unifi (Feb)',222.22,0,0,0,0,222.22,2,'2016-04-19 18:31:20',0,'0000-00-00 00:00:00'),(124,52,11,262,'Parking fee (Yap Kwan Seng) meeting kopetro on 16/2/16',9,0,0,0,0,9,2,'2016-04-19 18:33:48',0,'0000-00-00 00:00:00'),(125,52,12,263,'Purchase of wrapping paper',3.53,0,0,0,0,3.53,2,'2016-04-19 18:35:03',0,'0000-00-00 00:00:00'),(126,53,1,78,'Renewal fee for Kedah Syarie certificate 2016 on 1/4/2016',120,20,0,0,0,120,2,'2016-04-19 18:48:53',0,'0000-00-00 00:00:00'),(127,54,1,121,'Payment of referral fees (Ler lum matter) to Encik Azwan',1125,23,0,0,0,1125,2,'2016-04-21 02:54:13',0,'0000-00-00 00:00:00'),(128,55,1,259,'Filing fee for tribunal matters (13 cases) at SKM',1300,23,0,0,0,1300,2,'2016-04-21 03:14:27',0,'0000-00-00 00:00:00'),(129,56,1,120,'Payment of allowance to NH ',7000,22,0,0,0,7000,2,'2016-04-21 03:17:58',0,'0000-00-00 00:00:00'),(130,57,1,263,'Document binding service',8.96,15,0,6,0.54,9.5,2,'2016-04-21 17:42:26',0,'0000-00-00 00:00:00'),(131,57,2,98,'Purchase meals(famos amos cookies) for client',42.41,15,0,6,2.54,44.95,2,'2016-04-21 17:43:24',0,'0000-00-00 00:00:00'),(132,57,3,263,'Purchase of stamps & envelopes',145.28,15,0,6,8.72,154,2,'2016-04-21 17:44:33',0,'0000-00-00 00:00:00'),(133,57,4,263,'Purchase stamps',28.3,15,0,6,1.7,30,2,'2016-04-21 17:45:13',0,'0000-00-00 00:00:00'),(134,57,5,98,'Purchase meals for client',52.85,15,0,6,3.17,56.02,2,'2016-04-21 17:46:24',0,'0000-00-00 00:00:00'),(135,57,6,263,'Purchase of Printer\'s ink',98.11,15,0,6,5.89,104,2,'2016-04-21 17:47:27',0,'0000-00-00 00:00:00'),(136,57,7,98,'Purchase for client meals',43.68,15,0,6,2.62,46.3,2,'2016-04-21 17:48:37',0,'0000-00-00 00:00:00'),(137,58,1,98,'Purchase of famos amos cookies for client',42.41,15,0,6,2.54,44.95,2,'2016-04-21 17:53:59',0,'0000-00-00 00:00:00'),(138,58,2,263,'Binding documents service',8.96,15,0,6,0.54,9.5,2,'2016-04-21 17:54:40',0,'0000-00-00 00:00:00'),(139,58,3,263,'Purchase of stamps & A.R Registered',116.98,15,0,6,7.02,124,2,'2016-04-21 17:55:26',0,'0000-00-00 00:00:00'),(140,58,4,263,'Purchase of envelopes',28.3,15,0,6,1.7,30,2,'2016-04-21 17:56:00',0,'0000-00-00 00:00:00'),(141,58,5,263,'Purchase of stamps',28.3,15,0,6,1.7,30,2,'2016-04-21 17:56:31',0,'0000-00-00 00:00:00'),(142,58,6,98,'Provide meals for client during meeting',43.68,15,0,6,2.62,46.3,2,'2016-04-21 17:57:24',0,'0000-00-00 00:00:00'),(143,58,7,98,'Purchase meals for client',52.85,15,0,6,3.17,56.02,2,'2016-04-21 17:58:13',0,'0000-00-00 00:00:00'),(144,58,8,263,'Purchase of printer\'s ink',98.11,15,0,6,5.89,104,2,'2016-04-21 17:58:53',0,'0000-00-00 00:00:00'),(145,59,1,78,'Payment of gst to Kastam Diraja Malaysia',1235.7,23,0,0,0,1235.7,2,'2016-04-21 18:06:52',0,'0000-00-00 00:00:00'),(146,60,1,121,'Payment of referral fee to Azwan (Ler Lum matter)',1125,23,0,0,0,1125,2,'2016-04-21 18:10:37',0,'0000-00-00 00:00:00'),(147,61,1,120,'Payment of allowance to NH',7000,23,0,0,0,7000,2,'2016-04-21 18:13:39',0,'0000-00-00 00:00:00'),(148,62,1,121,'Payment of referral fee to Azwan (Ler Lum matter)',1250,23,0,0,0,1250,2,'2016-04-21 18:17:06',0,'0000-00-00 00:00:00'),(149,63,1,120,'Payment of allowance to NH',7000,23,0,0,0,7000,2,'2016-04-21 18:20:02',0,'0000-00-00 00:00:00'),(150,64,1,259,'Filing winding up Petition for Progresif Daya & Star Everest',100,23,0,0,0,100,2,'2016-04-21 18:29:19',0,'0000-00-00 00:00:00'),(151,64,2,259,'Filing of Order 14 application & Affidavit In support',28,23,0,0,0,28,2,'2016-04-21 18:30:17',0,'0000-00-00 00:00:00'),(152,64,3,259,'Filing of reply to Defence (LT Leisure)',16,23,0,0,0,16,2,'2016-04-21 18:31:03',0,'0000-00-00 00:00:00'),(153,64,4,259,'Filing of application to amend SOC & Affidavit In support',28,23,0,0,0,28,2,'2016-04-21 18:32:00',0,'0000-00-00 00:00:00'),(154,64,5,259,'Filing of amended SOC',16,23,0,0,0,16,2,'2016-04-21 18:32:44',0,'0000-00-00 00:00:00'),(155,65,1,259,'Filing of Petition winding up for Progresif Daya & Star Everest',100,23,0,0,0,100,2,'2016-04-21 18:53:03',0,'0000-00-00 00:00:00'),(156,65,2,259,'Filing of application order 14 (LT Leisure) and Affidavit In support',28,23,0,0,0,28,2,'2016-04-21 18:54:08',0,'0000-00-00 00:00:00'),(157,65,3,259,'Filing reply to defence (LT Leisure)',16,23,0,0,0,16,2,'2016-04-21 18:54:48',0,'0000-00-00 00:00:00'),(158,65,4,259,'Filing of application to amend SOC & affidavit in support',28,23,0,0,0,28,2,'2016-04-21 18:55:46',0,'0000-00-00 00:00:00'),(159,65,5,259,'Filing amended SOC (LT Leisure)',16,23,0,0,0,16,2,'2016-04-21 18:56:39',0,'0000-00-00 00:00:00'),(160,65,6,264,'Conducting winding up search for multinail Asia Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 18:57:33',0,'0000-00-00 00:00:00'),(161,65,7,264,'Conducting winding up search for Sapura Kencana Energy Peninsuar Msia Inc',11.43,15,0,6,0.69,12.12,2,'2016-04-21 18:58:29',0,'0000-00-00 00:00:00'),(162,65,8,264,'Conducting winding up search for GLX Travel & Tours Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 18:59:27',0,'0000-00-00 00:00:00'),(163,65,9,265,'Consucting ssm search',13,15,0,6,0.78,13.78,2,'2016-04-21 19:00:14',0,'0000-00-00 00:00:00'),(164,65,10,264,'Conducting winding up search for Celcom Mobile Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 19:01:00',0,'0000-00-00 00:00:00'),(165,65,11,264,'Conducting winding up search for Sabre Travel Network (Malaysia) Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 19:02:01',0,'0000-00-00 00:00:00'),(166,65,12,264,'Conducting winding up search for Wira Logistics Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 19:02:46',0,'0000-00-00 00:00:00'),(167,65,13,266,'Payment made to Zaleha for mob (LT Leisure)',50,23,0,0,0,50,2,'2016-04-21 19:03:33',0,'0000-00-00 00:00:00'),(168,65,14,264,'Conducting winding up search for Ibnu Sina Resouces Sdn Bhd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 19:04:25',0,'0000-00-00 00:00:00'),(169,65,15,264,'Conducting winding up search for Talisman Msia Ltd',11.43,15,0,6,0.69,12.12,2,'2016-04-21 19:05:04',0,'0000-00-00 00:00:00'),(170,65,16,265,'Conducting SSM search for Talisman Msia Ltd',30,15,0,6,1.8,31.8,2,'2016-04-21 19:06:02',0,'0000-00-00 00:00:00'),(171,65,17,265,'Conducting SSM search for Meteor Learnig Sdn Bhd, B.e.a.t  Managment Colsultancy Sdn Bhd, Hambra Resources Sdn Bhd',71,15,0,6,4.26,75.26,2,'2016-04-21 19:07:44',0,'0000-00-00 00:00:00'),(172,65,18,264,'Conducting winding up search for Meteor Learnig Sdn Bhd, B.e.a.t Managment Colsultancy Sdn Bhd, Hambra Resources Sdn Bhd',34.3,15,0,6,2.06,36.36,2,'2016-04-21 19:08:41',0,'0000-00-00 00:00:00'),(173,65,19,256,'Printing at PGSM (Siti Norhadzjar case)',12.64,15,0,6,0.76,13.4,2,'2016-04-21 19:09:37',0,'0000-00-00 00:00:00'),(174,65,20,262,'Parking at Capital Square (meeting client)',3.77,15,0,6,0.23,4,2,'2016-04-21 19:10:19',0,'0000-00-00 00:00:00'),(175,65,21,259,'Filing Tanabalan Petition & Affidavit',122,23,0,0,0,122,2,'2016-04-21 19:11:09',0,'0000-00-00 00:00:00'),(176,66,1,121,'Payment to Azwan for referral fee (Ler Lum matter)',2250,23,0,0,0,2250,2,'2016-04-21 19:13:30',0,'0000-00-00 00:00:00'),(177,67,1,261,'Preparing Bank Draft to be forwarded to Ketua Pengarah Insolvensi',6000,23,0,0,0,6000,2,'2016-04-23 15:04:28',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 DEFAULT CHARSET=latin1;

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

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',
  `amount` double NOT NULL,
  `createdBy` int(11) NOT NULL,
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedBy` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


--
-- 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 DEFAULT CHARSET=latin1;

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

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 DEFAULT CHARSET=latin1;

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

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`)
) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment` VALUES (1,1,2,1,0,120,'NH/6/2014/UNI CHERISH',1,0,'RP','2015-02-26',0,1,0,'',0,0,0,4000,4000,0,0,2,'2015-06-12 14:54:58',0,'2015-06-12 15:00:55',0,'AR20150200000001',0),(2,2,2,1,0,120,'NH/8/2014',1,0,'RP','2015-03-18',0,1,0,'',0,0,0,315,315,0,0,2,'2015-06-12 14:57:08',0,'2015-06-12 14:59:46',0,'AR20150300000002',0),(3,3,2,1,0,120,'NH/15/2014',1,0,'RP','2014-11-11',0,1,0,'',0,0,0,2220,2220,0,0,2,'2015-06-12 14:58:47',0,'2015-06-17 16:54:29',0,'AR20141100000001',1),(4,4,2,1,0,69,'NH/3/2014/KOPETRO',1,0,'RP','2015-02-25',0,1,0,'3/2015',0,0,0,272,272,0,0,2,'2015-06-12 15:33:23',0,'2015-06-12 15:33:50',0,'AR20150200000002',0),(5,5,2,2,0,69,'NH/18/2015/1NF',1,0,'RP','2015-02-25',0,1,0,'18/2015',0,0,0,209,209,0,0,2,'2015-06-12 15:42:16',0,'2015-06-12 15:42:37',0,'AR20150200000003',0),(6,6,2,3,0,120,'NH/9/2014/COTRADE',1,0,'RP','2015-03-03',0,1,0,'9/2015',0,0,0,368,368,0,0,2,'2015-06-12 15:55:32',0,'2015-06-12 15:56:01',0,'AR20150300000003',0),(7,7,2,3,0,120,'NH/4/2014/COTRADE',1,0,'RP','2015-03-18',0,1,0,'4(A)/2015',0,0,0,23400,23400,0,0,2,'2015-06-12 16:04:40',0,'2015-06-12 16:06:08',0,'AR20150300000005',0),(8,8,2,3,0,120,'NH/9/2014/COTRADE',1,0,'RP','2015-03-18',0,1,0,'9(A)/2015',0,0,0,10000,10000,0,0,2,'2015-06-12 16:11:45',0,'2015-06-12 16:12:09',0,'AR20150300000007',0),(9,9,2,2,0,69,'NH/1/2014/KOPETRO',1,0,'RP','2015-03-19',0,1,0,'',0,0,0,2500,2500,0,0,2,'2015-06-12 16:21:36',0,'2015-06-12 16:22:18',0,'AR20150300000008',0),(10,10,2,2,0,69,'NH/3/2014/KOPETRO',1,0,'RP','2015-03-19',0,1,0,'3(A)/2015',0,0,0,2500,2500,0,0,2,'2015-06-12 16:27:21',0,'2015-06-12 16:27:42',0,'AR20150300000009',0),(11,11,2,2,0,69,'',1,0,'RP','2015-03-19',0,1,0,'',0,0,0,2500,2500,0,0,2,'2015-06-12 16:31:15',0,'2015-06-12 16:41:48',0,'AR20150300000011',0),(12,12,2,1,0,120,'NH/8/2014/KOPETRO',1,0,'RP','2015-03-18',0,1,0,'8(A)/2014',0,0,0,315,315,0,0,2,'2015-06-12 16:41:16',0,'2015-06-12 16:41:49',0,'AR20150300000012',0),(13,13,2,1,0,69,'nh/16/2014/kopetro.najd',1,0,'RP','2014-11-13',0,1,0,'16/2014',0,0,0,3280,0,0,0,2,'2015-06-12 17:10:31',0,'2015-06-17 16:54:29',0,'AR20141100000002',1),(14,14,2,2,0,69,'NH/2/2014',1,0,'RP','2014-10-28',0,1,0,'2 (1)/2014',0,0,0,4000,4000,0,0,2,'2015-06-12 17:55:04',0,'2015-06-17 16:54:29',0,'AR20141000000005',1),(15,15,2,2,0,69,'NH/1/2014',1,0,'RP','2014-10-28',0,1,0,'',0,0,0,4000,4000,0,0,2,'2015-06-12 18:07:46',0,'2015-06-17 16:54:29',0,'AR20141000000007',1),(16,16,2,2,0,69,'NH/1/2014/KOPETRO',1,0,'RP','2014-10-28',0,1,0,'',0,0,0,3000,3000,0,0,2,'2015-06-12 18:21:26',0,'2015-06-17 16:54:29',0,'AR20141000000009',1),(17,17,2,2,0,69,'NH/2/2014/KOPETRO',1,0,'RP','2014-10-28',0,1,0,'',0,0,0,3000,3000,0,0,2,'2015-06-12 18:27:53',0,'2015-06-17 16:54:29',0,'AR20141000000011',1),(18,18,2,2,0,69,'',1,0,'RP','2014-10-28',0,1,0,'NH/3/2014',0,0,0,3000,3000,0,0,2,'2015-06-12 18:32:58',0,'2015-06-17 16:54:30',0,'AR20141000000012',1),(19,19,2,2,0,69,'NH/3/2014',1,0,'RP','2014-10-28',0,1,0,'',0,0,0,4000,4000,0,0,2,'2015-06-14 13:45:15',0,'2015-06-17 16:54:30',0,'AR20141000000014',1),(20,20,2,2,0,69,'NH/2/2014',1,0,'RP','2014-10-28',0,1,0,'2/2014',0,0,0,272,272,0,0,2,'2015-06-14 14:21:01',0,'2015-06-17 16:54:30',0,'AR20141000000016',1),(34,34,2,2,0,69,'NH/1/2014',1,0,'RP','2015-02-25',0,1,0,'1/2015',0,0,0,272,272,0,0,2,'2015-06-15 19:08:49',0,'2015-06-15 19:11:01',0,'AR20150200000011',0),(35,35,2,3,0,69,'NH/4/2014/COTRADE',1,0,'RP','2014-10-28',0,1,0,'Legal fees paid for bil No. 4/2014-pfc',0,0,0,580,580,0,1,2,'2015-07-09 13:53:38',0,'0000-00-00 00:00:00',0,'',0),(36,36,2,1,0,69,'NH/8/2014',1,0,'RP','2014-10-28',0,1,0,'Payment for professional fees plus disbursements(8/2014)',0,0,0,315,315,0,1,2,'2015-07-09 13:55:54',0,'0000-00-00 00:00:00',0,'',0),(37,37,2,2,0,69,'NH/16/2014',1,0,'RP','2014-11-13',0,1,0,'payment for professional fees plus disbursements',0,0,0,3280,3280,0,1,2,'2015-07-09 14:00:20',0,'0000-00-00 00:00:00',0,'',0),(38,38,2,1,0,120,'NH/15/2014',1,0,'RP','2014-11-11',0,1,0,'Payment of professional fees plus disbursements',0,0,0,2220,2220,0,1,2,'2015-07-09 14:02:23',0,'0000-00-00 00:00:00',0,'',0),(39,39,2,2,0,69,'',1,0,'RP','2014-11-13',0,1,0,'nh/16/2014',0,0,0,3280,3280,0,0,2,'2015-07-13 07:52:54',0,'2015-07-13 08:11:54',0,'AR20141100000003',0),(40,40,2,1,0,120,'nh/15/2014',1,0,'RP','2014-11-11',0,1,0,'NH/15/2014',0,0,0,2220,2220,0,0,2,'2015-07-13 07:55:04',0,'2015-07-13 08:11:55',0,'AR20141100000004',0),(41,41,2,1,0,69,'NH/8/2014',1,0,'RP','2014-10-28',0,1,0,'NH/8/2014',0,0,0,315,315,0,0,2,'2015-07-13 07:56:50',0,'2015-07-13 08:00:27',0,'AR20141000000023',0),(42,42,2,3,0,69,'NH/4/2014',1,0,'RP','2014-10-28',0,1,0,'NH/4/2014',0,0,0,580,580,0,0,2,'2015-07-13 07:58:20',0,'2015-07-13 08:00:29',0,'AR20141000000024',0),(43,43,2,4,0,69,'NH/1A/verification15',1,0,'RP','2015-01-19',0,1,0,'NH/1A/verification-15',0,0,0,212,212,0,0,2,'2015-07-24 15:35:25',0,'2015-07-24 16:03:40',0,'AR20150100000019',0),(44,44,2,4,0,69,'NH/2A/verification-15 & NH/3A/ve',1,0,'RP','2015-01-19',0,1,0,'NH/2A/verification-15 & NH/3A/verification-15',0,0,0,9328,9328,0,0,2,'2015-07-24 15:38:08',0,'2015-07-24 16:03:42',0,'AR20150100000020',0),(45,45,2,4,0,69,'NH/4A/verification-15',1,0,'RP','2015-01-26',0,1,0,'NH/4A/verification-15',0,0,0,1696,1696,0,0,2,'2015-07-24 15:39:49',0,'2015-07-24 16:03:38',0,'AR20150100000018',0),(46,46,2,4,0,69,'NH/5A/verification-15 & NH/6A/ve',1,0,'RP','2015-03-10',0,1,0,'NH/5A/verification-15 & NH/6A/verification-15',0,0,0,5088,5088,0,0,2,'2015-07-24 15:46:43',0,'2015-07-24 16:04:38',0,'AR20150300000036',0),(47,47,2,4,0,69,'NH/7A/verification-15',1,0,'RP','2015-03-02',0,1,0,'NH/7A/verification-15',0,0,0,1484,1484,0,0,2,'2015-07-24 15:49:50',0,'2015-07-24 16:04:42',0,'AR20150300000038',0),(48,48,2,4,0,69,'NH/9A/verification-15',1,0,'RP','2015-03-09',0,1,0,'NH/9A/verification-15',0,0,0,1272,1272,0,0,2,'2015-07-24 15:51:54',0,'2015-07-24 16:04:41',0,'AR20150300000037',0),(49,49,2,4,0,69,'NH/8A/verification-15',1,0,'RP','2015-03-16',0,1,0,'NH/8A/verification-15',0,0,0,3180,3180,0,0,2,'2015-07-24 15:53:12',0,'2015-07-24 16:04:36',0,'AR20150300000035',0),(50,50,2,4,0,69,'NH/10A/verification-15',1,0,'RP','2015-03-23',0,1,0,'NH/10A/verification-15',0,0,0,636,636,0,0,2,'2015-07-24 15:55:07',0,'2015-07-24 16:04:34',0,'AR20150300000034',0),(51,51,2,4,0,69,'NH/11A/verification-15',1,0,'RP','2015-03-27',0,1,0,'NH/11A/verification-15',0,0,0,424,424,0,0,2,'2015-07-24 15:56:36',0,'2015-07-24 16:04:32',0,'AR20150300000033',0),(52,52,2,4,0,69,'NH/12A/verification-15',1,0,'RP','2015-03-31',0,1,0,'NH/12A/verification-15',0,0,0,1272,1272,0,0,2,'2015-07-24 15:57:52',0,'2015-07-24 16:04:30',0,'AR20150300000032',0),(53,53,2,4,0,69,'NH/13A/verification-15',1,0,'RP','2015-04-24',0,1,0,'NH/13A/verification-15',0,0,0,1484,1484,0,0,2,'2015-07-24 15:59:08',0,'2015-07-24 16:05:12',0,'AR20150400000004',0),(54,54,2,4,0,69,'NH/14A/verification-15',1,0,'RP','2015-05-08',0,1,0,'NH/14A/verification-15',0,0,0,2968,2968,0,0,2,'2015-07-24 16:00:36',0,'2015-07-24 16:05:49',0,'AR20150500000002',0),(55,55,2,4,0,69,'NH/15A/verification-15',1,0,'RP','2015-06-16',0,1,0,'NH/15A/verification-15',0,0,0,2968,2968,0,0,2,'2015-07-24 16:01:42',0,'2015-07-24 16:06:20',0,'AR20150600000004',0),(56,56,2,4,0,69,'NH/16A/verification-15',1,0,'RP','2015-06-18',0,1,0,'NH/16A/verification-15',0,0,0,1908,1908,0,0,2,'2015-07-24 16:02:44',0,'2015-07-24 16:06:18',0,'AR20150600000003',0),(57,57,2,5,0,69,'NH/19/15/KELANTAN DELIGHTS',1,0,'RP','2015-04-06',0,1,0,'Payment of legal fees and disbursements.',0,0,0,10000,10000,0,0,2,'2015-07-26 14:29:20',0,'2015-07-26 14:29:36',0,'AR20150400000006',0),(58,58,2,1,0,69,'NH/3/2015',1,0,'RP','2015-02-26',0,1,0,'Payment for bill 3/2015',0,0,0,272,272,0,0,2,'2015-07-27 18:39:44',0,'2015-07-27 19:06:27',0,'AR20150200000015',0),(59,59,2,2,0,120,'NH/6/2014/uni cherish',1,0,'RP','2015-02-26',0,1,0,'Payment made for bill 6/2014 (UNI CHERISH)',0,0,0,4000,4000,0,0,2,'2015-07-27 18:46:58',0,'2015-07-27 19:06:28',0,'AR20150200000016',0),(60,60,2,2,0,69,'',1,0,'RP','2015-02-26',0,1,0,'Payment made for bill 1/2015-cosmic, 18/2015-ANF',0,0,0,481,481,0,0,2,'2015-07-27 18:50:22',0,'2015-07-27 19:06:43',0,'AR20150200000017',0),(61,61,2,2,0,69,'NH/1/2014 & NH/2/2014',1,0,'RP','2015-03-20',0,1,0,'Payment for bill 1 (A)/ 2015 and 2 (A)/2015',0,0,0,5000,5000,0,0,2,'2015-07-27 18:53:26',0,'2015-07-27 19:07:25',0,'AR20150300000042',0),(62,62,2,3,0,120,'NH/9/2014/cotrade',1,0,'RP','2015-03-03',0,1,0,'Payment made for bill 9/2015',0,0,0,368,368,0,0,2,'2015-07-27 18:55:37',0,'2015-07-27 19:07:30',0,'AR20150300000046',0),(63,63,2,3,0,120,'NH/4/2014/kopetro & NH/9/2014/ko',1,0,'RP','2015-03-18',0,1,0,'Payment for bill 4(A)/2015 & 9(A)/2015',0,0,0,33400,33400,0,0,2,'2015-07-27 18:58:56',0,'2015-07-27 19:07:28',0,'AR20150300000044',0),(64,64,2,1,0,120,'NH/8/2014/kopetro',1,0,'RP','2015-03-18',0,1,0,'Payment made for bill 8(A)/2014',0,0,0,315,315,0,0,2,'2015-07-27 19:01:34',0,'2015-07-27 19:07:29',0,'AR20150300000045',0),(65,65,2,1,0,69,'NH/3/2014/kopetro',1,0,'RP','2015-03-20',0,1,0,'Payment for bill 3(A)/2015',0,0,0,2500,2500,0,0,2,'2015-07-27 19:03:10',0,'2015-07-27 19:07:27',0,'AR20150300000043',0),(66,66,2,1,0,120,'',1,0,'RP','2015-06-10',0,1,0,'NH/3/14/kopetro[00000037], NH/5/RAINSTAR/KOP/15[00000038], \nNH/14/DIN\'S TRADING/15[00000040]	, NH/10/SMART WHEELS INTELLIGENCE [00000041]',0,0,0,12133.82,12133.82,0,0,2,'2015-07-29 14:16:11',0,'2015-07-29 14:17:45',0,'AR20150600000008',0),(67,67,2,2,0,120,'',1,0,'RP','2015-06-10',0,1,0,'NH/18/15/ANF[00000039]',0,0,0,1143.74,1143.74,0,0,2,'2015-07-29 14:16:57',0,'2015-07-29 14:17:46',0,'AR20150600000009',0),(68,68,2,10,0,69,'NH/11/15/fast airfreight[0000004',1,0,'RP','2015-04-06',0,1,0,'Preparing stay application for winding up order & filing of the same',0,0,0,7500,7500,0,0,2,'2015-07-29 14:35:47',0,'2015-07-29 14:36:04',0,'AR20150400000008',0),(69,69,2,10,0,120,'NH/11/15/fast airfreight[0000004',1,0,'RP','2015-06-12',0,1,0,'NH/11/15/fast airfreight[00000043- stay winding up',0,0,0,7500,7500,0,0,2,'2015-07-29 15:13:05',0,'2015-07-29 15:13:35',0,'AR20150600000012',0),(70,70,2,7,0,69,'NH/21/CHAN YOO HUAT/15[00000024]',1,0,'RP','2015-06-24',0,1,0,'NH/21/CHAN YOO HUAT/15[00000024]- ',0,0,0,2000,2000,0,0,2,'2015-07-29 15:17:28',0,'2015-07-29 15:17:47',0,'AR20150600000013',0),(71,71,2,4,0,69,'NH/18A/verification/15',1,0,'RP','2015-07-15',0,1,0,'NH/18A/verification/15- Vetting and verification of ownership',0,0,0,848,848,0,0,2,'2015-08-10 03:42:20',0,'2015-08-10 03:44:49',0,'AR20150700000004',0),(72,72,2,4,0,69,'NH/17A/verification-15- ',1,0,'RP','2015-07-24',0,1,0,'NH/17A/verification-15- Vetting and verification of ownership',0,0,0,636,636,0,0,2,'2015-08-10 03:43:51',0,'2015-08-10 03:46:05',0,'AR20150700000005',0),(73,73,2,1,0,69,'NH/27/prospect/15',1,0,'RP','2015-09-25',0,1,0,'Payment made by KOPETRO for Note of charges No. 11/15/pros',0,0,0,174.9,174.9,0,0,2,'2015-10-27 04:04:43',0,'2015-10-27 04:05:28',0,'AR20150900000002',0),(74,74,2,2,0,69,'NH/2/2014/KOPETRO',1,0,'NH/2/2014','2015-09-25',0,1,0,'Payment made by KTT for gst Note of charges No. 2(B) /2015',0,0,0,1143.74,1143.74,0,0,2,'2015-10-27 04:20:33',0,'2015-10-27 04:21:06',0,'AR20150900000003',0),(75,75,2,12,0,120,'NH/37/DA/HB/C1513/15',1,0,'RP','2015-09-09',0,1,0,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',0,0,0,7500,7500,0,0,2,'2015-10-27 04:38:45',0,'2015-10-27 04:39:15',0,'AR20150900000005',0),(76,76,2,12,0,120,'NH/38/DA/HB/L-12-VIP-11/15',1,0,'RP','2015-09-09',0,1,0,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',0,0,0,7500,7500,0,0,2,'2015-10-27 04:44:57',0,'2015-10-27 04:45:33',0,'AR20150900000007',0),(77,77,2,4,0,69,'NH/19A/verification-15',1,0,'RP','2015-10-19',0,1,0,'Payment made by Ler Lum in respect of verification of ownership and vetting of documents',0,0,0,5512,5512,0,0,2,'2015-10-27 05:00:03',0,'2015-10-27 05:00:27',0,'AR20151000000001',0),(78,78,2,13,0,120,'NH/13/15/amboss',1,0,'RP','2015-08-23',0,1,0,'Payment made by En.Bashah for our service to prepare stay winding up application and be a counsel for negotiation for Perusahaan Amboss Sdn Bhd (payment made on 5.8.2015 -RM5000 and 23.8.2015-RM7500.00)',0,0,0,12500,12500,0,1,2,'2015-10-29 08:50:45',0,'0000-00-00 00:00:00',0,'',0),(79,79,2,4,0,69,'NH/20A/verification-15',1,0,'RP','2015-07-09',0,1,0,'Vetting documents and verification of ownership',0,0,0,1272,1272,0,0,2,'2015-10-29 09:30:53',0,'2015-10-29 09:31:11',0,'AR20150700000007',0),(80,80,2,4,0,69,'NH/22A/verification-15',1,0,'RP','2015-06-24',0,1,0,'Vetting documents and verification of ownership',0,0,0,2968,2968,0,0,2,'2015-10-29 09:49:51',0,'2015-10-29 09:50:06',0,'AR20150600000016',0),(81,81,2,4,0,69,'',1,0,'RP','2015-11-24',0,1,0,'Payment received for service renderred for verification of ownership',0,0,0,636,636,0,0,2,'2015-12-30 14:09:03',0,'2015-12-30 14:09:33',0,'AR20151100000002',0),(82,82,2,11,0,69,'nh/36/azri/15',1,0,'RP','2015-10-12',0,1,0,'Preparing and conducting hearing for faraidh application',0,0,0,8730,8730,0,0,2,'2015-12-30 15:50:00',0,'2015-12-30 15:50:20',0,'AR20151000000003',0),(83,83,2,4,0,69,'',1,0,'RP','2015-12-02',0,1,0,'verification of ownership and vetting documents         ',0,0,0,212,212,0,0,2,'2015-12-30 16:05:47',0,'2015-12-30 16:06:11',0,'AR20151200000002',0),(84,84,2,1,0,69,'vetting various kopetro aggt',1,0,'RP','2015-11-06',0,1,0,'vetting various kopetro aggt',0,0,0,3922,3922,0,0,2,'2015-12-30 16:31:45',0,'2015-12-30 16:32:05',0,'AR20151100000004',0),(85,85,2,14,0,165,'nh/66A/shazwan/15',1,0,'RP','2015-11-12',0,1,0,'',0,0,0,3000,3000,0,0,2,'2015-12-30 16:54:44',0,'2015-12-30 16:55:04',0,'AR20151100000006',0),(86,86,2,15,0,69,'nh/4/14/cotrade',1,0,'RP','2015-11-12',0,1,0,'Filing Petition for winding up BUT has withdrawn it after both parties have entered into settlement',0,0,0,10000,10000,0,0,2,'2015-12-30 17:16:18',0,'2015-12-30 17:16:57',0,'AR20151100000008',0),(87,87,2,4,0,69,'NV/NH/26A/verification/15[000000',1,0,'RP','2015-11-17',0,1,0,'Vetting agreement & verification of ownership',0,0,0,424,424,0,0,2,'2015-12-30 17:29:26',0,'2015-12-30 17:30:09',0,'AR20151100000010',0),(88,88,2,1,0,69,'25/JDS/15 (nh/54/sadon-trib/kop/',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,3074,3074,0,0,2,'2016-01-29 07:36:45',0,'2016-01-29 07:37:00',0,'AR20160100000001',0),(89,89,2,1,0,69,'  17/JDS/15 (nh/65/umi nadrah-tr',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,3180,3180,0,0,2,'2016-01-29 07:44:39',0,'2016-01-29 07:44:50',0,'AR20160100000002',0),(90,90,2,1,0,69,'INV/15/JDS/15 (nh/64/maziah/trib',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein (nh/64/maziah/trib-kop/15)',0,0,0,3127,3127,0,0,2,'2016-01-29 07:51:05',0,'2016-01-29 07:51:17',0,'AR20160100000003',0),(91,91,2,1,0,69,'INV 13/JDS/15 (nh/58/zamri/trib-',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein. (nh/58/zamri/trib-kop/15)',0,0,0,3551,3551,0,0,2,'2016-01-29 07:57:19',0,'2016-01-29 07:57:35',0,'AR20160100000004',0),(92,92,2,1,0,69,'14/JDS/15       50450 Kuala Lump',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,3551,3551,0,0,2,'2016-01-29 08:05:26',0,'2016-01-29 08:05:49',0,'AR20160100000005',0),(93,93,2,1,0,69,'INV/11/JDS/15 (NH/62/zuhri/trib-',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,1431,1431,0,0,2,'2016-01-29 08:16:55',0,'2016-01-29 08:17:08',0,'AR20160100000006',0),(94,94,2,1,0,69,'INV/16A/JDS/15 (nh/57/firdaus-tr',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,2491,2491,0,0,2,'2016-01-29 08:24:47',0,'2016-01-29 08:25:00',0,'AR20160100000007',0),(95,95,2,1,0,69,'INV/24/JDS/15 (nh/50/mior/trib-k',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,1484,1484,0,0,2,'2016-01-29 08:29:21',0,'2016-01-29 08:29:37',0,'AR20160100000008',0),(96,96,2,1,0,69,'INV 21/JDS/15 (nh/59/abd ghani/t',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,3127,3127,0,0,2,'2016-01-29 09:02:58',0,'2016-01-29 09:03:09',0,'AR20160100000009',0),(97,97,2,1,0,69,'INV20/JDS/15 (nh/52/fodzi/trib-k',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein',0,0,0,1431,1431,0,0,2,'2016-01-29 09:07:28',0,'2016-01-29 09:07:55',0,'AR20160100000010',0),(98,98,2,1,0,69,'INV/29/pod/15 (nh/43/abd razak/p',1,0,'RP','2016-01-18',0,1,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur  And generally to all other matters not specifically mentioned herein.',0,0,0,1143.74,1143.74,0,0,2,'2016-01-29 09:13:18',0,'2016-01-29 09:13:29',0,'AR20160100000011',0),(99,99,2,1,0,69,'INV12/JDS/15 (nh/53/mohd nazri-t',1,0,'RP','2016-01-18',0,1,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',0,0,0,3551,3551,0,0,2,'2016-01-29 09:18:22',0,'2016-01-29 09:18:35',0,'AR20160100000012',0),(100,100,2,1,0,69,'INV28/pod/15 (nh/71/daniel jerom',1,0,'RP','2016-01-18',0,1,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur  And generally to all other matters not specifically mentioned herein.',0,0,0,1143.74,1143.74,0,0,2,'2016-01-29 09:25:47',0,'2016-01-29 09:27:06',0,'AR20160100000013',0),(101,101,2,1,0,69,'INV27/pod/15 (nh/70/azlan/pod-15',1,0,'RP','2016-01-18',0,1,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuantan  And generally to all other matters not specifically mentioned herein.',0,0,0,1143.74,1143.74,0,0,2,'2016-01-29 09:30:25',0,'2016-01-29 09:30:37',0,'AR20160100000014',0),(102,102,2,4,0,69,'INV/30/verification/16',1,0,'RP','2016-01-04',0,1,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,848,848,0,0,2,'2016-04-21 20:43:14',0,'2016-04-23 00:05:19',0,'AR20160100000016',0),(103,103,2,4,0,69,'INV/31/verification/16',1,0,'RP','2016-01-04',0,1,0,'Payment received for service renderred for vetting documents and verification of ownership',0,0,0,212,212,0,0,2,'2016-04-23 00:10:16',0,'2016-04-23 00:10:41',0,'AR20160100000018',0),(104,104,2,4,0,69,'INV/32/verification/16',1,0,'RP','2016-01-04',0,1,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,636,636,0,0,2,'2016-04-23 00:14:39',0,'2016-04-23 00:14:59',0,'AR20160100000020',0),(105,105,2,4,0,69,'INV/33/verification/16',1,0,'RP','2016-01-08',0,1,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,1272,1272,0,0,2,'2016-04-23 00:18:33',0,'2016-04-23 00:18:52',0,'AR20160100000022',0),(106,106,2,4,0,69,'',1,0,'RP','2016-02-03',0,1,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,212,212,0,0,2,'2016-04-23 00:25:48',0,'2016-04-23 00:26:24',0,'AR20160200000002',0),(107,107,2,4,0,69,'INV/34/verification/16',1,0,'RP','2016-01-21',0,1,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,848,848,0,0,2,'2016-04-23 00:39:35',0,'2016-04-23 00:39:56',0,'AR20160100000025',0),(108,108,2,4,0,69,'INV/37/verification/16',1,0,'RP','2016-02-03',0,1,0,'Vetting documents and verification of ownership',0,0,0,848,848,0,0,2,'2016-04-23 14:20:16',0,'2016-04-23 14:20:35',0,'AR20160200000004',0),(109,109,2,4,0,69,'',1,0,'RP','2016-02-29',0,1,0,'Vetting documents and verification of ownership',0,0,0,848,848,0,0,2,'2016-04-23 14:24:05',0,'2016-04-23 14:24:24',0,'AR20160200000006',0),(110,110,2,4,0,69,'INV/39/verification/16',1,0,'RP','2016-02-29',0,1,0,'Vetting documents and verification of ownership',0,0,0,1060,1060,0,0,2,'2016-04-23 14:27:19',0,'2016-04-23 14:27:36',0,'AR20160200000008',0),(111,111,2,4,0,69,'INV/40/verification/16',1,0,'RP','2016-03-10',0,1,0,'Vetting documents and verification of ownership',0,0,0,212,212,0,0,2,'2016-04-23 14:30:43',0,'2016-04-23 14:31:03',0,'AR20160300000002',0),(112,112,2,4,0,69,'INV/41/verification/16',1,0,'RP','2016-03-21',0,1,0,'Vetting documents and verification of ownership',0,0,0,1696,1696,0,0,2,'2016-04-23 14:36:08',0,'2016-04-23 14:36:38',0,'AR20160300000004',0),(113,113,2,16,0,69,'NH/Star Everest Sdn Bhd/wup/16',1,0,'RP','2016-03-31',0,1,0,'Requesting deposit for filing winding up petition at Insolvency KL',0,0,0,3000,3000,0,0,2,'2016-04-23 14:51:10',0,'2016-04-23 14:52:25',0,'AR20160300000007',0),(114,114,2,17,0,69,'NH/Progresif Daya/wup/16',1,0,'RP','2016-03-31',0,1,0,'Requesting deposit for filing winding up petition at Insolvency KL',0,0,0,3000,3000,0,0,2,'2016-04-23 14:51:54',0,'2016-04-23 14:52:26',0,'AR20160300000008',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=125 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment_detail` VALUES (1,1,1,2,0,0,0,4000,0,0,'2015-06-12 14:54:58',0,'0000-00-00 00:00:00'),(2,2,1,3,0,0,0,315,0,0,'2015-06-12 14:57:08',0,'0000-00-00 00:00:00'),(3,3,1,1,0,0,0,2220,0,0,'2015-06-12 14:58:47',0,'0000-00-00 00:00:00'),(4,4,1,5,0,0,0,272,0,0,'2015-06-12 15:33:23',0,'0000-00-00 00:00:00'),(5,5,1,6,0,0,0,209,0,0,'2015-06-12 15:42:16',0,'0000-00-00 00:00:00'),(6,6,1,7,0,0,0,368,0,0,'2015-06-12 15:55:32',0,'0000-00-00 00:00:00'),(7,7,1,8,0,0,0,23400,0,0,'2015-06-12 16:04:40',0,'0000-00-00 00:00:00'),(8,8,1,9,0,0,0,10000,0,0,'2015-06-12 16:11:45',0,'0000-00-00 00:00:00'),(9,9,1,10,0,0,0,2500,0,0,'2015-06-12 16:21:36',0,'0000-00-00 00:00:00'),(10,10,1,11,0,0,0,2500,0,0,'2015-06-12 16:27:21',0,'0000-00-00 00:00:00'),(11,11,1,12,0,0,0,2500,0,0,'2015-06-12 16:31:15',0,'0000-00-00 00:00:00'),(12,12,1,13,0,0,0,315,0,0,'2015-06-12 16:41:16',0,'0000-00-00 00:00:00'),(14,14,1,16,0,0,0,4000,0,0,'2015-06-12 17:55:04',0,'0000-00-00 00:00:00'),(15,15,1,17,0,0,0,4000,0,0,'2015-06-12 18:07:46',0,'0000-00-00 00:00:00'),(16,16,1,18,0,0,0,3000,0,0,'2015-06-12 18:21:26',0,'0000-00-00 00:00:00'),(17,17,1,19,0,0,0,3000,0,0,'2015-06-12 18:27:53',0,'0000-00-00 00:00:00'),(18,18,1,20,0,0,0,3000,0,0,'2015-06-12 18:32:58',0,'0000-00-00 00:00:00'),(19,19,1,21,0,0,0,4000,0,0,'2015-06-14 13:45:15',0,'0000-00-00 00:00:00'),(20,20,1,22,0,0,0,272,0,0,'2015-06-14 14:21:01',0,'0000-00-00 00:00:00'),(21,21,1,23,0,0,0,212,0,0,'2015-06-14 15:06:24',0,'0000-00-00 00:00:00'),(22,22,1,24,0,0,0,2968,0,0,'2015-06-14 15:16:00',0,'0000-00-00 00:00:00'),(23,23,1,25,0,0,0,6360,0,0,'2015-06-14 15:20:05',0,'0000-00-00 00:00:00'),(24,24,1,26,0,0,0,1696,0,0,'2015-06-14 15:24:35',0,'0000-00-00 00:00:00'),(25,25,1,27,0,0,0,1696,0,0,'2015-06-14 15:28:49',0,'0000-00-00 00:00:00'),(26,26,1,28,0,0,0,3392,0,0,'2015-06-14 15:37:54',0,'0000-00-00 00:00:00'),(27,27,1,29,0,0,0,1484,0,0,'2015-06-14 15:42:38',0,'0000-00-00 00:00:00'),(28,28,1,30,0,0,0,1272,0,0,'2015-06-14 15:45:57',0,'0000-00-00 00:00:00'),(29,29,1,31,0,0,0,3180,0,0,'2015-06-14 15:52:30',0,'0000-00-00 00:00:00'),(30,30,1,32,0,0,0,636,0,0,'2015-06-14 15:58:45',0,'0000-00-00 00:00:00'),(31,31,1,33,0,0,0,424,0,0,'2015-06-14 16:01:47',0,'0000-00-00 00:00:00'),(32,32,1,34,0,0,0,1272,0,0,'2015-06-14 16:04:55',0,'0000-00-00 00:00:00'),(33,33,1,35,0,0,0,1484,0,0,'2015-06-14 16:09:01',0,'0000-00-00 00:00:00'),(34,34,1,4,0,0,0,272,0,0,'2015-06-15 19:08:49',0,'0000-00-00 00:00:00'),(35,13,1,14,0,0,0,3280,0,0,'2015-06-15 19:15:59',0,'0000-00-00 00:00:00'),(36,35,1,39,0,0,0,580,0,0,'2015-07-09 13:53:38',0,'0000-00-00 00:00:00'),(37,36,1,41,0,0,0,315,0,0,'2015-07-09 13:55:55',0,'0000-00-00 00:00:00'),(38,37,1,38,0,0,0,3280,0,0,'2015-07-09 14:00:20',0,'0000-00-00 00:00:00'),(39,38,1,36,0,0,0,2220,0,0,'2015-07-09 14:02:23',0,'0000-00-00 00:00:00'),(40,39,1,49,0,0,0,3280,0,0,'2015-07-13 07:52:54',0,'0000-00-00 00:00:00'),(41,40,1,48,0,0,0,2220,0,0,'2015-07-13 07:55:04',0,'0000-00-00 00:00:00'),(42,41,1,46,0,0,0,315,0,0,'2015-07-13 07:56:50',0,'0000-00-00 00:00:00'),(43,42,1,45,0,0,0,580,0,0,'2015-07-13 07:58:20',0,'0000-00-00 00:00:00'),(44,43,1,50,0,0,0,212,0,0,'2015-07-24 15:35:25',0,'0000-00-00 00:00:00'),(45,44,1,51,0,0,0,2968,0,0,'2015-07-24 15:38:08',0,'0000-00-00 00:00:00'),(46,44,2,52,0,0,0,6360,0,0,'2015-07-24 15:38:08',0,'0000-00-00 00:00:00'),(47,45,1,53,0,0,0,1696,0,0,'2015-07-24 15:39:49',0,'0000-00-00 00:00:00'),(48,46,1,54,0,0,0,1696,0,0,'2015-07-24 15:46:43',0,'0000-00-00 00:00:00'),(49,46,2,55,0,0,0,3392,0,0,'2015-07-24 15:46:43',0,'0000-00-00 00:00:00'),(50,47,1,56,0,0,0,1484,0,0,'2015-07-24 15:49:50',0,'0000-00-00 00:00:00'),(51,48,1,58,0,0,0,1272,0,0,'2015-07-24 15:51:54',0,'0000-00-00 00:00:00'),(52,49,1,57,0,0,0,3180,0,0,'2015-07-24 15:53:12',0,'0000-00-00 00:00:00'),(53,50,1,59,0,0,0,636,0,0,'2015-07-24 15:55:07',0,'0000-00-00 00:00:00'),(54,51,1,60,0,0,0,424,0,0,'2015-07-24 15:56:36',0,'0000-00-00 00:00:00'),(55,52,1,61,0,0,0,1272,0,0,'2015-07-24 15:57:52',0,'0000-00-00 00:00:00'),(56,53,1,62,0,0,0,1484,0,0,'2015-07-24 15:59:08',0,'0000-00-00 00:00:00'),(57,54,1,63,0,0,0,2968,0,0,'2015-07-24 16:00:36',0,'0000-00-00 00:00:00'),(58,55,1,64,0,0,0,2968,0,0,'2015-07-24 16:01:43',0,'0000-00-00 00:00:00'),(59,56,1,65,0,0,0,1908,0,0,'2015-07-24 16:02:44',0,'0000-00-00 00:00:00'),(60,57,1,67,0,0,0,10000,0,0,'2015-07-26 14:29:20',0,'0000-00-00 00:00:00'),(61,58,1,71,0,0,0,272,0,0,'2015-07-27 18:39:44',0,'0000-00-00 00:00:00'),(62,59,1,47,0,0,0,4000,0,0,'2015-07-27 18:46:58',0,'0000-00-00 00:00:00'),(63,60,1,69,0,0,0,272,0,0,'2015-07-27 18:50:22',0,'0000-00-00 00:00:00'),(64,60,2,70,0,0,0,209,0,0,'2015-07-27 18:50:22',0,'0000-00-00 00:00:00'),(65,61,1,76,0,0,0,2500,0,0,'2015-07-27 18:53:26',0,'0000-00-00 00:00:00'),(66,61,2,78,0,0,0,2500,0,0,'2015-07-27 18:53:26',0,'0000-00-00 00:00:00'),(67,62,1,72,0,0,0,368,0,0,'2015-07-27 18:55:37',0,'0000-00-00 00:00:00'),(68,63,1,74,0,0,0,23400,0,0,'2015-07-27 18:58:56',0,'0000-00-00 00:00:00'),(69,63,2,75,0,0,0,10000,0,0,'2015-07-27 18:58:56',0,'0000-00-00 00:00:00'),(70,64,1,73,0,0,0,315,0,0,'2015-07-27 19:01:34',0,'0000-00-00 00:00:00'),(71,65,1,77,0,0,0,2500,0,0,'2015-07-27 19:03:10',0,'0000-00-00 00:00:00'),(72,66,1,81,0,0,0,1143.74,0,0,'2015-07-29 14:16:12',0,'0000-00-00 00:00:00'),(73,66,2,82,0,0,0,10706,0,0,'2015-07-29 14:16:12',0,'0000-00-00 00:00:00'),(74,66,3,84,0,0,0,174.9,0,0,'2015-07-29 14:16:12',0,'0000-00-00 00:00:00'),(75,66,4,85,0,0,0,109.18,0,0,'2015-07-29 14:16:12',0,'0000-00-00 00:00:00'),(76,67,1,83,0,0,0,1143.74,0,0,'2015-07-29 14:16:57',0,'0000-00-00 00:00:00'),(77,68,1,86,0,0,0,7500,0,0,'2015-07-29 14:35:47',0,'0000-00-00 00:00:00'),(78,69,1,87,0,0,0,7500,0,0,'2015-07-29 15:13:05',0,'0000-00-00 00:00:00'),(79,70,1,68,0,0,0,2000,0,0,'2015-07-29 15:17:28',0,'0000-00-00 00:00:00'),(80,71,1,90,0,0,0,848,0,0,'2015-08-10 03:42:21',0,'0000-00-00 00:00:00'),(81,72,1,66,0,0,0,636,0,0,'2015-08-10 03:43:52',0,'0000-00-00 00:00:00'),(82,73,1,92,0,0,0,174.9,0,0,'2015-10-27 04:04:43',0,'0000-00-00 00:00:00'),(83,74,1,88,0,0,0,1143.74,0,0,'2015-10-27 04:20:33',0,'0000-00-00 00:00:00'),(84,75,1,93,0,0,0,7500,0,0,'2015-10-27 04:38:45',0,'0000-00-00 00:00:00'),(85,76,1,94,0,0,0,7500,0,0,'2015-10-27 04:44:58',0,'0000-00-00 00:00:00'),(86,77,1,95,0,0,0,5512,0,0,'2015-10-27 05:00:03',0,'0000-00-00 00:00:00'),(87,78,1,96,0,0,0,12500,0,0,'2015-10-29 08:50:45',0,'0000-00-00 00:00:00'),(88,79,1,97,0,0,0,1272,0,0,'2015-10-29 09:30:53',0,'0000-00-00 00:00:00'),(89,80,1,98,0,0,0,2968,0,0,'2015-10-29 09:49:51',0,'0000-00-00 00:00:00'),(90,81,1,99,0,0,0,636,0,0,'2015-12-30 14:09:03',0,'0000-00-00 00:00:00'),(91,82,1,100,0,0,0,8730,0,0,'2015-12-30 15:50:00',0,'0000-00-00 00:00:00'),(92,83,1,101,0,0,0,212,0,0,'2015-12-30 16:05:47',0,'0000-00-00 00:00:00'),(93,84,1,102,0,0,0,3922,0,0,'2015-12-30 16:31:46',0,'0000-00-00 00:00:00'),(94,85,1,103,0,0,0,3000,0,0,'2015-12-30 16:54:44',0,'0000-00-00 00:00:00'),(95,86,1,104,0,0,0,10000,0,0,'2015-12-30 17:16:19',0,'0000-00-00 00:00:00'),(96,87,1,105,0,0,0,424,0,0,'2015-12-30 17:29:26',0,'0000-00-00 00:00:00'),(97,88,1,106,0,0,0,3074,0,0,'2016-01-29 07:36:45',0,'0000-00-00 00:00:00'),(98,89,1,107,0,0,0,3180,0,0,'2016-01-29 07:44:39',0,'0000-00-00 00:00:00'),(99,90,1,108,0,0,0,3127,0,0,'2016-01-29 07:51:05',0,'0000-00-00 00:00:00'),(100,91,1,109,0,0,0,3551,0,0,'2016-01-29 07:57:19',0,'0000-00-00 00:00:00'),(101,92,1,110,0,0,0,3551,0,0,'2016-01-29 08:05:27',0,'0000-00-00 00:00:00'),(102,93,1,111,0,0,0,1431,0,0,'2016-01-29 08:16:55',0,'0000-00-00 00:00:00'),(103,94,1,112,0,0,0,2491,0,0,'2016-01-29 08:24:48',0,'0000-00-00 00:00:00'),(104,95,1,113,0,0,0,1484,0,0,'2016-01-29 08:29:21',0,'0000-00-00 00:00:00'),(105,96,1,114,0,0,0,3127,0,0,'2016-01-29 09:02:58',0,'0000-00-00 00:00:00'),(106,97,1,115,0,0,0,1431,0,0,'2016-01-29 09:07:28',0,'0000-00-00 00:00:00'),(107,98,1,116,0,0,0,1143.74,0,0,'2016-01-29 09:13:18',0,'0000-00-00 00:00:00'),(108,99,1,117,0,0,0,3551,0,0,'2016-01-29 09:18:22',0,'0000-00-00 00:00:00'),(109,100,1,118,0,0,0,1143.74,0,0,'2016-01-29 09:25:47',0,'0000-00-00 00:00:00'),(110,101,1,119,0,0,0,1143.74,0,0,'2016-01-29 09:30:25',0,'0000-00-00 00:00:00'),(111,102,1,120,0,0,0,848,0,0,'2016-04-21 20:43:15',0,'0000-00-00 00:00:00'),(112,103,1,121,0,0,0,212,0,0,'2016-04-23 00:10:17',0,'0000-00-00 00:00:00'),(113,104,1,122,0,0,0,636,0,0,'2016-04-23 00:14:40',0,'0000-00-00 00:00:00'),(114,105,1,123,0,0,0,1272,0,0,'2016-04-23 00:18:33',0,'0000-00-00 00:00:00'),(115,106,1,126,0,0,0,212,0,0,'2016-04-23 00:25:48',0,'0000-00-00 00:00:00'),(116,107,1,124,0,0,0,424,0,0,'2016-04-23 00:39:35',0,'0000-00-00 00:00:00'),(117,107,2,125,0,0,0,424,0,0,'2016-04-23 00:39:36',0,'0000-00-00 00:00:00'),(118,108,1,127,0,0,0,848,0,0,'2016-04-23 14:20:16',0,'0000-00-00 00:00:00'),(119,109,1,128,0,0,0,848,0,0,'2016-04-23 14:24:05',0,'0000-00-00 00:00:00'),(120,110,1,129,0,0,0,1060,0,0,'2016-04-23 14:27:20',0,'0000-00-00 00:00:00'),(121,111,1,130,0,0,0,212,0,0,'2016-04-23 14:30:43',0,'0000-00-00 00:00:00'),(122,112,1,131,0,0,0,1696,0,0,'2016-04-23 14:36:08',0,'0000-00-00 00:00:00'),(123,113,1,132,0,0,0,3000,0,0,'2016-04-23 14:51:10',0,'0000-00-00 00:00:00'),(124,114,1,133,0,0,0,3000,0,0,'2016-04-23 14:51:54',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 DEFAULT CHARSET=latin1;

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


--
-- 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=13 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment_others` VALUES (1,1,2,'TAN SENG CHEONG',0,69,'NH/21/CHAN YOO HUAT/15',1,0,'ORI','2015-06-01',0,0,0,'FOR DISBURSEMENTS AND INSOLVENCY DEPOSIT',0,0,0,4000,0,0,2,'2015-06-14 17:12:44',2,'2015-07-26 15:00:41',0,'AR20150600000005',0),(2,1,3,'KOPERASI KAKITANGAN PETRONAS',0,69,'w/up dep',6,0,'3','2014-10-28',0,0,0,'Deposit of winding up to be deposited to Insolvency (Cosmic, Covacrete, Kristal Salju)\n(NH/1/2014) (NH/2/2014) (NH/3/2014)',0,0,0,9000,0,0,2,'2015-06-24 14:25:32',2,'2015-06-25 05:03:01',0,'AR20141000000003',0),(3,2,3,'kopetro',0,69,'w/up procedure',6,0,'4','2014-10-28',0,0,0,'Advertisement in the newspapers, gazzette in warta kerajaan, SSM and winding up search,\n filing cause papers in court,traveling expenses, affirmations, printing, court attendance fee\n service of documents &,miscellaneous (NH/1/2014) (NH/2/2014) (NH/3/2014)\n(NH/1/2014) (NH/2/2014) (NH/3/2014)',0,0,0,12000,0,0,2,'2015-06-24 15:54:26',2,'2015-06-25 05:02:59',0,'AR20141000000002',0),(4,3,3,'KOPETRO',0,69,'NH/2/2014',6,0,'4','2014-10-28',0,0,0,'Issuance 218 Notice to Kristal Salju (NH/2/2014)',0,0,0,272,0,0,2,'2015-06-24 16:41:37',2,'2015-06-25 05:02:57',0,'AR20141000000001',0),(5,2,2,'Owner\'s contribution towards capital',0,68,'hani/contribution',4,0,'ORI','2014-10-19',0,0,0,'Owner\' contribution.',0,0,0,1000,0,0,2,'2015-07-13 07:12:18',0,'2015-08-11 02:31:32',0,'AR20141000000025',0),(6,3,2,'CIMB',0,120,'NH/1A-4A/verification-15',1,0,'ORI','2015-02-11',0,0,0,'Cheque was not signed by NH. Cheque 000001 has been stopped payment and returned to NH.',0,0,0,5500,0,0,2,'2015-07-24 16:34:31',2,'2015-08-01 16:15:39',0,'AR20150200000018',0),(7,4,2,'Ricky Tan & Co',0,69,'NH/26/15/europlus',1,0,'ORI','2015-06-29',0,0,0,'For account of costs (NH/26/15/europlus)',0,0,0,1000,0,0,2,'2015-07-26 16:29:52',2,'2015-07-27 10:06:54',0,'AR20150600000007',0),(8,5,2,'null',0,69,'nh/verification/15/dep',1,0,'ORI','2015-12-01',0,1,0,'Received deposit from client',0,0,0,848,0,1,2,'2016-04-25 09:10:05',0,'2016-04-25 09:11:21',1,'',0),(9,6,2,'LER LUM ADVISORY',0,69,'nh/verification/dep/15',1,0,'ORI','2015-12-01',0,1,0,'Deposit payment',0,0,0,848,0,0,2,'2016-04-25 09:16:11',2,'2016-04-25 09:18:42',0,'AR20151200000017',0),(10,7,2,'Ler Lum Advisory Sdn Bhd',0,69,'NH/verification/15*',1,0,'ORI','2015-12-08',0,1,0,'Deposit received from client',0,0,0,636,0,0,2,'2016-04-26 01:47:54',2,'2016-04-26 01:50:15',0,'AR20151200000018',0),(11,8,2,'Ler Lum Advisory Sdn Bhd',0,69,'nh/verification/15*deposi',1,0,'ORI','2015-12-15',0,1,0,'Deposit received from client',0,0,0,212,0,0,2,'2016-04-26 01:53:00',2,'2016-04-26 01:55:39',0,'AR20151200000019',0),(12,9,2,'LER LUM ADVISORY SERVICES SDN BHD',0,69,'nh/verification/15* deposit',1,0,'ORI','2015-12-22',0,1,0,'Deposit received from client',0,0,0,1272,0,0,2,'2016-04-26 01:58:08',0,'2016-04-26 01:59:02',0,'AR20151200000020',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=16 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_receive_payment_others_detail` VALUES (1,1,1,57,'LEGAL FEES (1ST PART)',943.4,2,6,56.6,1000,2,'2015-06-14 17:12:44',2,'2015-06-18 14:39:51'),(2,1,2,122,'INSOLVENCY DEPOSIT FOR WINDING UP PETITION',3000,8,0,0,3000,2,'2015-06-16 14:48:28',2,'2015-06-18 14:39:19'),(3,2,1,254,'Received from KOPETRO Insolvency deposit for Cosmic, Covacrete & Kristal Salju',9000,43,0,0,9000,2,'2015-06-24 14:25:32',0,'0000-00-00 00:00:00'),(4,3,1,189,'Advertisement in the newspapers, gazzette in warta kerajaan, SSM and winding up search,  filing cause papers in court,traveling expenses, affirmations, printing, court attendance fee  service of documents &,miscellaneous',12000,43,0,0,12000,2,'2015-06-24 15:54:26',0,'0000-00-00 00:00:00'),(5,4,1,145,'Issuance of 218 Notice to Kristal Salju',200,43,0,0,200,2,'2015-06-24 16:41:37',2,'2015-06-24 16:50:50'),(6,4,2,164,'Service tax',12,43,0,0,12,2,'2015-06-24 16:44:11',2,'2015-06-24 16:50:55'),(7,4,3,189,'travelling, printing and Registered Post slip',60,43,0,0,60,2,'2015-06-24 16:46:31',2,'2015-06-24 16:50:59'),(8,5,1,1,'Deposit towards the opening of office account',1000,8,0,0,1000,2,'2015-07-13 07:12:19',0,'0000-00-00 00:00:00'),(9,6,1,121,'Return of cheque 000001 by Allianz bank as the cheque was not signed by NH',5500,8,0,0,5500,2,'2015-07-24 16:34:31',0,'0000-00-00 00:00:00'),(10,7,1,122,'Initial payment received for disbursements',943.4,2,6,56.6,1000,2,'2015-07-26 16:29:52',0,'0000-00-00 00:00:00'),(11,8,1,52,'Received deposit from client',848,8,0,0,848,2,'2016-04-25 09:10:05',0,'0000-00-00 00:00:00'),(12,9,1,31,'Deposit paid by client',800,2,6,48,848,2,'2016-04-25 09:16:11',0,'0000-00-00 00:00:00'),(13,10,1,31,'Deposit received from client',600,2,6,36,636,2,'2016-04-26 01:47:54',0,'0000-00-00 00:00:00'),(14,11,1,31,'Deposit received from client',200,2,6,12,212,2,'2016-04-26 01:53:00',0,'0000-00-00 00:00:00'),(15,12,1,31,'Deposit received from client',1200,2,6,72,1272,2,'2016-04-26 01:58:08',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,
  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 DEFAULT CHARSET=latin1;

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

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 DEFAULT CHARSET=latin1;

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


--
-- 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=139 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_invoice` VALUES (45,1,2,2,0,3,'INV 4/2014','2014-09-24','',2,0,20,0,1,1,0,0,'NH/42014 - Issuing LOD to PFC',0,0,0,0,0,580,2,'2015-07-13 07:23:40',0,'2015-07-13 07:58:20',0,0,'AR20140900000005',NULL,0),(46,2,2,2,0,1,'INV 8/2014','2014-09-24','',2,0,20,0,1,1,0,0,'NH/8/2014- Notice of termination of NDA between Kopetro and AMZASS',0,0,0,0,0,315,2,'2015-07-13 07:30:29',0,'2015-07-13 07:56:50',0,0,'AR20140900000006',NULL,0),(47,3,2,2,0,2,'INV','2014-10-24','',2,0,20,0,1,1,0,0,'NH/6/2014-reconstruction of catering agreement',0,0,0,0,0,4000,2,'2015-07-13 07:35:57',0,'2015-07-27 18:46:58',0,0,'AR20141000000020',NULL,0),(48,4,2,2,0,1,'INV','2014-10-24','',2,0,20,0,1,1,0,0,'NH/15/2014-vetting privacy notice and consent form under PDPA',0,0,0,0,0,2220,2,'2015-07-13 07:41:33',0,'2015-07-13 07:55:04',0,0,'AR20141000000021',NULL,0),(49,5,2,2,0,2,'INV 16/2014','2014-10-24','',2,0,20,0,1,1,0,0,'NH/16/2014- vetting agency agreement ',0,0,0,0,0,3280,2,'2015-07-13 07:46:47',0,'2015-07-13 07:52:54',0,0,'AR20141000000022',NULL,0),(50,6,2,2,0,4,'NH/1A/verification-15','2015-01-16','',2,0,20,0,1,1,0,0,'NH/1A/verification-1',0,0,0,0,0,212,2,'2015-07-23 15:20:59',0,'2015-07-24 15:35:26',0,0,'AR20150100000014',NULL,0),(51,7,2,2,0,4,'NH/2A/verification-15','2015-01-16','',2,0,20,0,1,1,0,0,'NH/2A/verification-15',0,0,0,0,0,2968,2,'2015-07-23 15:28:08',0,'2015-07-24 15:38:08',0,0,'AR20150100000015',NULL,0),(52,8,2,2,0,4,'NH/3A/verification-15','2015-01-16','',2,0,20,0,1,1,0,0,'NH/3A/verification-15',0,0,0,0,0,6360,2,'2015-07-23 15:35:31',0,'2015-07-24 15:38:08',0,0,'AR20150100000016',NULL,0),(53,9,2,2,0,4,'NH/4A/verification-15','2015-01-23','',2,0,20,0,1,1,0,0,'NH/4A/verification-15',0,0,0,0,0,1696,2,'2015-07-23 15:41:12',0,'2015-07-24 15:39:49',0,0,'AR20150100000017',NULL,0),(54,10,2,2,0,4,'NH/5A/verification-15','2015-03-09','',2,0,20,0,1,1,0,0,'NH/5A/verification-15',0,0,0,0,0,1696,2,'2015-07-23 15:47:04',0,'2015-07-24 15:46:43',0,0,'AR20150300000029',NULL,0),(55,11,2,2,0,4,'NH/6A/verification-15','2015-03-09','',2,0,20,0,1,1,0,0,'NH/6A/verification-15',0,0,0,0,0,3392,2,'2015-07-23 15:52:20',0,'2015-07-24 15:46:43',0,0,'AR20150300000030',NULL,0),(56,12,2,2,0,4,'NH/7A/verification-15','2015-02-27','',2,0,20,0,1,1,0,0,'NH/7A/verification-15',0,0,0,0,0,1484,2,'2015-07-23 15:58:00',0,'2015-07-24 15:49:50',0,0,'AR20150200000012',NULL,0),(57,13,2,2,0,4,'NH/8A/verification-15','2015-03-13','',2,0,20,0,1,1,0,0,'NH/8A/verification-15',0,0,0,0,0,3180,2,'2015-07-23 16:04:34',0,'2015-07-24 15:53:12',0,0,'AR20150300000028',NULL,0),(58,14,2,2,0,4,'NH/9A/verification-15','2015-03-06','',2,0,20,0,1,1,0,0,'NH/9A/verification-15',0,0,0,0,0,1272,2,'2015-07-23 16:10:14',0,'2015-07-24 15:51:54',0,0,'AR20150300000031',NULL,0),(59,15,2,2,0,4,'NH/10A/verification-15','2015-03-23','',2,0,20,0,1,1,0,0,'NH/10A/verification-15',0,0,0,0,0,636,2,'2015-07-23 16:15:05',0,'2015-07-24 15:55:07',0,0,'AR20150300000027',NULL,0),(60,16,2,2,0,4,'NH/11A/verification-15','2015-03-27','',2,0,20,0,1,1,0,0,'',0,0,0,0,0,424,2,'2015-07-24 13:57:54',0,'2015-07-24 15:56:36',0,0,'AR20150300000026',NULL,0),(61,17,2,2,0,4,'NH/12A/verification-15','2015-03-30','',2,0,20,0,1,1,0,0,'NH/12A/verification-15',0,0,0,0,0,1272,2,'2015-07-24 14:06:17',0,'2015-07-24 15:57:52',0,0,'AR20150300000025',NULL,0),(62,18,2,2,0,4,'NH/13A/verification-15','2015-04-23','',2,0,20,0,1,1,0,0,'NH/13A/verification-15',0,0,0,84,0,1484,2,'2015-07-24 14:13:46',0,'2015-07-24 15:59:08',0,0,'AR20150400000003',NULL,0),(63,19,2,2,0,4,'NH/14A/verification-15','2015-05-07','',2,0,20,0,1,1,0,0,'NH/14A/verification-15',0,0,0,167.99999999999997,0,2967.9999999999995,2,'2015-07-24 14:22:10',0,'2015-07-24 16:00:36',0,0,'AR20150500000001',NULL,0),(64,20,2,2,0,4,'NH/15A/verification-15','2015-06-15','',2,0,20,0,1,1,0,0,'NH/15A/verification-15',0,0,0,167.99999999999997,0,2967.9999999999995,2,'2015-07-24 14:28:44',0,'2015-07-24 16:01:43',0,0,'AR20150600000002',NULL,0),(65,21,2,2,0,4,'NH/16A/verification-15','2015-06-17','',2,0,20,0,1,1,0,0,'NH/16A/verification-15',0,0,0,108,0,1908,2,'2015-07-24 14:34:38',0,'2015-07-24 16:02:44',0,0,'AR20150600000001',NULL,0),(66,22,2,2,0,4,'NH/17A/verification-15','2015-07-03','',2,0,20,0,1,1,0,0,'NH/17A/verification-15',0,0,0,36,0,636,2,'2015-07-24 14:47:40',0,'2015-08-10 03:43:52',0,0,'AR20150700000001',NULL,0),(67,23,2,2,0,5,'NH/19/15/KELANTAN DELIGHTS','2015-04-06','',2,0,20,0,1,1,0,0,'PROFESSIONAL FEES & DISBURSEMENTS FOR STAY WINDING UP ORDER APPLICATION',0,0,0,566.04,0,10000,2,'2015-07-26 13:52:15',0,'2015-07-26 14:29:20',0,0,'AR20150400000005',NULL,0),(68,24,2,2,0,7,'NH/21/CHAN YOO HUAT/15','2015-06-24','',2,0,20,0,1,1,0,0,'Payment of disbursements (for filing,printing, travelling, miscellaneous)',0,0,0,113.21,0,2000,2,'2015-07-26 16:11:07',0,'2015-07-29 15:17:28',0,0,'AR20150600000006',NULL,0),(69,25,2,2,0,2,'NH/1/2015-kopetro','2015-01-23','',2,0,20,0,1,1,0,0,'Issuance of SD under section 218 of the companies Act, 1965 \nto Cosmic Angle Travel & Tours Sdn Bhd (NH/1/2015-kopetro)',0,0,0,0,0,272,2,'2015-07-27 14:25:16',0,'2015-07-27 18:50:22',0,0,'AR20150100000022',NULL,0),(70,26,2,2,0,2,'NH/18/2015-ANF/kopetro','2015-01-23','',2,0,20,0,1,1,0,0,'Issuance Legal Notice of demand to ANF Holidays Sdn Bhd (NH/18/2015-ANF/kopetro',0,0,0,0,0,209,2,'2015-07-27 14:34:58',0,'2015-07-27 18:50:22',0,0,'AR20150100000023',NULL,0),(71,27,2,2,0,1,'NH/3/2014/kopetro','2015-01-23','',2,0,20,0,1,1,0,0,'Issuance of SD under section 218 of the companies Act 1965\n to Covacrete Paving (M) Sdn Bhd (NH/3/2014/kopetro)',0,0,0,0,0,272,2,'2015-07-27 14:42:00',0,'2015-07-27 18:39:44',0,0,'AR20150100000024',NULL,0),(72,28,2,2,0,3,'NH/9/2014/cotrade','2015-01-29','',2,0,20,0,1,1,0,0,'Issuance of Notice of termination of contract of service between cotrade \n& KCC Engineering & Trading Sdn  Bhd (NH/9/2014/cotrade)',0,0,0,0,0,368,2,'2015-07-27 14:48:27',0,'2015-07-27 18:55:37',0,0,'AR20150100000021',NULL,0),(73,29,2,2,0,1,'NH/8/2014/kopetro','2015-03-09','',2,0,20,0,1,1,0,0,'Preparing Notice of termination of NDA dated 13 Dec 2013 (NH/8/2014)\n8 (A) /2014',0,0,0,0,0,315,2,'2015-07-27 15:02:07',0,'2015-07-27 19:01:34',0,0,'AR20150300000040',NULL,0),(74,30,2,2,0,3,'NH/4/2014/kopetro','2015-03-09','',2,0,20,0,1,1,0,0,'Preparing writ of summons against PFC [4(A)/2015]',0,0,0,0,0,23400,2,'2015-07-27 15:12:22',0,'2015-07-27 18:58:56',0,0,'AR20150300000041',NULL,0),(75,31,2,2,0,3,'NH/9/2014/cotrade','2015-03-10','',2,0,20,0,1,1,0,0,'Preparing writ of summons, filing and service of the same. \nAttending the same in the court (NH/9/2014/cotrade)9A',0,0,0,0,0,10000,2,'2015-07-27 17:48:36',0,'2015-07-27 18:58:56',0,0,'AR20150300000039',NULL,0),(76,32,2,2,0,2,'NH/1/2014/kopetro','2015-01-23','',2,0,20,0,1,1,0,0,'Advising from time to time the winding up procedures and \ninvolved in negotiation of settlement (1A/2015)',0,0,0,0,0,2500,2,'2015-07-27 18:10:12',0,'2015-07-27 18:53:26',0,0,'AR20150100000025',NULL,0),(77,33,2,2,0,1,'NH/3/2014-kopetro','2015-02-12','',2,0,20,0,1,1,0,0,'Advising from time to time of the winding up procedures and finaising the matter. [3(A)]/2015]',0,0,0,0,0,2500,2,'2015-07-27 18:23:17',0,'2015-07-27 19:03:10',0,0,'AR20150200000013',NULL,0),(78,34,2,2,0,2,'NH/2/2014/kopetro','2015-02-12','',2,0,20,0,1,1,0,0,'Advising from time to time the winding up procedures and \nfinalising the matter [2(A)/2015]',0,0,0,0,0,2500,2,'2015-07-27 18:28:21',0,'2015-07-27 18:53:26',0,0,'AR20150200000014',NULL,0),(79,35,2,2,0,3,'9/14/CSB','2015-05-10','',2,0,20,0,1,1,0,0,'Attending court and obtainng Judgment In Default of appearance against the Defendant (KCC)\nNH/9/14/cotrade (9/14/CSB)',0,0,0,613.5600000000001,10839.56,10839.56,2,'2015-07-27 19:33:09',0,'2015-07-27 19:40:01',0,0,'AR20150500000003',NULL,0),(80,36,2,2,0,9,'NH/25/NURUL-T/DEED/15','2015-06-06','',2,0,20,0,1,1,0,0,'Preparing Trust Deed (NH/25/NURUL-T/DEED/15) & registration in the Kl Land Office',0,0,0,80.4,1420.4,1420.4,2,'2015-07-29 05:14:47',0,'2015-07-29 14:22:28',0,0,'AR20150600000010',NULL,0),(81,37,2,2,0,1,'NH/3/14/kopetro','2015-05-10','',2,0,20,0,1,1,0,0,'Preparing POD and filed the same in the KL Insolvency (NH/3/14/kopetro)- 3(B)/14',0,0,0,64.74000000000001,0,1143.7399999999998,2,'2015-07-29 05:52:45',0,'2015-07-29 14:16:12',0,0,'AR20150500000004',NULL,0),(82,38,2,2,0,1,'NH/5/RAINSTAR/KOP/15','2015-05-10','',2,0,20,0,1,1,0,0,'Preparing SIC for public examination under companies Act (NH/5/RAINSTAR/KOP/15) - 5/R/15',0,0,0,606,0,10706,2,'2015-07-29 06:01:14',0,'2015-07-29 14:16:12',0,0,'AR20150500000005',NULL,0),(83,39,2,2,0,2,'NH/18/15/ANF','2015-05-10','',2,0,20,0,1,1,0,0,'Preparing POD (ANF Holidays Sdn Bhd) NH/18/15/ANF - 18(B)/15',0,0,0,64.74000000000001,0,1143.7399999999998,2,'2015-07-29 13:56:24',0,'2015-07-29 14:16:57',0,0,'AR20150500000006',NULL,0),(84,40,2,2,0,1,'NH/14/DIN\'S TRADING/15','2015-05-10','',2,0,20,0,1,1,0,0,'Conducting SSM search and Form 34 search at company commission\n(NH/14/DIN\'S TRADING/15)- 14/D/15',0,0,0,9.9,0,174.9,2,'2015-07-29 14:04:26',0,'2015-07-29 14:16:12',0,0,'AR20150500000007',NULL,0),(85,41,2,2,0,1,'NH/10/SMART WHEELS INTELLIGENCE ','2015-05-10','',2,0,20,0,1,1,0,0,'Conducting ssm search and form 34 at ssm  (NH/10/SMART WHEELS INTELLIGENCE SDN BHD/15)\n10/S/15',0,0,0,6.18,0,109.17999999999999,2,'2015-07-29 14:10:35',0,'2015-07-29 14:16:12',0,0,'AR20150500000008',NULL,0),(86,42,2,2,0,10,'NH/11/15/fast airfreight','2015-04-03','',2,0,20,0,1,1,0,0,'Preparing application for stay of winding up & filing of the same (NH/11/15/fast airfreight)',0,0,0,424.53,0,7500,2,'2015-07-29 14:33:47',0,'2015-07-29 14:35:47',0,0,'AR20150400000007',NULL,0),(87,43,2,2,0,10,'NH/11/15/fast airfreight','2015-06-10','',2,0,20,0,1,1,0,0,'Attending hearing of the stay application in the court\n& obtaining order in terms  (NH/11/15/fast airfreight)',0,0,0,424.53,0,7500,2,'2015-07-29 14:39:49',0,'2015-07-29 15:13:05',0,0,'AR20150600000011',NULL,0),(88,44,2,2,0,2,'NH/2/2014/kopetro','2015-07-29','',2,0,20,0,1,1,0,0,'Preparing POD to be filed against Kristal Salju (NH/2/2014/kopetro) 2(B) 2015',0,0,0,64.74000000000001,0,1143.7399999999998,2,'2015-08-01 15:22:23',0,'2015-10-27 04:20:33',0,0,'AR20150700000002',NULL,0),(89,45,2,2,0,3,'NH/9/14/cotrade','2015-06-26','',2,0,20,0,1,1,0,0,'NH/9/14/cotrade- Issuing Judgment Debtor\'s summons against the directors',0,0,0,151.68,2679.68,2679.68,2,'2015-08-04 16:05:05',0,'2015-08-04 16:10:32',0,0,'AR20150600000014',NULL,0),(90,46,2,2,0,4,'NH/18A/verification/15','2015-07-14','',2,0,20,0,1,1,0,0,'NH/18A/verification/15- Vetting and verification of ownership',0,0,0,48,0,848,2,'2015-08-10 03:39:23',0,'2015-08-10 03:42:21',0,0,'AR20150700000003',NULL,0),(91,47,2,2,0,11,'INV/NH/36/DA/LA/15','2015-09-29','',2,0,20,0,1,1,0,0,'APPLICATION FOR FARAID CERTIFICATE & THE APPOINTMENT OF DATO AZRI AS THE ADMINISTRATOR OF HIS LATE FATHER\n(NH/36/DA/LA/15)',0,0,0,988.3000000000001,17460,17460,2,'2015-09-29 07:38:20',0,'2015-09-29 08:01:00',0,0,'AR20150900000001',NULL,0),(92,48,2,2,0,1,'NH/27/prospect/15','2015-08-18','NH/27/prospect/15',2,0,20,0,1,1,0,0,'Conducting ssm search, form 34 search and winding up search at company commission',0,0,0,9.9,0,174.9,2,'2015-10-27 03:57:21',0,'2015-10-27 04:04:43',0,0,'AR20150800000001',NULL,0),(93,49,2,2,0,12,'NH/37/DA/HB/C1513/15','2015-09-09','NH/37/DA/HB/C1513/15',2,0,20,0,1,1,0,0,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',0,0,0,424.53,0,7500,2,'2015-10-27 04:35:11',0,'2015-10-27 04:38:45',0,0,'AR20150900000004',NULL,0),(94,50,2,2,0,12,'NH/38/DA/L-12-VIP-11/HB/15','2015-09-09','',2,0,20,0,1,1,0,0,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',0,0,0,424.53,0,7500,2,'2015-10-27 04:41:35',0,'2015-10-27 04:44:58',0,0,'AR20150900000006',NULL,0),(95,51,2,2,0,4,'NH/19A/verification-15','2015-09-09','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership of Tenaga Gagah Sdn Bhd (in liquidation)',0,0,0,312,0,5512,2,'2015-10-27 04:56:13',0,'2015-10-27 05:00:03',0,0,'AR20150900000008',NULL,0),(96,52,2,2,0,13,'NH/13/15/amboss','2015-08-01','',2,0,20,0,1,1,0,0,'Preparing stay winding up application and be a counsel for negotiation for Perusahaan Amboss Sdn Bhd',0,0,0,707.55,0,12500,2,'2015-10-29 08:46:15',0,'2015-10-29 08:50:45',0,0,'AR20150800000002',NULL,0),(97,53,2,2,0,4,'NH/20A/verification-15','2015-07-09','NH/20A/verification-15',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,72,0,1272,2,'2015-10-29 09:28:23',0,'2015-10-29 09:30:53',0,0,'AR20150700000006',NULL,0),(98,54,2,2,0,4,'NH/22A/verification-15','2015-06-24','NH/22A/verification-15',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,168,0,2968,2,'2015-10-29 09:47:30',0,'2015-10-29 09:49:51',0,0,'AR20150600000015',NULL,0),(99,55,2,2,0,4,'INV','2015-11-20','',2,0,20,0,1,1,0,0,'Render service for Verification of ownership ',0,0,0,36,0,636,2,'2015-12-30 14:02:44',0,'2015-12-30 14:09:03',0,0,'AR20151100000001',NULL,0),(100,56,2,2,0,11,'INV nh/36/azri/15','2015-10-12','',2,0,20,0,1,1,0,0,'Preparing and conducting hearing for faraidh application',0,0,0,494.15,0,8730,2,'2015-12-30 15:48:09',0,'2015-12-30 15:50:00',0,0,'AR20151000000002',NULL,0),(101,57,2,2,0,4,'INV/24A/verification/15','2015-12-02','',2,0,20,0,1,1,0,0,'verification of ownership and vetting documents                                 ',0,0,0,12,0,212,2,'2015-12-30 16:04:09',0,'2015-12-30 16:05:47',0,0,'AR20151200000001',NULL,0),(102,58,2,2,0,1,'INV/NH/vetting kopetro aggt/15','2015-11-02','vetting.agreement',2,0,20,0,1,1,0,0,'Vetting various kopetro\'s agreement',0,0,0,222,0,3922,2,'2015-12-30 16:28:13',0,'2015-12-30 16:31:46',0,0,'AR20151100000003',NULL,0),(103,59,2,2,0,14,'INV/nh/66A/shazwan/15','2015-11-12','',2,0,20,0,1,1,0,0,'Preparing and filing of stay order in the KL High Court',0,0,0,169.81,0,3000,2,'2015-12-30 16:46:01',0,'2015-12-30 16:54:44',0,0,'AR20151100000005',NULL,0),(104,60,2,2,0,15,'INV/NH/4/2014/Cotrade','2015-11-12','',2,0,20,0,1,1,0,0,'Filing Petition for winding up BUT has withdrawn it after both parties have entered into settlement',0,0,0,566.04,0,10000,2,'2015-12-30 17:15:01',0,'2015-12-30 17:16:19',0,0,'AR20151100000007',NULL,0),(105,61,2,2,0,4,'INV/NH/26A/verification/15','2015-11-17','',2,0,20,0,1,1,0,0,'Vetting agreement & verification of ownership',0,0,0,24,0,424,2,'2015-12-30 17:23:50',0,'2015-12-30 17:29:26',0,0,'AR20151100000009',NULL,0),(106,62,2,2,0,1,'INV25/JDS/15','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court ',0,0,0,174,0,3074,2,'2016-01-29 06:08:57',0,'2016-01-29 07:36:45',0,0,'AR20151200000003',NULL,0),(107,63,2,2,0,1,'INV17/JDS/15 ','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein.\nNH/65/umi nadrah/trib-kop/15',0,0,0,180,0,3180,2,'2016-01-29 07:40:25',0,'2016-01-29 07:44:39',0,0,'AR20151200000004',NULL,0),(108,64,2,2,0,1,'INV15/JDS/15','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein (nh/64/maziah/trib-kop/15)\n',0,0,0,177,0,3127,2,'2016-01-29 07:48:58',0,'2016-01-29 07:51:05',0,0,'AR20151200000005',NULL,0),(109,65,2,2,0,1,'INV13/JDS/15','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/58/zamri miskan/trib-kop/15)\n',0,0,0,201,0,3551,2,'2016-01-29 07:54:00',0,'2016-01-29 07:57:19',0,0,'AR20151200000006',NULL,0),(110,66,2,2,0,1,'INV14/JDS/15 (NH/55/mohd asrul-t','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/55/mohd asrul/trib-kop/15)\n\n',0,0,0,201,0,3551,2,'2016-01-29 08:01:46',0,'2016-01-29 08:05:27',0,0,'AR20151200000007',NULL,0),(111,67,2,2,0,1,'INV11/JDS/15 (nh/62/zuhri/trib-k','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/62/zuhri/trib-kop/15)\n',0,0,0,81,0,1431,2,'2016-01-29 08:08:24',0,'2016-01-29 08:16:55',0,0,'AR20151200000008',NULL,0),(112,68,2,2,0,1,'INV16A/JDS/15 (nh/57/firdaus-tri','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/57/firdaus/trib-kop/15)\n',0,0,0,141,0,2491,2,'2016-01-29 08:19:57',0,'2016-01-29 08:24:48',0,0,'AR20151200000009',NULL,0),(113,69,2,2,0,1,'INV24/JDS/15 (nh/50/mior/trib-ko','2015-12-28','',2,0,20,0,1,1,0,0,'\nPreparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/50/mior/trib-kop/15)\n',0,0,0,84,0,1484,2,'2016-01-29 08:27:16',0,'2016-01-29 08:29:21',0,0,'AR20151200000010',NULL,0),(114,70,2,2,0,1,'INV21/JDS/15 (nh/59/abd ghani/tr','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/59/abd ghani/trib-kop/15)\n',0,0,0,177,0,3127,2,'2016-01-29 09:01:08',0,'2016-01-29 09:02:58',0,0,'AR20151200000011',NULL,0),(115,71,2,2,0,1,'INV20/JDS/15 (nh/52/fodzi/trib-k','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein (nh/52/fodzi-trib-kop/15)\n',0,0,0,81,0,1431,2,'2016-01-29 09:06:16',0,'2016-01-29 09:07:28',0,0,'AR20151200000012',NULL,0),(116,72,2,2,0,1,'INV29/pod/15 (NH/43/Abd razak/po','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur \nAnd generally to all other matters not specifically mentioned herein. (nh/43/abd razak/pod/15)\n',0,0,0,64.74,0,1143.74,2,'2016-01-29 09:11:32',0,'2016-01-29 09:13:18',0,0,'AR20151200000013',NULL,0),(117,73,2,2,0,1,'INV12/JDS/15 (nh/53/mohd nazri-t','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court \nAnd generally to all other matters not specifically mentioned herein. (nh/53/mohd nazri-trib-kop/15)\n',0,0,0,201,0,3551,2,'2016-01-29 09:16:47',0,'2016-01-29 09:18:22',0,0,'AR20151200000014',NULL,0),(118,74,2,2,0,1,'INV28/pod/15 (nh/71/daniel jerom','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur \nAnd generally to all other matters not specifically mentioned herein.(nh/71/daniel jerome/pod/15)\n',0,0,0,64.74,0,1143.74,2,'2016-01-29 09:22:39',0,'2016-01-29 09:25:47',0,0,'AR20151200000015',NULL,0),(119,75,2,2,0,1,'INV27/pod/15 (nh/70/azlan/pod-15','2015-12-28','',2,0,20,0,1,1,0,0,'Preparing Proof of debt and attending to the filing in Insolvency Kuantan \nAnd generally to all other matters not specifically mentioned herein. (nh/70/azlan-pod/15)\n',0,0,0,64.74,0,1143.74,2,'2016-01-29 09:29:09',0,'2016-01-29 09:30:25',0,0,'AR20151200000016',NULL,0),(120,76,2,2,0,4,'INV/30/Vverification/16','2016-01-04','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,48,0,848,2,'2016-04-21 20:40:46',0,'2016-04-21 20:43:15',0,0,'AR20160100000015',NULL,0),(121,77,2,2,0,4,'INV/31/verification/16','2016-01-04','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,12,0,212,2,'2016-04-23 00:07:43',0,'2016-04-23 00:10:17',0,0,'AR20160100000017',NULL,0),(122,78,2,2,0,4,'INV/32/verification/16','2016-01-04','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,36,0,636,2,'2016-04-23 00:13:22',0,'2016-04-23 00:14:40',0,0,'AR20160100000019',NULL,0),(123,79,2,2,0,4,'INV/33/verification/16','2016-01-08','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,72,0,1272,2,'2016-04-23 00:16:27',0,'2016-04-23 00:18:33',0,0,'AR20160100000021',NULL,0),(124,80,2,2,0,4,'INV/34/verification/16','2016-01-21','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,24,0,424,2,'2016-04-23 00:20:27',0,'2016-04-23 00:39:35',0,0,'AR20160100000023',NULL,0),(125,81,2,2,0,4,'INV/35/verification/16','2016-01-21','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,24,0,424,2,'2016-04-23 00:22:19',0,'2016-04-23 00:39:36',0,0,'AR20160100000024',NULL,0),(126,82,2,2,0,4,'INV/36/verification/16','2016-02-03','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership for Ler Lum',0,0,0,12,0,212,2,'2016-04-23 00:23:45',0,'2016-04-23 00:25:48',0,0,'AR20160200000001',NULL,0),(127,83,2,2,0,4,'INV/37/verification/16','2016-02-03','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,48,0,848,2,'2016-04-23 14:18:47',0,'2016-04-23 14:20:16',0,0,'AR20160200000003',NULL,0),(128,84,2,2,0,4,'INV/38/verification/16','2016-02-29','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,48,0,848,2,'2016-04-23 14:22:06',0,'2016-04-23 14:24:05',0,0,'AR20160200000005',NULL,0),(129,85,2,2,0,4,'INV/39/verification/16','2016-02-29','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,60,0,1060,2,'2016-04-23 14:25:54',0,'2016-04-23 14:27:20',0,0,'AR20160200000007',NULL,0),(130,86,2,2,0,4,'INV/40/verification/16','2016-03-10','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,12,0,212,2,'2016-04-23 14:29:19',0,'2016-04-23 14:30:43',0,0,'AR20160300000001',NULL,0),(131,87,2,2,0,4,'INV/41/verification/16','2016-03-21','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,96,0,1696,2,'2016-04-23 14:34:49',0,'2016-04-23 14:36:08',0,0,'AR20160300000003',NULL,0),(132,88,2,2,0,16,'NH/Star Everest Sdn Bhd/wup/16','2016-03-31','',2,0,20,0,1,1,0,0,'Requesting deposit for filing winding up petition at Insolvency KL',0,0,0,0,0,3000,2,'2016-04-23 14:47:29',0,'2016-04-23 14:51:10',0,0,'AR20160300000005',NULL,0),(133,89,2,2,0,17,'NH/Progresif Daya/wup/16','2016-03-31','',2,0,20,0,1,1,0,0,'Requesting deposit for filing winding up petition at Insolvency KL',0,0,0,0,0,3000,2,'2016-04-23 14:49:54',0,'2016-04-23 14:51:54',0,0,'AR20160300000006',NULL,0),(134,90,2,2,0,4,'INV/verification/16','2015-12-01','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership (Ler Lum matter)',0,0,0,48,848,848,2,'2016-04-26 01:30:10',0,'2016-04-26 01:31:50',1,1,'',NULL,0),(135,91,2,2,0,4,'INV/verification/16*','2016-01-04','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,48,848,848,2,'2016-04-26 01:34:11',0,'2016-04-26 01:34:55',0,0,'AR20160100000026',NULL,0),(136,92,2,2,0,4,'INV/verification/16*','2016-01-08','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,36,636,636,2,'2016-04-26 01:36:51',0,'2016-04-26 01:37:34',0,0,'AR20160100000027',NULL,0),(137,93,2,2,0,4,'INV/verification/16*','2016-01-15','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,12,212,212,2,'2016-04-26 01:40:00',0,'2016-04-26 01:40:34',0,0,'AR20160100000028',NULL,0),(138,94,2,2,0,4,'INV/verification/16','2016-01-22','',2,0,20,0,1,1,0,0,'Vetting documents and verification of ownership',0,0,0,72,1272,1272,2,'2016-04-26 01:42:43',0,'2016-04-26 01:43:17',0,0,'AR20160100000029',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=336 DEFAULT CHARSET=latin1;

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

INSERT INTO `comp_sales_invoice_charges` VALUES (84,45,1,57,'Issuing LOD to PFC',500,8,0,0,500,0,0,0,0,2,'2015-07-13 07:23:40',0,'0000-00-00 00:00:00'),(85,45,2,44,'Service tax',30,8,0,0,30,0,0,0,0,2,'2015-07-13 07:26:09',0,'0000-00-00 00:00:00'),(86,45,3,256,'Printing charges',15,8,0,0,15,0,0,0,0,2,'2015-07-13 07:26:36',0,'0000-00-00 00:00:00'),(87,45,4,257,'Miscellaneous charges',15,8,0,0,15,0,0,0,0,2,'2015-07-13 07:27:14',0,'0000-00-00 00:00:00'),(88,45,5,97,'Travel to post office, client\'s office',20,8,0,0,20,0,0,0,0,2,'2015-07-13 07:27:57',0,'0000-00-00 00:00:00'),(89,46,1,57,'Issuing Notice of termination of NDA between Kopetro and Amzass',250,8,0,0,250,0,0,0,0,2,'2015-07-13 07:30:29',0,'0000-00-00 00:00:00'),(90,46,2,44,'Service tax',15,8,0,0,15,0,0,0,0,2,'2015-07-13 07:31:01',0,'0000-00-00 00:00:00'),(91,46,3,256,'Printing charges',10,8,0,0,10,0,0,0,0,2,'2015-07-13 07:31:28',0,'0000-00-00 00:00:00'),(92,46,4,97,'Travel charges to post office and client\'s office',25,8,0,0,25,0,0,0,0,2,'2015-07-13 07:32:32',0,'0000-00-00 00:00:00'),(93,46,5,257,'Miscellaneous charges',15,8,0,0,15,0,0,0,0,2,'2015-07-13 07:33:10',0,'0000-00-00 00:00:00'),(94,47,1,57,'drafting, preparing n finalising the catering agreement ',3700,8,0,0,3700,0,0,0,0,2,'2015-07-13 07:35:57',0,'0000-00-00 00:00:00'),(95,47,2,44,'service tax',222,8,0,0,222,0,0,0,0,2,'2015-07-13 07:36:31',0,'0000-00-00 00:00:00'),(96,47,3,256,'printing charges',26,8,0,0,26,0,0,0,0,2,'2015-07-13 07:37:04',0,'0000-00-00 00:00:00'),(97,47,4,97,'travel to post office, client\'s office',26,8,0,0,26,0,0,0,0,2,'2015-07-13 07:37:58',0,'0000-00-00 00:00:00'),(98,47,5,257,'miscellaneous',26,8,0,0,26,0,0,0,0,2,'2015-07-13 07:38:27',0,'0000-00-00 00:00:00'),(99,48,1,57,'advising client, vetting the privacy notice and consent form',2000,0,0,0,2000,0,0,0,0,2,'2015-07-13 07:41:33',0,'0000-00-00 00:00:00'),(100,48,2,44,'Service tax',120,8,0,0,120,0,0,0,0,2,'2015-07-13 07:42:01',0,'0000-00-00 00:00:00'),(101,48,3,256,'Printing charges',30,8,0,0,30,0,0,0,0,2,'2015-07-13 07:42:26',0,'0000-00-00 00:00:00'),(102,48,4,97,'Travel to client\'s office few times',40,8,0,0,40,0,0,0,0,2,'2015-07-13 07:43:07',0,'0000-00-00 00:00:00'),(103,48,5,257,'miscellaneous',30,8,0,0,30,0,0,0,0,2,'2015-07-13 07:43:30',0,'0000-00-00 00:00:00'),(104,49,1,57,'vetting agency agreement najd',3000,8,0,0,3000,0,0,0,0,2,'2015-07-13 07:46:47',0,'0000-00-00 00:00:00'),(105,49,2,44,'service tax',180,8,0,0,180,0,0,0,0,2,'2015-07-13 07:47:15',0,'0000-00-00 00:00:00'),(106,49,3,256,'printing charges',30,8,0,0,30,0,0,0,0,2,'2015-07-13 07:47:44',0,'0000-00-00 00:00:00'),(107,49,4,97,'travel to client\'s office few times',40,8,0,0,40,0,0,0,0,2,'2015-07-13 07:48:21',0,'0000-00-00 00:00:00'),(108,49,5,257,'miscellaneous charges',30,8,0,0,30,0,0,0,0,2,'2015-07-13 07:49:15',0,'0000-00-00 00:00:00'),(109,50,1,57,'vetting/verification of ownership',150,8,0,0,150,0,0,0,0,2,'2015-07-23 15:20:59',0,'0000-00-00 00:00:00'),(110,50,2,44,'service tax payable',9,8,0,0,9,0,0,0,0,2,'2015-07-23 15:21:44',0,'0000-00-00 00:00:00'),(111,50,3,256,'Printing charges',53,8,0,0,53,0,0,0,0,2,'2015-07-23 15:22:34',0,'0000-00-00 00:00:00'),(112,51,1,57,'vetting/verification of ownership',2500,8,0,0,2500,0,0,0,0,2,'2015-07-23 15:28:08',0,'0000-00-00 00:00:00'),(113,51,2,44,'service tax',150,8,0,0,150,0,0,0,0,2,'2015-07-23 15:28:47',0,'0000-00-00 00:00:00'),(114,51,3,256,'Printing charges',200,8,0,0,200,0,0,0,0,2,'2015-07-23 15:29:32',0,'0000-00-00 00:00:00'),(115,51,4,97,'travelling charges to client\'s office and others',100,8,0,0,100,0,0,0,0,2,'2015-07-23 15:30:34',0,'0000-00-00 00:00:00'),(116,51,5,257,'miscellaneous',18,0,0,0,18,0,0,0,0,2,'2015-07-23 15:31:02',0,'0000-00-00 00:00:00'),(117,52,1,57,'vetting/verification of ownership',5800,8,0,0,5800,0,0,0,0,2,'2015-07-23 15:35:32',0,'0000-00-00 00:00:00'),(118,52,2,44,'service tax',348,8,0,0,348,0,0,0,0,2,'2015-07-23 15:36:26',0,'0000-00-00 00:00:00'),(119,52,3,256,'Printing charges',212,8,0,0,212,0,0,0,0,2,'2015-07-23 15:37:17',0,'0000-00-00 00:00:00'),(120,53,1,57,'vetting/verification of ownership',1300,8,0,0,1300,0,0,0,0,2,'2015-07-23 15:41:12',0,'0000-00-00 00:00:00'),(121,53,2,44,'service tax',78,8,0,0,78,0,0,0,0,2,'2015-07-23 15:41:56',0,'0000-00-00 00:00:00'),(122,53,3,256,'Printing charges',250,0,0,0,250,0,0,0,0,2,'2015-07-23 15:43:01',0,'0000-00-00 00:00:00'),(123,53,4,257,'miscellaneous charges',68,8,0,0,68,0,0,0,0,2,'2015-07-23 15:44:04',0,'0000-00-00 00:00:00'),(124,54,1,57,'vetting/verification of ownership',1300,8,0,0,1300,0,0,0,0,2,'2015-07-23 15:47:04',0,'0000-00-00 00:00:00'),(125,54,2,44,'service tax',78,8,0,0,78,0,0,0,0,2,'2015-07-23 15:47:45',0,'0000-00-00 00:00:00'),(126,54,3,256,'printing charges',150,0,0,0,150,0,0,0,0,2,'2015-07-23 15:48:23',0,'0000-00-00 00:00:00'),(127,54,4,257,'miscellaneous charges',168,8,0,0,168,0,0,0,0,2,'2015-07-23 15:49:51',0,'0000-00-00 00:00:00'),(128,55,1,57,'vetting/verification of ownership',2800,8,0,0,2800,0,0,0,0,2,'2015-07-23 15:52:20',0,'0000-00-00 00:00:00'),(129,55,2,44,'service tax',168,8,0,0,168,0,0,0,0,2,'2015-07-23 15:52:59',0,'0000-00-00 00:00:00'),(130,55,3,256,'Printing charges',250,8,0,0,250,0,0,0,0,2,'2015-07-23 15:54:02',0,'0000-00-00 00:00:00'),(131,55,4,97,'Travelling expenses to client\'s office and others',100,8,0,0,100,0,0,0,0,2,'2015-07-23 15:55:22',0,'0000-00-00 00:00:00'),(132,55,5,257,'miscellaneous charges',74,8,0,0,74,0,0,0,0,2,'2015-07-23 15:55:55',0,'0000-00-00 00:00:00'),(133,56,1,57,'vetting/verification of ownership',1000,8,0,0,1000,0,0,0,0,2,'2015-07-23 15:58:00',0,'0000-00-00 00:00:00'),(134,56,2,44,'service tax',60,8,0,0,60,0,0,0,0,2,'2015-07-23 15:58:36',0,'0000-00-00 00:00:00'),(135,56,3,256,'printing charges',200,8,0,0,200,0,0,0,0,2,'2015-07-23 15:59:27',0,'0000-00-00 00:00:00'),(136,56,4,97,'Travelling expenses ',160,8,0,0,160,0,0,0,0,2,'2015-07-23 16:01:15',0,'0000-00-00 00:00:00'),(137,56,5,257,'miscellaneous charges',64,8,0,0,64,0,0,0,0,2,'2015-07-23 16:01:44',0,'0000-00-00 00:00:00'),(138,57,1,57,'vetting/verification of ownership',2600,0,0,0,2600,0,0,0,0,2,'2015-07-23 16:04:35',0,'0000-00-00 00:00:00'),(139,57,2,44,'service tax',156,8,0,0,156,0,0,0,0,2,'2015-07-23 16:05:13',0,'0000-00-00 00:00:00'),(140,57,3,256,'Printing charges',200,8,0,0,200,0,0,0,0,2,'2015-07-23 16:05:53',0,'0000-00-00 00:00:00'),(141,57,4,97,'Travelling expenses',130,8,0,0,130,0,0,0,0,2,'2015-07-23 16:06:49',0,'0000-00-00 00:00:00'),(142,57,5,257,'miscellaneous charges',94,8,0,0,94,0,0,0,0,2,'2015-07-23 16:07:56',0,'0000-00-00 00:00:00'),(143,58,1,57,'vetting/verification of ownership',1000,8,0,0,1000,0,0,0,0,2,'2015-07-23 16:10:14',0,'0000-00-00 00:00:00'),(144,58,2,44,'service tax',60,8,0,0,60,0,0,0,0,2,'2015-07-23 16:10:40',0,'0000-00-00 00:00:00'),(145,58,3,256,'Printing charges',100,8,0,0,100,0,0,0,0,2,'2015-07-23 16:11:12',0,'0000-00-00 00:00:00'),(146,58,4,97,'Travelling expenses',112,8,0,0,112,0,0,0,0,2,'2015-07-23 16:12:12',0,'0000-00-00 00:00:00'),(147,59,1,57,'vetting/verification of ownership',250,8,0,0,250,0,0,0,0,2,'2015-07-23 16:15:05',0,'0000-00-00 00:00:00'),(148,59,2,44,'service tax',15,8,0,0,15,0,0,0,0,2,'2015-07-23 16:16:01',0,'0000-00-00 00:00:00'),(149,59,3,256,'Printing charges',200,8,0,0,200,0,0,0,0,2,'2015-07-23 16:17:04',2,'2015-07-23 16:20:10'),(150,59,4,97,'Travelling expenses',150,8,0,0,150,0,0,0,0,2,'2015-07-23 16:18:02',0,'0000-00-00 00:00:00'),(151,59,5,257,'miscellaneous',21,8,0,0,21,0,0,0,0,2,'2015-07-23 16:19:00',2,'2015-07-23 16:21:11'),(152,60,1,57,'vrtting/verification of ownership',350,8,0,0,350,0,0,0,0,2,'2015-07-24 13:57:55',0,'0000-00-00 00:00:00'),(153,60,2,44,'service tax',21,8,0,0,21,0,0,0,0,2,'2015-07-24 14:00:13',0,'0000-00-00 00:00:00'),(154,60,3,256,'Printing charges',53,8,0,0,53,0,0,0,0,2,'2015-07-24 14:01:11',0,'0000-00-00 00:00:00'),(155,61,1,57,'vetting/verification of ownership',1000,8,0,0,1000,0,0,0,0,2,'2015-07-24 14:06:17',0,'0000-00-00 00:00:00'),(156,61,2,44,'service tax',60,8,0,0,60,0,0,0,0,2,'2015-07-24 14:06:44',0,'0000-00-00 00:00:00'),(157,61,3,256,'Printing charges ',160,8,0,0,160,0,0,0,0,2,'2015-07-24 14:07:41',0,'0000-00-00 00:00:00'),(158,61,4,97,'Travelling expenses to client\'s office',30,8,0,0,30,0,0,0,0,2,'2015-07-24 14:08:58',0,'0000-00-00 00:00:00'),(159,61,5,257,'miscellaneous charges',22,8,0,0,22,0,0,0,0,2,'2015-07-24 14:09:28',0,'0000-00-00 00:00:00'),(160,62,1,57,'vetting/verification of ownership',1100,2,6,66,1166,0,0,0,0,2,'2015-07-24 14:13:46',0,'0000-00-00 00:00:00'),(161,62,2,256,'Printing charges',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-24 14:14:40',0,'0000-00-00 00:00:00'),(162,62,3,97,'travelling expenses to client\'s office',80,2,6,4.8,84.8,0,0,0,0,2,'2015-07-24 14:17:56',0,'0000-00-00 00:00:00'),(163,62,4,257,'miscellaneous',100,2,6,6,106,0,0,0,0,2,'2015-07-24 14:18:36',0,'0000-00-00 00:00:00'),(164,63,1,57,'vetting/verification of ownership',2500,2,6,150,2650,0,0,0,0,2,'2015-07-24 14:22:10',0,'0000-00-00 00:00:00'),(165,63,2,256,'Printing charges',170,2,6,10.2,180.2,0,0,0,0,2,'2015-07-24 14:23:08',0,'0000-00-00 00:00:00'),(166,63,3,97,'Travelling expenses to client\'s office',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-24 14:24:34',0,'0000-00-00 00:00:00'),(167,63,4,257,'miscellaneous',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-24 14:24:59',0,'0000-00-00 00:00:00'),(168,64,1,57,'vetting/verification of ownership',2500,2,6,150,2650,0,0,0,0,2,'2015-07-24 14:28:45',0,'0000-00-00 00:00:00'),(169,64,2,256,'Printing charges',170,2,6,10.2,180.2,0,0,0,0,2,'2015-07-24 14:30:04',0,'0000-00-00 00:00:00'),(170,64,3,97,'Travelling expenses to the client\'s office',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-24 14:32:12',0,'0000-00-00 00:00:00'),(171,64,4,257,'miscellaneous charges',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-24 14:32:37',0,'0000-00-00 00:00:00'),(172,65,1,57,'vetting/verification of ownership',1500,2,6,90,1590,0,0,0,0,2,'2015-07-24 14:34:38',0,'0000-00-00 00:00:00'),(173,65,2,256,'Printing charges',170,2,6,10.2,180.2,0,0,0,0,2,'2015-07-24 14:35:02',0,'0000-00-00 00:00:00'),(174,65,3,97,'Travelling expenses to the client\'s office',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-24 14:35:55',0,'0000-00-00 00:00:00'),(175,65,4,257,'miscellaneous',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-24 14:36:29',0,'0000-00-00 00:00:00'),(176,66,1,57,'vetting/verification of ownership',500,2,6,30,530,0,0,0,0,2,'2015-07-24 14:47:40',0,'0000-00-00 00:00:00'),(177,66,2,256,'Printing charges',100,2,6,6,106,0,0,0,0,2,'2015-07-24 14:48:32',0,'0000-00-00 00:00:00'),(178,67,1,57,'Preparing application to stay winding up order of Kelantan Delights Sdn Bhd',8500,2,6,510,9010,0,0,0,0,2,'2015-07-26 13:52:15',0,'0000-00-00 00:00:00'),(179,67,2,256,'Printing charges',100,2,6,6,106,0,0,0,0,2,'2015-07-26 13:58:57',0,'0000-00-00 00:00:00'),(180,67,3,97,'Travelling expenses to meet client & Insolvency, court attendance',250,2,6,15,265,0,0,0,0,2,'2015-07-26 14:02:26',2,'2015-07-26 14:14:28'),(181,67,4,259,'Filing of Notice of application,perakuan segera, affidavits, Perintah, Notis perlantikan peguamcara',326,2,6,19.56,345.56,0,0,0,0,2,'2015-07-26 14:10:48',2,'2015-07-26 14:12:20'),(182,67,5,257,'miscellaneous',100,2,6,6,106,0,0,0,0,2,'2015-07-26 14:12:59',0,'0000-00-00 00:00:00'),(183,67,6,91,'telephone charges',50,2,6,3,53,0,0,0,0,2,'2015-07-26 14:14:03',0,'0000-00-00 00:00:00'),(184,67,7,260,'Affirmation of affidavits',107.96,2,6,6.48,114.44,0,0,0,0,2,'2015-07-26 14:18:59',2,'2015-07-26 14:24:42'),(185,68,1,122,'Preparing for cause papers and others',1886.79,2,6,113.21,2000,0,0,0,0,2,'2015-07-26 16:11:07',0,'0000-00-00 00:00:00'),(186,69,1,57,'Issuance of SD under section 218 of the companies Act, 1965  to Cosmic Angle Travel & Tours Sdn Bhd (NH/1/2015-kopetro)',240,8,0,0,240,0,0,0,0,2,'2015-07-27 14:25:16',0,'0000-00-00 00:00:00'),(187,69,2,44,'Service tax',14.4,8,0,0,14.4,0,0,0,0,2,'2015-07-27 14:26:01',0,'0000-00-00 00:00:00'),(188,69,3,256,'Printing charges',17.6,8,0,0,17.6,0,0,0,0,2,'2015-07-27 14:30:23',0,'0000-00-00 00:00:00'),(189,70,1,57,'Issuance Legal Notice of demand to ANF Holidays Sdn Bhd (NH/18/2015-ANF/kopetro',150,8,0,0,150,0,0,0,0,2,'2015-07-27 14:34:58',0,'0000-00-00 00:00:00'),(190,70,2,44,'Service tax',9,8,0,0,9,0,0,0,0,2,'2015-07-27 14:35:44',0,'0000-00-00 00:00:00'),(191,70,3,256,'Printing charges',50,8,0,0,50,0,0,0,0,2,'2015-07-27 14:37:05',0,'0000-00-00 00:00:00'),(192,71,1,57,'Issuance of SD under section 218 of the companies Act 1965  to Covacrete Paving (M) Sdn Bhd (NH/3/2014/kopetro)',200,8,0,0,200,0,0,0,0,2,'2015-07-27 14:42:00',0,'0000-00-00 00:00:00'),(193,71,2,44,'service tax',12,8,0,0,12,0,0,0,0,2,'2015-07-27 14:42:42',0,'0000-00-00 00:00:00'),(194,71,3,256,'Printing charges',60,8,0,0,60,0,0,0,0,2,'2015-07-27 14:43:19',0,'0000-00-00 00:00:00'),(195,72,1,57,'Issuance of Notice of termination of contract of service between cotrade  & KCC Engineering & Trading Sdn  Bhd (NH/9/2014/cotrade)',250,8,0,0,250,0,0,0,0,2,'2015-07-27 14:48:27',0,'0000-00-00 00:00:00'),(196,72,2,44,'service tax',15,8,0,0,15,0,0,0,0,2,'2015-07-27 14:49:08',0,'0000-00-00 00:00:00'),(197,72,3,256,'Printing charges',50,8,0,0,50,0,0,0,0,2,'2015-07-27 14:49:55',2,'2015-07-27 14:51:04'),(198,72,4,257,'miscellaneous',53,8,0,0,53,0,0,0,0,2,'2015-07-27 14:52:08',0,'0000-00-00 00:00:00'),(199,73,1,57,'Preparing Notice of termination of NDA dated 13 Dec 2013 [8 (A) /2014 ]',250,8,0,0,250,0,0,0,0,2,'2015-07-27 15:02:07',0,'0000-00-00 00:00:00'),(200,73,2,44,'Service tax',15,8,0,0,15,0,0,0,0,2,'2015-07-27 15:02:48',0,'0000-00-00 00:00:00'),(201,73,3,256,'Printing charges',50,8,0,0,50,0,0,0,0,2,'2015-07-27 15:03:35',0,'0000-00-00 00:00:00'),(202,74,1,57,'Preparing writ of summons against PFC [4(A)/2015]',20000,8,0,0,20000,0,0,0,0,2,'2015-07-27 15:12:22',0,'0000-00-00 00:00:00'),(203,74,2,44,'service tax',1200,8,0,0,1200,0,0,0,0,2,'2015-07-27 15:13:04',0,'0000-00-00 00:00:00'),(204,74,3,259,'filing of writ of summons, affidavits, judgement,',1000,8,0,0,1000,0,0,0,0,2,'2015-07-27 15:16:48',0,'0000-00-00 00:00:00'),(205,74,4,260,'Affirmation affidavit ',500,0,0,0,500,0,0,0,0,2,'2015-07-27 15:19:15',0,'0000-00-00 00:00:00'),(206,74,5,256,'Printing charges',200,8,0,0,200,0,0,0,0,2,'2015-07-27 15:22:19',0,'0000-00-00 00:00:00'),(207,74,6,97,'Travelling expenses to client\'s office, post office,court,ssm ',500,8,0,0,500,0,0,0,0,2,'2015-07-27 15:24:36',0,'0000-00-00 00:00:00'),(208,75,1,57,'Preparing writ of summons, filing and attending the service and court',8000,8,0,0,8000,0,0,0,0,2,'2015-07-27 17:48:37',2,'2015-07-27 17:55:13'),(209,75,2,44,'service tax',480,8,0,0,480,0,0,0,0,2,'2015-07-27 17:49:53',2,'2015-07-27 17:55:42'),(210,75,3,256,'Printing charges',100,8,0,0,100,0,0,0,0,2,'2015-07-27 17:51:19',0,'0000-00-00 00:00:00'),(211,75,4,97,'Travelling expenses to meet client, attending service at 3 addresses, attending court',750,8,0,0,750,0,0,0,0,2,'2015-07-27 17:52:58',2,'2015-07-27 17:54:41'),(212,75,5,257,'miscellaneous',150,8,0,0,150,0,0,0,0,2,'2015-07-27 17:56:20',2,'2015-07-27 18:04:20'),(213,75,6,91,'calls to service agent',120,8,0,0,120,0,0,0,0,2,'2015-07-27 17:57:17',2,'2015-07-27 18:04:35'),(214,75,7,259,'Filing of the writ of summons, affidavit of service, judgment, ',300,8,0,0,300,0,0,0,0,2,'2015-07-27 18:01:42',0,'0000-00-00 00:00:00'),(215,75,8,260,'Affirmation of affidavit',100,8,0,0,100,0,0,0,0,2,'2015-07-27 18:03:24',0,'0000-00-00 00:00:00'),(216,76,1,57,'Advising from time to time & involved in negotiation of settlement',2200,8,0,0,2200,0,0,0,0,2,'2015-07-27 18:10:12',2,'2015-07-27 18:15:18'),(217,76,2,44,'Service tax',132,8,0,0,132,0,0,0,0,2,'2015-07-27 18:10:53',2,'2015-07-27 18:15:43'),(218,76,3,256,'Printing charges',100,8,0,0,100,0,0,0,0,2,'2015-07-27 18:16:54',0,'0000-00-00 00:00:00'),(219,76,4,257,'miscellaneous',68,8,0,0,68,0,0,0,0,2,'2015-07-27 18:17:54',0,'0000-00-00 00:00:00'),(220,77,1,57,'Advising from time to time and finalising the matter',2300,8,0,0,2300,0,0,0,0,2,'2015-07-27 18:23:17',0,'0000-00-00 00:00:00'),(221,77,2,44,'service tax',138,8,0,0,138,0,0,0,0,2,'2015-07-27 18:24:00',0,'0000-00-00 00:00:00'),(222,77,3,256,'printing charges',62,8,0,0,62,0,0,0,0,2,'2015-07-27 18:24:58',0,'0000-00-00 00:00:00'),(223,78,1,57,'Advising from time to time and finalising the matter',2200,8,0,0,2200,0,0,0,0,2,'2015-07-27 18:28:21',0,'0000-00-00 00:00:00'),(224,78,2,44,'service tax',132,8,0,0,132,0,0,0,0,2,'2015-07-27 18:28:57',0,'0000-00-00 00:00:00'),(225,78,3,256,'Printing charges',100,8,0,0,100,0,0,0,0,2,'2015-07-27 18:29:34',0,'0000-00-00 00:00:00'),(226,78,4,257,'miscellaneous',68,8,0,0,68,0,0,0,0,2,'2015-07-27 18:30:11',0,'0000-00-00 00:00:00'),(227,79,1,57,'Attending court and obtaining JID against KCC Engineering &Trading Sdn Bhd',10000,2,6,600,10600,0,0,0,0,2,'2015-07-27 19:33:09',0,'0000-00-00 00:00:00'),(228,79,2,259,'Filing Perakuan ketdakhadiran (RM20), fiing penghakiman (RM40), filing AOS (RM8)',68,2,6,4.08,72.08,0,0,0,0,2,'2015-07-27 19:35:56',0,'0000-00-00 00:00:00'),(229,79,3,260,'Affirmation',8,2,6,0.48,8.48,0,0,0,0,2,'2015-07-27 19:36:52',0,'0000-00-00 00:00:00'),(230,79,4,97,'Travelling expenses to the court and other relevant places',100,2,6,6,106,0,0,0,0,2,'2015-07-27 19:37:47',0,'0000-00-00 00:00:00'),(231,79,5,257,'Miscellaneous',50,2,6,3,53,0,0,0,0,2,'2015-07-27 19:38:21',0,'0000-00-00 00:00:00'),(232,80,1,57,'Preparing Trust Deed (NH/25/NURUL-T/DEED/15) & registration in the Kl Land Office',1000,2,6,60,1060,0,0,0,0,2,'2015-07-29 05:14:47',2,'2015-07-29 05:46:15'),(233,80,2,256,'Printing charges',50,2,6,3,53,0,0,0,0,2,'2015-07-29 05:15:46',2,'2015-07-29 05:46:34'),(234,80,3,97,'Travelling charges to KL land office',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-29 05:16:30',2,'2015-07-29 05:44:50'),(235,80,4,122,'Stamping (50) Registration fee (120)',120,2,6,7.2,127.2,0,0,0,0,2,'2015-07-29 05:18:40',2,'2015-07-29 05:45:16'),(236,80,5,257,'miscellaneous charges',50,2,6,3,53,0,0,0,0,2,'2015-07-29 05:22:11',2,'2015-07-29 05:46:45'),(237,81,1,57,'Preparing POD and filed the same in the KL Insolvency (NH/3/14/kopetro)- 3(B)/14',1000,2,6,60,1060,0,0,0,0,2,'2015-07-29 05:52:45',0,'0000-00-00 00:00:00'),(238,81,2,259,'Filing of POD',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 05:53:16',0,'0000-00-00 00:00:00'),(239,81,3,97,'Travelling expenses to kl insolvency & others',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 05:53:57',0,'0000-00-00 00:00:00'),(240,81,4,257,'miscellaneous',50,2,6,3,53,0,0,0,0,2,'2015-07-29 05:54:28',0,'0000-00-00 00:00:00'),(241,81,5,260,'Affirmations',9,2,6,0.54,9.54,0,0,0,0,2,'2015-07-29 05:56:23',0,'0000-00-00 00:00:00'),(242,82,1,57,'Preparing SIC for public examination under companies Act (NH/5/RAINSTAR/KOP/15) - 5/R/15',10000,2,6,600,10600,0,0,0,0,2,'2015-07-29 06:01:14',0,'0000-00-00 00:00:00'),(243,82,2,97,'Travelling expenses to KL Insolvency, client\'s office and others',50,2,6,3,53,0,0,0,0,2,'2015-07-29 06:02:06',0,'0000-00-00 00:00:00'),(244,82,3,257,'miscellaneous',50,2,6,3,53,0,0,0,0,2,'2015-07-29 06:02:41',0,'0000-00-00 00:00:00'),(245,83,1,57,'Preparing POD (ANF Holidays Sdn Bhd) NH/18/15/ANF - 18(B)/15',1000,2,6,60,1060,0,0,0,0,2,'2015-07-29 13:56:24',0,'0000-00-00 00:00:00'),(246,83,2,259,'Filing fee for POD',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 13:56:59',0,'0000-00-00 00:00:00'),(247,83,3,260,'Affirmation',9,2,6,0.54,9.54,0,0,0,0,2,'2015-07-29 13:57:24',0,'0000-00-00 00:00:00'),(248,83,4,97,'Travelling expenses',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 13:57:52',0,'0000-00-00 00:00:00'),(249,83,5,257,'Miscellaneous',50,2,6,3,53,0,0,0,0,2,'2015-07-29 13:58:29',0,'0000-00-00 00:00:00'),(250,84,1,57,'Conducting SSM search and Form 34 search at company commission (NH/14/DIN\'S TRADING/15)- 14/D/15',100,2,6,6,106,0,0,0,0,2,'2015-07-29 14:04:26',0,'0000-00-00 00:00:00'),(251,84,2,97,'Travelling expenses',30,2,6,1.8,31.8,0,0,0,0,2,'2015-07-29 14:04:52',0,'0000-00-00 00:00:00'),(252,84,3,122,'searching fee for ssm',13,2,6,0.78,13.78,0,0,0,0,2,'2015-07-29 14:05:29',0,'0000-00-00 00:00:00'),(253,84,4,122,'searching fee for winding up',12,2,6,0.72,12.72,0,0,0,0,2,'2015-07-29 14:06:02',0,'0000-00-00 00:00:00'),(254,84,5,257,'miscellaneous',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 14:06:26',0,'0000-00-00 00:00:00'),(255,85,1,57,'Conducting ssm search and form 34 at ssm  (NH/10/SMART WHEELS INTELLIGENCE SDN BHD/15) 10/S/15',50,2,6,3,53,0,0,0,0,2,'2015-07-29 14:10:35',0,'0000-00-00 00:00:00'),(256,85,2,97,'Travelling expenses',30,2,6,1.8,31.8,0,0,0,0,2,'2015-07-29 14:11:07',0,'0000-00-00 00:00:00'),(257,85,3,122,'searching fee for ssm',13,2,6,0.78,13.78,0,0,0,0,2,'2015-07-29 14:11:44',0,'0000-00-00 00:00:00'),(258,85,4,257,'miscellaneous',10,2,6,0.6,10.6,0,0,0,0,2,'2015-07-29 14:12:09',0,'0000-00-00 00:00:00'),(259,86,1,57,'Preparing application for stay of winding up & filing of the same (NH/11/15/fast airfreight)',7075.47,2,6,424.53,7500,0,0,0,0,2,'2015-07-29 14:33:47',0,'0000-00-00 00:00:00'),(260,87,1,57,'Attending hearing of the stay application in the court & obtaining order in terms  (NH/11/15/fast airfreight)',7000,2,6,420,7420,0,0,0,0,2,'2015-07-29 14:39:49',2,'2015-07-29 14:57:51'),(267,87,8,256,'Printing charges',75.47,2,6,4.53,80,0,0,0,0,2,'2015-07-29 15:01:05',2,'2015-07-29 15:10:20'),(268,88,1,57,'Preparing POD to be filed against Kristal Salju (NH/2/2014/kopetro) 2(B) 2015',1000,2,6,60,1060,0,0,0,0,2,'2015-08-01 15:22:24',0,'0000-00-00 00:00:00'),(269,88,2,259,'Filing POD',10,2,6,0.6,10.6,0,0,0,0,2,'2015-08-01 15:24:07',0,'0000-00-00 00:00:00'),(270,88,3,260,'Affirmation',9,2,6,0.54,9.54,0,0,0,0,2,'2015-08-01 15:24:58',0,'0000-00-00 00:00:00'),(271,88,4,97,'travelling expenses',10,2,6,0.6,10.6,0,0,0,0,2,'2015-08-01 15:25:36',0,'0000-00-00 00:00:00'),(272,88,5,257,'Miscellaneous',50,2,6,3,53,0,0,0,0,2,'2015-08-01 15:26:27',0,'0000-00-00 00:00:00'),(273,89,1,57,'NH/9/14/cotrade- Issuing Judgment Debtor\'s summons against the directors',2000,2,6,120,2120,0,0,0,0,2,'2015-08-04 16:05:06',0,'0000-00-00 00:00:00'),(274,89,2,259,'Filing of Jds and request to issue Jds',28,2,6,1.68,29.68,0,0,0,0,2,'2015-08-04 16:06:04',0,'0000-00-00 00:00:00'),(275,89,3,256,'Printing charges',100,2,6,6,106,0,0,0,0,2,'2015-08-04 16:06:41',0,'0000-00-00 00:00:00'),(276,89,4,122,'JDS service charges (personally on directors at Penang)',300,2,6,18,318,0,0,0,0,2,'2015-08-04 16:08:34',0,'0000-00-00 00:00:00'),(277,89,5,97,'Travelling expenses',50,2,6,3,53,0,0,0,0,2,'2015-08-04 16:09:08',0,'0000-00-00 00:00:00'),(278,89,6,257,'miscellaneous charges',50,2,6,3,53,0,0,0,0,2,'2015-08-04 16:09:34',0,'0000-00-00 00:00:00'),(279,90,1,57,'NH/18A/verification/15- Vetting and verification of ownership',800,2,6,48,848,0,0,0,0,2,'2015-08-10 03:39:24',0,'0000-00-00 00:00:00'),(280,91,1,57,'ADVISING CLIENT FROM TIME TO TIME OF HIS APPLICATION FOR FARAID AND ADMINISTRATOR FOR HIS LATE FATHER\'S ESTATE',15000,2,6,900,15900,0,0,0,0,2,'2015-09-29 07:38:20',2,'2015-09-29 07:59:06'),(281,91,2,256,'Printing charges for Faraid and the appointment of administrator',200,2,6,12,212,0,0,0,0,2,'2015-09-29 07:39:42',2,'2015-09-29 07:57:14'),(282,91,3,97,'Travelling to the client\'s office on few occassions and court',100,2,6,6,106,0,0,0,0,2,'2015-09-29 07:40:49',2,'2015-09-29 07:58:01'),(283,91,4,260,'Affirmations of Affidavits, exhibits and statutory declaration',94.34,2,6,5.66,100,0,0,0,0,2,'2015-09-29 07:42:00',0,'0000-00-00 00:00:00'),(284,91,5,91,'Telephone charges',47.17,2,6,2.83,50,0,0,0,0,2,'2015-09-29 07:42:56',0,'0000-00-00 00:00:00'),(285,91,6,259,'Filing of Notice of application, Affidavit in supports, originating summons, sealed of the LA (geran surat kuasa mentadbir)',700,2,6,42,742,0,0,0,0,2,'2015-09-29 07:51:16',2,'2015-09-29 07:55:27'),(286,91,7,258,'Attendance to the syariah ct and civil court',283.02,2,6,16.98,300,0,0,0,0,2,'2015-09-29 07:52:44',0,'0000-00-00 00:00:00'),(287,91,8,257,'miscellaneous charges',47.17,2,6,2.83,50,0,0,0,0,2,'2015-09-29 07:53:34',0,'0000-00-00 00:00:00'),(288,92,1,57,'Conducting ssm search, form 34 search and winding up search at company commission',165,2,6,9.9,174.9,0,0,0,0,2,'2015-10-27 03:57:21',0,'0000-00-00 00:00:00'),(289,93,1,57,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',7075.47,2,6,424.53,7500,0,0,0,0,2,'2015-10-27 04:35:11',0,'0000-00-00 00:00:00'),(290,94,1,57,'Drafting application to claim from the developer the refund of 10% payment and declaration of s&p to be terminated officially',7075.47,2,6,424.53,7500,0,0,0,0,2,'2015-10-27 04:41:35',2,'2015-10-27 04:42:26'),(291,95,1,57,'Vetting documents and verification of ownership of Tenaga Gagah Sdn Bhd (in liquidation)',5200,2,6,312,5512,0,0,0,0,2,'2015-10-27 04:56:13',0,'0000-00-00 00:00:00'),(292,96,1,57,'Preparing stay winding up application and be a counsel for negotiation for Perusahaan Amboss Sdn Bhd',11792.45,2,6,707.55,12500,0,0,0,0,2,'2015-10-29 08:46:15',0,'0000-00-00 00:00:00'),(293,97,1,57,'Vetting documents and verification of ownership',1200,2,6,72,1272,0,0,0,0,2,'2015-10-29 09:28:23',0,'0000-00-00 00:00:00'),(294,98,1,57,'Vetting documents and verification of ownership',2800,2,6,168,2968,0,0,0,0,2,'2015-10-29 09:47:30',0,'0000-00-00 00:00:00'),(295,99,1,57,'Render service for Verification of ownership ',600,2,6,36,636,0,0,0,0,2,'2015-12-30 14:02:44',0,'0000-00-00 00:00:00'),(296,100,1,57,'Preparing and conducting hearing for faraidh application',8235.85,2,6,494.15,8730,0,0,0,0,2,'2015-12-30 15:48:09',0,'0000-00-00 00:00:00'),(297,101,1,57,'verification of ownership and vetting documents         ',200,2,6,12,212,0,0,0,0,2,'2015-12-30 16:04:09',0,'0000-00-00 00:00:00'),(298,102,1,57,'Vetting various kopetro\'s agreement',3700,2,6,222,3922,0,0,0,0,2,'2015-12-30 16:28:14',0,'0000-00-00 00:00:00'),(299,103,1,57,'Preparing and filing of stay order in the KL High Court',2830.19,2,6,169.81,3000,0,0,0,0,2,'2015-12-30 16:46:01',0,'0000-00-00 00:00:00'),(300,104,1,57,'Filing Petition for winding up BUT has withdrawn it after both parties have entered into settlement',9433.96,2,6,566.04,10000,0,0,0,0,2,'2015-12-30 17:15:01',0,'0000-00-00 00:00:00'),(301,105,1,57,'Vetting agreement & verification of ownership',400,2,6,24,424,0,0,0,0,2,'2015-12-30 17:23:50',0,'0000-00-00 00:00:00'),(302,106,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court ',2900,2,6,174,3074,0,0,0,0,2,'2016-01-29 06:08:57',0,'0000-00-00 00:00:00'),(303,107,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',3000,2,6,180,3180,0,0,0,0,2,'2016-01-29 07:40:25',0,'0000-00-00 00:00:00'),(304,108,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein',2950,2,6,177,3127,0,0,0,0,2,'2016-01-29 07:48:58',0,'0000-00-00 00:00:00'),(305,109,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',3350,2,6,201,3551,0,0,0,0,2,'2016-01-29 07:54:01',0,'0000-00-00 00:00:00'),(306,110,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',3350,2,6,201,3551,0,0,0,0,2,'2016-01-29 08:01:47',0,'0000-00-00 00:00:00'),(308,111,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',1350,2,6,81,1431,0,0,0,0,2,'2016-01-29 08:12:45',0,'0000-00-00 00:00:00'),(309,112,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',2350,2,6,141,2491,0,0,0,0,2,'2016-01-29 08:19:57',0,'0000-00-00 00:00:00'),(310,113,1,57,' Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',1400,2,6,84,1484,0,0,0,0,2,'2016-01-29 08:27:16',0,'0000-00-00 00:00:00'),(311,114,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',2950,2,6,177,3127,0,0,0,0,2,'2016-01-29 09:01:08',0,'0000-00-00 00:00:00'),(312,115,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein',1350,2,6,81,1431,0,0,0,0,2,'2016-01-29 09:06:16',0,'0000-00-00 00:00:00'),(313,116,1,57,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur  And generally to all other matters not specifically mentioned herein.',1079,2,6,64.74,1143.74,0,0,0,0,2,'2016-01-29 09:11:32',0,'0000-00-00 00:00:00'),(314,117,1,57,'Preparing  Judgment Debtors Summon and filing the same at  Kuala Lumpur Magistrate Court  And generally to all other matters not specifically mentioned herein.',3350,2,6,201,3551,0,0,0,0,2,'2016-01-29 09:16:47',0,'0000-00-00 00:00:00'),(315,118,1,57,'Preparing Proof of debt and attending to the filing in Insolvency Kuala Lumpur  And generally to all other matters not specifically mentioned herein.(nh/71/daniel jerome/pod/15)',1079,2,6,64.74,1143.74,0,0,0,0,2,'2016-01-29 09:22:39',0,'0000-00-00 00:00:00'),(316,119,1,57,'Preparing Proof of debt and attending to the filing in Insolvency Kuantan  And generally to all other matters not specifically mentioned herein.',1079,2,6,64.74,1143.74,0,0,0,0,2,'2016-01-29 09:29:10',0,'0000-00-00 00:00:00'),(317,120,1,57,'Vetting documents and verification of ownership for Ler Lum',800,2,6,48,848,0,0,0,0,2,'2016-04-21 20:40:46',0,'0000-00-00 00:00:00'),(318,121,1,57,'Vetting documents and verification of ownership for Ler Lum',200,2,6,12,212,0,0,0,0,2,'2016-04-23 00:07:43',0,'0000-00-00 00:00:00'),(319,122,1,57,'Vetting documents and verification of ownership for Ler Lum',600,2,6,36,636,0,0,0,0,2,'2016-04-23 00:13:22',0,'0000-00-00 00:00:00'),(320,123,1,57,'Vetting documents and verification of ownership for Ler Lum',1200,2,6,72,1272,0,0,0,0,2,'2016-04-23 00:16:27',0,'0000-00-00 00:00:00'),(321,124,1,57,'Vetting documents and verification of ownership for Ler Lum',400,2,6,24,424,0,0,0,0,2,'2016-04-23 00:20:27',0,'0000-00-00 00:00:00'),(322,125,1,57,'Vetting documents and verification of ownership for Ler Lum',400,2,6,24,424,0,0,0,0,2,'2016-04-23 00:22:19',0,'0000-00-00 00:00:00'),(323,126,1,57,'Vetting documents and verification of ownership for Ler Lum',200,2,6,12,212,0,0,0,0,2,'2016-04-23 00:23:45',0,'0000-00-00 00:00:00'),(324,127,1,57,'Vetting documents and verification of ownership',800,2,6,48,848,0,0,0,0,2,'2016-04-23 14:18:47',0,'0000-00-00 00:00:00'),(325,128,1,57,'Vetting documents and verification of ownership',800,2,6,48,848,0,0,0,0,2,'2016-04-23 14:22:06',0,'0000-00-00 00:00:00'),(326,129,1,57,'Vetting documents and verification of ownership',1000,2,6,60,1060,0,0,0,0,2,'2016-04-23 14:25:54',0,'0000-00-00 00:00:00'),(327,130,1,57,'Vetting documents and verification of ownership',200,2,6,12,212,0,0,0,0,2,'2016-04-23 14:29:19',0,'0000-00-00 00:00:00'),(328,131,1,57,'Vetting documents and verification of ownership',1600,2,6,96,1696,0,0,0,0,2,'2016-04-23 14:34:49',0,'0000-00-00 00:00:00'),(329,132,1,57,'Requesting deposit for filing winding up petition at Insolvency KL',3000,8,0,0,3000,0,0,0,0,2,'2016-04-23 14:47:29',0,'0000-00-00 00:00:00'),(330,133,1,57,'Requesting deposit for filing winding up petition at Insolvency KL',3000,8,0,0,3000,0,0,0,0,2,'2016-04-23 14:49:54',0,'0000-00-00 00:00:00'),(331,134,1,57,'Vetting documents and verification of ownership (Ler Lum matter)',800,2,6,48,848,0,0,0,0,2,'2016-04-26 01:30:11',0,'0000-00-00 00:00:00'),(332,135,1,57,'Vetting documents and verification of ownership',800,2,6,48,848,0,0,0,0,2,'2016-04-26 01:34:11',0,'0000-00-00 00:00:00'),(333,136,1,57,'Vetting documents and verification of ownership',600,2,6,36,636,0,0,0,0,2,'2016-04-26 01:36:51',0,'0000-00-00 00:00:00'),(334,137,1,57,'Vetting documents and verification of ownership',200,2,6,12,212,0,0,0,0,2,'2016-04-26 01:40:00',0,'0000-00-00 00:00:00'),(335,138,1,57,'Vetting documents and verification of ownership',1200,2,6,72,1272,0,0,0,0,2,'2016-04-26 01:42:44',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` varchar(128) 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 `item` (`itemID`),
  KEY `tax` (`taxID`),
  KEY `invoice` (`invoiceID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

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

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

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

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

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

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


--
-- Table structure for table `comp_section`
--

CREATE TABLE `comp_section` (
  `fldid` int(11) NOT NULL DEFAULT '0',
  `code` varchar(18) CHARACTER SET utf8 DEFAULT NULL,
  `department` varchar(18) CHARACTER SET utf8 DEFAULT NULL,
  `description` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `section_head` varchar(50) CHARACTER SET utf8 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_section`
--


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

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

--
-- Dumping data for table `comp_so_seq`
--


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

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

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


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

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

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


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

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

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

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

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

CREATE TABLE `comp_supplier_creditnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `creditNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `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,
  `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_supplier_creditnote_charges`
--


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

CREATE TABLE `comp_supplier_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_supplier_creditnote_detail`
--


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

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

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

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

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

CREATE TABLE `comp_supplier_debitnote_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `debitNoteID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `itemname` varchar(64) NOT NULL,
  `itemdescription` text NOT NULL,
  `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,
  `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 DEFAULT CHARSET=latin1;

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


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

CREATE TABLE `comp_supplier_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_supplier_debitnote_detail`
--


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

CREATE TABLE `comp_supplier_invoice` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `serialNo` int(11) NOT NULL DEFAULT '1',
  `companyID` int(11) NOT NULL,
  `purchaseInvoiceCodeID` int(11) NOT NULL COMMENT '1=puchase inv, 2=direct purch inv, 3=debit note, 4=credit note',
  `purchaserID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `formNo` varchar(32) NOT NULL,
  `invoiceDate` date NOT NULL,
  `supplierInvoiceNo` varchar(32) NOT NULL,
  `projectID` int(11) NOT NULL,
  `termsID` int(11) NOT NULL,
  `shipToID` int(11) NOT NULL,
  `locationID` int(11) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `exchangeRate` double NOT NULL,
  `agentID` int(11) NOT NULL,
  `memo` text NOT NULL,
  `employeeID` int(11) NOT NULL,
  `shippingMethodID` int(11) NOT NULL,
  `totalAmount` double NOT NULL,
  `amountPaid` double 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,
  `badDebtID` int(11) NOT NULL,
  `invoiceType` tinyint(1) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `supplier` (`ID`,`supplierID`,`updateAble`),
  KEY `companyID` (`companyID`),
  KEY `supplierID` (`supplierID`),
  KEY `invoiceDate` (`invoiceDate`),
  KEY `updateAble` (`updateAble`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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

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

CREATE TABLE `comp_supplier_invoice_charges` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `lineNo` int(11) NOT NULL,
  `accountNoID` int(11) NOT NULL,
  `chargeDescription` text 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,
  `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 `invoiceID` (`invoiceID`),
  KEY `taxID` (`taxID`),
  KEY `accountNoID` (`accountNoID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

CREATE TABLE `comp_supplier_invoice_detail` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `invoiceID` int(11) NOT NULL,
  `receiveID` int(11) NOT NULL COMMENT 'Is used for receive detail id instead of receive ID',
  `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 `invoiceID` (`invoiceID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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


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

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

--
-- Dumping data for table `comp_supplier_statement`
--


--
-- Table structure for table `comp_unpresented_check`
--

CREATE TABLE `comp_unpresented_check` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `transDate` date NOT NULL,
  `transNo` varchar(255) NOT NULL,
  `desc` text NOT NULL,
  `referenceNo` varchar(255) NOT NULL,
  `bankID` int(11) NOT NULL,
  `debit` double NOT NULL,
  `credit` double NOT NULL,
  `bankReconcileID` int(11) NOT NULL DEFAULT '0',
  `is_delete` int(11) NOT NULL DEFAULT '0',
  `createdTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `createdBy` int(11) DEFAULT NULL,
  `updateTS` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `updatedBy` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_unpresented_check`
--


--
-- Table structure for table `comp_visual_report`
--

CREATE TABLE `comp_visual_report` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `companyID` int(11) NOT NULL,
  `graph_id` int(11) NOT NULL,
  `page_id` int(11) NOT NULL,
  `order` int(11) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `is_delete` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comp_visual_report`
--


--
-- Table structure for table `company`
--

CREATE TABLE `company` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `companyName` varchar(128) NOT NULL,
  `companyNo` varchar(16) NOT NULL,
  `incorporateDate` date NOT NULL,
  `businessTypeID` int(11) NOT NULL,
  `line1` varchar(128) NOT NULL,
  `line2` varchar(128) NOT NULL,
  `line3` varchar(128) NOT NULL,
  `city` varchar(128) NOT NULL,
  `companyPostCode` varchar(8) NOT NULL,
  `companyStateID` int(11) NOT NULL,
  `phoneNo` varchar(16) NOT NULL,
  `faxNo` varchar(16) NOT NULL,
  `email` varchar(32) NOT NULL,
  `website` varchar(32) NOT NULL,
  `uploadLogo` varchar(64) NOT NULL,
  `currencyID` int(11) NOT NULL,
  `languageID` int(11) NOT NULL,
  `countryID` int(11) NOT NULL,
  `muslimShareholder` double NOT NULL,
  `gstRegisteredNo` varchar(16) NOT NULL,
  `gstRegisteredDate` date DEFAULT NULL,
  `gstSubmissionBuffer` int(16) NOT NULL,
  `taxablePeriod` smallint(6) NOT NULL,
  `dateFormat` int(16) 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,
  `keyCode` varchar(128) NOT NULL,
  `masterMSIC` int(12) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `company`
--

INSERT INTO `company` VALUES (1,'Demo Demo Sdn Bhd','demo','2014-06-26',1,'demo,','off jalan line 2,','main road jalan 3,','','',0,'603-61859970','603-61857788','0','0','0',1,0,458,12,'012345678901','2014-12-05',6,0,1,0,'2014-04-24 04:32:22',0,'2014-08-13 09:00:24',0,'',0),(2,'Noor Hanani & Co','B/C/N 1168','2014-07-31',1,'No.3-1, Jalan Amansiara 2/1, ','Taman Amansiara, 68100 Batu Caves, Selangor','','Batu Caves','68100',1931,'+60361282225','+60361282225','noorhananirich@gmail.com','','0',1,0,458,0,'000421629952','2015-04-01',0,3,1,0,'2015-06-09 19:42:23',0,'2015-06-10 01:57:14',0,'/4YrgCcBxid+ewzZVeHgHCZYVh2yhGi9d7eGu4A9HWE=',0),(3,'NOOR HANANI & CO','C/A','2014-08-01',1,'3-1, JALAN AMANSIARA 2/1, TAMAN AMANSIARA, 68100 BATU CAVES','SELANGOR','','BATU CAVES','68100',1933,'03-61282225','03-61282225','noorhananirich@gmail.com','','0',1,0,458,0,'','1970-01-01',0,0,1,0,'2015-06-23 20:36:26',0,'2015-06-24 02:49:41',0,'q/Aujd0uswaXDFpojl3n0w==',0);

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

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

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

INSERT INTO `customer` VALUES (1,2,'KOPERASI KAKITANGAN PETRONAS BERHAD','-','5398/1','BLOCK C-18-2, 3 & 4, MEGAN AVENUE 2, NO.12, JALAN YAP KWAN SENG','','','KUALA LUMPUR','50450',1933,458,'0','0','+603-21611990','-','+603-21611914','','',0,0,0,'123','2015-06-11',1,'info@kopetro.com.my',0,0,'2015-06-11 15:36:36',0,'2015-06-19 07:26:31',0,''),(2,2,'KOPETRO TRAVEL AND TOURS SDN BHD','2100-K02','150892K/KKKP0233','Block B-0-5, Megan Avenue II, No.12, Jalan Yap Kwan Seng, 50450 Kuala Lumpur.','','','KUALA LUMPUR','50450',1933,458,'0','0','','','','','',20,0,0,'20','2014-09-22',1,'',0,0,'2015-06-12 15:09:42',0,'2015-07-26 13:45:19',0,''),(3,2,'COTRADE SDN BHD','2100-K03','497304-D','Block B-1-5, Megan Avenue II, No.12, Jalan Yap Kwan Seng, 50450 Kuala Lumpur.','','','KUALA LUMPUR','50450',1933,458,'0','0','','','','','',20,0,0,'20','2014-09-19',1,'',0,0,'2015-06-12 15:48:20',0,'2015-07-26 13:46:10',0,''),(4,2,'LER LUM ADVISORY SERVICES SDN BHD','2100-K04','','C/O LER LUM ADVISORY SERVICES SDN BHD, B-3-11, MEGAN AVENUE II, ','12, JALAN YAP KWAN SENG','','KUALA LUMPUR','50450',1933,458,'0','0','+603-27768000','','+603-21634609','','',20,0,0,'20','2015-01-19',1,'',0,0,'2015-06-14 14:59:47',0,'2015-07-26 13:46:51',0,''),(5,2,'KELANTAN DELIGHTS SDN BHD (SABRI BIN ABD RAHMAN)','2100-K05','512097-H','','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2015-04-06',1,'',0,0,'2015-07-26 13:32:40',0,'2015-07-26 13:47:57',0,''),(6,2,'HA','2100-000','512097-H','','','','','',0,458,'0','0','','','','','',20,0,0,'20','2015-07-26',1,'',0,0,'2015-07-26 13:42:57',0,'2015-07-26 13:48:08',1,''),(7,2,'CHAN YOO HUAT','2100-K06','-','','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2015-04-20',1,'',0,0,'2015-07-26 16:05:35',0,'0000-00-00 00:00:00',0,''),(8,2,'try','2100-K06','','','','','','',0,458,'0','0','','','','','',20,0,0,'20','2015-07-27',1,'',0,0,'2015-07-27 09:48:39',0,'2015-07-29 14:21:42',1,''),(9,2,'NURUL','2100-K07','','','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2015-06-06',1,'',0,0,'2015-07-29 05:10:48',0,'0000-00-00 00:00:00',0,''),(10,2,'Fast Airfreight & Forwarding (M) Sdn Bhd','2100-KO8','','','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2015-04-03',1,'',0,0,'2015-07-29 14:21:26',0,'0000-00-00 00:00:00',0,''),(11,2,'AZRI BIN MOHD ZAIN','DATO AZR','-','','','','','',1933,458,'0','0','','','','','',20,0,0,'23','2015-09-29',1,'',0,0,'2015-09-29 07:29:46',0,'0000-00-00 00:00:00',0,''),(12,2,'DATIN NOR AZIAH BINTI ABDUL AZIZ','INDIVIDU','IMANKI','SRI RAMPAI','','','KUALA LUMPUR','',1933,458,'0','0','03-41434788','-','-','','',20,0,0,'20','2015-09-09',1,'',0,0,'2015-10-27 04:31:00',0,'0000-00-00 00:00:00',0,''),(13,2,'Encik Bashah Bin Othman','INDIVIDU','','d/a Perusahaan Amboss Sdn Bhd','','','','',1933,458,'0','0','','','','','',0,0,0,'20','2015-08-01',1,'',0,0,'2015-10-29 08:41:26',0,'0000-00-00 00:00:00',0,''),(14,2,'WIZ DESIGN SDN BHD','company','642233-P)','SG BULOH','','','','',1931,458,'0','0','','','','','',20,0,0,'20','2015-12-30',1,'',0,0,'2015-12-30 16:43:59',0,'0000-00-00 00:00:00',0,''),(15,2,'PFC ENGINEERING','COMP1','unknown','','','','','',1932,458,'0','0','','','','','',20,0,0,'20','2015-12-30',1,'',0,0,'2015-12-30 16:58:28',0,'0000-00-00 00:00:00',0,''),(16,2,'STAR EVEREST SDN BHD','syarikat','626683-T','Kuala Lumpur','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2016-03-31',1,'',0,0,'2016-04-23 14:42:45',0,'0000-00-00 00:00:00',0,''),(17,2,'Progresif Daya Sdn Bhd','syarikat','521591-M','Kuala Lumpur','','','','',1933,458,'0','0','','','','','',20,0,0,'20','2016-03-31',1,'',0,0,'2016-04-23 14:44:58',0,'0000-00-00 00:00:00',0,'');

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

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

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


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

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

--
-- Dumping data for table `customer_contact`
--


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

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

--
-- Dumping data for table `gl_setup`
--


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

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

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

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trigger_before_insert_item` BEFORE INSERT ON `item`
 FOR EACH ROW begin
if new.incomeID = 0 or new.incomeID is null then 
set new.incomeID = (select accountID from comp_control_acct_setup where ID > 0 and companyID = new.companyID and accountCode='saleacct'); 
end if;
if new.cogsID = 0 or new.cogsID is null then 
set new.cogsID = (select accountID from comp_control_acct_setup where id>0 and companyID = new.companyID and accountCode = 'saleacct');
end if;

end */;;
DELIMITER ;

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

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

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


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

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

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


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

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

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


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

CREATE TABLE `master` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `description` varchar(128) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updatedTS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `usedBySystem` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;

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

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

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

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

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

INSERT INTO `master_code` VALUES (1,1,NULL,'0','Active','Active','',1,0,'2014-05-07 10:01:04',0,'2014-05-15 10:17:57',0),(2,1,NULL,'1','Inactive','Inactive','',2,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(3,2,NULL,'FR','Freight','Freight','',1,0,'2014-05-07 10:01:04',0,'2014-04-24 05:05:19',0),(4,2,4,'FE','FedEx','FE','farhana',2,0,'2014-05-07 10:01:04',0,'2014-05-15 03:25:38',0),(5,2,NULL,'UPS','UPS','UPS','',3,0,'2014-05-07 10:01:04',0,'2014-08-21 03:08:39',1),(6,2,NULL,'CLNK','CityLink','CLNK','',2,0,'2014-05-07 10:01:04',0,'2014-04-24 05:05:19',0),(8,2,NULL,'DHL','DHL','DHL','',4,0,'2014-05-07 10:01:04',0,'2014-04-24 05:05:19',0),(9,5,NULL,'M','Male','Male','',1,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(10,5,NULL,'F','Female','','',2,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(11,15,NULL,'MFC','Manufacturing','MFC','',1,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(12,15,NULL,'RT','Retail','RT','',2,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(13,15,NULL,'SERV','Service','SERV','',3,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(14,15,NULL,'OTH','Others','OTH','',4,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(15,10,NULL,'ENG','English','ENG','',1,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(16,10,NULL,'BM','Bahasa Malaysia','BM','',2,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(17,11,NULL,'MTH','Monthly','MTH','',0,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(18,11,NULL,'YR','Yearly','YR','',0,0,'2014-05-07 10:01:04',0,'2014-04-22 03:18:53',0),(19,8,NULL,'E','Electrical Appliance','EA','',5,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(20,8,NULL,'S','Stationary','ST','',10,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(21,8,NULL,'I','IT','IT','',15,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(22,9,NULL,'P','Product','Product','Physical product range',1,0,'2014-05-07 10:01:04',0,'2014-05-26 00:33:45',0),(23,9,NULL,'S','Services','Services','Services product range',5,0,'2014-05-07 10:01:04',0,'2014-05-26 00:34:04',1),(30,8,NULL,'F','Furniture','FR','',1,0,'2014-05-07 10:01:04',0,'0000-00-00 00:00:00',0),(31,16,NULL,'1','Purchase Invoice','','',10,0,'2014-05-07 10:01:04',1,'0000-00-00 00:00:00',0),(32,16,NULL,'2','Direct Purchase Invcoice','','',20,0,'2014-05-07 10:01:04',1,'0000-00-00 00:00:00',0),(33,16,NULL,'3','Debit Note','','Purchase Invoice Debit Note (Adjustment)',30,0,'2014-05-07 10:01:04',1,'0000-00-00 00:00:00',0),(34,16,NULL,'4','Credit Note','','Purchase Invoice Credit Note (Adjustment)',40,0,'2014-05-07 10:01:04',1,'0000-00-00 00:00:00',0),(35,17,NULL,'1','Sales Invoice','','',10,0,'2014-05-07 10:01:04',0,'2014-05-07 02:23:53',0),(36,17,NULL,'2','Direct Sales Invcoice','','',20,0,'2014-05-07 10:01:04',0,'2014-05-07 02:23:58',0),(37,17,NULL,'3','Debit Note','','Sales Invoice Debit Note (Adjustment)',30,0,'2014-05-07 10:01:04',0,'2014-05-07 02:24:02',0),(38,17,NULL,'4','Credit Note','','Sales Invoice Credit Note (Adjustment)',40,0,'2014-05-07 10:01:04',0,'2014-05-07 02:24:07',0),(39,18,NULL,'PR','Purchase Request','PR','Purchase Request Form',90,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(40,18,NULL,'PO','Purchase Order','PO','Purchase Order Form',100,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(41,18,NULL,'PI','Purchase Invoice','PURINV','Form Purchase Invoice',110,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(42,18,NULL,'PDN','Purchase Debit Note','PDN','Purchase Debit Note Form',120,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(43,18,NULL,'PCN','Purchase Credit Note','PCN','Purchase Credit Note Form',140,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(44,18,NULL,'PP','Purchase Payment','PP','Purchase Payment Form',150,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(45,18,NULL,'GRN','Good Received Note','PP','Godd Received Note Form',160,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(46,18,NULL,'LT','Inventory Movement','LT','Inventory Movement Form',170,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(47,18,NULL,'SQN','Sales Quotation','SQN','Sales Quotation Form',180,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(48,18,NULL,'SON','Sales Order','SON','Sales Order Form',190,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(49,18,NULL,'SDN','Delivery Order','DO','Delivery Order Form',200,1,'2014-05-07 10:01:25',0,'2014-08-14 04:15:15',0),(50,18,NULL,'INV','Invoice','INV','Invoice Form',210,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(51,18,NULL,'SDN','Sales Debit Note','PDN','Sales Debit Note Form',230,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(52,18,NULL,'SCN','Sales Credit Note','PCN','Sales Credit Note Form',240,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(53,18,NULL,'RP','Receive Payment','RP','Receive Payment Form',250,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(54,18,NULL,'GRN','General Transaction','PP','General Transaction Form',260,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(55,18,NULL,'OPN','Others Payment','OPN','Others Payment Form',270,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(56,18,NULL,'ORI','Others Receive','ORI','Others Receive Form',280,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(57,18,NULL,'SLR','Sales Return','SLR','Sales Return Form',290,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(58,18,NULL,'IA','Item Adjustment','IA','Item Adjustment Form',300,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(59,12,NULL,'KG','Kilogram','','',10,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(60,12,NULL,'G','gram','','',20,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(61,12,NULL,'l','liter','','',30,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(62,12,NULL,'Tonn','tonne','','',40,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(63,12,NULL,'Unit','unit','','',50,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(64,12,NULL,'ml','mili liter','','',60,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(65,12,NULL,'m','meter','','',70,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(66,12,NULL,'cm','centimeter','','',80,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(67,12,NULL,'cc','cubic cm','','',90,1,'2014-05-09 11:30:04',0,'0000-00-00 00:00:00',0),(68,7,NULL,'','Cash','','',10,0,'2014-05-14 08:59:32',0,'2014-07-18 01:19:34',0),(69,7,NULL,'','Cheque','','',20,0,'2014-05-14 08:59:32',0,'2014-07-18 01:19:38',0),(70,0,NULL,'3333','fad','fad','fad',0,0,'2014-05-14 09:12:00',0,'0000-00-00 00:00:00',0),(71,10,NULL,'ARB','Arabic','AR','Bahasa Ar',3,0,'2014-05-15 01:46:45',0,'2014-05-16 02:52:26',0),(72,18,0,'ZK','ZAKAT','sy','desc',7,0,'2014-05-15 01:59:07',0,'2014-06-05 03:51:49',0),(73,2,4,'FE','FedEx','FE','fad',2,0,'2014-05-15 03:03:42',0,'0000-00-00 00:00:00',0),(74,2,0,'FE','FedEx','FE','akmal',2,0,'2014-05-15 03:17:14',0,'2014-05-26 01:27:52',0),(75,19,0,'1','Billing Address','','',10,0,'2014-05-16 04:48:35',0,'2014-05-16 10:51:41',0),(76,19,0,'2','HQ','','Main Addr',10,0,'2014-05-16 04:52:07',0,'0000-00-00 00:00:00',0),(77,19,0,'3','Ship to','','Ship to',30,0,'2014-05-16 04:53:25',0,'0000-00-00 00:00:00',0),(78,20,NULL,'B','Bulk','Bulk','',10,0,'2014-05-28 01:32:05',0,'0000-00-00 00:00:00',0),(79,20,NULL,'S','Small','Small','',20,0,'2014-05-28 01:32:05',0,'0000-00-00 00:00:00',0),(80,21,1,'','retainedEarnings','','Retained Earnings',1,1,'2014-06-03 09:33:20',0,'2014-08-01 09:04:34',0),(81,21,1,'','profitlostYear','','Profit/Loss Year',10,1,'2014-06-03 09:33:20',0,'2014-08-01 09:04:38',0),(82,21,1,'','exchangeVariances','','Exchange Variances Account',20,1,'2014-06-03 09:33:20',0,'2014-08-01 09:04:42',0),(83,21,1,'','bankchargesAccount','','Bank Charges Account',30,1,'2014-06-03 09:33:20',0,'2014-08-01 09:04:47',0),(84,21,2,'','rcvacct','','Receivable Account',40,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:01',0),(85,21,2,'','saleacct','','Sales Account',50,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:07',0),(86,21,2,'','saledisacct','','Sales Discount Account',60,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:11',0),(87,21,2,'','promptpaydisacct','','Prompt Payment Discount Account',70,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:18',0),(88,21,2,'','commissionexp','','Commission Expense',80,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:24',0),(89,21,2,'','commisionpay','','Commission Payable',90,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:31',0),(90,21,2,'','freightcharges','','Freight Charges',100,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:36',0),(91,21,2,'','exchangediff','','Exchange Difference',110,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:41',0),(92,21,3,'','payAcct','','Payable Account',120,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:46',0),(93,21,3,'','payDisc','','Payable Discount',130,1,'2014-06-03 09:33:20',0,'2014-08-01 09:05:49',0),(94,21,NULL,'','invAcct','','Inventory Account',140,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(95,21,NULL,'','cogs','','C.O.G.S Account',150,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(96,21,NULL,'','invAdjAcct','','Inventory Adjustment Account',160,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(97,21,NULL,'','gstInputTax','','GST-Input Tax',170,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(98,21,NULL,'','gstOutTax','','GST-Output Tax',180,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(99,21,NULL,'','susgstInTax','','Suspense-GST Input Tax',190,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(100,21,NULL,'','susgstOuTax','','Suspense-GST Output Tax',200,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(101,21,NULL,'','gstnoclaim','','GST Not Claimable',210,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(102,21,NULL,'','imdutypay','','Import Duty Payable',220,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(103,21,NULL,'','saletaxpay','','Sale Tax Payable',230,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(104,21,NULL,'','servtaxpay','','Service Tax Payable',240,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(105,21,NULL,'','zakat','','Zakat Expenses',250,1,'2014-06-03 09:33:20',0,'2014-06-25 04:33:21',0),(106,21,NULL,'','uninvoiceAP','','Un-invoice AP',165,1,'2014-06-06 03:28:56',0,'2014-07-03 03:48:46',0),(107,21,1,'','bank','','Banking Account',35,0,'2014-06-25 03:25:00',0,'2014-08-01 09:07:23',0),(108,22,NULL,'','Founder(s)','','',10,1,'2014-07-18 01:43:04',0,'2014-07-18 01:43:32',0),(109,22,NULL,'','Owner(s)/Shareholder(s)','','',20,1,'2014-07-18 01:43:04',0,'2014-07-18 01:43:36',0),(110,22,NULL,'','Director(s)','','',30,0,'2014-07-18 01:44:57',0,'0000-00-00 00:00:00',0),(111,22,NULL,'','Other(s)','','',40,0,'2014-07-18 01:44:57',0,'0000-00-00 00:00:00',0),(112,21,NULL,'','wakafAcrual','','Wakaf Accrual',280,1,'2014-08-01 09:20:26',0,'2014-08-05 01:22:20',0),(114,21,NULL,'','zakatPayable','','zakap payable',260,0,'2014-08-04 07:30:14',0,'2014-08-05 01:21:58',0),(115,21,NULL,'','wakafExpense','','wakaf Expenses',270,0,'2014-08-04 07:30:14',0,'2014-08-05 01:22:11',0),(116,22,0,'waki','new waqif','new','new',5,0,'2014-08-10 21:18:10',0,'0000-00-00 00:00:00',0),(117,7,0,'001','Director Fund','DF','',0,0,'2014-08-20 20:57:18',0,'2014-08-21 02:59:13',1),(118,18,NULL,'GT','GST Transaction','GT','GST Transaction Form',310,1,'2014-05-07 10:01:25',0,'0000-00-00 00:00:00',0),(119,7,0,'-','koperasi kakitangan petronas','kopetro','transfer',1,0,'2015-06-11 10:39:12',0,'2015-06-11 16:42:00',1),(120,7,0,'-','IBG TRANSFER','-','IBG TRANSFER',101,0,'2015-06-11 10:42:17',0,'0000-00-00 00:00:00',0),(121,7,0,'','credit card','card','credit card',0,0,'2015-06-14 05:35:35',0,'0000-00-00 00:00:00',0),(122,20,0,'','ALLOWANCE','ELAUN','ALLOWANCE',102,0,'2015-06-14 10:22:50',0,'0000-00-00 00:00:00',0),(160,18,NULL,'BD','Bad Debt Relief','BD','Bad Debt Relief Form',311,1,'2014-05-06 18:01:25',0,'0000-00-00 00:00:00',0),(161,18,NULL,'BDR','Bad Debt Recover','DR','Bad Debt Recover Form',312,1,'2014-05-06 18:01:25',0,'2015-06-05 01:16:55',0),(162,18,NULL,'SDR','Supplier Bad Debt Recover','SDR','Supplier Bad Debt Recover Form',313,1,'2014-05-06 18:01:25',0,'2015-06-05 01:16:55',0),(163,18,NULL,'SBD','Supplier Bad Debt Relief','SBD','Supplier Bad Debt Relief Form',314,1,'2014-05-06 18:01:25',0,'0000-00-00 00:00:00',0),(164,7,0,'8500','auto debit','a/debit','auto debit',0,0,'2015-06-24 07:16:39',0,'0000-00-00 00:00:00',0),(165,7,0,'','cash deposit machine','cash dep','cash dep',0,0,'2015-12-30 09:48:11',0,'0000-00-00 00:00:00',0);

--
