-- Table structure for table `pos_users`
--

CREATE TABLE `pos_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pos_users`
--

INSERT INTO `pos_users` VALUES (1,'admin'),(2,'tebara2'),(3,'tebara1');

--
-- Table structure for table `pricematrix`
--

CREATE TABLE `pricematrix` (
  `salestype` char(2) NOT NULL DEFAULT '',
  `stockid` varchar(20) NOT NULL DEFAULT '',
  `quantitybreak` int(11) NOT NULL DEFAULT '1',
  `price` double NOT NULL DEFAULT '0',
  `currabrev` char(3) NOT NULL DEFAULT '',
  `startdate` date NOT NULL,
  `enddate` date NOT NULL,
  `lastupdate` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pricematrix`
--


--
-- Table structure for table `prices1`
--

CREATE TABLE `prices1` (
  `stockid` varchar(20) NOT NULL DEFAULT '',
  `typeabbrev` char(2) NOT NULL DEFAULT '',
  `currabrev` char(3) NOT NULL DEFAULT '',
  `debtorno` varchar(10) NOT NULL DEFAULT '',
  `price` decimal(20,4) NOT NULL DEFAULT '0.0000',
  `branchcode` varchar(10) NOT NULL DEFAULT '',
  `startdate` date NOT NULL DEFAULT '0000-00-00',
  `enddate` date NOT NULL DEFAULT '9999-12-31',
  `lastupdate` varchar(100) DEFAULT NULL,
  `modified_by` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`stockid`,`typeabbrev`,`currabrev`,`debtorno`,`branchcode`,`startdate`,`enddate`),
  KEY `CurrAbrev` (`currabrev`),
  KEY `DebtorNo` (`debtorno`),
  KEY `StockID` (`stockid`),
  KEY `TypeAbbrev` (`typeabbrev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `prices1`
--

INSERT INTO `prices1` VALUES ('1','DF','FJD','',8.4900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('10','DF','FJD','',6.4100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('100','DF','FJD','',11.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('101','DF','FJD','',20.1800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('11','DF','FJD','',8.2500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('111','DF','FJD','',11.9900,'','2018-11-15','0000-00-00','2018/11/15 05:11:27','jhairud'),('115','DF','FJD','',8.7100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('116','DF','FJD','',9.1700,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('117','DF','FJD','',5.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('118','DF','FJD','',18.8000,'','2018-09-18','9999-12-31','2019/07/13 11:07:05','jhairud'),('119','DF','FJD','',0.7300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('12','DF','FJD','',13.9900,'','2018-09-18','9999-12-31','2018/12/21 10:27:21','jhairud'),('120','DF','FJD','',14.2100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('121','DF','FJD','',15.1400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('122','DF','FJD','',0.9400,'','2018-09-18','9999-12-31','2019/01/11 10:47:44','jhairud'),('123','DF','FJD','',0.3400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('124','DF','FJD','',1.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('125','DF','FJD','',1.8300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('126','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('127','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('128','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('129','DF','FJD','',7.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('13','DF','FJD','',7.7900,'','2018-09-18','9999-12-31','2018/09/20 08:50:23','jhairud'),('130','DF','FJD','',6.4100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('131','DF','FJD','',16.0500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('132','DF','FJD','',1.3700,'','2018-09-18','9999-12-31','2019/01/11 11:26:09','jhairud'),('133','DF','FJD','',4.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('134','DF','FJD','',5.4960,'','2018-09-18','9999-12-31','2018/09/19 10:03:56','jhairud'),('135','DF','FJD','',3.6600,'','2018-09-18','9999-12-31','2019/04/26 09:42:33','jhairud'),('136','DF','FJD','',7.3400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('137','DF','FJD','',10.0900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('138','DF','FJD','',44.0400,'','2018-09-18','9999-12-31','2019/06/29 12:39:35','jhairud'),('139','DF','FJD','',10.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('14','DF','FJD','',1.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('140','DF','FJD','',16.9700,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('141','DF','FJD','',15.1300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('142','DF','FJD','',4.5800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('143','DF','FJD','',16.9600,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('144','DF','FJD','',7.7900,'','2018-09-18','9999-12-31','2019/07/13 11:11:39','jhairud'),('145','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('146','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('147','DF','FJD','',4.1300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('148','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('149','DF','FJD','',9.1650,'','2018-09-18','9999-12-31','2019/04/26 10:33:55','jhairud'),('15','DF','FJD','',9.7500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('150','DF','FJD','',13.7500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('151','DF','FJD','',7.3300,'','2018-09-18','9999-12-31','2019/04/05 11:23:19','jhairud'),('152','DF','FJD','',9.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('153','DF','FJD','',7.3300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('155','DF','FJD','',18.3400,'','2018-11-15','0000-00-00','2018/11/15 05:05:20','jhairud'),('156','DF','FJD','',14.2100,'','2018-11-23','0000-00-00','2018/11/23 10:58:59','jhairud'),('157','DF','FJD','',9.1650,'','2019-04-25','0000-00-00','2019/04/26 10:28:30','jhairud'),('16','DF','FJD','',10.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('17','DF','FJD','',12.4900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('18','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('19','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('2','DF','FJD','',13.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('20','DF','FJD','',12.7500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('21','DF','FJD','',4.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('22','DF','FJD','',8.9500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('23','DF','FJD','',7.7900,'','2018-09-18','9999-12-31','2019/06/29 11:59:32','jhairud'),('24','DF','FJD','',7.3300,'','2018-09-18','9999-12-31','2019/07/13 11:10:37','jhairud'),('25','DF','FJD','',8.2500,'','2018-09-18','9999-12-31','2019/06/29 12:04:08','jhairud'),('26','DF','FJD','',7.7900,'','2018-09-18','9999-12-31','2019/07/13 11:12:08','jhairud'),('27','DF','FJD','',3.6600,'','2018-09-18','9999-12-31','2019/04/26 09:41:48','jhairud'),('28','DF','FJD','',3.4800,'','2018-09-18','9999-12-31','2019/08/28 10:35:05','jhairud'),('29','DF','FJD','',4.1200,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('3','DF','FJD','',16.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('30','DF','FJD','',5.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('32','DF','FJD','',6.4100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('33','DF','FJD','',6.4100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('34','DF','FJD','',3.2000,'','2018-09-18','9999-12-31','2018/10/12 09:28:37','jhairud'),('35','DF','FJD','',10.5400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('36','DF','FJD','',10.5400,'','2018-09-18','9999-12-31','2018/12/01 11:19:19','jhairud'),('37','DF','FJD','',12.3800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('38','DF','FJD','',13.2900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('39','DF','FJD','',14.2100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('4','DF','FJD','',12.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('40','DF','FJD','',15.1300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('41','DF','FJD','',10.5400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('42','DF','FJD','',11.4600,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('43','DF','FJD','',12.3800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('44','DF','FJD','',13.2900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('45','DF','FJD','',14.2100,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('46','DF','FJD','',9.6300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('47','DF','FJD','',10.5400,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('48','DF','FJD','',11.4600,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('49','DF','FJD','',12.3800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('5','DF','FJD','',7.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('50','DF','FJD','',13.2900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('51','DF','FJD','',13.2900,'','2018-09-18','9999-12-31','2019/07/13 11:02:39','jhairud'),('52','DF','FJD','',14.6700,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('53','DF','FJD','',18.1600,'','2018-09-18','9999-12-31','2019/07/13 11:09:47','jhairud'),('54','DF','FJD','',7.7900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('55','DF','FJD','',17.8800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('56','DF','FJD','',18.3400,'','2018-09-18','9999-12-31','2019/07/13 11:09:04','jhairud'),('57','DF','FJD','',14.6700,'','2018-09-18','9999-12-31','2019/07/13 11:04:11','jhairud'),('58','DF','FJD','',18.3400,'','2018-09-18','9999-12-31','2019/07/13 11:08:22','jhairud'),('59','DF','FJD','',18.8000,'','2018-09-18','9999-12-31','2019/07/13 11:06:24','jhairud'),('6','DF','FJD','',4.9500,'','2018-09-18','0000-00-00','2018/12/21 10:40:03','jhairud'),('6','DF','FJD','',6.9500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('60','DF','FJD','',9.6200,'','2018-09-18','9999-12-31','2019/07/13 11:07:44','jhairud'),('61','DF','FJD','',1.3700,'','2018-09-18','9999-12-31','2018/09/21 02:36:42','jhairud'),('62','DF','FJD','',6.7800,'','2018-09-18','9999-12-31','2019/07/13 11:04:56','jhairud'),('63','DF','FJD','',8.2500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('64','DF','FJD','',5.0400,'','2018-09-18','9999-12-31','2019/09/16 10:24:19','jhairud'),('65','DF','FJD','',6.9500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('66','DF','FJD','',11.8800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('67','DF','FJD','',10.5500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('68','DF','FJD','',10.5500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('69','DF','FJD','',4.5800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('7','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('70','DF','FJD','',0.7300,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('71','DF','FJD','',13.7200,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('72','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('73','DF','FJD','',13.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('74','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('75','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('76','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('77','DF','FJD','',6.4130,'','2018-09-18','9999-12-31','2018/09/29 12:50:03','jhairud'),('78','DF','FJD','',9.4500,'','2018-09-18','9999-12-31','2018/12/15 11:32:45','jhairud'),('79','DF','FJD','',7.2900,'','2018-09-18','9999-12-31','2018/12/22 02:24:45','jhairud'),('8','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('80','DF','FJD','',8.7200,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('81','DF','FJD','',11.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('82','DF','FJD','',3.6600,'','2018-09-18','9999-12-31','2019/03/13 10:24:41','jhairud'),('83','DF','FJD','',0.4800,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('84','DF','FJD','',2.5200,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('85','DF','FJD','',0.2000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('86','DF','FJD','',3.6700,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('87','DF','FJD','',8.2500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('88','DF','FJD','',11.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('89','DF','FJD','',15.5900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('9','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('90','DF','FJD','',15.4000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('91','DF','FJD','',17.4200,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('92','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('93','DF','FJD','',0.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('94','DF','FJD','',1.4500,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('95','DF','FJD','',4.5800,'','2018-09-18','9999-12-31','2019/04/26 09:55:03','jhairud'),('96','DF','FJD','',30.0000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('97','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL),('98','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2019/01/11 10:57:30','jhairud'),('99','DF','FJD','',1.1000,'','2018-09-18','9999-12-31','2018-09-18 13:58:25',NULL);

--
-- Table structure for table `prices2`
--

CREATE TABLE `prices2` (
  `stockid` varchar(20) NOT NULL DEFAULT '',
  `typeabbrev` char(2) NOT NULL DEFAULT '',
  `currabrev` char(3) NOT NULL DEFAULT '',
  `debtorno` varchar(10) NOT NULL DEFAULT '',
  `price` decimal(20,4) NOT NULL DEFAULT '0.0000',
  `branchcode` varchar(10) NOT NULL DEFAULT '',
  `startdate` date NOT NULL DEFAULT '0000-00-00',
  `enddate` date NOT NULL DEFAULT '9999-12-31',
  `lastupdate` varchar(100) DEFAULT NULL,
  `modified_by` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`stockid`,`typeabbrev`,`currabrev`,`debtorno`,`branchcode`,`startdate`,`enddate`),
  KEY `CurrAbrev` (`currabrev`),
  KEY `DebtorNo` (`debtorno`),
  KEY `StockID` (`stockid`),
  KEY `TypeAbbrev` (`typeabbrev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `prices2`
--

INSERT INTO `prices2` VALUES ('1','DF','FJD','',8.4900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('10','DF','FJD','',6.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('100','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('101','DF','FJD','',22.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('11','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('115','DF','FJD','',8.7100,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('116','DF','FJD','',10.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('117','DF','FJD','',5.5000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('118','DF','FJD','',17.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('119','DF','FJD','',0.8000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('12','DF','FJD','',10.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('120','DF','FJD','',14.2100,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('121','DF','FJD','',16.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('122','DF','FJD','',0.4400,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('123','DF','FJD','',0.3400,'','2018-07-10','2018-09-18','2018-09-18 11:20:25',NULL),('123','DF','FJD','',0.3400,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('124','DF','FJD','',1.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('125','DF','FJD','',1.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('126','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('127','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('128','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('129','DF','FJD','',7.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('13','DF','FJD','',7.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('130','DF','FJD','',6.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('131','DF','FJD','',16.0500,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('132','DF','FJD','',14.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('133','DF','FJD','',4.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('134','DF','FJD','',8.2500,'','2018-09-18','9999-12-31','2018/09/18 11:47:54','sachin'),('135','DF','FJD','',3.7000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('136','DF','FJD','',7.3400,'','2018-07-20','0000-00-00','2018-09-18 11:20:25','jhairud'),('137','DF','FJD','',10.0900,'','2018-07-26','0000-00-00','2018-09-18 11:20:25','jhairud'),('138','DF','FJD','',45.0100,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('139','DF','FJD','',10.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('14','DF','FJD','',1.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('140','DF','FJD','',18.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('141','DF','FJD','',15.1300,'','2018-07-29','0000-00-00','2018-09-18 11:20:25','jhairud'),('142','DF','FJD','',4.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('143','DF','FJD','',16.9600,'','2018-08-06','0000-00-00','2018-09-18 11:20:25','jhairud'),('144','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('145','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('146','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('147','DF','FJD','',4.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('148','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('149','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('15','DF','FJD','',9.7500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('150','DF','FJD','',14.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('151','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('152','DF','FJD','',9.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('153','DF','FJD','',7.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('16','DF','FJD','',10.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('17','DF','FJD','',12.4900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('18','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('19','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('2','DF','FJD','',13.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('20','DF','FJD','',12.7500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('21','DF','FJD','',4.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('22','DF','FJD','',8.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('23','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('24','DF','FJD','',9.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('25','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('26','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('27','DF','FJD','',3.7000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('28','DF','FJD','',3.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('29','DF','FJD','',4.1200,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('3','DF','FJD','',16.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('30','DF','FJD','',5.5000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('31','DF','FJD','',5.5000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('32','DF','FJD','',5.5000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('33','DF','FJD','',6.4100,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('34','DF','FJD','',3.2000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('35','DF','FJD','',10.5400,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('36','DF','FJD','',11.4600,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('37','DF','FJD','',12.3800,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('38','DF','FJD','',13.2900,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('39','DF','FJD','',14.2100,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('4','DF','FJD','',12.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('40','DF','FJD','',15.1300,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('41','DF','FJD','',10.5400,'','2018-07-10','0000-00-00','2018-09-18 11:20:25','jhairud'),('42','DF','FJD','',11.4600,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('43','DF','FJD','',12.3800,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('44','DF','FJD','',13.2900,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('45','DF','FJD','',14.2100,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('46','DF','FJD','',9.6300,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('47','DF','FJD','',10.5400,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('48','DF','FJD','',11.4600,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('49','DF','FJD','',12.3800,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('5','DF','FJD','',7.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('50','DF','FJD','',13.2900,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('51','DF','FJD','',12.1900,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','jhairud'),('52','DF','FJD','',15.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('53','DF','FJD','',16.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('54','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('55','DF','FJD','',19.4900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('56','DF','FJD','',16.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('57','DF','FJD','',14.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('58','DF','FJD','',17.4900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('59','DF','FJD','',17.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('6','DF','FJD','',6.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('60','DF','FJD','',10.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('61','DF','FJD','',1.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('62','DF','FJD','',6.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('63','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('64','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('65','DF','FJD','',6.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('66','DF','FJD','',12.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('67','DF','FJD','',11.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('68','DF','FJD','',11.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('69','DF','FJD','',4.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('7','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('70','DF','FJD','',0.8000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('71','DF','FJD','',13.7200,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('72','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('73','DF','FJD','',13.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('74','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('75','DF','FJD','',12.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('76','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('77','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('78','DF','FJD','',9.9500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('79','DF','FJD','',8.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('8','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('80','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('81','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('82','DF','FJD','',4.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('83','DF','FJD','',0.4800,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('84','DF','FJD','',2.7500,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('85','DF','FJD','',0.2000,'','2018-07-10','9999-12-31','2018-09-18 11:20:25','admin'),('86','DF','FJD','',4.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('87','DF','FJD','',8.2500,'','2018-07-10','9999-12-31','2018-09-18 11:20:25',NULL),('88','DF','FJD','',11.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('89','DF','FJD','',16.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('9','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('90','DF','FJD','',16.7900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('91','DF','FJD','',18.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('92','DF','FJD','',8.9900,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('93','DF','FJD','',0.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('94','DF','FJD','',1.4500,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('95','DF','FJD','',4.5800,'','2018-09-18','9999-12-31','2018/09/18 11:46:12','sachin'),('96','DF','FJD','',30.0000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('97','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('98','DF','FJD','',9.5000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL),('99','DF','FJD','',1.2000,'','2018-09-18','9999-12-31','2018-09-18 11:20:25',NULL);

--
-- Table structure for table `prodspecs`
--

CREATE TABLE `prodspecs` (
  `keyval` varchar(25) NOT NULL,
  `testid` int(11) NOT NULL,
  `defaultvalue` varchar(150) NOT NULL DEFAULT '',
  `targetvalue` varchar(30) NOT NULL DEFAULT '',
  `rangemin` float DEFAULT NULL,
  `rangemax` float DEFAULT NULL,
  `showoncert` tinyint(11) NOT NULL DEFAULT '1',
  `showonspec` tinyint(4) NOT NULL DEFAULT '1',
  `showontestplan` tinyint(4) NOT NULL DEFAULT '1',
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`keyval`,`testid`),
  KEY `testid` (`testid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `prodspecs`
--


--
-- Table structure for table `productivity`
--

CREATE TABLE `productivity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `employeeid` int(5) NOT NULL,
  `targets` varchar(100) NOT NULL,
  `achieved` tinyint(1) NOT NULL,
  `remarks` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `productivity`
--


--
-- Table structure for table `progressive_billing`
--

CREATE TABLE `progressive_billing` (
  `pgid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `phase_name` varchar(100) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `actual_material` decimal(10,2) NOT NULL,
  `actual_labor` decimal(10,2) DEFAULT '0.00',
  `actual_others` decimal(10,2) DEFAULT '0.00',
  `total_actual_cost` decimal(10,2) NOT NULL,
  `costing_no` int(11) DEFAULT NULL,
  `bill_rate` decimal(10,2) NOT NULL,
  `billing_amount_vep` decimal(10,2) NOT NULL,
  `billing_amount_vip` decimal(10,2) NOT NULL,
  `narrative` varchar(1000) DEFAULT NULL,
  `comments` varchar(200) DEFAULT NULL,
  `status` varchar(100) NOT NULL,
  PRIMARY KEY (`pgid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `progressive_billing`
--

INSERT INTO `progressive_billing` VALUES (1,41,'phase1/month1','2018-02-01','2018-02-28',2687.08,0.00,2500.00,5187.08,37,0.37,8711.79,9495.85,'Install fire system. claim: 345','test2','approved');

--
-- Table structure for table `project_actual_labor_cost`
--

CREATE TABLE `project_actual_labor_cost` (
  `actuallaborcostid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `projectperiodid` int(11) NOT NULL,
  `date_entered` date NOT NULL,
  `timesheet_id` decimal(10,0) NOT NULL,
  `employee_name` varchar(20) NOT NULL,
  `hours` decimal(10,0) NOT NULL,
  `rate_paid` decimal(10,0) NOT NULL,
  `total_paid` decimal(10,0) NOT NULL,
  PRIMARY KEY (`actuallaborcostid`),
  KEY `projectid` (`projectid`),
  KEY `projectperiodid` (`projectperiodid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `project_actual_labor_cost`
--


--
-- Table structure for table `project_report`
--

CREATE TABLE `project_report` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `project_value` decimal(10,2) NOT NULL,
  `budgeted_cost` decimal(10,2) NOT NULL,
  `actual_cost_till _date` decimal(10,2) NOT NULL,
  `cost_to_complete` decimal(10,2) NOT NULL,
  `total_invoiced_till_date` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `project_report`
--


--
-- Table structure for table `project_stock`
--

CREATE TABLE `project_stock` (
  `project_stock_id` int(11) NOT NULL AUTO_INCREMENT,
  `stockid` varchar(200) NOT NULL,
  `projectid` int(11) NOT NULL,
  `date_received` date NOT NULL,
  `location_received_from` varchar(100) NOT NULL,
  `department_received_from` tinyint(4) NOT NULL,
  `qty_received` decimal(10,2) NOT NULL,
  PRIMARY KEY (`project_stock_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf32;

--
-- Dumping data for table `project_stock`
--

INSERT INTO `project_stock` VALUES (1,'03650D-1',2,'2018-04-03','SUVA',52,10.00),(2,'1418',2,'2018-05-03','SUVA',52,10.00);

--
-- Table structure for table `project_tally`
--

CREATE TABLE `project_tally` (
  `id` int(11) NOT NULL,
  `projectid` int(11) NOT NULL,
  `actual_cost_till_date` decimal(10,2) NOT NULL,
  `cost_to_complete` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `project_tally`
--


--
-- Table structure for table `projectactualmaterials`
--

CREATE TABLE `projectactualmaterials` (
  `actualmaterialsid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `projectperiodid` tinyint(4) NOT NULL,
  `cost_name` varchar(20) NOT NULL,
  `qty` decimal(10,0) NOT NULL,
  `unit_price` decimal(10,0) NOT NULL,
  `total_cost` decimal(10,0) NOT NULL,
  `tax_type` varchar(20) NOT NULL,
  `vat_paid` decimal(10,0) NOT NULL,
  PRIMARY KEY (`actualmaterialsid`),
  KEY `projectid` (`projectid`),
  KEY `projectperiodid` (`projectperiodid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectactualmaterials`
--


--
-- Table structure for table `projectactualperiod`
--

CREATE TABLE `projectactualperiod` (
  `projectperiodid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `period_name` varchar(20) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `actual_material_cost` decimal(10,2) NOT NULL,
  `actual_labor_cost` decimal(10,2) NOT NULL,
  `actual_total_cost` decimal(10,2) NOT NULL,
  `sales_ratio` decimal(10,2) NOT NULL,
  `sales_revenue` decimal(10,0) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`projectperiodid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectactualperiod`
--


--
-- Table structure for table `projectadjustments`
--

CREATE TABLE `projectadjustments` (
  `ac_id` int(11) NOT NULL AUTO_INCREMENT,
  `pgid` int(11) NOT NULL,
  `sector` varchar(100) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `comment` varchar(100) NOT NULL,
  `costed_by` varchar(100) NOT NULL,
  `approved` tinyint(1) NOT NULL,
  `approved_by` varchar(100) NOT NULL,
  PRIMARY KEY (`ac_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectadjustments`
--

INSERT INTO `projectadjustments` VALUES (1,1,'Project Manager',2000.00,'testing','sachin',0,''),(2,1,'Finance Team',500.00,'test3','sachin',0,'');

--
-- Table structure for table `projectattachments`
--

CREATE TABLE `projectattachments` (
  `projectattachid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `name` varchar(20) NOT NULL,
  `file` blob NOT NULL,
  PRIMARY KEY (`projectattachid`),
  KEY `projectid` (`projectid`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectattachments`
--

INSERT INTO `projectattachments` VALUES (1,6,'',''),(2,21,'','Quote_MHCC_upgrade_sample.pdf'),(3,24,'Abhinesh','W2720-17_Peninsula_International_Hotel_FAS_FP1600_rev_2.xlsx'),(4,24,'Abhinesh','W2720-17_Peninsula_International_Hotel_FAS_FP1600_REV.pdf'),(5,24,'Abhinesh','Peninsula_LPO.pdf'),(6,31,'','Housing_Annual_Survey_Defects_FAS.doc'),(7,32,'Value City, Valelevu',''),(8,35,'','JOB_COSTING.csv'),(9,38,'',''),(10,42,'Holiday Inn',''),(11,35,'lawhill limited','jobcosting_36rp8xj4o5kww.csv'),(12,43,'',''),(13,44,'Shop N Save Nabua',''),(14,45,'ShopNSaveWarehsNabua','LPO215191ShopNSave.pdf'),(15,47,'AHCRes Hs#3 42RsrvRd',''),(16,48,'6 Waimate',''),(18,49,'Pacific Power Ass.','Inv_8870_PACIFIC_POWER_ASSOCIATION.pdf'),(19,50,'21 Burerua St',''),(20,51,'27 Salato',''),(21,52,'9 Vere Road',''),(22,52,'9 Vere',''),(23,53,'6 Waimate','');

--
-- Table structure for table `projectcosting`
--

CREATE TABLE `projectcosting` (
  `pcid` int(11) NOT NULL AUTO_INCREMENT,
  `projectid` int(11) NOT NULL,
  `date` date NOT NULL,
  `name` varchar(100) NOT NULL,
  `budgeted_material` decimal(10,2) NOT NULL,
  `budgeted_labor` decimal(10,2) NOT NULL,
  `budgeted_others` decimal(10,2) NOT NULL,
  `budgeted_total_cost` decimal(10,2) NOT NULL,
  `contract_value` decimal(10,2) NOT NULL,
  `estimated_profit` decimal(10,2) NOT NULL,
  `contract_vip` decimal(10,2) NOT NULL,
  `notes` varchar(1000) NOT NULL,
  `status` varchar(100) NOT NULL,
  PRIMARY KEY (`pcid`),
  UNIQUE KEY `projectid` (`projectid`)
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectcosting`
--

INSERT INTO `projectcosting` VALUES (1,8,'2017-02-27','Carpenters Fiji Ltd',264.05,175.00,0.00,439.05,614.67,0.00,669.99,'This quote valid for 14 days only.','approved costing'),(2,9,'2017-02-27','COCA COLA',3762.60,5600.00,141.25,9503.85,13305.39,0.00,14502.88,'30 DAYS','approved costing'),(3,11,'2017-02-27','MHCC CCTV',17.50,0.00,0.00,17.50,24.50,0.00,26.71,'30 Days','sent quotation'),(4,10,'2017-02-28','FE Servicing - university of the south pacific',519.30,262.50,0.00,781.80,1094.52,0.00,1193.03,'','approved costing'),(5,12,'2017-02-27','Buttsy Apartments',0.00,70.00,950.00,1020.00,1428.00,0.00,1556.52,'','approved costing'),(6,7,'0000-00-00','USP - FALE',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','drafting'),(7,15,'2017-05-04','Alarm Installs for Fiji Airways',35.00,0.00,0.00,35.00,49.00,0.00,53.41,'','approved costing'),(8,17,'2017-05-04','COCO COLA',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'30 DAYS VALID','drafting'),(9,16,'2017-05-04','Fire Alarm System @ Westin Resort',1575.00,0.00,0.00,1575.00,2205.00,0.00,2403.45,'30 Days','approved costing'),(10,19,'0000-00-00','Installation of Intruder Alarm System at Value City - Lautoka',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','drafting'),(11,20,'2017-05-12','SPK @ Sheraton Resort',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','drafting'),(12,3,'2017-06-09','Alarm System at mhcc',475.28,0.00,0.00,475.28,665.39,0.00,725.28,'','approved costing'),(13,21,'2017-06-20','MH Valelevu',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','approved costing'),(14,22,'2017-06-22','Tappoo City',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','approved costing'),(20,24,'2017-09-20','Peninsula International Hotel',2000.00,2625.00,216.00,4841.00,3425.00,-1416.00,3733.25,'testinh','approved costing'),(21,23,'2017-09-20','EU site - Cakobau Apartment 1, 3 Cakobau Rd',2000.00,2625.00,216.00,4841.00,8068.33,3227.33,8794.48,'testing','approved costing'),(22,25,'2017-09-21','Westpac Level 3 Central St, Suva',5000.00,2625.00,216.00,7841.00,13153.08,5312.08,14336.86,'testing','approved costing'),(23,26,'2017-09-22','courts',5000.00,2625.00,216.00,7841.00,13153.08,5312.08,14336.86,'','approved costing'),(25,27,'0000-00-00','westpac',5000.00,0.00,0.00,5000.00,8333.33,3333.33,9083.33,'','drafting'),(26,28,'2017-09-27','AFL Extra cameras Arrivals hall',1050.40,480.00,1047.69,2578.09,3609.32,1031.23,3934.16,'Arrivals','approved costing'),(27,31,'0000-00-00','Housing Authority',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'30','approved costing'),(28,32,'0000-00-00','Value City (SP) Ltd',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','approved costing'),(29,33,'2017-11-09','Fire Fighting Equipment',2344.82,2625.00,216.00,5185.82,8695.28,3509.46,9477.86,'This quotation is valid for 30 Days','approved costing'),(30,34,'2017-11-09','Fire Alarm Annual Survey Defects',3188.30,3150.00,565.00,6903.30,0.00,-6903.30,0.00,'30 Days','drafting'),(31,35,'2017-11-09','Fire Equipment Servicing',0.00,780.30,0.00,780.30,780.30,0.00,850.53,'This quotation is valid for 30days','approved costing'),(32,36,'2017-11-09','FMF Annual Survey Defects',6376.60,6300.00,1130.00,13806.60,0.00,-13806.60,0.00,'30 Days','approved costing'),(33,37,'2017-11-09','FMF Annual Survey Defects',3188.30,3150.00,565.00,6903.30,0.00,-6903.30,0.00,'30 Days','approved costing'),(34,38,'2017-11-09','Pizza King Centre Point LBE',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'Quotation is valid for 30 days.','approved costing'),(35,39,'2017-11-10','Housing Authority Annual Survey Defects',1560.60,0.00,0.00,1560.60,1560.60,0.00,1701.05,'30 Days','approved costing'),(37,41,'2017-11-13','FAS Annual Survey Defects',12284.33,1750.00,102.50,14136.83,23545.38,9408.55,25664.46,'Testing.... can put comments remarks, etc here','approved costing'),(38,42,'2017-11-09','R102 Servicing',3340.99,0.00,432.00,3772.99,2020.63,-1752.36,2202.49,'This quotation is valid for 30days.','sent quotation'),(39,43,'2017-11-03','AHC site - Hs#3 24 Reservoir Rd',0.00,46.00,0.00,46.00,42.20,-3.80,46.00,'30 days','job completed'),(40,44,'2017-11-14','Shop N Save',0.00,75.00,0.00,75.00,68.81,-6.19,75.00,'','approved costing'),(41,45,'2017-11-14','ShopNSave Nabua Warehouse',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'Quote is valid for 30 days unless approved by WFS.','approved costing'),(42,47,'2017-11-03','AHC site - Hs#3 42 Reservoir Road',0.00,46.00,0.00,46.00,42.17,-3.83,45.97,'valid for 30 days.','job completed'),(43,48,'2017-11-17','6 Waimate',0.00,0.00,0.00,0.00,229.35,229.35,249.99,'Job completed - Security Service Call Report no.','approved costing'),(44,49,'2017-11-06','Pacific Power Association',0.00,195.32,0.00,195.32,1264.23,1068.91,1378.01,'Quote is valid for 30 Days.','approved costing'),(45,50,'2017-11-14','21 Burerua St',0.00,27.75,0.00,27.75,50.46,22.71,55.00,'N/A','approved costing'),(46,51,'2017-11-11','27 SALATO ROAD',0.00,27.75,0.00,27.75,50.46,22.71,55.00,'N/A','job completed'),(47,52,'2017-11-14','Mr Anoj Sharma',0.00,43.21,0.00,43.21,142.20,98.99,155.00,'N/A','job completed'),(48,53,'2017-11-14','6 Waimate, Lami',0.00,0.00,0.00,0.00,114.65,114.65,124.97,'N/A','approved costing'),(49,54,'2018-02-10','Courts Savusavu',400.00,0.00,0.00,400.00,666.67,266.67,726.67,'','approved costing'),(50,46,'2018-05-08','test',0.00,0.00,0.00,0.00,0.00,0.00,0.00,'','approved costing');

--
-- Table structure for table `projectcostingdetail`
--

CREATE TABLE `projectcostingdetail` (
  `projectcostingid` int(11) NOT NULL AUTO_INCREMENT,
  `pcid` int(11) NOT NULL,
  `cost_type` varchar(100) NOT NULL,
  `item_id` varchar(100) DEFAULT NULL,
  `item_details` varchar(1000) NOT NULL,
  `narrative` varchar(500) DEFAULT NULL,
  `unit_cost` decimal(10,2) NOT NULL,
  `qty` decimal(10,0) NOT NULL,
  `uom` varchar(20) NOT NULL,
  `total_cost` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  PRIMARY KEY (`projectcostingid`),
  KEY `projectid` (`pcid`)
) ENGINE=InnoDB AUTO_INCREMENT=366 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectcostingdetail`
--

INSERT INTO `projectcostingdetail` VALUES (1,16,'materials','465','A grade brand fire s',NULL,450.00,2,'EACH',900.00,40.00,900.00),(2,16,'materials','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(3,16,'labour','','service',NULL,25.00,8,'HOURS',200.00,40.00,900.00),(4,16,'others','','test',NULL,8.00,5,'EACH',40.00,40.00,40.00),(5,17,'materials','465','A grade brand fire s',NULL,450.00,2,'EACH',900.00,40.00,900.00),(6,17,'materials','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(7,17,'labour','','service',NULL,25.00,8,'HOURS',200.00,40.00,900.00),(8,17,'others','','test',NULL,8.00,5,'EACH',40.00,40.00,40.00),(9,17,'others','450','nw product',NULL,5.60,30,'EACH ',168.00,40.00,168.00),(10,18,'materials','465','A grade brand fire s',NULL,500.00,4,'EACH',2000.00,40.00,2000.00),(11,18,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(12,19,'materials','465','A grade brand fire s',NULL,500.00,4,'EACH',2000.00,40.00,2000.00),(13,19,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(14,19,'materials','860','testing item',NULL,525.00,5,'',2625.00,40.00,525.00),(15,20,'materials','465','A grade brand fire s',NULL,500.00,4,'EACH',2000.00,40.00,2000.00),(16,20,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(17,20,'labour','860','testing item',NULL,525.00,5,'HOURS',2625.00,40.00,525.00),(18,21,'materials','465','A grade brand fire s',NULL,500.00,4,'EACH',2000.00,40.00,3333.33),(19,21,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,360.00),(20,21,'labour','860','testing item',NULL,525.00,5,'HOURS',2625.00,40.00,4375.00),(21,22,'materials','465','A grade brand fire s',NULL,500.00,4,'EACH',2000.00,40.00,3333.33),(22,22,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,360.00),(23,22,'labour','860','testing item',NULL,525.00,5,'HOURS',2625.00,40.00,4375.00),(24,22,'materials','4860','product',NULL,600.00,5,'EACH',3000.00,41.00,5084.75),(25,23,'materials','465','A grade brand fire system',NULL,500.00,4,'EACH',2000.00,40.00,3333.33),(26,23,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,360.00),(27,23,'labour','860','testing item',NULL,525.00,5,'HOURS',2625.00,40.00,4375.00),(28,23,'materials','4860','product',NULL,600.00,5,'EACH',3000.00,41.00,5084.75),(29,24,'materials','465','A grade brand fire system',NULL,450.00,2,'EACH',900.00,40.00,900.00),(30,24,'materials','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(31,24,'labour','','service',NULL,25.00,8,'HOURS',200.00,40.00,900.00),(32,24,'others','','test',NULL,8.00,5,'EACH',40.00,40.00,40.00),(33,25,'materials',NULL,'',NULL,5000.00,1,'',5000.00,40.00,8333.33),(34,26,'materials','ISP03D1ICWIT','ILLUSTRA CAMERA 3MP P-IRUS MINI DOME',NULL,342.70,2,'EACH',685.40,40.00,959.56),(35,26,'others','SPC-ADC1825-F312','ILLUSTRA 825 5MP FISHEYE 3',NULL,1047.69,1,'EACH',1047.69,40.00,1466.76),(36,26,'labour','860','Tech Labour',NULL,15.00,32,'HOURS',480.00,40.00,672.00),(37,26,'materials','Cat6','Cable',NULL,365.00,1,'EACH',365.00,40.00,511.00),(38,29,'materials','465','A grade brand fire system',NULL,500.00,4,'EACH',2000.00,40.00,3333.33),(39,29,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,360.00),(40,29,'labour','860','testing item',NULL,525.00,5,'HOURS',2625.00,40.00,4375.00),(41,29,'materials','4860','9 KG dry Power',NULL,127.33,1,'EACH',127.33,45.00,231.51),(42,29,'materials','5789','3.5 KG CO2',NULL,217.49,1,'EACH',217.49,45.00,395.44),(58,35,'materials','1','Refill 4.50kg CO2 Gas',NULL,123.75,6,'EACH',742.50,40.00,742.50),(59,35,'materials','2','Refill 0.30kg N2 Gas',NULL,6.30,6,'EACH',37.80,40.00,37.80),(60,35,'materials','1','Refill 4.50kg CO2 Gas',NULL,123.75,6,'EACH',742.50,40.00,742.50),(61,35,'materials','2','Refill 0.30kg N2 Gas',NULL,6.30,6,'EACH',37.80,40.00,37.80),(110,30,'materials','1','Zone A ',NULL,315.00,1,'EACH',315.00,40.00,0.00),(111,30,'materials','2','Zone B ',NULL,57.37,5,'EACH',286.85,40.00,0.00),(112,30,'materials','3','Zone C - Need to Trace & Rectify faults (zone disabled)',NULL,315.00,1,'EACH',315.00,40.00,0.00),(113,30,'materials','4','Zone D & E - Need to Replace 23 only exisitng Old Manual Call Points to Indicating Type Manual Call Points',NULL,57.37,23,'EACH',1319.51,40.00,0.00),(114,30,'Others','5','Lable all Manual Call Points ',NULL,565.00,1,'EACH',565.00,40.00,0.00),(115,30,'materials','6','Zone G - Need to clean Smoke Detectors',NULL,70.00,1,'EACH',70.00,40.00,0.00),(116,30,'materials','7','Zone H - Need to install Smoke Detectors in Gas Flood Panel (No Detectors in this Room)',NULL,397.72,1,'EACH',397.72,40.00,0.00),(117,30,'materials','8','Zone J - Need to 1 only Manual Call Point near Loading Bay Entrance',NULL,57.37,1,'EACH',57.37,40.00,0.00),(118,30,'materials','9','Zone J - Recommend to install 1 only Manual Call Point near Filling Flour Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(119,30,'materials','10','Zone J - Recommend to install 1 only Manual Call Point near Mill Mix Filling Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(120,30,'Labour','11','Zone J & M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(121,30,'materials','12','Zone K - Recommend to install 1 only Manual Call Point near Storage Area for Chips Packet Area above Floor',NULL,57.37,1,'EACH',57.37,40.00,0.00),(122,30,'materials','13','Zone K - Recommend to install 2 only Manual Call Point in Engineering Workshop Storage & Kitchen',NULL,57.37,2,'EACH',114.74,40.00,0.00),(123,30,'Labour','14','Zone M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(124,30,'materials','15','Zone P - To replace 2 only 7amp Batteries for the DBA ',NULL,70.00,2,'EACH',140.00,40.00,0.00),(125,30,'Labour','16','Labour / Transport / Consumables',NULL,1575.00,1,'EACH',1575.00,40.00,0.00),(126,32,'materials','1','Zone A ',NULL,315.00,1,'EACH',315.00,40.00,0.00),(127,32,'materials','2','Zone B ',NULL,57.37,5,'EACH',286.85,40.00,0.00),(128,32,'materials','3','Zone C - Need to Trace & Rectify faults (zone disabled)',NULL,315.00,1,'EACH',315.00,40.00,0.00),(129,32,'materials','4','Zone D & E - Need to Replace 23 only exisitng Old Manual Call Points to Indicating Type Manual Call Points',NULL,57.37,23,'EACH',1319.51,40.00,0.00),(130,32,'Others','5','Lable all Manual Call Points ',NULL,565.00,1,'EACH',565.00,40.00,0.00),(131,32,'materials','6','Zone G - Need to clean Smoke Detectors',NULL,70.00,1,'EACH',70.00,40.00,0.00),(132,32,'materials','7','Zone H - Need to install Smoke Detectors in Gas Flood Panel (No Detectors in this Room)',NULL,397.72,1,'EACH',397.72,40.00,0.00),(133,32,'materials','8','Zone J - Need to 1 only Manual Call Point near Loading Bay Entrance',NULL,57.37,1,'EACH',57.37,40.00,0.00),(134,32,'materials','9','Zone J - Recommend to install 1 only Manual Call Point near Filling Flour Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(135,32,'materials','10','Zone J - Recommend to install 1 only Manual Call Point near Mill Mix Filling Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(136,32,'Labour','11','Zone J & M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(137,32,'materials','12','Zone K - Recommend to install 1 only Manual Call Point near Storage Area for Chips Packet Area above Floor',NULL,57.37,1,'EACH',57.37,40.00,0.00),(138,32,'materials','13','Zone K - Recommend to install 2 only Manual Call Point in Engineering Workshop Storage & Kitchen',NULL,57.37,2,'EACH',114.74,40.00,0.00),(139,32,'Labour','14','Zone M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(140,32,'materials','15','Zone P - To replace 2 only 7amp Batteries for the DBA ',NULL,70.00,2,'EACH',140.00,40.00,0.00),(141,32,'Labour','16','Labour / Transport / Consumables',NULL,1575.00,1,'EACH',1575.00,40.00,0.00),(142,32,'materials','1','Zone A ',NULL,315.00,1,'EACH',315.00,40.00,0.00),(143,32,'materials','2','Zone B ',NULL,57.37,5,'EACH',286.85,40.00,0.00),(144,32,'materials','3','Zone C - Need to Trace & Rectify faults (zone disabled)',NULL,315.00,1,'EACH',315.00,40.00,0.00),(145,32,'materials','4','Zone D & E - Need to Replace 23 only exisitng Old Manual Call Points to Indicating Type Manual Call Points',NULL,57.37,23,'EACH',1319.51,40.00,0.00),(146,32,'Others','5','Lable all Manual Call Points ',NULL,565.00,1,'EACH',565.00,40.00,0.00),(147,32,'materials','6','Zone G - Need to clean Smoke Detectors',NULL,70.00,1,'EACH',70.00,40.00,0.00),(148,32,'materials','7','Zone H - Need to install Smoke Detectors in Gas Flood Panel (No Detectors in this Room)',NULL,397.72,1,'EACH',397.72,40.00,0.00),(149,32,'materials','8','Zone J - Need to 1 only Manual Call Point near Loading Bay Entrance',NULL,57.37,1,'EACH',57.37,40.00,0.00),(150,32,'materials','9','Zone J - Recommend to install 1 only Manual Call Point near Filling Flour Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(151,32,'materials','10','Zone J - Recommend to install 1 only Manual Call Point near Mill Mix Filling Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(152,32,'Labour','11','Zone J & M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(153,32,'materials','12','Zone K - Recommend to install 1 only Manual Call Point near Storage Area for Chips Packet Area above Floor',NULL,57.37,1,'EACH',57.37,40.00,0.00),(154,32,'materials','13','Zone K - Recommend to install 2 only Manual Call Point in Engineering Workshop Storage & Kitchen',NULL,57.37,2,'EACH',114.74,40.00,0.00),(155,32,'Labour','14','Zone M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(156,32,'materials','15','Zone P - To replace 2 only 7amp Batteries for the DBA ',NULL,70.00,2,'EACH',140.00,40.00,0.00),(157,32,'Labour','16','Labour / Transport / Consumables',NULL,1575.00,1,'EACH',1575.00,40.00,0.00),(158,33,'materials','1','Zone A ',NULL,315.00,1,'EACH',315.00,40.00,0.00),(159,33,'materials','2','Zone B ',NULL,57.37,5,'EACH',286.85,40.00,0.00),(160,33,'materials','3','Zone C - Need to Trace & Rectify faults (zone disabled)',NULL,315.00,1,'EACH',315.00,40.00,0.00),(161,33,'materials','4','Zone D & E - Need to Replace 23 only exisitng Old Manual Call Points to Indicating Type Manual Call Points',NULL,57.37,23,'EACH',1319.51,40.00,0.00),(162,33,'Others','5','Lable all Manual Call Points ',NULL,565.00,1,'EACH',565.00,40.00,0.00),(163,33,'materials','6','Zone G - Need to clean Smoke Detectors',NULL,70.00,1,'EACH',70.00,40.00,0.00),(164,33,'materials','7','Zone H - Need to install Smoke Detectors in Gas Flood Panel (No Detectors in this Room)',NULL,397.72,1,'EACH',397.72,40.00,0.00),(165,33,'materials','8','Zone J - Need to 1 only Manual Call Point near Loading Bay Entrance',NULL,57.37,1,'EACH',57.37,40.00,0.00),(166,33,'materials','9','Zone J - Recommend to install 1 only Manual Call Point near Filling Flour Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(167,33,'materials','10','Zone J - Recommend to install 1 only Manual Call Point near Mill Mix Filling Area',NULL,57.37,1,'EACH',57.37,40.00,0.00),(168,33,'Labour','11','Zone J & M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(169,33,'materials','12','Zone K - Recommend to install 1 only Manual Call Point near Storage Area for Chips Packet Area above Floor',NULL,57.37,1,'EACH',57.37,40.00,0.00),(170,33,'materials','13','Zone K - Recommend to install 2 only Manual Call Point in Engineering Workshop Storage & Kitchen',NULL,57.37,2,'EACH',114.74,40.00,0.00),(171,33,'Labour','14','Zone M - Trace & Rectify Circuit Line that is not working',NULL,787.50,1,'EACH',787.50,40.00,0.00),(172,33,'materials','15','Zone P - To replace 2 only 7amp Batteries for the DBA ',NULL,70.00,2,'EACH',140.00,40.00,0.00),(173,33,'Labour','16','Labour / Transport / Consumables',NULL,1575.00,1,'EACH',1575.00,40.00,0.00),(174,35,'materials','1','Refill 4.50kg CO2 gas',NULL,123.75,6,'EACH',0.00,50.00,0.00),(175,35,'others','2','Refill 0.30kg N2 gas',NULL,6.30,6,'EACH',0.00,50.00,0.00),(176,35,'materials',NULL,'',NULL,0.00,0,'',0.00,40.00,0.00),(177,38,'materials','60100','CABLE 4 CORE .2MM-100M',NULL,41.36,4,'EACH',2000.00,45.00,3.00),(178,38,'others','6565','Misc',NULL,70.00,1,'EACH',216.00,45.00,392.73),(179,38,'labour & misc. ','305','testing item',NULL,50.00,5,'',2625.00,45.00,4.00),(180,38,'materials','121','DIGI 85 VERTICAL CURTAIN',NULL,254.13,3,'EACH',127.33,45.00,231.51),(181,38,'materials','300','PIR Brackets',NULL,22.74,3,'EACH',217.49,45.00,395.44),(182,38,'materials','60100','CABLE 4 CORE .2MM-100M',NULL,41.39,4,'EACH',165.56,40.00,3.00),(183,38,'others','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,360.00),(184,38,'labour & miscelaneous','860','labour & miscelaneous',NULL,714.00,1,'HOURS',714.00,40.00,4.00),(185,38,'materials','121','DIGI 85 VERTICAL CURTAIN',NULL,254.13,3,'EACH',762.39,45.00,231.51),(186,38,'materials','300','PIR Bracket',NULL,22.74,3,'EACH',68.22,45.00,395.44),(241,37,'materials','1','To Replace existing Bells with RH3 Sounders','testing narations',31.65,18,'EACH',569.70,40.00,949.50),(242,37,'materials','2','To Replace existing Manual Call Points as required',NULL,57.37,8,'EACH',458.96,40.00,764.93),(243,37,'materials','3','To Replace existing Heat Detectors as required',NULL,30.97,11,'EACH',340.67,40.00,567.78),(244,37,'materials','4','To Trace Defects on Zone 3 which is disabled',NULL,120.00,2,'EACH',240.00,40.00,384.00),(245,37,'materials','5','To Trace Defects on Zone 8 which is disabled',NULL,198.00,1,'EACH',198.00,40.00,330.00),(246,37,'materials','6','Engraving of Fire Panel Index',NULL,150.00,1,'EACH',150.00,40.00,250.00),(247,37,'materials','7','Repair Fire Panel Door',NULL,150.00,1,'EACH',150.00,40.00,250.00),(248,37,'others','8','Cleaning of all detectors',NULL,102.50,1,'EACH',102.50,40.00,170.83),(249,37,'labour','9','Labour / Transport',NULL,1750.00,1,'EACH',1750.00,40.00,2916.67),(250,35,'materials','1','Refill 4.50kg CO2 gas',NULL,123.75,6,'EACH',0.00,50.00,0.00),(251,35,'others','2','Refill 0.30kg N2 gas',NULL,6.30,6,'EACH',0.00,50.00,0.00),(254,40,'labour','305','Service call-out to program user codes',NULL,75.00,1,'EACH',75.00,40.00,68.81),(255,40,'labour','305','Service call-out to program user codes',NULL,0.00,0,'EACH',0.00,0.00,0.00),(260,39,'labour','860','Service call-out to program user codes',NULL,46.00,1,'EACH',46.00,40.00,42.20),(262,31,'labour','210','Refill 4.50kg CO2 Gas &Refill 0.30kg Nitrogen Gas',NULL,65.02,6,'',780.30,50.00,780.30),(292,42,'labour','305','Small Jobs',NULL,25.30,1,'each',46.00,40.00,42.17),(295,48,'S8004','BA110','Replace 12v Backup Battery',NULL,63.06,1,'EACH',63.06,45.00,114.65),(305,43,'S8004','BA110','Supply & Replace 12v Backup Battery',NULL,63.08,1,'EACH',63.08,45.00,114.68),(306,43,'S8004','S92828','Supply & Replace DSC Sensor',NULL,63.07,1,'EACH',63.07,45.00,114.67),(329,45,'labour','S80004','Service call-out - check IAS - 21 Burerua St.SSCR#14283.',NULL,27.75,1,'EACH',27.75,45.00,50.46),(330,46,'labour','S80004','Service call-out - check IAS - 27 Salato.SSCR#14276.',NULL,27.75,1,'EACH',27.75,45.00,50.46),(331,47,'material','S80004','4-Core cable - Recable PC7 External Siren',NULL,35.00,1,'EACH',35.00,45.00,63.64),(333,47,'labour','S80004','Labour & miscellaneous',NULL,43.21,1,'EACH',43.21,45.00,78.56),(334,44,'material','S80004','Replace existing - SP5500 Panel Board, 10-zone keypad & power supply in Cabinet (pack)',NULL,750.00,1,'EACH',750.00,45.00,1363.64),(335,44,'labour','S80004','Labour & miscellaneous',NULL,195.32,1,'EACH',195.32,45.00,355.13),(336,44,'material','S80004','DG Pro Sensors (return to stock)',NULL,85.00,-2,'EACH',-170.00,45.00,-309.09),(337,44,'material','S80004','Top Hat Piezo (return to stock)',NULL,80.00,-1,'EACH',-80.00,45.00,-145.45),(343,37,'materials','10','testing others1',NULL,142.00,5,'each',710.00,40.00,1183.33),(344,37,'materials','4587','Rottweiler pupp',NULL,456.00,2,'',912.00,40.00,1520.00),(345,37,'materials','788','testing55',NULL,420.00,2,'',840.00,40.00,1400.00),(346,37,'materials','698','testing58',NULL,48.00,5,'each',240.00,40.00,400.00),(347,37,'materials','81','testing55',NULL,4.00,47,'',188.00,40.00,313.33),(348,37,'materials','82','testing56',NULL,45.00,2,'',90.00,40.00,150.00),(349,37,'materials','85','testing555',NULL,1.30,5,'',6.50,40.00,10.83),(350,37,'materials','86','testing558',NULL,47.00,5,'',235.00,40.00,391.67),(351,37,'materials','89','testing554',NULL,5.30,5,'',26.50,40.00,44.17),(352,37,'materials','95','testing5536',NULL,4.80,10,'',48.00,40.00,80.00),(353,37,'materials','101','trg',NULL,45.00,2,'',90.00,40.00,150.00),(354,37,'materials','102','gsfs',NULL,4.00,4,'',16.00,40.00,26.67),(355,37,'materials','45','dadagd',NULL,894.00,4,'',3576.00,40.00,5960.00),(356,37,'materials','47','davadvav',NULL,457.00,7,'',3199.00,40.00,5331.67),(357,49,'materials','1','test',NULL,200.00,2,'',400.00,40.00,666.67),(362,50,'materials','465','A grade brand fire system',NULL,450.00,2,'EACH',900.00,40.00,900.00),(363,50,'materials','6565','hose pipes',NULL,108.00,2,'EACH',216.00,40.00,900.00),(364,50,'labour','','service',NULL,25.00,8,'HOURS',200.00,40.00,900.00),(365,50,'others','','test',NULL,8.00,5,'EACH',40.00,40.00,40.00);

--
-- Table structure for table `projectcostingdetailbackup`
--

CREATE TABLE `projectcostingdetailbackup` (
  `projectcostingid` int(11) NOT NULL AUTO_INCREMENT,
  `pcid` int(11) NOT NULL,
  `cost_type` varchar(100) NOT NULL,
  `job_costing_sheet_category` char(6) NOT NULL,
  `product_details_nonstock` int(11) DEFAULT NULL,
  `nonstocknarrative` varchar(100) NOT NULL,
  `unit_price` int(11) DEFAULT NULL,
  `stock_details` varchar(20) NOT NULL,
  `stocknarrative` varchar(100) NOT NULL,
  `stock_unit_cost` varchar(20) NOT NULL,
  `other_description` varchar(100) NOT NULL,
  `other_cost` decimal(10,2) NOT NULL,
  `other_narrative` varchar(100) NOT NULL,
  `labor_type` varchar(100) DEFAULT NULL,
  `labor_rate` decimal(10,2) DEFAULT NULL,
  `qty` decimal(10,0) NOT NULL,
  `uom` varchar(20) NOT NULL,
  `total_cost` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `nonstockprice` decimal(10,2) NOT NULL,
  `stockprice` decimal(20,2) NOT NULL,
  `stockname` varchar(50) NOT NULL,
  `nonstockname` varchar(100) NOT NULL,
  PRIMARY KEY (`projectcostingid`),
  KEY `projectid` (`pcid`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectcostingdetailbackup`
--

INSERT INTO `projectcostingdetailbackup` VALUES (1,1,'materials','ANAL',438,'Testing',438,'','','','',0.00,'','',0.00,5,'each',174.05,40.00,243.67,48.73,0.00,'','DHM-5B Deckhead Mount'),(3,4,'materials','CONVEN',8,'',8,'','','','',0.00,'','',0.00,10,'each',446.70,40.00,625.38,0.00,0.00,'',''),(4,3,'materials','RC',315,'',315,'','','0.00','',0.00,'','',0.00,0,'bag',0.00,50.00,0.00,0.00,0.00,'',''),(5,4,'materials','CONVEN',22,'',22,'','','0.00','',0.00,'','',0.00,10,'each',72.60,40.00,101.64,0.00,0.00,'',''),(8,6,'materials','',NULL,'',NULL,'','','0.00','',0.00,'','',0.00,0,'each',0.00,50.00,0.00,0.00,0.00,'',''),(11,1,'materials','FIRE-S',NULL,'',NULL,'03650D-1','Cabinet','03650D-1','',0.00,'','',0.00,2,'each',90.00,40.00,126.00,0.00,63.00,'FULL CABINET REEL C/',''),(13,1,'labour','',NULL,'',NULL,'','','','',0.00,'','4',25.00,7,'each',175.00,40.00,245.00,0.00,0.00,'',''),(14,2,'labour','',NULL,'',NULL,'','','','',0.00,'','3',17.50,320,'hours',5600.00,40.00,7840.00,0.00,0.00,'',''),(15,2,'materials','ANAL',328,'',328,'','','','',0.00,'',NULL,NULL,15,'each',1506.75,40.00,2109.45,140.63,0.00,'','MX Smoke Detector'),(16,2,'materials','ANAL',403,'',403,'','','','',0.00,'',NULL,NULL,30,'each',480.00,40.00,672.00,22.40,0.00,'','Standard 5 inch base Conventinal '),(17,2,'materials','ANAL',329,'',329,'','','','',0.00,'',NULL,NULL,15,'each',1175.85,40.00,1646.19,109.75,0.00,'','MX Heat Detector'),(18,2,'materials','ANAL',379,'',379,'','','','',0.00,'',NULL,NULL,5,'each',600.00,40.00,840.00,168.00,0.00,'','1.5MM 7/0.50 2 CORE CABLE tps red'),(19,2,'others','TRADE',142,'',142,'','','','',0.00,'',NULL,NULL,25,'each',141.25,40.00,197.75,7.91,0.00,'','25mm conduit'),(21,5,'materials','SEC',NULL,'',NULL,'100','testing','','CONTINGENCY',0.00,'',NULL,NULL,10,'each',0.00,40.00,0.00,0.00,0.00,'PARADOX PRO DETECTOR',''),(22,4,'labour','FIRE-S',NULL,'',NULL,'','','','',0.00,'','3',17.50,15,'hours',262.50,40.00,367.50,0.00,0.00,'',''),(23,5,'labour','',NULL,'',NULL,'','','','',0.00,'','3',17.50,4,'hours',70.00,40.00,98.00,0.00,0.00,'',''),(24,4,'materials','',NULL,'',NULL,'','','','',0.00,'',NULL,NULL,0,'each',0.00,40.00,0.00,0.00,0.00,'',''),(25,5,'materials','SEC',NULL,'',NULL,'10411MG','','','CONTINGENCY',0.00,'',NULL,NULL,5,'each',0.00,40.00,0.00,0.00,0.00,'MAGELIAN WIRELESS SENSOR',''),(26,5,'others','',NULL,'',NULL,'','','','CONTINGENCY',200.00,'',NULL,NULL,1,'each',200.00,40.00,280.00,0.00,0.00,'',''),(27,5,'others','',NULL,'',NULL,'','','','CONTINGENCY',0.00,'','1',150.00,5,'hours',750.00,40.00,1050.00,0.00,0.00,'',''),(28,3,'materials','SEC',NULL,'',NULL,'20307','','','CONTINGENCY',0.00,'',NULL,NULL,0,'each',0.00,40.00,0.00,0.00,0.00,'ELITE TERMINAL FOR 3000/4',''),(29,3,'materials','SEC',NULL,'',NULL,'65120','','65120','CONTINGENCY',0.00,'','3',17.50,1,'each',17.50,40.00,24.50,0.00,0.00,'SP5500 SMART PACK',''),(30,7,'materials','SEC-W',NULL,'Cables',NULL,'60100','QTY 4','','CONTINGENCY',0.00,'','3',17.50,2,'hours',35.00,40.00,49.00,0.00,0.00,'CABLE 4 CORE 2MM-100M',''),(31,9,'materials','FIRE-W',NULL,'',NULL,'2351E','Detectors','','CONTINGENCY',0.00,'',NULL,NULL,10,'each',0.00,40.00,0.00,0.00,0.00,'OPITCAL 300 SERIES SMOKE D',''),(32,9,'materials','',NULL,'',NULL,'','','','CONTINGENCY',0.00,'','3',17.50,90,'hours',1575.00,40.00,2205.00,0.00,0.00,'',''),(33,8,'materials','SEC-W',NULL,'',NULL,'ADCA5DWOC4RP','','ADCA5DWOC4RP','CONTINGENCY',0.00,'',NULL,NULL,0,'each',0.00,40.00,0.00,0.00,0.00,'18205 DISC500 700TVL OUTDO',''),(34,12,'materials','SEC',NULL,'none.',NULL,'65120','Returned items - 2 x DG Pro & 1 x Piezo','','CONTINGENCY',41.91,'','3',17.50,8,'hours',475.28,40.00,665.39,0.00,0.00,'SP5500 SMART PACK',''),(35,12,'materials','SEC',NULL,'',NULL,'100','to be excluded from pack','','CONTINGENCY',0.00,'',NULL,NULL,-2,'each',0.00,40.00,0.00,0.00,0.00,'PARADOX PRO DETECTOR',''),(36,12,'materials','SEC',NULL,'',NULL,'40200','to be excluded from pack.','','CONTINGENCY',0.00,'',NULL,NULL,-1,'each',0.00,40.00,0.00,0.00,0.00,'TOP HAT PIEZO',''),(37,14,'materials','SEC',NULL,'',NULL,'30202','','','CONTINGENCY',0.00,'',NULL,NULL,0,'each',0.00,40.00,0.00,0.00,0.00,'POSIPROX STD CARD',''),(38,16,'materials','CONVEN',5,'',5,'','','','CONTINGENCY',0.00,'','3',NULL,1,'each',1302.06,35.00,1757.78,1757.78,0.00,'','FRONT SERVICE PANEL FP1600'),(39,16,'materials','CONVEN',8,'',8,'','','','CONTINGENCY',0.00,'',NULL,NULL,160,'each',7147.20,35.00,9648.72,60.30,0.00,'','Smoke Detector  '),(40,16,'materials','CONVEN',22,'',22,'','','','CONTINGENCY',0.00,'',NULL,NULL,160,'each',1161.60,35.00,1568.16,9.80,0.00,'','B401 Base'),(41,16,'materials','CONVEN',9,'',9,'','','','CONTINGENCY',0.00,'',NULL,NULL,70,'each',2167.90,35.00,2926.67,41.81,0.00,'','Indi-VIGIL Blue Heat Detector'),(42,16,'materials','CONVEN',26,'',26,'','','','CONTINGENCY',0.00,'',NULL,NULL,21,'each',1204.77,35.00,1626.44,77.45,0.00,'','MCP Indicating Type Surface'),(43,16,'materials','CONVEN',32,'',32,'','','','CONTINGENCY',0.00,'',NULL,NULL,1,'each',374.50,35.00,505.58,505.58,0.00,'','T-Gen 50 24volts'),(44,16,'materials','CONVEN',38,'',38,'','','','CONTINGENCY',0.00,'',NULL,NULL,1,'each',114.88,35.00,155.09,155.09,0.00,'','Hand Held Microphone T Gen 50'),(45,16,'materials','CONVEN',40,'',40,'','','','CONTINGENCY',0.00,'',NULL,NULL,1,'each',584.25,35.00,788.74,788.74,0.00,'','Power Supply 12V/24volts'),(46,16,'materials','CONVEN',43,'',43,'','','','CONTINGENCY',0.00,'',NULL,NULL,21,'each',1355.55,35.00,1829.99,87.14,0.00,'','Horn speaker'),(47,16,'materials','CONVEN',45,'',45,'','','','CONTINGENCY',0.00,'',NULL,NULL,3,'each',96.57,35.00,130.37,43.46,0.00,'','Speakers'),(48,16,'materials','CONVEN',46,'',46,'','','','CONTINGENCY',0.00,'',NULL,NULL,1,'each',83.34,35.00,112.51,112.51,0.00,'','External Fire Alarm Strobe'),(49,16,'materials','CONVEN',52,'',52,'','','','CONTINGENCY',0.00,'',NULL,NULL,3,'each',136.71,35.00,184.56,61.52,0.00,'','12V 6.5 AMP BATTERY'),(50,16,'materials','CONVEN',66,'',66,'','','','CONTINGENCY',0.00,'',NULL,NULL,30,'each',3600.00,35.00,4860.00,162.00,0.00,'','1.5MM 7/0.50 2 CORE CABLE tps red'),(51,16,'materials','CONVEN',67,'',67,'','','','CONTINGENCY',0.00,'',NULL,NULL,18,'each',3564.00,35.00,4811.40,267.30,0.00,'','2.5MM 7/0.67 PVC TPS CABLE tps red'),(52,16,'labour','CONVEN',NULL,'',NULL,'','','','CONTINGENCY',0.00,'','3',17.50,600,'hours',10500.00,35.00,14175.00,0.00,0.00,'',''),(53,16,'others','CONVEN',NULL,'',NULL,'','','','VEHICLE',330.00,'',NULL,NULL,1,'each',330.00,35.00,445.50,0.00,0.00,'',''),(54,16,'others','CONVEN',NULL,'',NULL,'','','','OTHER',2500.00,'',NULL,NULL,1,'each',2500.00,35.00,3375.00,0.00,0.00,'',''),(55,16,'others','CONVEN',NULL,'',NULL,'','','','SHROULD',800.00,'',NULL,NULL,1,'each',800.00,35.00,1080.00,0.00,0.00,'',''),(56,16,'others','CONVEN',NULL,'',NULL,'','','','INDEX ENGRAVING',250.00,'',NULL,NULL,1,'each',250.00,35.00,337.50,0.00,0.00,'',''),(57,16,'others','CONVEN',NULL,'',NULL,'','','','CONTINGENCY',1300.00,'',NULL,NULL,1,'each',1300.00,35.00,1755.00,0.00,0.00,'',''),(58,16,'others','CONVEN',NULL,'',NULL,'','','','FPIS INSPECTION/ICONZ',200.00,'',NULL,NULL,1,'each',200.00,35.00,270.00,0.00,0.00,'','');

--
-- Table structure for table `projectcostingdetaillabor`
--

CREATE TABLE `projectcostingdetaillabor` (
  `pclaborid` int(11) NOT NULL AUTO_INCREMENT,
  `pcid` int(11) NOT NULL,
  `labortypeid` tinyint(4) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `hours` decimal(10,0) NOT NULL,
  `total_labor` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `labor_price` decimal(10,2) NOT NULL,
  PRIMARY KEY (`pclaborid`),
  KEY `projectid` (`pcid`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectcostingdetaillabor`
--

INSERT INTO `projectcostingdetaillabor` VALUES (1,1,1,150.00,2,300.00,40.00,420.00),(2,2,3,17.50,16,280.00,50.00,420.00),(3,3,2,50.00,30,1500.00,40.00,2100.00),(4,5,3,17.50,80,1400.00,40.00,1960.00),(5,4,3,17.50,45,787.50,40.00,1102.50);

--
-- Table structure for table `projectdetails`
--

CREATE TABLE `projectdetails` (
  `projectid` int(11) NOT NULL AUTO_INCREMENT,
  `project_type` varchar(100) NOT NULL,
  `project_name` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `employees_allocated` text NOT NULL,
  `customer` varchar(10) NOT NULL,
  `branch` varchar(100) DEFAULT NULL,
  `account_number` varchar(100) NOT NULL,
  `sys_account_number` int(11) DEFAULT NULL,
  `department` varchar(100) NOT NULL,
  `sales_gl` varchar(100) NOT NULL,
  `cogs_gl` varchar(100) NOT NULL,
  `purchase_order` varchar(100) NOT NULL,
  `contact_person` varchar(20) NOT NULL,
  `contact_number` varchar(20) NOT NULL,
  `project_manager` varchar(20) NOT NULL,
  `required_date` date NOT NULL,
  `retention_rate` decimal(10,2) NOT NULL,
  `tender_close_date` date DEFAULT NULL,
  `start_date` date NOT NULL,
  `age` decimal(10,2) NOT NULL,
  `comments` text NOT NULL,
  `reviewers_comments` text NOT NULL,
  `status` varchar(20) NOT NULL,
  `managed_by` varchar(100) DEFAULT NULL,
  `completed` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`projectid`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectdetails`
--

INSERT INTO `projectdetails` VALUES (2,'General','Camera installs at E-Business (Fiji)','<p>descride about project</p>','<p>list all employees working in this project</p>','EBUZ',NULL,'10105',NULL,'GFS','','','','Sachin','9223300','','2016-12-31',0.00,NULL,'2016-09-20',1.00,'','','Setup',NULL,NULL),(6,'General','FE Servicing','<p>check and service of fire fighting equipment, refill and replace parts</p>','<p>Livai &amp; Timoci</p>','4',NULL,'10111',NULL,'Fire-Suva','','','','rajiv','','','0000-00-00',0.00,NULL,'0000-00-00',1.00,'','','Project Started',NULL,NULL),(9,'Small Jobs','COCA COLA','<p>FIRE ALARM</p>','<p>2 X TECH</p>','9',NULL,'10117',NULL,'Fire-Suva','','','','DEEPAK','9999992','','0000-00-00',0.00,'2017-02-28','0000-00-00',1.00,'','','Setup',NULL,NULL),(10,'General','FE Servicing - university of the south pacific','<p>check and service of&nbsp;fire fighting equipment refill empty fire extinguishers and replace parts</p>','<p>Livai &amp; Timoci</p>','11',NULL,'10116',NULL,'Fire-Suva','','','PO11861','Rajiv Pillay','','7387','2017-03-31',0.00,NULL,'2017-02-28',1.00,'','','Approved',NULL,NULL),(24,'Contract','Peninsula International Hotel','','<p>Shivitesh &amp; Navneel</p>','402',NULL,'0',NULL,'','','','6262','Novitesh','9919932','','0000-00-00',0.00,NULL,'2017-08-10',1.00,'','','Approved',NULL,NULL),(27,'Contract','westpac','','','',NULL,'0',NULL,'','','','','','','','0000-00-00',0.00,NULL,'0000-00-00',1.00,'','','Setup',NULL,NULL),(28,'Small Jobs','AFL Extra cameras Arrivals hall','','','826',NULL,'0',NULL,'SecurityInstalls-West','','','','','','11598','2017-09-28',0.00,'2017-09-30','0000-00-00',1.00,'','','Setup',NULL,NULL),(30,'Small Jobs','FE Servicing','','','804',NULL,'0',NULL,'Fire-Suva','','','','Finau','','','2017-11-09',0.00,'2017-12-09','2017-11-13',1.00,'','','Approved',NULL,NULL),(33,'Small Jobs','Fire Fighting Equipment','','','417',NULL,'48FC',NULL,'Fire-Suva','','','','Tomu','9996444','','0000-00-00',0.00,NULL,'0000-00-00',1.00,'','','Setup',NULL,NULL),(35,'Small Jobs','Fire Equipment Servicing','<p>Refill CO2&nbsp;and nitrogen gas</p>','<p>Livai</p>','459',NULL,'1475FC',NULL,'Fire-Suva','','','5113','Bole','9989013','','2017-11-10',0.00,NULL,'2017-11-09',1.00,'','','Approved',NULL,NULL),(37,'Small Jobs','FMF Annual Survey Defects','','','201',NULL,'0102FC',NULL,'Fire-Suva','','','','Ashnil','','','0000-00-00',0.00,NULL,'0000-00-00',1.00,'','','Setup',NULL,NULL),(41,'Contract','FAS Annual Survey Defects','','','445','445','10124',NULL,'Fire-Suva','7100700','7200700','','Moave','','','2018-03-20',0.05,NULL,'0000-00-00',1.00,'','','Approved','akumar',0),(42,'Small Jobs','R102 Servicing','<p>Disconnect, Checked 4 x 3 Gal Ansul R102 System, Weighed</p>\n<p>Cartridge and Reconnect R102 System</p>','<p>Livai, Samu &amp; Maloni</p>','443',NULL,'0258FC',NULL,'Fire-Suva','','','John Dale','John Dale','','','2017-11-09',0.00,'2017-11-30','2017-11-07',1.00,'','','Approved',NULL,NULL),(46,'Small Jobs','FIRE EXTINGUISHER SERVICING','','<p>Livai</p>','589','589','0178FC',NULL,'Fire-Suva','','','4410684574','Josua Bera','9906606','','2017-11-10',0.00,'2017-11-10','2015-11-10',1.00,'','','Setup','admin',0),(54,'Small Jobs','Courts Savusavu','<p>check system/replacement of 12v backup battery</p>','<p>Ramlu</p>','251','251','0002EG',NULL,'SecurityInstalls-Suva/North','','','Att. Emosi','Emosi D.','','','2018-01-15',0.00,'2018-01-31','2018-01-15',1.00,'','','Approved','sachin',NULL),(55,'Contract','USP FAS 10th & 11th Hall','','','4',NULL,'',NULL,'Fire-Suva','','','','Rajiv','','','0000-00-00',0.00,NULL,'0000-00-00',0.00,'','','Setup','akumar',0);

--
-- Table structure for table `projectdetailsreports`
--

CREATE TABLE `projectdetailsreports` (
  `projectid` int(11) NOT NULL AUTO_INCREMENT,
  `budgeted_labor` decimal(10,2) NOT NULL,
  `budgeted_material` decimal(10,2) NOT NULL,
  `budgeted_others` decimal(10,2) NOT NULL,
  `budgeted_total_cost` decimal(10,2) NOT NULL,
  `budgeted_total_price` decimal(10,2) NOT NULL,
  `budgeted_profit` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `actual_labor_cost` decimal(10,2) NOT NULL,
  `actual_material_cost` decimal(10,2) NOT NULL,
  `actual_other_cost` decimal(10,2) NOT NULL,
  `actual_total_cost` decimal(10,2) NOT NULL,
  `estimate_ctc_project_manager` decimal(10,2) NOT NULL,
  `estimate_ctc_accs` decimal(10,2) NOT NULL,
  `estimate_ctc_total` decimal(10,2) NOT NULL,
  `estimate_final_cost` decimal(10,2) NOT NULL,
  `variance_estimate_finalcost_to_buget` decimal(10,2) NOT NULL,
  `estimate_final_profit` decimal(10,2) NOT NULL,
  `estimate_gp` decimal(10,2) NOT NULL,
  `profit_taken_up_to_date` decimal(10,2) NOT NULL,
  `wip_crosscheck` decimal(10,2) NOT NULL,
  `profit_to_come` decimal(10,2) NOT NULL,
  `invoiced` decimal(10,2) NOT NULL,
  `invoicing_to_come` decimal(10,2) NOT NULL,
  `nett_wip` decimal(10,2) NOT NULL,
  `labor_usage` decimal(10,0) NOT NULL,
  `material_usage` decimal(10,0) NOT NULL,
  `others_usage` decimal(10,0) NOT NULL,
  `sales_taken_up` decimal(10,2) NOT NULL,
  `cos_taken_up` decimal(10,2) NOT NULL,
  `profit_taken_up` decimal(10,2) NOT NULL,
  `ctc_invoiced` decimal(10,0) NOT NULL,
  `actual_cost_spent_against_est_final_cost` decimal(10,0) NOT NULL,
  `sales_based_on_cost_spent` decimal(10,0) NOT NULL,
  `cos_based_on_ctc` decimal(10,0) NOT NULL,
  `gm_based_on_ctc` decimal(10,0) NOT NULL,
  `sales_taken_upto_date` decimal(10,2) NOT NULL,
  `cos_taken_upto_date` decimal(10,2) NOT NULL,
  `gm_taken_upto_date` decimal(10,2) NOT NULL,
  `cd_taken_upto_date` decimal(10,2) NOT NULL,
  `sales_to_be_taken_up` decimal(10,2) NOT NULL,
  `cos_to_be_taken_up` decimal(10,2) NOT NULL,
  `gm_to_be_taken_up` decimal(10,2) NOT NULL,
  `cd_to_be_taken_up` decimal(10,2) NOT NULL,
  `sales_progress` decimal(10,2) NOT NULL,
  `cos_progress` decimal(10,2) NOT NULL,
  `profit_or_loss_progress` decimal(10,2) NOT NULL,
  `cd_progress` decimal(10,2) NOT NULL,
  `progress_ratio` decimal(10,2) NOT NULL,
  PRIMARY KEY (`projectid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projectdetailsreports`
--

INSERT INTO `projectdetailsreports` VALUES (2,750.00,1394.00,0.00,2144.00,3366.67,1346.67,40.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,0,0,0.00,0.00,0.00,0,0,0,0,0,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00);

--
-- Table structure for table `prospecting`
--

CREATE TABLE `prospecting` (
  `prospectid` tinyint(4) NOT NULL AUTO_INCREMENT,
  `date_entered` date NOT NULL,
  `business_name` varchar(100) CHARACTER SET utf8 NOT NULL,
  `contact_person` varchar(100) CHARACTER SET utf8 NOT NULL,
  `phone` int(11) NOT NULL,
  `mobile` int(11) NOT NULL,
  `email` varchar(100) CHARACTER SET utf8 NOT NULL,
  `address` varchar(100) CHARACTER SET utf8 NOT NULL,
  `suburb` varchar(100) CHARACTER SET utf8 NOT NULL,
  `existing_customer` tinyint(1) NOT NULL,
  `division` varchar(100) CHARACTER SET utf8 NOT NULL,
  `products_interested_in` varchar(100) CHARACTER SET utf8 NOT NULL,
  `probability_of_conversion` varchar(100) CHARACTER SET utf8 NOT NULL,
  `phases` varchar(100) CHARACTER SET utf8 NOT NULL,
  `revenue_projection_date` date NOT NULL,
  `margin` decimal(10,2) NOT NULL DEFAULT '0.00',
  `jan_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `feb_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `mar_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `apr_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `may_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `jun_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `jul_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `aug_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `sept_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `oct_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `nov_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `dec_projection` decimal(10,2) NOT NULL DEFAULT '0.00',
  `cy_total_year1` decimal(10,2) NOT NULL DEFAULT '0.00',
  `cy_total_year2` decimal(10,2) NOT NULL DEFAULT '0.00',
  `cy_total_year3` decimal(10,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`prospectid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `prospecting`
--

INSERT INTO `prospecting` VALUES (1,'2016-07-12','Westpac Bank','Mr something',3311664,9223300,'info@westpac.com.au','main street','Suva',0,'Security Installs','Cameras with  monitoring','60%','Discussion','2016-08-10',0.30,0.00,0.00,0.00,0.00,0.00,0.00,0.00,50000.00,30000.00,30000.00,30000.00,30000.00,170000.00,340000.00,340000.00),(2,'2016-07-13','ANZ bank','Happy Smitch',3213000,9996850,'happy@anz.com.au','kalabo','Valelevu',0,'Cash In Transit','Security Seal Chambers','40%','Discussion','2017-01-03',0.20,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,70000.00,840000.00,1680000.00,2520000.00);

--
-- Table structure for table `provisional_tax_management`
--

CREATE TABLE `provisional_tax_management` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `name` varchar(100) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `invoice_amount` decimal(10,2) NOT NULL,
  `ptax` decimal(10,2) NOT NULL,
  `comment` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provisional_tax_management`
--

INSERT INTO `provisional_tax_management` VALUES (1,'2017-12-18','612','1865',98.10,4.50,'');

--
-- Table structure for table `provisional_tax_management_manual`
--

CREATE TABLE `provisional_tax_management_manual` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `name` varchar(100) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `invoice_amount` decimal(10,2) NOT NULL,
  `ptax` decimal(10,2) NOT NULL,
  `comment` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provisional_tax_management_manual`
--

INSERT INTO `provisional_tax_management_manual` VALUES (1,'2017-10-30','433','6678',23.70,1.19,'');

--
-- Table structure for table `publicholidaycalender`
--

CREATE TABLE `publicholidaycalender` (
  `id` tinyint(4) NOT NULL AUTO_INCREMENT,
  `ocassion` varchar(100) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `publicholidaycalender`
--

INSERT INTO `publicholidaycalender` VALUES (1,'New YearÔÇÖs Day','2017-01-02'),(2,'Good Friday','2017-04-14'),(3,'Easter Saturday','2017-04-15'),(4,'Easter Monday','2017-04-17'),(5,'National Sports Day','2017-06-30'),(6,'Constitution Day','2017-09-07'),(7,'Fiji Day','2017-10-10'),(8,'Diwali','2017-10-19'),(9,'Prophet MohammedÔÇÖs Birthday','2017-12-04'),(10,'Christmas Day','2017-12-25'),(11,'Boxing Day','2017-12-26');

--
-- Table structure for table `purchdata`
--

CREATE TABLE `purchdata` (
  `supplierno` char(10) NOT NULL DEFAULT '',
  `stockid` char(20) NOT NULL DEFAULT '',
  `price` decimal(20,4) NOT NULL DEFAULT '0.0000',
  `suppliersuom` char(50) NOT NULL DEFAULT '',
  `conversionfactor` double NOT NULL DEFAULT '1',
  `supplierdescription` char(50) NOT NULL DEFAULT '',
  `leadtime` smallint(6) NOT NULL DEFAULT '1',
  `preferred` tinyint(4) NOT NULL DEFAULT '0',
  `effectivefrom` date NOT NULL,
  `suppliers_partno` varchar(50) NOT NULL DEFAULT '',
  `minorderqty` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`supplierno`,`stockid`,`effectivefrom`),
  KEY `StockID` (`stockid`),
  KEY `SupplierNo` (`supplierno`),
  KEY `Preferred` (`preferred`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchdata`
--


--
-- Table structure for table `purchorderauth`
--

CREATE TABLE `purchorderauth` (
  `userid` varchar(20) NOT NULL DEFAULT '',
  `currabrev` char(3) NOT NULL DEFAULT '',
  `cancreate` smallint(2) NOT NULL DEFAULT '0',
  `authlevel` double NOT NULL DEFAULT '0',
  `offhold` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`userid`,`currabrev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchorderauth`
--

INSERT INTO `purchorderauth` VALUES ('admin','FJD',0,10000,0),('akumar','FJD',0,0,0);

--
-- Table structure for table `purchorderdetails`
--

CREATE TABLE `purchorderdetails` (
  `podetailitem` int(11) NOT NULL AUTO_INCREMENT,
  `orderno` int(11) NOT NULL DEFAULT '0',
  `itemcode` varchar(20) NOT NULL DEFAULT '0',
  `deliverydate` date NOT NULL DEFAULT '0000-00-00',
  `itemdescription` varchar(100) NOT NULL,
  `glcode` varchar(20) NOT NULL DEFAULT '0',
  `qtyinvoiced` double NOT NULL DEFAULT '0',
  `unitprice` double NOT NULL DEFAULT '0',
  `actprice` double NOT NULL DEFAULT '0',
  `stdcostunit` double NOT NULL DEFAULT '0',
  `quantityord` double NOT NULL DEFAULT '0',
  `quantityrecd` double NOT NULL DEFAULT '0',
  `shiptref` int(11) NOT NULL DEFAULT '0',
  `jobref` varchar(20) NOT NULL DEFAULT '',
  `completed` tinyint(4) NOT NULL DEFAULT '0',
  `suppliersunit` varchar(50) DEFAULT NULL,
  `suppliers_partno` varchar(50) NOT NULL DEFAULT '',
  `assetid` int(11) NOT NULL DEFAULT '0',
  `conversionfactor` double NOT NULL DEFAULT '1',
  PRIMARY KEY (`podetailitem`),
  KEY `DeliveryDate` (`deliverydate`),
  KEY `GLCode` (`glcode`),
  KEY `ItemCode` (`itemcode`),
  KEY `JobRef` (`jobref`),
  KEY `OrderNo` (`orderno`),
  KEY `ShiptRef` (`shiptref`),
  KEY `Completed` (`completed`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchorderdetails`
--

INSERT INTO `purchorderdetails` VALUES (1,1,'0','2018-01-16','PDX L2 VERTICAL CURTIN LE','1400001',0,400,0,0,15,0,0,'30',0,'each','',0,1),(2,1,'0','2018-01-16','Engine Hoist','0',0,500,0,0,1,0,0,'30',0,'each','',0,1),(3,2,'0','2018-01-16','fire extinguiser','0',0,55,0,0,22,0,0,'33',0,'each','',0,1),(4,3,'0','2018-01-16','Engine Hoist','0',0,500,0,0,1,0,0,'24',0,'each','',0,1),(5,4,'0','2018-01-16','Engine Hoist','0',0,500,0,0,1,0,0,'10',0,'each','',0,1),(6,5,'0','2018-01-28','Wires','0',0,200,0,200,1,1,0,'24',1,'each','',0,1),(7,6,'0','2018-01-28','conduits','0',0,250,0,250,1,1,0,'54',1,'each','',0,1),(8,7,'0','2018-01-30','3 point Switch','0',0,24.89,0,0,11,0,0,'24',0,'each','',0,1),(9,8,'0','2018-01-31','washers','0',0,2.3,0,0,50,0,0,'24',0,'each','',0,1),(10,8,'0','2018-01-31','light stands','0',0,5.3,0,0,15,0,0,'24',0,'each','',0,1),(11,9,'','2018-02-19','fire extinguisher','0',0,5.3,0,0,5,0,0,'24',0,'each','',0,1),(12,9,'','2018-02-19','fire extinguisher','0',0,5.3,0,0,11,0,0,'9',0,'each','',0,1),(13,9,'','2018-02-19','fire blanket','0',0,200,0,0,2,0,0,'27',0,'each','',0,1),(14,9,'','2018-02-19','cables','8104000',0,4,0,0,20,0,0,'0',0,'mtres','',0,1),(15,10,'','2018-02-06','switch cable','0',0,4.5,0,0,20,0,0,'9',0,'each','',0,1),(16,10,'','2018-02-06','fire extinguisher','0',0,500,0,0,1,0,0,'9',0,'each','',0,1),(17,10,'','2018-02-06','fire extinguisher','0',0,500,0,0,1,0,0,'27',0,'each','',0,1),(18,11,'','2018-02-07','Stationeries ','8403900',0,200,0,0,1,0,0,'0',0,'each','',0,1),(19,11,'','2018-02-07','fire blanket','0',0,200,0,0,2,0,0,'24',0,'each','',0,1),(20,11,'','2018-02-07','fire extinguisher','0',0,200,0,0,3,0,0,'9',0,'each','',0,1),(21,11,'10451','2018-02-07','REMOTE BATTERY','1400001',0,150,0,0,5,0,0,'0',0,'each','',0,1);

--
-- Table structure for table `purchorders`
--

CREATE TABLE `purchorders` (
  `orderno` int(11) NOT NULL AUTO_INCREMENT,
  `supplierno` varchar(10) NOT NULL DEFAULT '',
  `comments` longblob,
  `orddate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `rate` double NOT NULL DEFAULT '1',
  `dateprinted` datetime DEFAULT NULL,
  `allowprint` tinyint(4) NOT NULL DEFAULT '1',
  `initiator` varchar(20) DEFAULT NULL,
  `requisitionno` varchar(15) DEFAULT NULL,
  `intostocklocation` varchar(5) NOT NULL DEFAULT '',
  `deladd1` varchar(40) NOT NULL DEFAULT '',
  `deladd2` varchar(40) NOT NULL DEFAULT '',
  `deladd3` varchar(40) NOT NULL DEFAULT '',
  `deladd4` varchar(40) NOT NULL DEFAULT '',
  `deladd5` varchar(20) NOT NULL DEFAULT '',
  `deladd6` varchar(15) NOT NULL DEFAULT '',
  `tel` varchar(30) NOT NULL DEFAULT '',
  `suppdeladdress1` varchar(40) NOT NULL DEFAULT '',
  `suppdeladdress2` varchar(40) NOT NULL DEFAULT '',
  `suppdeladdress3` varchar(40) NOT NULL DEFAULT '',
  `suppdeladdress4` varchar(40) NOT NULL DEFAULT '',
  `suppdeladdress5` varchar(20) NOT NULL DEFAULT '',
  `suppdeladdress6` varchar(15) NOT NULL DEFAULT '',
  `suppliercontact` varchar(30) NOT NULL DEFAULT '',
  `supptel` varchar(30) NOT NULL DEFAULT '',
  `contact` varchar(30) NOT NULL DEFAULT '',
  `version` decimal(3,2) NOT NULL DEFAULT '1.00',
  `revised` date NOT NULL DEFAULT '0000-00-00',
  `realorderno` varchar(16) NOT NULL DEFAULT '',
  `deliveryby` varchar(100) NOT NULL DEFAULT '',
  `deliverydate` date NOT NULL DEFAULT '0000-00-00',
  `status` varchar(12) NOT NULL DEFAULT '',
  `stat_comment` text NOT NULL,
  `paymentterms` char(2) NOT NULL DEFAULT '',
  `port` varchar(40) NOT NULL DEFAULT '',
  `projectid` tinyint(4) NOT NULL,
  `projectperiodid` tinyint(4) NOT NULL,
  `department` varchar(100) NOT NULL,
  PRIMARY KEY (`orderno`),
  KEY `OrdDate` (`orddate`),
  KEY `SupplierNo` (`supplierno`),
  KEY `IntoStockLocation` (`intostocklocation`),
  KEY `AllowPrintPO` (`allowprint`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchorders`
--

INSERT INTO `purchorders` VALUES (1,'15','','2018-01-16 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','Private Bag 14927 , Panmure, Auckland NZ','','','','','','','09- 5742700','3361999',1.00,'2018-01-16','','1','2018-01-16','Pending','07/02/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />07/02/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(2,'9','','2018-01-16 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','14 Transville Rd, Namaka','','','','','','','9047590-9433306','9223300',1.00,'2018-01-16','','1','2018-01-16','Pending','07/02/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />07/02/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(3,'14','','2018-01-16 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','G.P.O .BOX 908 ,Suva','','','','','','','3387399','9223300',1.00,'2018-01-16','','1','2018-01-16','Pending','07/02/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />07/02/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(4,'14','','2018-01-16 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','G.P.O .BOX 908 ,Suva','','','','','','','3387399','3361999',1.00,'2018-01-16','','1','2018-01-16','Pending','07/02/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />07/02/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(5,'107','','2018-01-22 00:00:00',1,'2018-01-23 00:00:00',0,'admin','','SUVA',' 9 raiwasa road','','','','','','','P.O.BOX 167, Nabua','','','','','','','3373285','3361999',1.00,'2018-01-22','','1','2018-01-22','Completed','23/01/2018 - Order Completed on entry of GRN<br />23/01/2018 - Printed by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a><br />22/01/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />22/01/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'1'),(6,'107','','2018-01-22 00:00:00',1,'2018-01-23 00:00:00',0,'admin','','SUVA',' 9 raiwasa road','','','','','','','P.O.BOX 167, Nabua','','','','','','','3373285','3361999',1.00,'2018-01-22','','1','2018-01-22','Completed','23/01/2018 - Order Completed on entry of GRN<br />23/01/2018 - Printed by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a><br />23/01/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />22/01/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(7,'107','','2018-01-30 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','P.O.BOX 167, Nabua','','','','','','','3373285','9223300',1.00,'2018-01-30','','1','2018-01-30','Authorised','30/01/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />30/01/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','7','',0,0,'6'),(8,'107','','2018-01-31 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa road','','','','','','','P.O.BOX 167, Nabua','','','','','','','3373285','9223300',1.00,'2018-01-31','','1','2018-01-31','Authorised','31/01/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />31/01/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'1'),(9,'107','testing','2018-02-06 00:00:00',1,NULL,1,'admin','','SUVA',' 9 raiwasa St','','','','Suva','','3361999','P.O.BOX 167, Nabua','','','','','','','3373285','Zabeen',1.00,'2018-02-06','','1','2018-02-19','Pending','07/02/2018 - Authorised by <a href=\"mailto:sachin@ebusinessfiji.com\">admin</a><br />07/02/2018 - Order Created by <a href=\"mailto:sachin@ebusinessfiji.com\">E-Business</a> - <br />','20','',0,0,'6'),(10,'107','testing','2018-02-06 00:00:00',1,'2018-02-06 00:00:00',0,'admin','','SUVA',' 9 raiwasa St','','','','','','33619999','P.O.BOX 167, Nabua','','','','','','','3373285','Zabeen',1.00,'2018-02-06','','1','2018-02-06','Printed','06/02/2018 - Printed by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;E-Business&lt;/a&gt;&lt;br /&gt;06/02/2018 - Authorised by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;admin&lt;/a&gt;&lt;br /&gt;06/02/2018 - Order Created by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;E-Business&lt;/a&gt; - &lt;br /&gt;','20','',0,0,'1'),(11,'107','testing','2018-02-07 00:00:00',1,'2018-02-07 00:00:00',0,'admin','','SUVA',' 9 raiwasa St','','','','','','3361999','P.O.BOX 167, Nabua','','','','','','','3373285','Zabeen',1.00,'2018-02-07','','1','2018-02-07','Printed','07/02/2018 - Printed by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;E-Business&lt;/a&gt;&lt;br /&gt;07/02/2018 - Authorised by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;admin&lt;/a&gt;&lt;br /&gt;07/02/2018 - Order Created by &lt;a href=&quot;mailto:sachin@ebusinessfiji.com&quot;&gt;E-Business&lt;/a&gt; - &lt;br /&gt;','20','',0,0,'1');

--
-- Table structure for table `qasamples`
--

CREATE TABLE `qasamples` (
  `sampleid` int(11) NOT NULL AUTO_INCREMENT,
  `prodspeckey` varchar(25) NOT NULL DEFAULT '',
  `lotkey` varchar(25) NOT NULL DEFAULT '',
  `identifier` varchar(10) NOT NULL DEFAULT '',
  `createdby` varchar(15) NOT NULL DEFAULT '',
  `sampledate` date NOT NULL DEFAULT '0000-00-00',
  `comments` varchar(255) NOT NULL DEFAULT '',
  `cert` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`sampleid`),
  KEY `prodspeckey` (`prodspeckey`,`lotkey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `qasamples`
--


--
-- Table structure for table `qatests`
--

CREATE TABLE `qatests` (
  `testid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `method` varchar(20) DEFAULT NULL,
  `groupby` varchar(20) DEFAULT NULL,
  `units` varchar(20) NOT NULL,
  `type` varchar(15) NOT NULL,
  `defaultvalue` varchar(150) NOT NULL DEFAULT '''''',
  `numericvalue` tinyint(4) NOT NULL DEFAULT '0',
  `showoncert` int(11) NOT NULL DEFAULT '1',
  `showonspec` int(11) NOT NULL DEFAULT '1',
  `showontestplan` tinyint(4) NOT NULL DEFAULT '1',
  `active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`testid`),
  KEY `name` (`name`),
  KEY `groupname` (`groupby`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `qatests`
--


--
-- Table structure for table `recurringsalesorders`
--

CREATE TABLE `recurringsalesorders` (
  `recurrorderno` int(11) NOT NULL,
  `debtorno` varchar(10) NOT NULL DEFAULT '',
  `branchcode` varchar(10) NOT NULL DEFAULT '',
  `customerref` varchar(50) NOT NULL DEFAULT '',
  `buyername` varchar(50) DEFAULT NULL,
  `comments` longblob,
  `orddate` date NOT NULL DEFAULT '0000-00-00',
  `ordertype` char(2) NOT NULL DEFAULT '',
  `shipvia` int(11) NOT NULL DEFAULT '0',
  `deladd1` varchar(40) NOT NULL DEFAULT '',
  `deladd2` varchar(40) NOT NULL DEFAULT '',
  `deladd3` varchar(40) NOT NULL DEFAULT '',
  `deladd4` varchar(40) DEFAULT NULL,
  `deladd5` varchar(20) NOT NULL DEFAULT '',
  `deladd6` varchar(15) NOT NULL DEFAULT '',
  `contactphone` varchar(25) DEFAULT NULL,
  `contactemail` varchar(25) DEFAULT NULL,
  `deliverto` varchar(40) NOT NULL DEFAULT '',
  `freightcost` double NOT NULL DEFAULT '0',
  `fromstkloc` varchar(5) NOT NULL DEFAULT '',
  `lastrecurrence` date NOT NULL DEFAULT '0000-00-00',
  `stopdate` date NOT NULL DEFAULT '0000-00-00',
  `frequency` tinyint(4) NOT NULL DEFAULT '1',
  `autoinvoice` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`recurrorderno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `recurringsalesorders`
--


--
-- Table structure for table `recurrsalesorderdetails`
--

CREATE TABLE `recurrsalesorderdetails` (
  `recurrorderno` int(11) NOT NULL DEFAULT '0',
  `stkcode` varchar(20) NOT NULL DEFAULT '',
  `unitprice` double NOT NULL DEFAULT '0',
  `quantity` double NOT NULL DEFAULT '0',
  `discountpercent` double NOT NULL DEFAULT '0',
  `narrative` text NOT NULL,
  KEY `orderno` (`recurrorderno`),
  KEY `stkcode` (`stkcode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `recurrsalesorderdetails`
--


--
-- Table structure for table `relateditems`
--

CREATE TABLE `relateditems` (
  `stockid` varchar(20) CHARACTER SET utf8 NOT NULL,
  `related` varchar(20) CHARACTER SET utf8 NOT NULL,
  PRIMARY KEY (`stockid`,`related`),
  UNIQUE KEY `Related` (`related`,`stockid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `relateditems`
--


--
-- Table structure for table `reportcolumns`
--

CREATE TABLE `reportcolumns` (
  `reportid` smallint(6) NOT NULL DEFAULT '0',
  `colno` smallint(6) NOT NULL DEFAULT '0',
  `heading1` varchar(15) NOT NULL DEFAULT '',
  `heading2` varchar(15) DEFAULT NULL,
  `calculation` tinyint(1) NOT NULL DEFAULT '0',
  `periodfrom` smallint(6) DEFAULT NULL,
  `periodto` smallint(6) DEFAULT NULL,
  `datatype` varchar(15) DEFAULT NULL,
  `colnumerator` tinyint(4) DEFAULT NULL,
  `coldenominator` tinyint(4) DEFAULT NULL,
  `calcoperator` char(1) DEFAULT NULL,
  `budgetoractual` tinyint(1) NOT NULL DEFAULT '0',
  `valformat` char(1) NOT NULL DEFAULT 'N',
  `constant` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`reportid`,`colno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `reportcolumns`
--


--
-- Table structure for table `reportfields`
--

CREATE TABLE `reportfields` (
  `id` int(8) NOT NULL AUTO_INCREMENT,
  `reportid` int(5) NOT NULL DEFAULT '0',
  `entrytype` varchar(15) NOT NULL DEFAULT '',
  `seqnum` int(3) NOT NULL DEFAULT '0',
  `fieldname` varchar(80) NOT NULL DEFAULT '',
  `displaydesc` varchar(25) NOT NULL DEFAULT '',
  `visible` enum('1','0') NOT NULL DEFAULT '1',
  `columnbreak` enum('1','0') NOT NULL DEFAULT '1',
  `params` text,
  PRIMARY KEY (`id`),
  KEY `reportid` (`reportid`)
) ENGINE=MyISAM AUTO_INCREMENT=1805 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `reportfields`
--


--
-- Table structure for table `reportheaders`
--

CREATE TABLE `reportheaders` (
  `reportid` smallint(6) NOT NULL AUTO_INCREMENT,
  `reportheading` varchar(80) NOT NULL DEFAULT '',
  `groupbydata1` varchar(15) NOT NULL DEFAULT '',
  `newpageafter1` tinyint(1) NOT NULL DEFAULT '0',
  `lower1` varchar(10) NOT NULL DEFAULT '',
  `upper1` varchar(10) NOT NULL DEFAULT '',
  `groupbydata2` varchar(15) DEFAULT NULL,
  `newpageafter2` tinyint(1) NOT NULL DEFAULT '0',
  `lower2` varchar(10) DEFAULT NULL,
  `upper2` varchar(10) DEFAULT NULL,
  `groupbydata3` varchar(15) DEFAULT NULL,
  `newpageafter3` tinyint(1) NOT NULL DEFAULT '0',
  `lower3` varchar(10) DEFAULT NULL,
  `upper3` varchar(10) DEFAULT NULL,
  `groupbydata4` varchar(15) NOT NULL DEFAULT '',
  `newpageafter4` tinyint(1) NOT NULL DEFAULT '0',
  `upper4` varchar(10) NOT NULL DEFAULT '',
  `lower4` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`reportid`),
  KEY `ReportHeading` (`reportheading`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `reportheaders`
--


--
-- Table structure for table `reportlinks`
--

CREATE TABLE `reportlinks` (
  `table1` varchar(25) NOT NULL DEFAULT '',
  `table2` varchar(25) NOT NULL DEFAULT '',
  `equation` varchar(75) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `reportlinks`
--

INSERT INTO `reportlinks` VALUES ('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation'),('accountgroups','accountsection','accountgroups.sectioninaccounts=accountsection.sectionid'),('accountsection','accountgroups','accountsection.sectionid=accountgroups.sectioninaccounts'),('bankaccounts','chartmaster','bankaccounts.accountcode=chartmaster.accountcode'),('chartmaster','bankaccounts','chartmaster.accountcode=bankaccounts.accountcode'),('banktrans','systypes','banktrans.type=systypes.typeid'),('systypes','banktrans','systypes.typeid=banktrans.type'),('banktrans','bankaccounts','banktrans.bankact=bankaccounts.accountcode'),('bankaccounts','banktrans','bankaccounts.accountcode=banktrans.bankact'),('bom','stockmaster','bom.parent=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.parent'),('bom','stockmaster','bom.component=stockmaster.stockid'),('stockmaster','bom','stockmaster.stockid=bom.component'),('bom','workcentres','bom.workcentreadded=workcentres.code'),('workcentres','bom','workcentres.code=bom.workcentreadded'),('bom','locations','bom.loccode=locations.loccode'),('locations','bom','locations.loccode=bom.loccode'),('buckets','workcentres','buckets.workcentre=workcentres.code'),('workcentres','buckets','workcentres.code=buckets.workcentre'),('chartdetails','chartmaster','chartdetails.accountcode=chartmaster.accountcode'),('chartmaster','chartdetails','chartmaster.accountcode=chartdetails.accountcode'),('chartdetails','periods','chartdetails.period=periods.periodno'),('periods','chartdetails','periods.periodno=chartdetails.period'),('chartmaster','accountgroups','chartmaster.group_=accountgroups.groupname'),('accountgroups','chartmaster','accountgroups.groupname=chartmaster.group_'),('contractbom','workcentres','contractbom.workcentreadded=workcentres.code'),('workcentres','contractbom','workcentres.code=contractbom.workcentreadded'),('contractbom','locations','contractbom.loccode=locations.loccode'),('locations','contractbom','locations.loccode=contractbom.loccode'),('contractbom','stockmaster','contractbom.component=stockmaster.stockid'),('stockmaster','contractbom','stockmaster.stockid=contractbom.component'),('contractreqts','contracts','contractreqts.contract=contracts.contractref'),('contracts','contractreqts','contracts.contractref=contractreqts.contract'),('contracts','custbranch','contracts.debtorno=custbranch.debtorno'),('custbranch','contracts','custbranch.debtorno=contracts.debtorno'),('contracts','stockcategory','contracts.branchcode=stockcategory.categoryid'),('stockcategory','contracts','stockcategory.categoryid=contracts.branchcode'),('contracts','salestypes','contracts.typeabbrev=salestypes.typeabbrev'),('salestypes','contracts','salestypes.typeabbrev=contracts.typeabbrev'),('custallocns','debtortrans','custallocns.transid_allocfrom=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocfrom'),('custallocns','debtortrans','custallocns.transid_allocto=debtortrans.id'),('debtortrans','custallocns','debtortrans.id=custallocns.transid_allocto'),('custbranch','debtorsmaster','custbranch.debtorno=debtorsmaster.debtorno'),('debtorsmaster','custbranch','debtorsmaster.debtorno=custbranch.debtorno'),('custbranch','areas','custbranch.area=areas.areacode'),('areas','custbranch','areas.areacode=custbranch.area'),('custbranch','salesman','custbranch.salesman=salesman.salesmancode'),('salesman','custbranch','salesman.salesmancode=custbranch.salesman'),('custbranch','locations','custbranch.defaultlocation=locations.loccode'),('locations','custbranch','locations.loccode=custbranch.defaultlocation'),('custbranch','shippers','custbranch.defaultshipvia=shippers.shipper_id'),('shippers','custbranch','shippers.shipper_id=custbranch.defaultshipvia'),('debtorsmaster','holdreasons','debtorsmaster.holdreason=holdreasons.reasoncode'),('holdreasons','debtorsmaster','holdreasons.reasoncode=debtorsmaster.holdreason'),('debtorsmaster','currencies','debtorsmaster.currcode=currencies.currabrev'),('currencies','debtorsmaster','currencies.currabrev=debtorsmaster.currcode'),('debtorsmaster','paymentterms','debtorsmaster.paymentterms=paymentterms.termsindicator'),('paymentterms','debtorsmaster','paymentterms.termsindicator=debtorsmaster.paymentterms'),('debtorsmaster','salestypes','debtorsmaster.salestype=salestypes.typeabbrev'),('salestypes','debtorsmaster','salestypes.typeabbrev=debtorsmaster.salestype'),('debtortrans','custbranch','debtortrans.debtorno=custbranch.debtorno'),('custbranch','debtortrans','custbranch.debtorno=debtortrans.debtorno'),('debtortrans','systypes','debtortrans.type=systypes.typeid'),('systypes','debtortrans','systypes.typeid=debtortrans.type'),('debtortrans','periods','debtortrans.prd=periods.periodno'),('periods','debtortrans','periods.periodno=debtortrans.prd'),('debtortranstaxes','taxauthorities','debtortranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','debtortranstaxes','taxauthorities.taxid=debtortranstaxes.taxauthid'),('debtortranstaxes','debtortrans','debtortranstaxes.debtortransid=debtortrans.id'),('debtortrans','debtortranstaxes','debtortrans.id=debtortranstaxes.debtortransid'),('discountmatrix','salestypes','discountmatrix.salestype=salestypes.typeabbrev'),('salestypes','discountmatrix','salestypes.typeabbrev=discountmatrix.salestype'),('freightcosts','locations','freightcosts.locationfrom=locations.loccode'),('locations','freightcosts','locations.loccode=freightcosts.locationfrom'),('freightcosts','shippers','freightcosts.shipperid=shippers.shipper_id'),('shippers','freightcosts','shippers.shipper_id=freightcosts.shipperid'),('gltrans','chartmaster','gltrans.account=chartmaster.accountcode'),('chartmaster','gltrans','chartmaster.accountcode=gltrans.account'),('gltrans','systypes','gltrans.type=systypes.typeid'),('systypes','gltrans','systypes.typeid=gltrans.type'),('gltrans','periods','gltrans.periodno=periods.periodno'),('periods','gltrans','periods.periodno=gltrans.periodno'),('grns','suppliers','grns.supplierid=suppliers.supplierid'),('suppliers','grns','suppliers.supplierid=grns.supplierid'),('grns','purchorderdetails','grns.podetailitem=purchorderdetails.podetailitem'),('purchorderdetails','grns','purchorderdetails.podetailitem=grns.podetailitem'),('locations','taxprovinces','locations.taxprovinceid=taxprovinces.taxprovinceid'),('taxprovinces','locations','taxprovinces.taxprovinceid=locations.taxprovinceid'),('locstock','locations','locstock.loccode=locations.loccode'),('locations','locstock','locations.loccode=locstock.loccode'),('locstock','stockmaster','locstock.stockid=stockmaster.stockid'),('stockmaster','locstock','stockmaster.stockid=locstock.stockid'),('loctransfers','locations','loctransfers.shiploc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.shiploc'),('loctransfers','locations','loctransfers.recloc=locations.loccode'),('locations','loctransfers','locations.loccode=loctransfers.recloc'),('loctransfers','stockmaster','loctransfers.stockid=stockmaster.stockid'),('stockmaster','loctransfers','stockmaster.stockid=loctransfers.stockid'),('orderdeliverydifferencesl','stockmaster','orderdeliverydifferenceslog.stockid=stockmaster.stockid'),('stockmaster','orderdeliverydifferencesl','stockmaster.stockid=orderdeliverydifferenceslog.stockid'),('orderdeliverydifferencesl','custbranch','orderdeliverydifferenceslog.debtorno=custbranch.debtorno'),('custbranch','orderdeliverydifferencesl','custbranch.debtorno=orderdeliverydifferenceslog.debtorno'),('orderdeliverydifferencesl','salesorders','orderdeliverydifferenceslog.branchcode=salesorders.orderno'),('salesorders','orderdeliverydifferencesl','salesorders.orderno=orderdeliverydifferenceslog.branchcode'),('prices','stockmaster','prices.stockid=stockmaster.stockid'),('stockmaster','prices','stockmaster.stockid=prices.stockid'),('prices','currencies','prices.currabrev=currencies.currabrev'),('currencies','prices','currencies.currabrev=prices.currabrev'),('prices','salestypes','prices.typeabbrev=salestypes.typeabbrev'),('salestypes','prices','salestypes.typeabbrev=prices.typeabbrev'),('purchdata','stockmaster','purchdata.stockid=stockmaster.stockid'),('stockmaster','purchdata','stockmaster.stockid=purchdata.stockid'),('purchdata','suppliers','purchdata.supplierno=suppliers.supplierid'),('suppliers','purchdata','suppliers.supplierid=purchdata.supplierno'),('purchorderdetails','purchorders','purchorderdetails.orderno=purchorders.orderno'),('purchorders','purchorderdetails','purchorders.orderno=purchorderdetails.orderno'),('purchorders','suppliers','purchorders.supplierno=suppliers.supplierid'),('suppliers','purchorders','suppliers.supplierid=purchorders.supplierno'),('purchorders','locations','purchorders.intostocklocation=locations.loccode'),('locations','purchorders','locations.loccode=purchorders.intostocklocation'),('recurringsalesorders','custbranch','recurringsalesorders.branchcode=custbranch.branchcode'),('custbranch','recurringsalesorders','custbranch.branchcode=recurringsalesorders.branchcode'),('recurrsalesorderdetails','recurringsalesorders','recurrsalesorderdetails.recurrorderno=recurringsalesorders.recurrorderno'),('recurringsalesorders','recurrsalesorderdetails','recurringsalesorders.recurrorderno=recurrsalesorderdetails.recurrorderno'),('recurrsalesorderdetails','stockmaster','recurrsalesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','recurrsalesorderdetails','stockmaster.stockid=recurrsalesorderdetails.stkcode'),('reportcolumns','reportheaders','reportcolumns.reportid=reportheaders.reportid'),('reportheaders','reportcolumns','reportheaders.reportid=reportcolumns.reportid'),('salesanalysis','periods','salesanalysis.periodno=periods.periodno'),('periods','salesanalysis','periods.periodno=salesanalysis.periodno'),('salescatprod','stockmaster','salescatprod.stockid=stockmaster.stockid'),('stockmaster','salescatprod','stockmaster.stockid=salescatprod.stockid'),('salescatprod','salescat','salescatprod.salescatid=salescat.salescatid'),('salescat','salescatprod','salescat.salescatid=salescatprod.salescatid'),('salesorderdetails','salesorders','salesorderdetails.orderno=salesorders.orderno'),('salesorders','salesorderdetails','salesorders.orderno=salesorderdetails.orderno'),('salesorderdetails','stockmaster','salesorderdetails.stkcode=stockmaster.stockid'),('stockmaster','salesorderdetails','stockmaster.stockid=salesorderdetails.stkcode'),('salesorders','custbranch','salesorders.branchcode=custbranch.branchcode'),('custbranch','salesorders','custbranch.branchcode=salesorders.branchcode'),('salesorders','shippers','salesorders.debtorno=shippers.shipper_id'),('shippers','salesorders','shippers.shipper_id=salesorders.debtorno'),('salesorders','locations','salesorders.fromstkloc=locations.loccode'),('locations','salesorders','locations.loccode=salesorders.fromstkloc'),('securitygroups','securityroles','securitygroups.secroleid=securityroles.secroleid'),('securityroles','securitygroups','securityroles.secroleid=securitygroups.secroleid'),('securitygroups','securitytokens','securitygroups.tokenid=securitytokens.tokenid'),('securitytokens','securitygroups','securitytokens.tokenid=securitygroups.tokenid'),('shipmentcharges','shipments','shipmentcharges.shiptref=shipments.shiptref'),('shipments','shipmentcharges','shipments.shiptref=shipmentcharges.shiptref'),('shipmentcharges','systypes','shipmentcharges.transtype=systypes.typeid'),('systypes','shipmentcharges','systypes.typeid=shipmentcharges.transtype'),('shipments','suppliers','shipments.supplierid=suppliers.supplierid'),('suppliers','shipments','suppliers.supplierid=shipments.supplierid'),('stockcheckfreeze','stockmaster','stockcheckfreeze.stockid=stockmaster.stockid'),('stockmaster','stockcheckfreeze','stockmaster.stockid=stockcheckfreeze.stockid'),('stockcheckfreeze','locations','stockcheckfreeze.loccode=locations.loccode'),('locations','stockcheckfreeze','locations.loccode=stockcheckfreeze.loccode'),('stockcounts','stockmaster','stockcounts.stockid=stockmaster.stockid'),('stockmaster','stockcounts','stockmaster.stockid=stockcounts.stockid'),('stockcounts','locations','stockcounts.loccode=locations.loccode'),('locations','stockcounts','locations.loccode=stockcounts.loccode'),('stockmaster','stockcategory','stockmaster.categoryid=stockcategory.categoryid'),('stockcategory','stockmaster','stockcategory.categoryid=stockmaster.categoryid'),('stockmaster','taxcategories','stockmaster.taxcatid=taxcategories.taxcatid'),('taxcategories','stockmaster','taxcategories.taxcatid=stockmaster.taxcatid'),('stockmoves','stockmaster','stockmoves.stockid=stockmaster.stockid'),('stockmaster','stockmoves','stockmaster.stockid=stockmoves.stockid'),('stockmoves','systypes','stockmoves.type=systypes.typeid'),('systypes','stockmoves','systypes.typeid=stockmoves.type'),('stockmoves','locations','stockmoves.loccode=locations.loccode'),('locations','stockmoves','locations.loccode=stockmoves.loccode'),('stockmoves','periods','stockmoves.prd=periods.periodno'),('periods','stockmoves','periods.periodno=stockmoves.prd'),('stockmovestaxes','taxauthorities','stockmovestaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','stockmovestaxes','taxauthorities.taxid=stockmovestaxes.taxauthid'),('stockserialitems','stockmaster','stockserialitems.stockid=stockmaster.stockid'),('stockmaster','stockserialitems','stockmaster.stockid=stockserialitems.stockid'),('stockserialitems','locations','stockserialitems.loccode=locations.loccode'),('locations','stockserialitems','locations.loccode=stockserialitems.loccode'),('stockserialmoves','stockmoves','stockserialmoves.stockmoveno=stockmoves.stkmoveno'),('stockmoves','stockserialmoves','stockmoves.stkmoveno=stockserialmoves.stockmoveno'),('stockserialmoves','stockserialitems','stockserialmoves.stockid=stockserialitems.stockid'),('stockserialitems','stockserialmoves','stockserialitems.stockid=stockserialmoves.stockid'),('suppallocs','supptrans','suppallocs.transid_allocfrom=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocfrom'),('suppallocs','supptrans','suppallocs.transid_allocto=supptrans.id'),('supptrans','suppallocs','supptrans.id=suppallocs.transid_allocto'),('suppliercontacts','suppliers','suppliercontacts.supplierid=suppliers.supplierid'),('suppliers','suppliercontacts','suppliers.supplierid=suppliercontacts.supplierid'),('suppliers','currencies','suppliers.currcode=currencies.currabrev'),('currencies','suppliers','currencies.currabrev=suppliers.currcode'),('suppliers','paymentterms','suppliers.paymentterms=paymentterms.termsindicator'),('paymentterms','suppliers','paymentterms.termsindicator=suppliers.paymentterms'),('suppliers','taxgroups','suppliers.taxgroupid=taxgroups.taxgroupid'),('taxgroups','suppliers','taxgroups.taxgroupid=suppliers.taxgroupid'),('supptrans','systypes','supptrans.type=systypes.typeid'),('systypes','supptrans','systypes.typeid=supptrans.type'),('supptrans','suppliers','supptrans.supplierno=suppliers.supplierid'),('suppliers','supptrans','suppliers.supplierid=supptrans.supplierno'),('supptranstaxes','taxauthorities','supptranstaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','supptranstaxes','taxauthorities.taxid=supptranstaxes.taxauthid'),('supptranstaxes','supptrans','supptranstaxes.supptransid=supptrans.id'),('supptrans','supptranstaxes','supptrans.id=supptranstaxes.supptransid'),('taxauthorities','chartmaster','taxauthorities.taxglcode=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.taxglcode'),('taxauthorities','chartmaster','taxauthorities.purchtaxglaccount=chartmaster.accountcode'),('chartmaster','taxauthorities','chartmaster.accountcode=taxauthorities.purchtaxglaccount'),('taxauthrates','taxauthorities','taxauthrates.taxauthority=taxauthorities.taxid'),('taxauthorities','taxauthrates','taxauthorities.taxid=taxauthrates.taxauthority'),('taxauthrates','taxcategories','taxauthrates.taxcatid=taxcategories.taxcatid'),('taxcategories','taxauthrates','taxcategories.taxcatid=taxauthrates.taxcatid'),('taxauthrates','taxprovinces','taxauthrates.dispatchtaxprovince=taxprovinces.taxprovinceid'),('taxprovinces','taxauthrates','taxprovinces.taxprovinceid=taxauthrates.dispatchtaxprovince'),('taxgrouptaxes','taxgroups','taxgrouptaxes.taxgroupid=taxgroups.taxgroupid'),('taxgroups','taxgrouptaxes','taxgroups.taxgroupid=taxgrouptaxes.taxgroupid'),('taxgrouptaxes','taxauthorities','taxgrouptaxes.taxauthid=taxauthorities.taxid'),('taxauthorities','taxgrouptaxes','taxauthorities.taxid=taxgrouptaxes.taxauthid'),('workcentres','locations','workcentres.location=locations.loccode'),('locations','workcentres','locations.loccode=workcentres.location'),('worksorders','locations','worksorders.loccode=locations.loccode'),('locations','worksorders','locations.loccode=worksorders.loccode'),('worksorders','stockmaster','worksorders.stockid=stockmaster.stockid'),('stockmaster','worksorders','stockmaster.stockid=worksorders.stockid'),('www_users','locations','www_users.defaultlocation=locations.loccode'),('locations','www_users','locations.loccode=www_users.defaultlocation');

--
