| Current Path : /var/www/html/mmishra/iws8_sql/ |
| Current File : /var/www/html/mmishra/iws8_sql/weberpdemo.sql |
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 05, 2018 at 07:00 AM
-- Server version: 10.0.21-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `weberpdemo`
--
-- --------------------------------------------------------
--
-- Table structure for table `accountgroups`
--
CREATE TABLE `accountgroups` (
`groupname` char(30) NOT NULL DEFAULT '',
`sectioninaccounts` int(11) NOT NULL DEFAULT '0',
`pandl` tinyint(4) NOT NULL DEFAULT '1',
`sequenceintb` smallint(6) NOT NULL DEFAULT '0',
`parentgroupname` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accountgroups`
--
INSERT INTO `accountgroups` (`groupname`, `sectioninaccounts`, `pandl`, `sequenceintb`, `parentgroupname`) VALUES
('Cost of Goods Sold', 2, 1, 5000, ''),
('Current Assets', 20, 0, 1000, ''),
('Financed', 50, 0, 3000, ''),
('Fixed Assets', 10, 0, 500, ''),
('Giveaways', 5, 1, 6000, 'Promotions'),
('Income Tax', 5, 1, 9000, ''),
('Liabilities', 30, 0, 2000, ''),
('Marketing Expenses', 5, 1, 6000, ''),
('Operating Expenses', 5, 1, 7000, ''),
('Other Revenue and Expenses', 5, 1, 8000, ''),
('Outward Freight', 2, 1, 5000, 'Cost of Goods Sold'),
('Promotions', 5, 1, 6000, 'Marketing Expenses'),
('Revenue', 1, 1, 4000, ''),
('Sales', 1, 1, 10, '');
-- --------------------------------------------------------
--
-- Table structure for table `accountsection`
--
CREATE TABLE `accountsection` (
`sectionid` int(11) NOT NULL DEFAULT '0',
`sectionname` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accountsection`
--
INSERT INTO `accountsection` (`sectionid`, `sectionname`) VALUES
(1, 'Income'),
(2, 'Cost Of Sales'),
(5, 'Overheads'),
(10, 'Fixed Assets'),
(15, 'Inventory'),
(20, 'Amounts Receivable'),
(25, 'Cash'),
(30, 'Amounts Payable'),
(50, 'Financed By');
-- --------------------------------------------------------
--
-- Table structure for table `areas`
--
CREATE TABLE `areas` (
`areacode` char(3) NOT NULL,
`areadescription` varchar(25) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `areas`
--
INSERT INTO `areas` (`areacode`, `areadescription`) VALUES
('123', 'Test area'),
('DE', 'Default'),
('FL', 'Florida'),
('TR', 'Toronto');
-- --------------------------------------------------------
--
-- Table structure for table `assetmanager`
--
CREATE TABLE `assetmanager` (
`id` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL DEFAULT '',
`serialno` varchar(30) NOT NULL DEFAULT '',
`location` varchar(15) NOT NULL DEFAULT '',
`cost` double NOT NULL DEFAULT '0',
`depn` double NOT NULL DEFAULT '0',
`datepurchased` date NOT NULL DEFAULT '0000-00-00',
`disposalvalue` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `audittrail`
--
CREATE TABLE `audittrail` (
`transactiondate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`userid` varchar(20) NOT NULL DEFAULT '',
`querystring` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `bankaccounts`
--
CREATE TABLE `bankaccounts` (
`accountcode` varchar(20) NOT NULL DEFAULT '0',
`currcode` char(3) NOT NULL,
`invoice` smallint(2) NOT NULL DEFAULT '0',
`bankaccountcode` varchar(50) NOT NULL DEFAULT '',
`bankaccountname` char(50) NOT NULL DEFAULT '',
`bankaccountnumber` char(50) NOT NULL DEFAULT '',
`bankaddress` char(50) DEFAULT NULL,
`importformat` varchar(10) NOT NULL DEFAULT ''''''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `bankaccounts`
--
INSERT INTO `bankaccounts` (`accountcode`, `currcode`, `invoice`, `bankaccountcode`, `bankaccountname`, `bankaccountnumber`, `bankaddress`, `importformat`) VALUES
('1010', 'GBP', 2, '123', 'GBP account', '123', '', ''),
('1030', 'AUD', 2, '12445', 'Cheque Account', '124455667789', '123 Straight Street', ''),
('1040', 'AUD', 0, '', 'Savings Account', '', '', ''),
('1060', 'USD', 1, '', 'USD Bank Account', '123', '', 'GIFTS');
-- --------------------------------------------------------
--
-- Table structure for table `bankaccountusers`
--
CREATE TABLE `bankaccountusers` (
`accountcode` varchar(20) NOT NULL COMMENT 'Bank account code',
`userid` varchar(20) NOT NULL COMMENT 'User code'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `bankaccountusers`
--
INSERT INTO `bankaccountusers` (`accountcode`, `userid`) VALUES
('1030', 'admin'),
('1010', 'admin'),
('1040', 'admin'),
('1060', 'admin'),
('1030', 'admin'),
('1010', 'admin'),
('1040', 'admin'),
('1060', 'admin'),
('1030', 'admin'),
('1010', 'admin'),
('1040', 'admin'),
('1060', 'admin'),
('1030', 'admin'),
('1010', 'admin'),
('1040', 'admin'),
('1060', 'admin');
-- --------------------------------------------------------
--
-- Table structure for table `banktrans`
--
CREATE TABLE `banktrans` (
`banktransid` bigint(20) NOT NULL,
`type` smallint(6) NOT NULL DEFAULT '0',
`transno` bigint(20) NOT NULL DEFAULT '0',
`bankact` varchar(20) NOT NULL DEFAULT '0',
`ref` varchar(50) NOT NULL DEFAULT '',
`amountcleared` double NOT NULL DEFAULT '0',
`exrate` double NOT NULL DEFAULT '1' COMMENT 'From bank account currency to payment currency',
`functionalexrate` double NOT NULL DEFAULT '1' COMMENT 'Account currency to functional currency',
`transdate` date NOT NULL DEFAULT '0000-00-00',
`banktranstype` varchar(30) NOT NULL DEFAULT '',
`amount` double NOT NULL DEFAULT '0',
`currcode` char(3) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `banktrans`
--
INSERT INTO `banktrans` (`banktransid`, `type`, `transno`, `bankact`, `ref`, `amountcleared`, `exrate`, `functionalexrate`, `transdate`, `banktranstype`, `amount`, `currcode`) VALUES
(1, 12, 5, '1030', '', 0, 1, 0.9953, '2013-05-10', 'Cash', 50, 'AUD'),
(2, 12, 12, '1030', 'web shop receipt 7 3P178942ST690145V', 0, 1.0378, 1.0378, '2013-06-08', 'PayPalPro web', 0, 'USD'),
(3, 12, 13, '1030', 'web shop receipt 7 2E5509873Y0129234', 0, 1.0378, 1.0378, '2013-06-08', 'PayPalPro web', 0, 'USD'),
(4, 12, 14, '1040', 'web shop receipt 7 6CW03791GP8036526', 0, 1.0378, 1.0378, '2013-06-08', 'PayPal web', 0, 'USD'),
(6, 12, 17, '1030', 'web shop receipt 7 ', 0, 1.0378, 1.0378, '2013-06-08', 'PayPalPro web', 0, 'USD'),
(7, 12, 18, '1030', '', 0, 0.959969, 1.0417, '2013-06-16', 'Cash', 85.9, 'USD'),
(8, 12, 19, '1030', 'web shop receipt 7 B254331D91384', 0, 1.0814, 1.0814, '2013-06-23', 'SwipeHQ web', 0, 'USD'),
(9, 12, 20, '1030', 'web shop receipt 7 B254348421937', 0, 1.0814, 1.0814, '2013-06-23', 'SwipeHQ web', 0, 'USD'),
(10, 12, 21, '1040', 'web shop receipt 7 ', 0, 1.0814, 1.0814, '2013-06-23', 'PayPal web', 0, 'USD'),
(11, 12, 1, '1040', 'web shop receipt 7 7XT5929577922053V', 0, 1.0814, 1.0814, '2013-06-23', 'PayPal web', 39.5722309059, 'USD'),
(12, 12, 1, '1030', 'web shop receipt 16 ', 0, 1.0814, 1.0814, '2013-06-23', 'PayPalPro web', 118.14262747245, 'USD'),
(13, 12, 2, '1030', 'web shop receipt 16 ', 0, 1.091, 1.091, '2013-06-24', 'PayPalPro web', 15.450740227125, 'USD'),
(14, 12, 3, '1030', 'web shop receipt 16 V78R4D18BB1E', 0, 1.091, 1.091, '2013-06-24', 'PayFlow web', 15.450740227125, 'USD'),
(15, 12, 4, '1030', 'web shop receipt 16 V18R4E55E804', 0, 1.091, 1.091, '2013-06-24', 'PayFlow web', 9.447024024585, 'USD'),
(16, 22, 9, '1030', '', 0, 1, 1.0884, '2013-11-20', 'Cash', -100, 'AUD'),
(17, 22, 10, '1030', '', 0, 1, 1, '2013-11-20', 'Cash', -100, 'AUD'),
(18, 22, 11, '1030', '', 0, 1, 1.0884, '2013-11-20', 'Cash', -100, 'AUD'),
(19, 1, 5, '1030', 'Test', 0, 0.91877986, 1.0884, '2014-02-03', 'Cash', -105.5, 'USD'),
(20, 1, 6, '1060', 'ffd', 0, 1, 1, '2014-02-03', 'Cash', -125, 'USD'),
(21, 2, 1, '1010', 'Act Transfer From 1060 - ', 0, 1.5199878400973, 0.6579, '2014-07-05', 'Cash', 10, 'USD'),
(22, 1, 7, '1060', '', 0, 1, 1, '2014-07-05', 'Cash', -10, 'USD');
-- --------------------------------------------------------
--
-- Table structure for table `bom`
--
CREATE TABLE `bom` (
`parent` char(20) NOT NULL DEFAULT '',
`sequence` int(11) NOT NULL DEFAULT '0',
`component` char(20) NOT NULL DEFAULT '',
`workcentreadded` char(5) NOT NULL DEFAULT '',
`loccode` char(5) NOT NULL DEFAULT '',
`effectiveafter` date NOT NULL DEFAULT '0000-00-00',
`effectiveto` date NOT NULL DEFAULT '9999-12-31',
`quantity` double NOT NULL DEFAULT '1',
`autoissue` tinyint(4) NOT NULL DEFAULT '0',
`remark` varchar(500) NOT NULL DEFAULT '',
`digitals` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `bom`
--
INSERT INTO `bom` (`parent`, `sequence`, `component`, `workcentreadded`, `loccode`, `effectiveafter`, `effectiveto`, `quantity`, `autoissue`, `remark`, `digitals`) VALUES
('BIGEARS12', 0, 'DVD-CASE', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BirthdayCakeConstruc', 0, 'BREAD', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BirthdayCakeConstruc', 0, 'DVD-CASE', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BirthdayCakeConstruc', 0, 'FLOUR', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BirthdayCakeConstruc', 0, 'SALT', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BirthdayCakeConstruc', 0, 'YEAST', 'MEL', 'TOR', '2010-08-14', '2037-12-31', 1, 0, '', 0),
('BREAD', 0, 'SALT', 'ASS', 'MEL', '2007-06-19', '2037-06-20', 0.025, 1, '', 0),
('BREAD', 0, 'YEAST', 'ASS', 'MEL', '2007-06-19', '2037-06-20', 0.1, 0, '', 0),
('DVD_ACTION', 0, 'DVD-CASE', 'ASS', 'MEL', '2007-06-12', '2037-06-13', 4, 0, '', 0),
('DVD_ACTION', 0, 'DVD-DHWV', 'ASS', 'MEL', '2007-06-12', '2037-06-13', 1, 1, '', 0),
('DVD_ACTION', 0, 'DVD-LTWP', 'ASS', 'MEL', '2007-06-12', '2037-06-13', 1, 1, '', 0),
('DVD_ACTION', 0, 'DVD-UNSG', 'ASS', 'MEL', '2007-06-12', '2037-06-13', 1, 1, '', 0),
('DVD_ACTION', 0, 'DVD-UNSG2', 'ASS', 'MEL', '2007-06-12', '2037-06-13', 1, 1, '', 0),
('FUJI9901ASS', 0, 'FUJI990101', 'ASS', 'MEL', '2005-06-04', '2035-06-05', 1, 0, '', 0),
('FUJI9901ASS', 0, 'FUJI990102', 'ASS', 'MEL', '2005-02-12', '2037-06-13', 1, 0, '', 0),
('SELLTAPE', 0, 'TAPE1', 'ASS', 'AN', '2013-02-08', '2033-02-09', 0.001, 0, '', 0),
('SLICE', 0, 'BREAD', 'ASS', 'MEL', '2007-06-19', '2037-06-20', 0.1, 1, '', 0),
('TAPE2', 0, 'CUTTING', 'ASS', 'AN', '2013-02-07', '2033-02-08', 0.5, 0, '', 0),
('TAPE2', 0, 'TAPE1', 'ASS', 'AN', '2013-02-07', '2033-02-08', 0.25, 1, '', 0),
('Test123', 0, 'SALT', 'ASS', 'TOR', '2013-06-21', '2099-12-31', 2, 0, '', 0),
('Test123', 0, 'TAPE1', 'ASS', 'TOR', '2013-06-21', '2099-12-31', 3, 0, '', 0),
('Test123', 0, 'TAPE2', 'ASS', 'TOR', '2013-06-21', '2099-12-31', 4, 0, '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `chartdetails`
--
CREATE TABLE `chartdetails` (
`accountcode` varchar(20) NOT NULL DEFAULT '0',
`period` smallint(6) NOT NULL DEFAULT '0',
`budget` double NOT NULL DEFAULT '0',
`actual` double NOT NULL DEFAULT '0',
`bfwd` double NOT NULL DEFAULT '0',
`bfwdbudget` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `chartdetails`
--
INSERT INTO `chartdetails` (`accountcode`, `period`, `budget`, `actual`, `bfwd`, `bfwdbudget`) VALUES
('1', 14, 0, 0, 0, 0),
('1', 15, 0, 0, 0, 0),
('1', 16, 0, 0, 0, 0),
('1', 17, 0, 0, 0, 0),
('1', 18, 0, 0, 0, 0),
('1', 19, 0, 0, 0, 0),
('1', 20, 0, 0, 0, 0),
('1', 21, 0, 0, 0, 0),
('1', 22, 0, 0, 0, 0),
('1', 23, 0, 0, 0, 0),
('1', 24, 0, 0, 0, 0),
('1', 25, 0, 0, 0, 0),
('1', 26, 0, 0, 0, 0),
('1', 27, 0, 0, 0, 0),
('1', 28, 0, 0, 0, 0),
('1', 29, 0, 0, 0, 0),
('1', 30, 0, 0, 0, 0),
('1', 31, 0, 0, 0, 0),
('1', 32, 0, 0, 0, 0),
('1', 33, 0, 0, 0, 0),
('1', 34, 0, 0, 0, 0),
('1', 35, 0, 0, 0, 0),
('1', 36, 0, 0, 0, 0),
('1', 37, 0, 0, 0, 0),
('1', 38, 0, 0, 0, 0),
('1', 39, 0, 0, 0, 0),
('1', 40, 0, 0, 0, 0),
('1', 41, 0, 0, 0, 0),
('1', 42, 0, 0, 0, 0),
('1', 43, 0, 0, 0, 0),
('1', 44, 0, 0, 0, 0),
('1', 45, 0, 0, 0, 0),
('1', 46, 0, 0, 0, 0),
('1010', 14, 0, 0, 0, 0),
('1010', 15, 0, 0, 0, 0),
('1010', 16, 0, 0, 0, 0),
('1010', 17, 0, 0, 0, 0),
('1010', 18, 0, 0, 0, 0),
('1010', 19, 0, 0, 0, 0),
('1010', 20, 0, 0, 0, 0),
('1010', 21, 0, 0, 0, 0),
('1010', 22, 0, 0, 0, 0),
('1010', 23, 0, 0, 0, 0),
('1010', 24, 0, 0, 0, 0),
('1010', 25, 0, 0, 0, 0),
('1010', 26, 0, 0, 0, 0),
('1010', 27, 0, 0, 0, 0),
('1010', 28, 0, 0, 0, 0),
('1010', 29, 0, 0, 0, 0),
('1010', 30, 0, 0, 0, 0),
('1010', 31, 0, 0, 0, 0),
('1010', 32, 0, 10, 0, 0),
('1010', 33, 0, 0, 10, 0),
('1010', 34, 0, 0, 0, 0),
('1010', 35, 0, 0, 0, 0),
('1010', 36, 0, 0, 0, 0),
('1010', 37, 0, 0, 0, 0),
('1010', 38, 0, 0, 0, 0),
('1010', 39, 0, 0, 0, 0),
('1010', 40, 0, 0, 0, 0),
('1010', 41, 0, 0, 0, 0),
('1010', 42, 0, 0, 0, 0),
('1010', 43, 0, 0, 0, 0),
('1010', 44, 0, 0, 0, 0),
('1010', 45, 0, 0, 0, 0),
('1010', 46, 0, 0, 0, 0),
('1020', 14, 0, 0, 0, 0),
('1020', 15, 0, 0, 0, 0),
('1020', 16, 0, 0, 0, 0),
('1020', 17, 0, 0, 0, 0),
('1020', 18, 0, 0, 0, 0),
('1020', 19, 0, 0, 0, 0),
('1020', 20, 0, 0, 0, 0),
('1020', 21, 0, 0, 0, 0),
('1020', 22, 0, 0, 0, 0),
('1020', 23, 0, 0, 0, 0),
('1020', 24, 0, 0, 0, 0),
('1020', 25, 0, 0, 0, 0),
('1020', 26, 0, 0, 0, 0),
('1020', 27, 0, 0, 0, 0),
('1020', 28, 0, 0, 0, 0),
('1020', 29, 0, 0, 0, 0),
('1020', 30, 0, 0, 0, 0),
('1020', 31, 0, 0, 0, 0),
('1020', 32, 0, 0, 0, 0),
('1020', 33, 0, 0, 0, 0),
('1020', 34, 0, 0, 0, 0),
('1020', 35, 0, 0, 0, 0),
('1020', 36, 0, 0, 0, 0),
('1020', 37, 0, 0, 0, 0),
('1020', 38, 0, 0, 0, 0),
('1020', 39, 0, 0, 0, 0),
('1020', 40, 0, 0, 0, 0),
('1020', 41, 0, 0, 0, 0),
('1020', 42, 0, 0, 0, 0),
('1020', 43, 0, 0, 0, 0),
('1020', 44, 0, 0, 0, 0),
('1020', 45, 0, 0, 0, 0),
('1020', 46, 0, 0, 0, 0),
('1030', 14, 0, 0, 0, 0),
('1030', 15, 0, 0, 0, 0),
('1030', 16, 0, 0, 0, 0),
('1030', 17, 0, 0, 0, 0),
('1030', 18, 0, 0, 0, 0),
('1030', 19, 0, 0, 0, 0),
('1030', 20, 0, 0, 0, 0),
('1030', 21, 0, 0, 0, 0),
('1030', 22, 0, 0, 0, 0),
('1030', 23, 0, 0, 0, 0),
('1030', 24, 0, -283.75597206909, 0, 0),
('1030', 25, 0, 0, -283.75597206909, 0),
('1030', 26, 0, 0, 0, 0),
('1030', 27, 0, -105.50000003967, 0, 0),
('1030', 28, 0, 0, -105.50000003967, 0),
('1030', 29, 0, 0, 0, 0),
('1030', 30, 0, 0, 0, 0),
('1030', 31, 0, 0, 0, 0),
('1030', 32, 0, 0, 0, 0),
('1030', 33, 0, 0, 0, 0),
('1030', 34, 0, 0, 0, 0),
('1030', 35, 0, 0, 0, 0),
('1030', 36, 0, 0, 0, 0),
('1030', 37, 0, 0, 0, 0),
('1030', 38, 0, 0, 0, 0),
('1030', 39, 0, 0, 0, 0),
('1030', 40, 0, 0, 0, 0),
('1030', 41, 0, 0, 0, 0),
('1030', 42, 0, 0, 0, 0),
('1030', 43, 0, 0, 0, 0),
('1030', 44, 0, 0, 0, 0),
('1030', 45, 0, 0, 0, 0),
('1030', 46, 0, 0, 0, 0),
('1040', 14, 0, 0, 0, 0),
('1040', 15, 0, 0, 0, 0),
('1040', 16, 0, 0, 0, 0),
('1040', 17, 0, 0, 0, 0),
('1040', 18, 0, 0, 0, 0),
('1040', 19, 0, 0, 0, 0),
('1040', 20, 0, 0, 0, 0),
('1040', 21, 0, 0, 0, 0),
('1040', 22, 0, 0, 0, 0),
('1040', 23, 0, 0, 0, 0),
('1040', 24, 0, 0, 0, 0),
('1040', 25, 0, 0, 0, 0),
('1040', 26, 0, 0, 0, 0),
('1040', 27, 0, 0, 0, 0),
('1040', 28, 0, 0, 0, 0),
('1040', 29, 0, 0, 0, 0),
('1040', 30, 0, 0, 0, 0),
('1040', 31, 0, 0, 0, 0),
('1040', 32, 0, 0, 0, 0),
('1040', 33, 0, 0, 0, 0),
('1040', 34, 0, 0, 0, 0),
('1040', 35, 0, 0, 0, 0),
('1040', 36, 0, 0, 0, 0),
('1040', 37, 0, 0, 0, 0),
('1040', 38, 0, 0, 0, 0),
('1040', 39, 0, 0, 0, 0),
('1040', 40, 0, 0, 0, 0),
('1040', 41, 0, 0, 0, 0),
('1040', 42, 0, 0, 0, 0),
('1040', 43, 0, 0, 0, 0),
('1040', 44, 0, 0, 0, 0),
('1040', 45, 0, 0, 0, 0),
('1040', 46, 0, 0, 0, 0),
('1050', 14, 0, 0, 0, 0),
('1050', 15, 0, 0, 0, 0),
('1050', 16, 0, 0, 0, 0),
('1050', 17, 0, 0, 0, 0),
('1050', 18, 0, 0, 0, 0),
('1050', 19, 0, 0, 0, 0),
('1050', 20, 0, 0, 0, 0),
('1050', 21, 0, 0, 0, 0),
('1050', 22, 0, 0, 0, 0),
('1050', 23, 0, 0, 0, 0),
('1050', 24, 0, 0, 0, 0),
('1050', 25, 0, 0, 0, 0),
('1050', 26, 0, 0, 0, 0),
('1050', 27, 0, 0, 0, 0),
('1050', 28, 0, 0, 0, 0),
('1050', 29, 0, 0, 0, 0),
('1050', 30, 0, 0, 0, 0),
('1050', 31, 0, 0, 0, 0),
('1050', 32, 0, 0, 0, 0),
('1050', 33, 0, 0, 0, 0),
('1050', 34, 0, 0, 0, 0),
('1050', 35, 0, 0, 0, 0),
('1050', 36, 0, 0, 0, 0),
('1050', 37, 0, 0, 0, 0),
('1050', 38, 0, 0, 0, 0),
('1050', 39, 0, 0, 0, 0),
('1050', 40, 0, 0, 0, 0),
('1050', 41, 0, 0, 0, 0),
('1050', 42, 0, 0, 0, 0),
('1050', 43, 0, 0, 0, 0),
('1050', 44, 0, 0, 0, 0),
('1050', 45, 0, 0, 0, 0),
('1050', 46, 0, 0, 0, 0),
('1060', 14, 0, 0, 0, 0),
('1060', 15, 0, 0, 0, 0),
('1060', 16, 0, 0, 0, 0),
('1060', 17, 0, 0, 0, 0),
('1060', 18, 0, 0, 0, 0),
('1060', 19, 0, 0, 0, 0),
('1060', 20, 0, 0, 0, 0),
('1060', 21, 0, 0, 0, 0),
('1060', 22, 0, 0, 0, 0),
('1060', 23, 0, 0, 0, 0),
('1060', 24, 0, 0, 0, 0),
('1060', 25, 0, 0, 0, 0),
('1060', 26, 0, 0, 0, 0),
('1060', 27, 0, -125, 0, 0),
('1060', 28, 0, 0, -125, 0),
('1060', 29, 0, 0, 0, 0),
('1060', 30, 0, 0, 0, 0),
('1060', 31, 0, 0, 0, 0),
('1060', 32, 0, -10, 0, 0),
('1060', 33, 0, 0, -10, 0),
('1060', 34, 0, 0, 0, 0),
('1060', 35, 0, 0, 0, 0),
('1060', 36, 0, 0, 0, 0),
('1060', 37, 0, 0, 0, 0),
('1060', 38, 0, 0, 0, 0),
('1060', 39, 0, 0, 0, 0),
('1060', 40, 0, 0, 0, 0),
('1060', 41, 0, 0, 0, 0),
('1060', 42, 0, 0, 0, 0),
('1060', 43, 0, 0, 0, 0),
('1060', 44, 0, 0, 0, 0),
('1060', 45, 0, 0, 0, 0),
('1060', 46, 0, 0, 0, 0),
('1070', 14, 0, 0, 0, 0),
('1070', 15, 0, 0, 0, 0),
('1070', 16, 0, 0, 0, 0),
('1070', 17, 0, 0, 0, 0),
('1070', 18, 0, 0, 0, 0),
('1070', 19, 0, 0, 0, 0),
('1070', 20, 0, 0, 0, 0),
('1070', 21, 0, 0, 0, 0),
('1070', 22, 0, 0, 0, 0),
('1070', 23, 0, 0, 0, 0),
('1070', 24, 0, 0, 0, 0),
('1070', 25, 0, 0, 0, 0),
('1070', 26, 0, 0, 0, 0),
('1070', 27, 0, 0, 0, 0),
('1070', 28, 0, 0, 0, 0),
('1070', 29, 0, 0, 0, 0),
('1070', 30, 0, 0, 0, 0),
('1070', 31, 0, 0, 0, 0),
('1070', 32, 0, 0, 0, 0),
('1070', 33, 0, 0, 0, 0),
('1070', 34, 0, 0, 0, 0),
('1070', 35, 0, 0, 0, 0),
('1070', 36, 0, 0, 0, 0),
('1070', 37, 0, 0, 0, 0),
('1070', 38, 0, 0, 0, 0),
('1070', 39, 0, 0, 0, 0),
('1070', 40, 0, 0, 0, 0),
('1070', 41, 0, 0, 0, 0),
('1070', 42, 0, 0, 0, 0),
('1070', 43, 0, 0, 0, 0),
('1070', 44, 0, 0, 0, 0),
('1070', 45, 0, 0, 0, 0),
('1070', 46, 0, 0, 0, 0),
('1080', 14, 0, 0, 0, 0),
('1080', 15, 0, 0, 0, 0),
('1080', 16, 0, 0, 0, 0),
('1080', 17, 0, 0, 0, 0),
('1080', 18, 0, 0, 0, 0),
('1080', 19, 0, 0, 0, 0),
('1080', 20, 0, 0, 0, 0),
('1080', 21, 0, 0, 0, 0),
('1080', 22, 0, 0, 0, 0),
('1080', 23, 0, 0, 0, 0),
('1080', 24, 0, 0, 0, 0),
('1080', 25, 0, 0, 0, 0),
('1080', 26, 0, 0, 0, 0),
('1080', 27, 0, 0, 0, 0),
('1080', 28, 0, 0, 0, 0),
('1080', 29, 0, 0, 0, 0),
('1080', 30, 0, 0, 0, 0),
('1080', 31, 0, 0, 0, 0),
('1080', 32, 0, 0, 0, 0),
('1080', 33, 0, 0, 0, 0),
('1080', 34, 0, 0, 0, 0),
('1080', 35, 0, 0, 0, 0),
('1080', 36, 0, 0, 0, 0),
('1080', 37, 0, 0, 0, 0),
('1080', 38, 0, 0, 0, 0),
('1080', 39, 0, 0, 0, 0),
('1080', 40, 0, 0, 0, 0),
('1080', 41, 0, 0, 0, 0),
('1080', 42, 0, 0, 0, 0),
('1080', 43, 0, 0, 0, 0),
('1080', 44, 0, 0, 0, 0),
('1080', 45, 0, 0, 0, 0),
('1080', 46, 0, 0, 0, 0),
('1090', 14, 0, 0, 0, 0),
('1090', 15, 0, 0, 0, 0),
('1090', 16, 0, 0, 0, 0),
('1090', 17, 0, 0, 0, 0),
('1090', 18, 0, 0, 0, 0),
('1090', 19, 0, 0, 0, 0),
('1090', 20, 0, 0, 0, 0),
('1090', 21, 0, 0, 0, 0),
('1090', 22, 0, 0, 0, 0),
('1090', 23, 0, 0, 0, 0),
('1090', 24, 0, 0, 0, 0),
('1090', 25, 0, 0, 0, 0),
('1090', 26, 0, 0, 0, 0),
('1090', 27, 0, 0, 0, 0),
('1090', 28, 0, 0, 0, 0),
('1090', 29, 0, 0, 0, 0),
('1090', 30, 0, 0, 0, 0),
('1090', 31, 0, 0, 0, 0),
('1090', 32, 0, 0, 0, 0),
('1090', 33, 0, 0, 0, 0),
('1090', 34, 0, 0, 0, 0),
('1090', 35, 0, 0, 0, 0),
('1090', 36, 0, 0, 0, 0),
('1090', 37, 0, 0, 0, 0),
('1090', 38, 0, 0, 0, 0),
('1090', 39, 0, 0, 0, 0),
('1090', 40, 0, 0, 0, 0),
('1090', 41, 0, 0, 0, 0),
('1090', 42, 0, 0, 0, 0),
('1090', 43, 0, 0, 0, 0),
('1090', 44, 0, 0, 0, 0),
('1090', 45, 0, 0, 0, 0),
('1090', 46, 0, 0, 0, 0),
('1100', 14, 0, 0, 0, 0),
('1100', 15, 0, 0, 0, 0),
('1100', 16, 0, 0, 0, 0),
('1100', 17, 0, 0, 0, 0),
('1100', 18, 0, 0, 0, 0),
('1100', 19, 0, 0, 0, 0),
('1100', 20, 0, 0, 0, 0),
('1100', 21, 0, 0, 0, 0),
('1100', 22, 0, 0, 0, 0),
('1100', 23, 0, 0, 0, 0),
('1100', 24, 0, 0, 0, 0),
('1100', 25, 0, 0, 0, 0),
('1100', 26, 0, 0, 0, 0),
('1100', 27, 0, 0, 0, 0),
('1100', 28, 0, 0, 0, 0),
('1100', 29, 0, 0, 0, 0),
('1100', 30, 0, 0, 0, 0),
('1100', 31, 0, 0, 0, 0),
('1100', 32, 0, 0, 0, 0),
('1100', 33, 0, 0, 0, 0),
('1100', 34, 0, 0, 0, 0),
('1100', 35, 0, 0, 0, 0),
('1100', 36, 0, 0, 0, 0),
('1100', 37, 0, 0, 0, 0),
('1100', 38, 0, 0, 0, 0),
('1100', 39, 0, 0, 0, 0),
('1100', 40, 0, 0, 0, 0),
('1100', 41, 0, 0, 0, 0),
('1100', 42, 0, 0, 0, 0),
('1100', 43, 0, 0, 0, 0),
('1100', 44, 0, 0, 0, 0),
('1100', 45, 0, 0, 0, 0),
('1100', 46, 0, 0, 0, 0),
('1150', 14, 0, 0, 0, 0),
('1150', 15, 0, 0, 0, 0),
('1150', 16, 0, 0, 0, 0),
('1150', 17, 0, 0, 0, 0),
('1150', 18, 0, 0, 0, 0),
('1150', 19, 0, 0, 0, 0),
('1150', 20, 0, 0, 0, 0),
('1150', 21, 0, 0, 0, 0),
('1150', 22, 0, 0, 0, 0),
('1150', 23, 0, 0, 0, 0),
('1150', 24, 0, 0, 0, 0),
('1150', 25, 0, 0, 0, 0),
('1150', 26, 0, 0, 0, 0),
('1150', 27, 0, 0, 0, 0),
('1150', 28, 0, 0, 0, 0),
('1150', 29, 0, 0, 0, 0),
('1150', 30, 0, 0, 0, 0),
('1150', 31, 0, 0, 0, 0),
('1150', 32, 0, 0, 0, 0),
('1150', 33, 0, 0, 0, 0),
('1150', 34, 0, 0, 0, 0),
('1150', 35, 0, 0, 0, 0),
('1150', 36, 0, 0, 0, 0),
('1150', 37, 0, 0, 0, 0),
('1150', 38, 0, 0, 0, 0),
('1150', 39, 0, 0, 0, 0),
('1150', 40, 0, 0, 0, 0),
('1150', 41, 0, 0, 0, 0),
('1150', 42, 0, 0, 0, 0),
('1150', 43, 0, 0, 0, 0),
('1150', 44, 0, 0, 0, 0),
('1150', 45, 0, 0, 0, 0),
('1150', 46, 0, 0, 0, 0),
('1200', 14, 0, 0, 0, 0),
('1200', 15, 0, 0, 0, 0),
('1200', 16, 0, 0, 0, 0),
('1200', 17, 0, 0, 0, 0),
('1200', 18, 0, 0, 0, 0),
('1200', 19, 0, 0, 0, 0),
('1200', 20, 0, 0, 0, 0),
('1200', 21, 0, 0, 0, 0),
('1200', 22, 0, 0, 0, 0),
('1200', 23, 0, 0, 0, 0),
('1200', 24, 0, 0, 0, 0),
('1200', 25, 0, 0, 0, 0),
('1200', 26, 0, 0, 0, 0),
('1200', 27, 0, 0, 0, 0),
('1200', 28, 0, 0, 0, 0),
('1200', 29, 0, 0, 0, 0),
('1200', 30, 0, 0, 0, 0),
('1200', 31, 0, 0, 0, 0),
('1200', 32, 0, 0, 0, 0),
('1200', 33, 0, 0, 0, 0),
('1200', 34, 0, 0, 0, 0),
('1200', 35, 0, 0, 0, 0),
('1200', 36, 0, 0, 0, 0),
('1200', 37, 0, 0, 0, 0),
('1200', 38, 0, 0, 0, 0),
('1200', 39, 0, 0, 0, 0),
('1200', 40, 0, 0, 0, 0),
('1200', 41, 0, 0, 0, 0),
('1200', 42, 0, 0, 0, 0),
('1200', 43, 0, 0, 0, 0),
('1200', 44, 0, 0, 0, 0),
('1200', 45, 0, 0, 0, 0),
('1200', 46, 0, 0, 0, 0),
('1250', 14, 0, 0, 0, 0),
('1250', 15, 0, 0, 0, 0),
('1250', 16, 0, 0, 0, 0),
('1250', 17, 0, 0, 0, 0),
('1250', 18, 0, 0, 0, 0),
('1250', 19, 0, 0, 0, 0),
('1250', 20, 0, 0, 0, 0),
('1250', 21, 0, 0, 0, 0),
('1250', 22, 0, 0, 0, 0),
('1250', 23, 0, 0, 0, 0),
('1250', 24, 0, 0, 0, 0),
('1250', 25, 0, 0, 0, 0),
('1250', 26, 0, 0, 0, 0),
('1250', 27, 0, 0, 0, 0),
('1250', 28, 0, 0, 0, 0),
('1250', 29, 0, 0, 0, 0),
('1250', 30, 0, 0, 0, 0),
('1250', 31, 0, 0, 0, 0),
('1250', 32, 0, 0, 0, 0),
('1250', 33, 0, 0, 0, 0),
('1250', 34, 0, 0, 0, 0),
('1250', 35, 0, 0, 0, 0),
('1250', 36, 0, 0, 0, 0),
('1250', 37, 0, 0, 0, 0),
('1250', 38, 0, 0, 0, 0),
('1250', 39, 0, 0, 0, 0),
('1250', 40, 0, 0, 0, 0),
('1250', 41, 0, 0, 0, 0),
('1250', 42, 0, 0, 0, 0),
('1250', 43, 0, 0, 0, 0),
('1250', 44, 0, 0, 0, 0),
('1250', 45, 0, 0, 0, 0),
('1250', 46, 0, 0, 0, 0),
('1300', 14, 0, 0, 0, 0),
('1300', 15, 0, 0, 0, 0),
('1300', 16, 0, 0, 0, 0),
('1300', 17, 0, 0, 0, 0),
('1300', 18, 0, 0, 0, 0),
('1300', 19, 0, 0, 0, 0),
('1300', 20, 0, 0, 0, 0),
('1300', 21, 0, 0, 0, 0),
('1300', 22, 0, 0, 0, 0),
('1300', 23, 0, 0, 0, 0),
('1300', 24, 0, 0, 0, 0),
('1300', 25, 0, 0, 0, 0),
('1300', 26, 0, 0, 0, 0),
('1300', 27, 0, 0, 0, 0),
('1300', 28, 0, 0, 0, 0),
('1300', 29, 0, 0, 0, 0),
('1300', 30, 0, 0, 0, 0),
('1300', 31, 0, 0, 0, 0),
('1300', 32, 0, 0, 0, 0),
('1300', 33, 0, 0, 0, 0),
('1300', 34, 0, 0, 0, 0),
('1300', 35, 0, 0, 0, 0),
('1300', 36, 0, 0, 0, 0),
('1300', 37, 0, 0, 0, 0),
('1300', 38, 0, 0, 0, 0),
('1300', 39, 0, 0, 0, 0),
('1300', 40, 0, 0, 0, 0),
('1300', 41, 0, 0, 0, 0),
('1300', 42, 0, 0, 0, 0),
('1300', 43, 0, 0, 0, 0),
('1300', 44, 0, 0, 0, 0),
('1300', 45, 0, 0, 0, 0),
('1300', 46, 0, 0, 0, 0),
('1350', 14, 0, 0, 0, 0),
('1350', 15, 0, 0, 0, 0),
('1350', 16, 0, 0, 0, 0),
('1350', 17, 0, 0, 0, 0),
('1350', 18, 0, 0, 0, 0),
('1350', 19, 0, 0, 0, 0),
('1350', 20, 0, 0, 0, 0),
('1350', 21, 0, 0, 0, 0),
('1350', 22, 0, 0, 0, 0),
('1350', 23, 0, 0, 0, 0),
('1350', 24, 0, 0, 0, 0),
('1350', 25, 0, 0, 0, 0),
('1350', 26, 0, 0, 0, 0),
('1350', 27, 0, 25, 0, 0),
('1350', 28, 0, 0, 25, 0),
('1350', 29, 0, 0, 0, 0),
('1350', 30, 0, 0, 0, 0),
('1350', 31, 0, 0, 0, 0),
('1350', 32, 0, 0, 0, 0),
('1350', 33, 0, 0, 0, 0),
('1350', 34, 0, 0, 0, 0),
('1350', 35, 0, 0, 0, 0),
('1350', 36, 0, 0, 0, 0),
('1350', 37, 0, 0, 0, 0),
('1350', 38, 0, 0, 0, 0),
('1350', 39, 0, 0, 0, 0),
('1350', 40, 0, 0, 0, 0),
('1350', 41, 0, 0, 0, 0),
('1350', 42, 0, 0, 0, 0),
('1350', 43, 0, 0, 0, 0),
('1350', 44, 0, 0, 0, 0),
('1350', 45, 0, 0, 0, 0),
('1350', 46, 0, 0, 0, 0),
('1400', 14, 0, 0, 0, 0),
('1400', 15, 0, 0, 0, 0),
('1400', 16, 0, 0, 0, 0),
('1400', 17, 0, 0, 0, 0),
('1400', 18, 0, 0, 0, 0),
('1400', 19, 0, 0, 0, 0),
('1400', 20, 0, 0, 0, 0),
('1400', 21, 0, 0, 0, 0),
('1400', 22, 0, 0, 0, 0),
('1400', 23, 0, 0, 0, 0),
('1400', 24, 0, 0, 0, 0),
('1400', 25, 0, 0, 0, 0),
('1400', 26, 0, 0, 0, 0),
('1400', 27, 0, 0, 0, 0),
('1400', 28, 0, 0, 0, 0),
('1400', 29, 0, 0, 0, 0),
('1400', 30, 0, 0, 0, 0),
('1400', 31, 0, 0, 0, 0),
('1400', 32, 0, 0, 0, 0),
('1400', 33, 0, 0, 0, 0),
('1400', 34, 0, 0, 0, 0),
('1400', 35, 0, 0, 0, 0),
('1400', 36, 0, 0, 0, 0),
('1400', 37, 0, 0, 0, 0),
('1400', 38, 0, 0, 0, 0),
('1400', 39, 0, 0, 0, 0),
('1400', 40, 0, 0, 0, 0),
('1400', 41, 0, 0, 0, 0),
('1400', 42, 0, 0, 0, 0),
('1400', 43, 0, 0, 0, 0),
('1400', 44, 0, 0, 0, 0),
('1400', 45, 0, 0, 0, 0),
('1400', 46, 0, 0, 0, 0),
('1420', 14, 0, 0, 0, 0),
('1420', 15, 0, 0, 0, 0),
('1420', 16, 0, 0, 0, 0),
('1420', 17, 0, 0, 0, 0),
('1420', 18, 0, 0, 0, 0),
('1420', 19, 0, 0, 0, 0),
('1420', 20, 0, 0, 0, 0),
('1420', 21, 0, 0, 0, 0),
('1420', 22, 0, 0, 0, 0),
('1420', 23, 0, 0, 0, 0),
('1420', 24, 0, 0, 0, 0),
('1420', 25, 0, 0, 0, 0),
('1420', 26, 0, 0, 0, 0),
('1420', 27, 0, 0, 0, 0),
('1420', 28, 0, 0, 0, 0),
('1420', 29, 0, 0, 0, 0),
('1420', 30, 0, 0, 0, 0),
('1420', 31, 0, 0, 0, 0),
('1420', 32, 0, 0, 0, 0),
('1420', 33, 0, 0, 0, 0),
('1420', 34, 0, 0, 0, 0),
('1420', 35, 0, 0, 0, 0),
('1420', 36, 0, 0, 0, 0),
('1420', 37, 0, 0, 0, 0),
('1420', 38, 0, 0, 0, 0),
('1420', 39, 0, 0, 0, 0),
('1420', 40, 0, 0, 0, 0),
('1420', 41, 0, 0, 0, 0),
('1420', 42, 0, 0, 0, 0),
('1420', 43, 0, 0, 0, 0),
('1420', 44, 0, 0, 0, 0),
('1420', 45, 0, 0, 0, 0),
('1420', 46, 0, 0, 0, 0),
('1440', 14, 0, 0, 0, 0),
('1440', 15, 0, 0, 0, 0),
('1440', 16, 0, 0, 0, 0),
('1440', 17, 0, 0, 0, 0),
('1440', 18, 0, 0, 0, 0),
('1440', 19, 0, 0, 0, 0),
('1440', 20, 0, 0, 0, 0),
('1440', 21, 0, 0, 0, 0),
('1440', 22, 0, 0, 0, 0),
('1440', 23, 0, 0, 0, 0),
('1440', 24, 0, 0, 0, 0),
('1440', 25, 0, 0, 0, 0),
('1440', 26, 0, 0, 0, 0),
('1440', 27, 0, 0, 0, 0),
('1440', 28, 0, 0, 0, 0),
('1440', 29, 0, 0, 0, 0),
('1440', 30, 0, 0, 0, 0),
('1440', 31, 0, 0, 0, 0),
('1440', 32, 0, 0, 0, 0),
('1440', 33, 0, 0, 0, 0),
('1440', 34, 0, 0, 0, 0),
('1440', 35, 0, 0, 0, 0),
('1440', 36, 0, 0, 0, 0),
('1440', 37, 0, 0, 0, 0),
('1440', 38, 0, 0, 0, 0),
('1440', 39, 0, 0, 0, 0),
('1440', 40, 0, 0, 0, 0),
('1440', 41, 0, 0, 0, 0),
('1440', 42, 0, 0, 0, 0),
('1440', 43, 0, 0, 0, 0),
('1440', 44, 0, 0, 0, 0),
('1440', 45, 0, 0, 0, 0),
('1440', 46, 0, 0, 0, 0),
('1460', 14, 0, 0, 0, 0),
('1460', 15, 0, 0, 0, 0),
('1460', 16, 0, 0, 0, 0),
('1460', 17, 0, 0, 0, 0),
('1460', 18, 0, 0, 0, 0),
('1460', 19, 0, 0, 0, 0),
('1460', 20, 0, 0, 0, 0),
('1460', 21, 0, 0, 0, 0),
('1460', 22, 0, 0, 0, 0),
('1460', 23, 0, 0, 0, 0),
('1460', 24, 0, 52.35, 0, 0),
('1460', 25, 0, 0, 52.35, 0),
('1460', 26, 0, 263.453, 52.35, 0),
('1460', 27, 0, 0, 315.803, 0),
('1460', 28, 0, 0, 0, 0),
('1460', 29, 0, 0, 0, 0),
('1460', 30, 0, 0, 0, 0),
('1460', 31, 0, 0, 0, 0),
('1460', 32, 0, 0, 0, 0),
('1460', 33, 0, 0, 0, 0),
('1460', 34, 0, 0, 0, 0),
('1460', 35, 0, 0, 0, 0),
('1460', 36, 0, 0, 0, 0),
('1460', 37, 0, 0, 0, 0),
('1460', 38, 0, 0, 0, 0),
('1460', 39, 0, 0, 0, 0),
('1460', 40, 0, 0, 0, 0),
('1460', 41, 0, 0, 0, 0),
('1460', 42, 0, 0, 0, 0),
('1460', 43, 0, 0, 0, 0),
('1460', 44, 0, 0, 0, 0),
('1460', 45, 0, 0, 0, 0),
('1460', 46, 0, 0, 0, 0),
('1500', 14, 0, 0, 0, 0),
('1500', 15, 0, 0, 0, 0),
('1500', 16, 0, 0, 0, 0),
('1500', 17, 0, 0, 0, 0),
('1500', 18, 0, 0, 0, 0),
('1500', 19, 0, 0, 0, 0),
('1500', 20, 0, 0, 0, 0),
('1500', 21, 0, 0, 0, 0),
('1500', 22, 0, 0, 0, 0),
('1500', 23, 0, 0, 0, 0),
('1500', 24, 0, 0, 0, 0),
('1500', 25, 0, 0, 0, 0),
('1500', 26, 0, 0, 0, 0),
('1500', 27, 0, 0, 0, 0),
('1500', 28, 0, 0, 0, 0),
('1500', 29, 0, 0, 0, 0),
('1500', 30, 0, 0, 0, 0),
('1500', 31, 0, 0, 0, 0),
('1500', 32, 0, 0, 0, 0),
('1500', 33, 0, 0, 0, 0),
('1500', 34, 0, 0, 0, 0),
('1500', 35, 0, 0, 0, 0),
('1500', 36, 0, 0, 0, 0),
('1500', 37, 0, 0, 0, 0),
('1500', 38, 0, 0, 0, 0),
('1500', 39, 0, 0, 0, 0),
('1500', 40, 0, 0, 0, 0),
('1500', 41, 0, 0, 0, 0),
('1500', 42, 0, 0, 0, 0),
('1500', 43, 0, 0, 0, 0),
('1500', 44, 0, 0, 0, 0),
('1500', 45, 0, 0, 0, 0),
('1500', 46, 0, 0, 0, 0),
('1550', 14, 0, 0, 0, 0),
('1550', 15, 0, 0, 0, 0),
('1550', 16, 0, 0, 0, 0),
('1550', 17, 0, 0, 0, 0),
('1550', 18, 0, 0, 0, 0),
('1550', 19, 0, 0, 0, 0),
('1550', 20, 0, 0, 0, 0),
('1550', 21, 0, 0, 0, 0),
('1550', 22, 0, 0, 0, 0),
('1550', 23, 0, 0, 0, 0),
('1550', 24, 0, 0, 0, 0),
('1550', 25, 0, 0, 0, 0),
('1550', 26, 0, 0, 0, 0),
('1550', 27, 0, 0, 0, 0),
('1550', 28, 0, 0, 0, 0),
('1550', 29, 0, 0, 0, 0),
('1550', 30, 0, 0, 0, 0),
('1550', 31, 0, 0, 0, 0),
('1550', 32, 0, 0, 0, 0),
('1550', 33, 0, 0, 0, 0),
('1550', 34, 0, 0, 0, 0),
('1550', 35, 0, 0, 0, 0),
('1550', 36, 0, 0, 0, 0),
('1550', 37, 0, 0, 0, 0),
('1550', 38, 0, 0, 0, 0),
('1550', 39, 0, 0, 0, 0),
('1550', 40, 0, 0, 0, 0),
('1550', 41, 0, 0, 0, 0),
('1550', 42, 0, 0, 0, 0),
('1550', 43, 0, 0, 0, 0),
('1550', 44, 0, 0, 0, 0),
('1550', 45, 0, 0, 0, 0),
('1550', 46, 0, 0, 0, 0),
('1600', 14, 0, 0, 0, 0),
('1600', 15, 0, 0, 0, 0),
('1600', 16, 0, 0, 0, 0),
('1600', 17, 0, 0, 0, 0),
('1600', 18, 0, 0, 0, 0),
('1600', 19, 0, 0, 0, 0),
('1600', 20, 0, 0, 0, 0),
('1600', 21, 0, 0, 0, 0),
('1600', 22, 0, 0, 0, 0),
('1600', 23, 0, 0, 0, 0),
('1600', 24, 0, 0, 0, 0),
('1600', 25, 0, 0, 0, 0),
('1600', 26, 0, 0, 0, 0),
('1600', 27, 0, 0, 0, 0),
('1600', 28, 0, 0, 0, 0),
('1600', 29, 0, 0, 0, 0),
('1600', 30, 0, 0, 0, 0),
('1600', 31, 0, 0, 0, 0),
('1600', 32, 0, 0, 0, 0),
('1600', 33, 0, 0, 0, 0),
('1600', 34, 0, 0, 0, 0),
('1600', 35, 0, 0, 0, 0),
('1600', 36, 0, 0, 0, 0),
('1600', 37, 0, 0, 0, 0),
('1600', 38, 0, 0, 0, 0),
('1600', 39, 0, 0, 0, 0),
('1600', 40, 0, 0, 0, 0),
('1600', 41, 0, 0, 0, 0),
('1600', 42, 0, 0, 0, 0),
('1600', 43, 0, 0, 0, 0),
('1600', 44, 0, 0, 0, 0),
('1600', 45, 0, 0, 0, 0),
('1600', 46, 0, 0, 0, 0),
('1620', 14, 0, 0, 0, 0),
('1620', 15, 0, 0, 0, 0),
('1620', 16, 0, 0, 0, 0),
('1620', 17, 0, 0, 0, 0),
('1620', 18, 0, 0, 0, 0),
('1620', 19, 0, 0, 0, 0),
('1620', 20, 0, 0, 0, 0),
('1620', 21, 0, 0, 0, 0),
('1620', 22, 0, 0, 0, 0),
('1620', 23, 0, 0, 0, 0),
('1620', 24, 0, 0, 0, 0),
('1620', 25, 0, 0, 0, 0),
('1620', 26, 0, 0, 0, 0),
('1620', 27, 0, 0, 0, 0),
('1620', 28, 0, 0, 0, 0),
('1620', 29, 0, 0, 0, 0),
('1620', 30, 0, 0, 0, 0),
('1620', 31, 0, 0, 0, 0),
('1620', 32, 0, 0, 0, 0),
('1620', 33, 0, 0, 0, 0),
('1620', 34, 0, 0, 0, 0),
('1620', 35, 0, 0, 0, 0),
('1620', 36, 0, 0, 0, 0),
('1620', 37, 0, 0, 0, 0),
('1620', 38, 0, 0, 0, 0),
('1620', 39, 0, 0, 0, 0),
('1620', 40, 0, 0, 0, 0),
('1620', 41, 0, 0, 0, 0),
('1620', 42, 0, 0, 0, 0),
('1620', 43, 0, 0, 0, 0),
('1620', 44, 0, 0, 0, 0),
('1620', 45, 0, 0, 0, 0),
('1620', 46, 0, 0, 0, 0),
('1650', 14, 0, 0, 0, 0),
('1650', 15, 0, 0, 0, 0),
('1650', 16, 0, 0, 0, 0),
('1650', 17, 0, 0, 0, 0),
('1650', 18, 0, 0, 0, 0),
('1650', 19, 0, 0, 0, 0),
('1650', 20, 0, 0, 0, 0),
('1650', 21, 0, 0, 0, 0),
('1650', 22, 0, 0, 0, 0),
('1650', 23, 0, 0, 0, 0),
('1650', 24, 0, 0, 0, 0),
('1650', 25, 0, 0, 0, 0),
('1650', 26, 0, 0, 0, 0),
('1650', 27, 0, 0, 0, 0),
('1650', 28, 0, 0, 0, 0),
('1650', 29, 0, 0, 0, 0),
('1650', 30, 0, 0, 0, 0),
('1650', 31, 0, 0, 0, 0),
('1650', 32, 0, 0, 0, 0),
('1650', 33, 0, 0, 0, 0),
('1650', 34, 0, 0, 0, 0),
('1650', 35, 0, 0, 0, 0),
('1650', 36, 0, 0, 0, 0),
('1650', 37, 0, 0, 0, 0),
('1650', 38, 0, 0, 0, 0),
('1650', 39, 0, 0, 0, 0),
('1650', 40, 0, 0, 0, 0),
('1650', 41, 0, 0, 0, 0),
('1650', 42, 0, 0, 0, 0),
('1650', 43, 0, 0, 0, 0),
('1650', 44, 0, 0, 0, 0),
('1650', 45, 0, 0, 0, 0),
('1650', 46, 0, 0, 0, 0),
('1670', 14, 0, 0, 0, 0),
('1670', 15, 0, 0, 0, 0),
('1670', 16, 0, 0, 0, 0),
('1670', 17, 0, 0, 0, 0),
('1670', 18, 0, 0, 0, 0),
('1670', 19, 0, 0, 0, 0),
('1670', 20, 0, 0, 0, 0),
('1670', 21, 0, 0, 0, 0),
('1670', 22, 0, 0, 0, 0),
('1670', 23, 0, 0, 0, 0),
('1670', 24, 0, 0, 0, 0),
('1670', 25, 0, 0, 0, 0),
('1670', 26, 0, 0, 0, 0),
('1670', 27, 0, 0, 0, 0),
('1670', 28, 0, 0, 0, 0),
('1670', 29, 0, 0, 0, 0),
('1670', 30, 0, 0, 0, 0),
('1670', 31, 0, 0, 0, 0),
('1670', 32, 0, 0, 0, 0),
('1670', 33, 0, 0, 0, 0),
('1670', 34, 0, 0, 0, 0),
('1670', 35, 0, 0, 0, 0),
('1670', 36, 0, 0, 0, 0),
('1670', 37, 0, 0, 0, 0),
('1670', 38, 0, 0, 0, 0),
('1670', 39, 0, 0, 0, 0),
('1670', 40, 0, 0, 0, 0),
('1670', 41, 0, 0, 0, 0),
('1670', 42, 0, 0, 0, 0),
('1670', 43, 0, 0, 0, 0),
('1670', 44, 0, 0, 0, 0),
('1670', 45, 0, 0, 0, 0),
('1670', 46, 0, 0, 0, 0),
('1700', 14, 0, 0, 0, 0),
('1700', 15, 0, 0, 0, 0),
('1700', 16, 0, 0, 0, 0),
('1700', 17, 0, 0, 0, 0),
('1700', 18, 0, 0, 0, 0),
('1700', 19, 0, 0, 0, 0),
('1700', 20, 0, 0, 0, 0),
('1700', 21, 0, 0, 0, 0),
('1700', 22, 0, 0, 0, 0),
('1700', 23, 0, 0, 0, 0),
('1700', 24, 0, 0, 0, 0),
('1700', 25, 0, 0, 0, 0),
('1700', 26, 0, 0, 0, 0),
('1700', 27, 0, 0, 0, 0),
('1700', 28, 0, 0, 0, 0),
('1700', 29, 0, 0, 0, 0),
('1700', 30, 0, 0, 0, 0),
('1700', 31, 0, 0, 0, 0),
('1700', 32, 0, 0, 0, 0),
('1700', 33, 0, 0, 0, 0),
('1700', 34, 0, 0, 0, 0),
('1700', 35, 0, 0, 0, 0),
('1700', 36, 0, 0, 0, 0),
('1700', 37, 0, 0, 0, 0),
('1700', 38, 0, 0, 0, 0),
('1700', 39, 0, 0, 0, 0),
('1700', 40, 0, 0, 0, 0),
('1700', 41, 0, 0, 0, 0),
('1700', 42, 0, 0, 0, 0),
('1700', 43, 0, 0, 0, 0),
('1700', 44, 0, 0, 0, 0),
('1700', 45, 0, 0, 0, 0),
('1700', 46, 0, 0, 0, 0),
('1710', 14, 0, 0, 0, 0),
('1710', 15, 0, 0, 0, 0),
('1710', 16, 0, 0, 0, 0),
('1710', 17, 0, 0, 0, 0),
('1710', 18, 0, 0, 0, 0),
('1710', 19, 0, 0, 0, 0),
('1710', 20, 0, 0, 0, 0),
('1710', 21, 0, 0, 0, 0),
('1710', 22, 0, 0, 0, 0),
('1710', 23, 0, 0, 0, 0),
('1710', 24, 0, 0, 0, 0),
('1710', 25, 0, 0, 0, 0),
('1710', 26, 0, 0, 0, 0),
('1710', 27, 0, 0, 0, 0),
('1710', 28, 0, 0, 0, 0),
('1710', 29, 0, 0, 0, 0),
('1710', 30, 0, 0, 0, 0),
('1710', 31, 0, 0, 0, 0),
('1710', 32, 0, 0, 0, 0),
('1710', 33, 0, 0, 0, 0),
('1710', 34, 0, 0, 0, 0),
('1710', 35, 0, 0, 0, 0),
('1710', 36, 0, 0, 0, 0),
('1710', 37, 0, 0, 0, 0),
('1710', 38, 0, 0, 0, 0),
('1710', 39, 0, 0, 0, 0),
('1710', 40, 0, 0, 0, 0),
('1710', 41, 0, 0, 0, 0),
('1710', 42, 0, 0, 0, 0),
('1710', 43, 0, 0, 0, 0),
('1710', 44, 0, 0, 0, 0),
('1710', 45, 0, 0, 0, 0),
('1710', 46, 0, 0, 0, 0),
('1720', 14, 0, 0, 0, 0),
('1720', 15, 0, 0, 0, 0),
('1720', 16, 0, 0, 0, 0),
('1720', 17, 0, 0, 0, 0),
('1720', 18, 0, 0, 0, 0),
('1720', 19, 0, 0, 0, 0),
('1720', 20, 0, 0, 0, 0),
('1720', 21, 0, 0, 0, 0),
('1720', 22, 0, 0, 0, 0),
('1720', 23, 0, 0, 0, 0),
('1720', 24, 0, 0, 0, 0),
('1720', 25, 0, 0, 0, 0),
('1720', 26, 0, 0, 0, 0),
('1720', 27, 0, 0, 0, 0),
('1720', 28, 0, 0, 0, 0),
('1720', 29, 0, 0, 0, 0),
('1720', 30, 0, 0, 0, 0),
('1720', 31, 0, 0, 0, 0),
('1720', 32, 0, 0, 0, 0),
('1720', 33, 0, 0, 0, 0),
('1720', 34, 0, 0, 0, 0),
('1720', 35, 0, 0, 0, 0),
('1720', 36, 0, 0, 0, 0),
('1720', 37, 0, 0, 0, 0),
('1720', 38, 0, 0, 0, 0),
('1720', 39, 0, 0, 0, 0),
('1720', 40, 0, 0, 0, 0),
('1720', 41, 0, 0, 0, 0),
('1720', 42, 0, 0, 0, 0),
('1720', 43, 0, 0, 0, 0),
('1720', 44, 0, 0, 0, 0),
('1720', 45, 0, 0, 0, 0),
('1720', 46, 0, 0, 0, 0),
('1730', 14, 0, 0, 0, 0),
('1730', 15, 0, 0, 0, 0),
('1730', 16, 0, 0, 0, 0),
('1730', 17, 0, 0, 0, 0),
('1730', 18, 0, 0, 0, 0),
('1730', 19, 0, 0, 0, 0),
('1730', 20, 0, 0, 0, 0),
('1730', 21, 0, 0, 0, 0),
('1730', 22, 0, 0, 0, 0),
('1730', 23, 0, 0, 0, 0),
('1730', 24, 0, 0, 0, 0),
('1730', 25, 0, 0, 0, 0),
('1730', 26, 0, 0, 0, 0),
('1730', 27, 0, 0, 0, 0),
('1730', 28, 0, 0, 0, 0),
('1730', 29, 0, 0, 0, 0),
('1730', 30, 0, 0, 0, 0),
('1730', 31, 0, 0, 0, 0),
('1730', 32, 0, 0, 0, 0),
('1730', 33, 0, 0, 0, 0),
('1730', 34, 0, 0, 0, 0),
('1730', 35, 0, 0, 0, 0),
('1730', 36, 0, 0, 0, 0),
('1730', 37, 0, 0, 0, 0),
('1730', 38, 0, 0, 0, 0),
('1730', 39, 0, 0, 0, 0),
('1730', 40, 0, 0, 0, 0),
('1730', 41, 0, 0, 0, 0),
('1730', 42, 0, 0, 0, 0),
('1730', 43, 0, 0, 0, 0),
('1730', 44, 0, 0, 0, 0),
('1730', 45, 0, 0, 0, 0),
('1730', 46, 0, 0, 0, 0),
('1740', 14, 0, 0, 0, 0),
('1740', 15, 0, 0, 0, 0),
('1740', 16, 0, 0, 0, 0),
('1740', 17, 0, 0, 0, 0),
('1740', 18, 0, 0, 0, 0),
('1740', 19, 0, 0, 0, 0),
('1740', 20, 0, 0, 0, 0),
('1740', 21, 0, 0, 0, 0),
('1740', 22, 0, 0, 0, 0),
('1740', 23, 0, 0, 0, 0),
('1740', 24, 0, 0, 0, 0),
('1740', 25, 0, 0, 0, 0),
('1740', 26, 0, 0, 0, 0),
('1740', 27, 0, 0, 0, 0),
('1740', 28, 0, 0, 0, 0),
('1740', 29, 0, 0, 0, 0),
('1740', 30, 0, 0, 0, 0),
('1740', 31, 0, 0, 0, 0),
('1740', 32, 0, 0, 0, 0),
('1740', 33, 0, 0, 0, 0),
('1740', 34, 0, 0, 0, 0),
('1740', 35, 0, 0, 0, 0),
('1740', 36, 0, 0, 0, 0),
('1740', 37, 0, 0, 0, 0),
('1740', 38, 0, 0, 0, 0),
('1740', 39, 0, 0, 0, 0),
('1740', 40, 0, 0, 0, 0),
('1740', 41, 0, 0, 0, 0),
('1740', 42, 0, 0, 0, 0),
('1740', 43, 0, 0, 0, 0),
('1740', 44, 0, 0, 0, 0),
('1740', 45, 0, 0, 0, 0),
('1740', 46, 0, 0, 0, 0),
('1750', 14, 0, 0, 0, 0),
('1750', 15, 0, 0, 0, 0),
('1750', 16, 0, 0, 0, 0),
('1750', 17, 0, 0, 0, 0),
('1750', 18, 0, 0, 0, 0),
('1750', 19, 0, 0, 0, 0),
('1750', 20, 0, 0, 0, 0),
('1750', 21, 0, 0, 0, 0),
('1750', 22, 0, 0, 0, 0),
('1750', 23, 0, 0, 0, 0),
('1750', 24, 0, 0, 0, 0),
('1750', 25, 0, 0, 0, 0),
('1750', 26, 0, 0, 0, 0),
('1750', 27, 0, 0, 0, 0),
('1750', 28, 0, 0, 0, 0),
('1750', 29, 0, 0, 0, 0),
('1750', 30, 0, 0, 0, 0),
('1750', 31, 0, 0, 0, 0),
('1750', 32, 0, 0, 0, 0),
('1750', 33, 0, 0, 0, 0),
('1750', 34, 0, 0, 0, 0),
('1750', 35, 0, 0, 0, 0),
('1750', 36, 0, 0, 0, 0),
('1750', 37, 0, 0, 0, 0),
('1750', 38, 0, 0, 0, 0),
('1750', 39, 0, 0, 0, 0),
('1750', 40, 0, 0, 0, 0),
('1750', 41, 0, 0, 0, 0),
('1750', 42, 0, 0, 0, 0),
('1750', 43, 0, 0, 0, 0),
('1750', 44, 0, 0, 0, 0),
('1750', 45, 0, 0, 0, 0),
('1750', 46, 0, 0, 0, 0),
('1760', 14, 0, 0, 0, 0),
('1760', 15, 0, 0, 0, 0),
('1760', 16, 0, 0, 0, 0),
('1760', 17, 0, 0, 0, 0),
('1760', 18, 0, 0, 0, 0),
('1760', 19, 0, 0, 0, 0),
('1760', 20, 0, 0, 0, 0),
('1760', 21, 0, 0, 0, 0),
('1760', 22, 0, 0, 0, 0),
('1760', 23, 0, 0, 0, 0),
('1760', 24, 0, 0, 0, 0),
('1760', 25, 0, 0, 0, 0),
('1760', 26, 0, 0, 0, 0),
('1760', 27, 0, 0, 0, 0),
('1760', 28, 0, 0, 0, 0),
('1760', 29, 0, 0, 0, 0),
('1760', 30, 0, 0, 0, 0),
('1760', 31, 0, 0, 0, 0),
('1760', 32, 0, 0, 0, 0),
('1760', 33, 0, 0, 0, 0),
('1760', 34, 0, 0, 0, 0),
('1760', 35, 0, 0, 0, 0),
('1760', 36, 0, 0, 0, 0),
('1760', 37, 0, 0, 0, 0),
('1760', 38, 0, 0, 0, 0),
('1760', 39, 0, 0, 0, 0),
('1760', 40, 0, 0, 0, 0),
('1760', 41, 0, 0, 0, 0),
('1760', 42, 0, 0, 0, 0),
('1760', 43, 0, 0, 0, 0),
('1760', 44, 0, 0, 0, 0),
('1760', 45, 0, 0, 0, 0),
('1760', 46, 0, 0, 0, 0),
('1770', 14, 0, 0, 0, 0),
('1770', 15, 0, 0, 0, 0),
('1770', 16, 0, 0, 0, 0),
('1770', 17, 0, 0, 0, 0),
('1770', 18, 0, 0, 0, 0),
('1770', 19, 0, 0, 0, 0),
('1770', 20, 0, 0, 0, 0),
('1770', 21, 0, 0, 0, 0),
('1770', 22, 0, 0, 0, 0),
('1770', 23, 0, 0, 0, 0),
('1770', 24, 0, 0, 0, 0),
('1770', 25, 0, 0, 0, 0),
('1770', 26, 0, 0, 0, 0),
('1770', 27, 0, 0, 0, 0),
('1770', 28, 0, 0, 0, 0),
('1770', 29, 0, 0, 0, 0),
('1770', 30, 0, 0, 0, 0),
('1770', 31, 0, 0, 0, 0),
('1770', 32, 0, 0, 0, 0),
('1770', 33, 0, 0, 0, 0),
('1770', 34, 0, 0, 0, 0),
('1770', 35, 0, 0, 0, 0),
('1770', 36, 0, 0, 0, 0),
('1770', 37, 0, 0, 0, 0),
('1770', 38, 0, 0, 0, 0),
('1770', 39, 0, 0, 0, 0),
('1770', 40, 0, 0, 0, 0),
('1770', 41, 0, 0, 0, 0),
('1770', 42, 0, 0, 0, 0),
('1770', 43, 0, 0, 0, 0),
('1770', 44, 0, 0, 0, 0),
('1770', 45, 0, 0, 0, 0),
('1770', 46, 0, 0, 0, 0),
('1780', 14, 0, 0, 0, 0),
('1780', 15, 0, 0, 0, 0),
('1780', 16, 0, 0, 0, 0),
('1780', 17, 0, 0, 0, 0),
('1780', 18, 0, 0, 0, 0),
('1780', 19, 0, 0, 0, 0),
('1780', 20, 0, 0, 0, 0),
('1780', 21, 0, 0, 0, 0),
('1780', 22, 0, 0, 0, 0),
('1780', 23, 0, 0, 0, 0),
('1780', 24, 0, 0, 0, 0),
('1780', 25, 0, 0, 0, 0),
('1780', 26, 0, 0, 0, 0),
('1780', 27, 0, 0, 0, 0),
('1780', 28, 0, 0, 0, 0),
('1780', 29, 0, 0, 0, 0),
('1780', 30, 0, 0, 0, 0),
('1780', 31, 0, 0, 0, 0),
('1780', 32, 0, 0, 0, 0),
('1780', 33, 0, 0, 0, 0),
('1780', 34, 0, 0, 0, 0),
('1780', 35, 0, 0, 0, 0),
('1780', 36, 0, 0, 0, 0),
('1780', 37, 0, 0, 0, 0),
('1780', 38, 0, 0, 0, 0),
('1780', 39, 0, 0, 0, 0),
('1780', 40, 0, 0, 0, 0),
('1780', 41, 0, 0, 0, 0),
('1780', 42, 0, 0, 0, 0),
('1780', 43, 0, 0, 0, 0),
('1780', 44, 0, 0, 0, 0),
('1780', 45, 0, 0, 0, 0),
('1780', 46, 0, 0, 0, 0),
('1790', 14, 0, 0, 0, 0),
('1790', 15, 0, 0, 0, 0),
('1790', 16, 0, 0, 0, 0),
('1790', 17, 0, 0, 0, 0),
('1790', 18, 0, 0, 0, 0),
('1790', 19, 0, 0, 0, 0),
('1790', 20, 0, 0, 0, 0),
('1790', 21, 0, 0, 0, 0),
('1790', 22, 0, 0, 0, 0),
('1790', 23, 0, 0, 0, 0),
('1790', 24, 0, 0, 0, 0),
('1790', 25, 0, 0, 0, 0),
('1790', 26, 0, 0, 0, 0),
('1790', 27, 0, 0, 0, 0),
('1790', 28, 0, 0, 0, 0),
('1790', 29, 0, 0, 0, 0),
('1790', 30, 0, 0, 0, 0),
('1790', 31, 0, 0, 0, 0),
('1790', 32, 0, 0, 0, 0),
('1790', 33, 0, 0, 0, 0),
('1790', 34, 0, 0, 0, 0),
('1790', 35, 0, 0, 0, 0),
('1790', 36, 0, 0, 0, 0),
('1790', 37, 0, 0, 0, 0),
('1790', 38, 0, 0, 0, 0),
('1790', 39, 0, 0, 0, 0),
('1790', 40, 0, 0, 0, 0),
('1790', 41, 0, 0, 0, 0),
('1790', 42, 0, 0, 0, 0),
('1790', 43, 0, 0, 0, 0),
('1790', 44, 0, 0, 0, 0),
('1790', 45, 0, 0, 0, 0),
('1790', 46, 0, 0, 0, 0),
('1800', 14, 0, 0, 0, 0),
('1800', 15, 0, 0, 0, 0),
('1800', 16, 0, 0, 0, 0),
('1800', 17, 0, 0, 0, 0),
('1800', 18, 0, 0, 0, 0),
('1800', 19, 0, 0, 0, 0),
('1800', 20, 0, 0, 0, 0),
('1800', 21, 0, 0, 0, 0),
('1800', 22, 0, 0, 0, 0),
('1800', 23, 0, 0, 0, 0),
('1800', 24, 0, 0, 0, 0),
('1800', 25, 0, 0, 0, 0),
('1800', 26, 0, 0, 0, 0),
('1800', 27, 0, 0, 0, 0),
('1800', 28, 0, 0, 0, 0),
('1800', 29, 0, 0, 0, 0),
('1800', 30, 0, 0, 0, 0),
('1800', 31, 0, 0, 0, 0),
('1800', 32, 0, 0, 0, 0),
('1800', 33, 0, 0, 0, 0),
('1800', 34, 0, 0, 0, 0),
('1800', 35, 0, 0, 0, 0),
('1800', 36, 0, 0, 0, 0),
('1800', 37, 0, 0, 0, 0),
('1800', 38, 0, 0, 0, 0),
('1800', 39, 0, 0, 0, 0),
('1800', 40, 0, 0, 0, 0),
('1800', 41, 0, 0, 0, 0),
('1800', 42, 0, 0, 0, 0),
('1800', 43, 0, 0, 0, 0),
('1800', 44, 0, 0, 0, 0),
('1800', 45, 0, 0, 0, 0),
('1800', 46, 0, 0, 0, 0),
('1850', 14, 0, 0, 0, 0),
('1850', 15, 0, 0, 0, 0),
('1850', 16, 0, 0, 0, 0),
('1850', 17, 0, 0, 0, 0),
('1850', 18, 0, 0, 0, 0),
('1850', 19, 0, 0, 0, 0),
('1850', 20, 0, 0, 0, 0),
('1850', 21, 0, 0, 0, 0),
('1850', 22, 0, 0, 0, 0),
('1850', 23, 0, 0, 0, 0),
('1850', 24, 0, 0, 0, 0),
('1850', 25, 0, 0, 0, 0),
('1850', 26, 0, 0, 0, 0),
('1850', 27, 0, 0, 0, 0),
('1850', 28, 0, 0, 0, 0),
('1850', 29, 0, 0, 0, 0),
('1850', 30, 0, 0, 0, 0),
('1850', 31, 0, 0, 0, 0),
('1850', 32, 0, 0, 0, 0),
('1850', 33, 0, 0, 0, 0),
('1850', 34, 0, 0, 0, 0),
('1850', 35, 0, 0, 0, 0),
('1850', 36, 0, 0, 0, 0),
('1850', 37, 0, 0, 0, 0),
('1850', 38, 0, 0, 0, 0),
('1850', 39, 0, 0, 0, 0),
('1850', 40, 0, 0, 0, 0),
('1850', 41, 0, 0, 0, 0),
('1850', 42, 0, 0, 0, 0),
('1850', 43, 0, 0, 0, 0),
('1850', 44, 0, 0, 0, 0),
('1850', 45, 0, 0, 0, 0),
('1850', 46, 0, 0, 0, 0),
('1900', 14, 0, 0, 0, 0),
('1900', 15, 0, 0, 0, 0),
('1900', 16, 0, 0, 0, 0),
('1900', 17, 0, 0, 0, 0),
('1900', 18, 0, 0, 0, 0),
('1900', 19, 0, 0, 0, 0),
('1900', 20, 0, 0, 0, 0),
('1900', 21, 0, 0, 0, 0),
('1900', 22, 0, 0, 0, 0),
('1900', 23, 0, 0, 0, 0),
('1900', 24, 0, 0, 0, 0),
('1900', 25, 0, 0, 0, 0),
('1900', 26, 0, 0, 0, 0),
('1900', 27, 0, 0, 0, 0),
('1900', 28, 0, 0, 0, 0),
('1900', 29, 0, 0, 0, 0),
('1900', 30, 0, 0, 0, 0),
('1900', 31, 0, 0, 0, 0),
('1900', 32, 0, 0, 0, 0),
('1900', 33, 0, 0, 0, 0),
('1900', 34, 0, 0, 0, 0),
('1900', 35, 0, 0, 0, 0),
('1900', 36, 0, 0, 0, 0),
('1900', 37, 0, 0, 0, 0),
('1900', 38, 0, 0, 0, 0),
('1900', 39, 0, 0, 0, 0),
('1900', 40, 0, 0, 0, 0),
('1900', 41, 0, 0, 0, 0),
('1900', 42, 0, 0, 0, 0),
('1900', 43, 0, 0, 0, 0),
('1900', 44, 0, 0, 0, 0),
('1900', 45, 0, 0, 0, 0),
('1900', 46, 0, 0, 0, 0),
('2010', 14, 0, 0, 0, 0),
('2010', 15, 0, 0, 0, 0),
('2010', 16, 0, 0, 0, 0),
('2010', 17, 0, 0, 0, 0),
('2010', 18, 0, 0, 0, 0),
('2010', 19, 0, 0, 0, 0),
('2010', 20, 0, 0, 0, 0),
('2010', 21, 0, 0, 0, 0),
('2010', 22, 0, 0, 0, 0),
('2010', 23, 0, 0, 0, 0),
('2010', 24, 0, 0, 0, 0),
('2010', 25, 0, 0, 0, 0),
('2010', 26, 0, 0, 0, 0),
('2010', 27, 0, 0, 0, 0),
('2010', 28, 0, 0, 0, 0),
('2010', 29, 0, 0, 0, 0),
('2010', 30, 0, 0, 0, 0),
('2010', 31, 0, 0, 0, 0),
('2010', 32, 0, 0, 0, 0),
('2010', 33, 0, 0, 0, 0),
('2010', 34, 0, 0, 0, 0),
('2010', 35, 0, 0, 0, 0),
('2010', 36, 0, 0, 0, 0),
('2010', 37, 0, 0, 0, 0),
('2010', 38, 0, 0, 0, 0),
('2010', 39, 0, 0, 0, 0),
('2010', 40, 0, 0, 0, 0),
('2010', 41, 0, 0, 0, 0),
('2010', 42, 0, 0, 0, 0),
('2010', 43, 0, 0, 0, 0),
('2010', 44, 0, 0, 0, 0),
('2010', 45, 0, 0, 0, 0),
('2010', 46, 0, 0, 0, 0),
('2020', 14, 0, 0, 0, 0),
('2020', 15, 0, 0, 0, 0),
('2020', 16, 0, 0, 0, 0),
('2020', 17, 0, 0, 0, 0),
('2020', 18, 0, 0, 0, 0),
('2020', 19, 0, 0, 0, 0),
('2020', 20, 0, 0, 0, 0),
('2020', 21, 0, 0, 0, 0),
('2020', 22, 0, 0, 0, 0),
('2020', 23, 0, 0, 0, 0),
('2020', 24, 0, 0, 0, 0),
('2020', 25, 0, 0, 0, 0),
('2020', 26, 0, 0, 0, 0),
('2020', 27, 0, 0, 0, 0),
('2020', 28, 0, 0, 0, 0),
('2020', 29, 0, 0, 0, 0),
('2020', 30, 0, 0, 0, 0),
('2020', 31, 0, 0, 0, 0),
('2020', 32, 0, 0, 0, 0),
('2020', 33, 0, 0, 0, 0),
('2020', 34, 0, 0, 0, 0),
('2020', 35, 0, 0, 0, 0),
('2020', 36, 0, 0, 0, 0),
('2020', 37, 0, 0, 0, 0),
('2020', 38, 0, 0, 0, 0),
('2020', 39, 0, 0, 0, 0),
('2020', 40, 0, 0, 0, 0),
('2020', 41, 0, 0, 0, 0),
('2020', 42, 0, 0, 0, 0),
('2020', 43, 0, 0, 0, 0),
('2020', 44, 0, 0, 0, 0),
('2020', 45, 0, 0, 0, 0),
('2020', 46, 0, 0, 0, 0),
('2050', 14, 0, 0, 0, 0),
('2050', 15, 0, 0, 0, 0),
('2050', 16, 0, 0, 0, 0),
('2050', 17, 0, 0, 0, 0),
('2050', 18, 0, 0, 0, 0),
('2050', 19, 0, 0, 0, 0),
('2050', 20, 0, 0, 0, 0),
('2050', 21, 0, 0, 0, 0),
('2050', 22, 0, 0, 0, 0),
('2050', 23, 0, 0, 0, 0),
('2050', 24, 0, 0, 0, 0),
('2050', 25, 0, 0, 0, 0),
('2050', 26, 0, 0, 0, 0),
('2050', 27, 0, 0, 0, 0),
('2050', 28, 0, 0, 0, 0),
('2050', 29, 0, 0, 0, 0),
('2050', 30, 0, 0, 0, 0),
('2050', 31, 0, 0, 0, 0),
('2050', 32, 0, 0, 0, 0),
('2050', 33, 0, 0, 0, 0),
('2050', 34, 0, 0, 0, 0),
('2050', 35, 0, 0, 0, 0),
('2050', 36, 0, 0, 0, 0),
('2050', 37, 0, 0, 0, 0),
('2050', 38, 0, 0, 0, 0),
('2050', 39, 0, 0, 0, 0),
('2050', 40, 0, 0, 0, 0),
('2050', 41, 0, 0, 0, 0),
('2050', 42, 0, 0, 0, 0),
('2050', 43, 0, 0, 0, 0),
('2050', 44, 0, 0, 0, 0),
('2050', 45, 0, 0, 0, 0),
('2050', 46, 0, 0, 0, 0),
('2100', 14, 0, 0, 0, 0),
('2100', 15, 0, 0, 0, 0),
('2100', 16, 0, 0, 0, 0),
('2100', 17, 0, 0, 0, 0),
('2100', 18, 0, 0, 0, 0),
('2100', 19, 0, 0, 0, 0),
('2100', 20, 0, 0, 0, 0),
('2100', 21, 0, 0, 0, 0),
('2100', 22, 0, 0, 0, 0),
('2100', 23, 0, 0, 0, 0),
('2100', 24, 0, 226.17097206908997, 0, 0),
('2100', 25, 0, 0, 226.17097206908997, 0),
('2100', 26, 0, -95.7, -57.585, 0),
('2100', 27, 0, 0, -153.285, 0),
('2100', 28, 0, 0, 0, 0),
('2100', 29, 0, 0, 0, 0),
('2100', 30, 0, 0, 0, 0),
('2100', 31, 0, 0, 0, 0),
('2100', 32, 0, 0, 0, 0),
('2100', 33, 0, 0, 0, 0),
('2100', 34, 0, 0, 0, 0),
('2100', 35, 0, 0, 0, 0),
('2100', 36, 0, 0, 0, 0),
('2100', 37, 0, 0, 0, 0),
('2100', 38, 0, 0, 0, 0),
('2100', 39, 0, 0, 0, 0),
('2100', 40, 0, 0, 0, 0),
('2100', 41, 0, 0, 0, 0),
('2100', 42, 0, 0, 0, 0),
('2100', 43, 0, 0, 0, 0),
('2100', 44, 0, 0, 0, 0),
('2100', 45, 0, 0, 0, 0),
('2100', 46, 0, 0, 0, 0),
('2150', 14, 0, 0, 0, 0),
('2150', 15, 0, 0, 0, 0),
('2150', 16, 0, 0, 0, 0),
('2150', 17, 0, 0, 0, 0),
('2150', 18, 0, 0, 0, 0),
('2150', 19, 0, 0, 0, 0),
('2150', 20, 0, 0, 0, 0),
('2150', 21, 0, 0, 0, 0),
('2150', 22, 0, 0, 0, 0),
('2150', 23, 0, 0, 0, 0),
('2150', 24, 0, 0, 0, 0),
('2150', 25, 0, 0, 0, 0),
('2150', 26, 0, -217.91, 0, 0),
('2150', 27, 0, 0, -217.91, 0),
('2150', 28, 0, 0, 0, 0),
('2150', 29, 0, 0, 0, 0),
('2150', 30, 0, 0, 0, 0),
('2150', 31, 0, 0, 0, 0),
('2150', 32, 0, -150, 0, 0),
('2150', 33, 0, 0, -150, 0),
('2150', 34, 0, 0, 0, 0),
('2150', 35, 0, 0, 0, 0),
('2150', 36, 0, 0, 0, 0),
('2150', 37, 0, 0, 0, 0),
('2150', 38, 0, 0, 0, 0),
('2150', 39, 0, 0, 0, 0),
('2150', 40, 0, 0, 0, 0),
('2150', 41, 0, 0, 0, 0),
('2150', 42, 0, 0, 0, 0),
('2150', 43, 0, 0, 0, 0),
('2150', 44, 0, 0, 0, 0),
('2150', 45, 0, 0, 0, 0),
('2150', 46, 0, 0, 0, 0),
('2200', 14, 0, 0, 0, 0),
('2200', 15, 0, 0, 0, 0),
('2200', 16, 0, 0, 0, 0),
('2200', 17, 0, 0, 0, 0),
('2200', 18, 0, 0, 0, 0),
('2200', 19, 0, 0, 0, 0),
('2200', 20, 0, 0, 0, 0),
('2200', 21, 0, 0, 0, 0),
('2200', 22, 0, 0, 0, 0),
('2200', 23, 0, 0, 0, 0),
('2200', 24, 0, 0, 0, 0),
('2200', 25, 0, 0, 0, 0),
('2200', 26, 0, 0, 0, 0),
('2200', 27, 0, 0, 0, 0),
('2200', 28, 0, 0, 0, 0),
('2200', 29, 0, 0, 0, 0),
('2200', 30, 0, 0, 0, 0),
('2200', 31, 0, 0, 0, 0),
('2200', 32, 0, 0, 0, 0),
('2200', 33, 0, 0, 0, 0),
('2200', 34, 0, 0, 0, 0),
('2200', 35, 0, 0, 0, 0),
('2200', 36, 0, 0, 0, 0),
('2200', 37, 0, 0, 0, 0),
('2200', 38, 0, 0, 0, 0),
('2200', 39, 0, 0, 0, 0),
('2200', 40, 0, 0, 0, 0),
('2200', 41, 0, 0, 0, 0),
('2200', 42, 0, 0, 0, 0),
('2200', 43, 0, 0, 0, 0),
('2200', 44, 0, 0, 0, 0),
('2200', 45, 0, 0, 0, 0),
('2200', 46, 0, 0, 0, 0),
('2230', 14, 0, 0, 0, 0),
('2230', 15, 0, 0, 0, 0),
('2230', 16, 0, 0, 0, 0),
('2230', 17, 0, 0, 0, 0),
('2230', 18, 0, 0, 0, 0),
('2230', 19, 0, 0, 0, 0),
('2230', 20, 0, 0, 0, 0),
('2230', 21, 0, 0, 0, 0),
('2230', 22, 0, 0, 0, 0),
('2230', 23, 0, 0, 0, 0),
('2230', 24, 0, 0, 0, 0),
('2230', 25, 0, 0, 0, 0),
('2230', 26, 0, 0, 0, 0),
('2230', 27, 0, 0, 0, 0),
('2230', 28, 0, 0, 0, 0),
('2230', 29, 0, 0, 0, 0),
('2230', 30, 0, 0, 0, 0),
('2230', 31, 0, 0, 0, 0),
('2230', 32, 0, 0, 0, 0),
('2230', 33, 0, 0, 0, 0),
('2230', 34, 0, 0, 0, 0),
('2230', 35, 0, 0, 0, 0),
('2230', 36, 0, 0, 0, 0),
('2230', 37, 0, 0, 0, 0),
('2230', 38, 0, 0, 0, 0),
('2230', 39, 0, 0, 0, 0),
('2230', 40, 0, 0, 0, 0),
('2230', 41, 0, 0, 0, 0),
('2230', 42, 0, 0, 0, 0),
('2230', 43, 0, 0, 0, 0),
('2230', 44, 0, 0, 0, 0),
('2230', 45, 0, 0, 0, 0),
('2230', 46, 0, 0, 0, 0),
('2250', 14, 0, 0, 0, 0),
('2250', 15, 0, 0, 0, 0),
('2250', 16, 0, 0, 0, 0),
('2250', 17, 0, 0, 0, 0),
('2250', 18, 0, 0, 0, 0),
('2250', 19, 0, 0, 0, 0),
('2250', 20, 0, 0, 0, 0),
('2250', 21, 0, 0, 0, 0),
('2250', 22, 0, 0, 0, 0),
('2250', 23, 0, 0, 0, 0),
('2250', 24, 0, 0, 0, 0),
('2250', 25, 0, 0, 0, 0),
('2250', 26, 0, 0, 0, 0),
('2250', 27, 0, 0, 0, 0),
('2250', 28, 0, 0, 0, 0),
('2250', 29, 0, 0, 0, 0),
('2250', 30, 0, 0, 0, 0),
('2250', 31, 0, 0, 0, 0),
('2250', 32, 0, 0, 0, 0),
('2250', 33, 0, 0, 0, 0),
('2250', 34, 0, 0, 0, 0),
('2250', 35, 0, 0, 0, 0),
('2250', 36, 0, 0, 0, 0),
('2250', 37, 0, 0, 0, 0),
('2250', 38, 0, 0, 0, 0),
('2250', 39, 0, 0, 0, 0),
('2250', 40, 0, 0, 0, 0),
('2250', 41, 0, 0, 0, 0),
('2250', 42, 0, 0, 0, 0),
('2250', 43, 0, 0, 0, 0),
('2250', 44, 0, 0, 0, 0),
('2250', 45, 0, 0, 0, 0),
('2250', 46, 0, 0, 0, 0),
('2300', 14, 0, 0, 0, 0),
('2300', 15, 0, 0, 0, 0),
('2300', 16, 0, 0, 0, 0),
('2300', 17, 0, 0, 0, 0),
('2300', 18, 0, 0, 0, 0),
('2300', 19, 0, 0, 0, 0),
('2300', 20, 0, 0, 0, 0),
('2300', 21, 0, 0, 0, 0),
('2300', 22, 0, 0, 0, 0),
('2300', 23, 0, 0, 0, 0),
('2300', 24, 0, 0, 0, 0),
('2300', 25, 0, 0, 0, 0),
('2300', 26, 0, 0, 0, 0),
('2300', 27, 0, 0, 0, 0),
('2300', 28, 0, 0, 0, 0),
('2300', 29, 0, 0, 0, 0),
('2300', 30, 0, 0, 0, 0),
('2300', 31, 0, 0, 0, 0),
('2300', 32, 0, 0, 0, 0),
('2300', 33, 0, 0, 0, 0),
('2300', 34, 0, 0, 0, 0),
('2300', 35, 0, 0, 0, 0),
('2300', 36, 0, 0, 0, 0),
('2300', 37, 0, 0, 0, 0),
('2300', 38, 0, 0, 0, 0),
('2300', 39, 0, 0, 0, 0),
('2300', 40, 0, 0, 0, 0),
('2300', 41, 0, 0, 0, 0),
('2300', 42, 0, 0, 0, 0),
('2300', 43, 0, 0, 0, 0),
('2300', 44, 0, 0, 0, 0),
('2300', 45, 0, 0, 0, 0),
('2300', 46, 0, 0, 0, 0),
('2310', 14, 0, 0, 0, 0),
('2310', 15, 0, 0, 0, 0),
('2310', 16, 0, 0, 0, 0),
('2310', 17, 0, 0, 0, 0),
('2310', 18, 0, 0, 0, 0),
('2310', 19, 0, 0, 0, 0),
('2310', 20, 0, 0, 0, 0),
('2310', 21, 0, 0, 0, 0),
('2310', 22, 0, 0, 0, 0),
('2310', 23, 0, 0, 0, 0),
('2310', 24, 0, 5.235, 0, 0),
('2310', 25, 0, 0, 5.235, 0),
('2310', 26, 0, 8.7, 5.235, 0),
('2310', 27, 0, 0, 13.934999999999999, 0),
('2310', 28, 0, 0, 0, 0),
('2310', 29, 0, 0, 0, 0),
('2310', 30, 0, 0, 0, 0),
('2310', 31, 0, 0, 0, 0),
('2310', 32, 0, 0, 0, 0),
('2310', 33, 0, 0, 0, 0),
('2310', 34, 0, 0, 0, 0),
('2310', 35, 0, 0, 0, 0),
('2310', 36, 0, 0, 0, 0),
('2310', 37, 0, 0, 0, 0),
('2310', 38, 0, 0, 0, 0),
('2310', 39, 0, 0, 0, 0),
('2310', 40, 0, 0, 0, 0),
('2310', 41, 0, 0, 0, 0),
('2310', 42, 0, 0, 0, 0),
('2310', 43, 0, 0, 0, 0),
('2310', 44, 0, 0, 0, 0),
('2310', 45, 0, 0, 0, 0),
('2310', 46, 0, 0, 0, 0),
('2320', 14, 0, 0, 0, 0),
('2320', 15, 0, 0, 0, 0),
('2320', 16, 0, 0, 0, 0),
('2320', 17, 0, 0, 0, 0),
('2320', 18, 0, 0, 0, 0),
('2320', 19, 0, 0, 0, 0),
('2320', 20, 0, 0, 0, 0),
('2320', 21, 0, 0, 0, 0),
('2320', 22, 0, 0, 0, 0),
('2320', 23, 0, 0, 0, 0),
('2320', 24, 0, 0, 0, 0),
('2320', 25, 0, 0, 0, 0),
('2320', 26, 0, 0, 0, 0),
('2320', 27, 0, 0, 0, 0),
('2320', 28, 0, 0, 0, 0),
('2320', 29, 0, 0, 0, 0),
('2320', 30, 0, 0, 0, 0),
('2320', 31, 0, 0, 0, 0),
('2320', 32, 0, 0, 0, 0),
('2320', 33, 0, 0, 0, 0),
('2320', 34, 0, 0, 0, 0),
('2320', 35, 0, 0, 0, 0),
('2320', 36, 0, 0, 0, 0),
('2320', 37, 0, 0, 0, 0),
('2320', 38, 0, 0, 0, 0),
('2320', 39, 0, 0, 0, 0),
('2320', 40, 0, 0, 0, 0),
('2320', 41, 0, 0, 0, 0),
('2320', 42, 0, 0, 0, 0),
('2320', 43, 0, 0, 0, 0),
('2320', 44, 0, 0, 0, 0),
('2320', 45, 0, 0, 0, 0),
('2320', 46, 0, 0, 0, 0),
('2330', 14, 0, 0, 0, 0),
('2330', 15, 0, 0, 0, 0),
('2330', 16, 0, 0, 0, 0),
('2330', 17, 0, 0, 0, 0),
('2330', 18, 0, 0, 0, 0),
('2330', 19, 0, 0, 0, 0),
('2330', 20, 0, 0, 0, 0),
('2330', 21, 0, 0, 0, 0),
('2330', 22, 0, 0, 0, 0),
('2330', 23, 0, 0, 0, 0),
('2330', 24, 0, 0, 0, 0),
('2330', 25, 0, 0, 0, 0),
('2330', 26, 0, 0, 0, 0),
('2330', 27, 0, 0, 0, 0),
('2330', 28, 0, 0, 0, 0),
('2330', 29, 0, 0, 0, 0),
('2330', 30, 0, 0, 0, 0),
('2330', 31, 0, 0, 0, 0),
('2330', 32, 0, 0, 0, 0),
('2330', 33, 0, 0, 0, 0),
('2330', 34, 0, 0, 0, 0),
('2330', 35, 0, 0, 0, 0),
('2330', 36, 0, 0, 0, 0),
('2330', 37, 0, 0, 0, 0),
('2330', 38, 0, 0, 0, 0),
('2330', 39, 0, 0, 0, 0),
('2330', 40, 0, 0, 0, 0),
('2330', 41, 0, 0, 0, 0),
('2330', 42, 0, 0, 0, 0),
('2330', 43, 0, 0, 0, 0),
('2330', 44, 0, 0, 0, 0),
('2330', 45, 0, 0, 0, 0),
('2330', 46, 0, 0, 0, 0),
('2340', 14, 0, 0, 0, 0),
('2340', 15, 0, 0, 0, 0),
('2340', 16, 0, 0, 0, 0),
('2340', 17, 0, 0, 0, 0),
('2340', 18, 0, 0, 0, 0),
('2340', 19, 0, 0, 0, 0),
('2340', 20, 0, 0, 0, 0),
('2340', 21, 0, 0, 0, 0),
('2340', 22, 0, 0, 0, 0),
('2340', 23, 0, 0, 0, 0),
('2340', 24, 0, 0, 0, 0),
('2340', 25, 0, 0, 0, 0),
('2340', 26, 0, 0, 0, 0),
('2340', 27, 0, 0, 0, 0),
('2340', 28, 0, 0, 0, 0),
('2340', 29, 0, 0, 0, 0),
('2340', 30, 0, 0, 0, 0),
('2340', 31, 0, 0, 0, 0),
('2340', 32, 0, 0, 0, 0),
('2340', 33, 0, 0, 0, 0),
('2340', 34, 0, 0, 0, 0),
('2340', 35, 0, 0, 0, 0),
('2340', 36, 0, 0, 0, 0),
('2340', 37, 0, 0, 0, 0),
('2340', 38, 0, 0, 0, 0),
('2340', 39, 0, 0, 0, 0),
('2340', 40, 0, 0, 0, 0),
('2340', 41, 0, 0, 0, 0),
('2340', 42, 0, 0, 0, 0),
('2340', 43, 0, 0, 0, 0),
('2340', 44, 0, 0, 0, 0),
('2340', 45, 0, 0, 0, 0),
('2340', 46, 0, 0, 0, 0),
('2350', 14, 0, 0, 0, 0),
('2350', 15, 0, 0, 0, 0),
('2350', 16, 0, 0, 0, 0),
('2350', 17, 0, 0, 0, 0),
('2350', 18, 0, 0, 0, 0),
('2350', 19, 0, 0, 0, 0),
('2350', 20, 0, 0, 0, 0),
('2350', 21, 0, 0, 0, 0),
('2350', 22, 0, 0, 0, 0),
('2350', 23, 0, 0, 0, 0),
('2350', 24, 0, 0, 0, 0),
('2350', 25, 0, 0, 0, 0),
('2350', 26, 0, 0, 0, 0),
('2350', 27, 0, 0, 0, 0),
('2350', 28, 0, 0, 0, 0),
('2350', 29, 0, 0, 0, 0),
('2350', 30, 0, 0, 0, 0),
('2350', 31, 0, 0, 0, 0),
('2350', 32, 0, 0, 0, 0),
('2350', 33, 0, 0, 0, 0),
('2350', 34, 0, 0, 0, 0),
('2350', 35, 0, 0, 0, 0),
('2350', 36, 0, 0, 0, 0),
('2350', 37, 0, 0, 0, 0),
('2350', 38, 0, 0, 0, 0),
('2350', 39, 0, 0, 0, 0),
('2350', 40, 0, 0, 0, 0),
('2350', 41, 0, 0, 0, 0),
('2350', 42, 0, 0, 0, 0),
('2350', 43, 0, 0, 0, 0),
('2350', 44, 0, 0, 0, 0),
('2350', 45, 0, 0, 0, 0),
('2350', 46, 0, 0, 0, 0),
('2360', 14, 0, 0, 0, 0),
('2360', 15, 0, 0, 0, 0),
('2360', 16, 0, 0, 0, 0),
('2360', 17, 0, 0, 0, 0),
('2360', 18, 0, 0, 0, 0),
('2360', 19, 0, 0, 0, 0),
('2360', 20, 0, 0, 0, 0),
('2360', 21, 0, 0, 0, 0),
('2360', 22, 0, 0, 0, 0),
('2360', 23, 0, 0, 0, 0),
('2360', 24, 0, 0, 0, 0),
('2360', 25, 0, 0, 0, 0),
('2360', 26, 0, 0, 0, 0),
('2360', 27, 0, 0, 0, 0),
('2360', 28, 0, 0, 0, 0),
('2360', 29, 0, 0, 0, 0),
('2360', 30, 0, 0, 0, 0),
('2360', 31, 0, 0, 0, 0),
('2360', 32, 0, 0, 0, 0),
('2360', 33, 0, 0, 0, 0),
('2360', 34, 0, 0, 0, 0),
('2360', 35, 0, 0, 0, 0),
('2360', 36, 0, 0, 0, 0),
('2360', 37, 0, 0, 0, 0),
('2360', 38, 0, 0, 0, 0),
('2360', 39, 0, 0, 0, 0),
('2360', 40, 0, 0, 0, 0),
('2360', 41, 0, 0, 0, 0),
('2360', 42, 0, 0, 0, 0),
('2360', 43, 0, 0, 0, 0),
('2360', 44, 0, 0, 0, 0),
('2360', 45, 0, 0, 0, 0),
('2360', 46, 0, 0, 0, 0),
('2400', 14, 0, 0, 0, 0),
('2400', 15, 0, 0, 0, 0),
('2400', 16, 0, 0, 0, 0),
('2400', 17, 0, 0, 0, 0),
('2400', 18, 0, 0, 0, 0),
('2400', 19, 0, 0, 0, 0),
('2400', 20, 0, 0, 0, 0),
('2400', 21, 0, 0, 0, 0),
('2400', 22, 0, 0, 0, 0),
('2400', 23, 0, 0, 0, 0),
('2400', 24, 0, 0, 0, 0),
('2400', 25, 0, 0, 0, 0),
('2400', 26, 0, 0, 0, 0),
('2400', 27, 0, 0, 0, 0),
('2400', 28, 0, 0, 0, 0),
('2400', 29, 0, 0, 0, 0),
('2400', 30, 0, 0, 0, 0),
('2400', 31, 0, 0, 0, 0),
('2400', 32, 0, 0, 0, 0),
('2400', 33, 0, 0, 0, 0),
('2400', 34, 0, 0, 0, 0),
('2400', 35, 0, 0, 0, 0),
('2400', 36, 0, 0, 0, 0),
('2400', 37, 0, 0, 0, 0),
('2400', 38, 0, 0, 0, 0),
('2400', 39, 0, 0, 0, 0),
('2400', 40, 0, 0, 0, 0),
('2400', 41, 0, 0, 0, 0),
('2400', 42, 0, 0, 0, 0),
('2400', 43, 0, 0, 0, 0),
('2400', 44, 0, 0, 0, 0),
('2400', 45, 0, 0, 0, 0),
('2400', 46, 0, 0, 0, 0),
('2410', 14, 0, 0, 0, 0),
('2410', 15, 0, 0, 0, 0),
('2410', 16, 0, 0, 0, 0),
('2410', 17, 0, 0, 0, 0),
('2410', 18, 0, 0, 0, 0),
('2410', 19, 0, 0, 0, 0),
('2410', 20, 0, 0, 0, 0),
('2410', 21, 0, 0, 0, 0),
('2410', 22, 0, 0, 0, 0),
('2410', 23, 0, 0, 0, 0),
('2410', 24, 0, 0, 0, 0),
('2410', 25, 0, 0, 0, 0),
('2410', 26, 0, 0, 0, 0),
('2410', 27, 0, 0, 0, 0),
('2410', 28, 0, 0, 0, 0),
('2410', 29, 0, 0, 0, 0),
('2410', 30, 0, 0, 0, 0),
('2410', 31, 0, 0, 0, 0),
('2410', 32, 0, 0, 0, 0),
('2410', 33, 0, 0, 0, 0),
('2410', 34, 0, 0, 0, 0),
('2410', 35, 0, 0, 0, 0),
('2410', 36, 0, 0, 0, 0),
('2410', 37, 0, 0, 0, 0),
('2410', 38, 0, 0, 0, 0),
('2410', 39, 0, 0, 0, 0),
('2410', 40, 0, 0, 0, 0),
('2410', 41, 0, 0, 0, 0),
('2410', 42, 0, 0, 0, 0),
('2410', 43, 0, 0, 0, 0),
('2410', 44, 0, 0, 0, 0),
('2410', 45, 0, 0, 0, 0),
('2410', 46, 0, 0, 0, 0),
('2420', 14, 0, 0, 0, 0),
('2420', 15, 0, 0, 0, 0),
('2420', 16, 0, 0, 0, 0),
('2420', 17, 0, 0, 0, 0),
('2420', 18, 0, 0, 0, 0),
('2420', 19, 0, 0, 0, 0),
('2420', 20, 0, 0, 0, 0),
('2420', 21, 0, 0, 0, 0),
('2420', 22, 0, 0, 0, 0),
('2420', 23, 0, 0, 0, 0),
('2420', 24, 0, 0, 0, 0),
('2420', 25, 0, 0, 0, 0),
('2420', 26, 0, 0, 0, 0),
('2420', 27, 0, 0, 0, 0),
('2420', 28, 0, 0, 0, 0),
('2420', 29, 0, 0, 0, 0),
('2420', 30, 0, 0, 0, 0),
('2420', 31, 0, 0, 0, 0),
('2420', 32, 0, 0, 0, 0),
('2420', 33, 0, 0, 0, 0),
('2420', 34, 0, 0, 0, 0),
('2420', 35, 0, 0, 0, 0),
('2420', 36, 0, 0, 0, 0),
('2420', 37, 0, 0, 0, 0),
('2420', 38, 0, 0, 0, 0),
('2420', 39, 0, 0, 0, 0),
('2420', 40, 0, 0, 0, 0),
('2420', 41, 0, 0, 0, 0),
('2420', 42, 0, 0, 0, 0),
('2420', 43, 0, 0, 0, 0),
('2420', 44, 0, 0, 0, 0),
('2420', 45, 0, 0, 0, 0),
('2420', 46, 0, 0, 0, 0),
('2450', 14, 0, 0, 0, 0),
('2450', 15, 0, 0, 0, 0),
('2450', 16, 0, 0, 0, 0),
('2450', 17, 0, 0, 0, 0),
('2450', 18, 0, 0, 0, 0),
('2450', 19, 0, 0, 0, 0),
('2450', 20, 0, 0, 0, 0),
('2450', 21, 0, 0, 0, 0),
('2450', 22, 0, 0, 0, 0),
('2450', 23, 0, 0, 0, 0),
('2450', 24, 0, 0, 0, 0),
('2450', 25, 0, 0, 0, 0),
('2450', 26, 0, 0, 0, 0),
('2450', 27, 0, 0, 0, 0),
('2450', 28, 0, 0, 0, 0),
('2450', 29, 0, 0, 0, 0),
('2450', 30, 0, 0, 0, 0),
('2450', 31, 0, 0, 0, 0),
('2450', 32, 0, 0, 0, 0),
('2450', 33, 0, 0, 0, 0),
('2450', 34, 0, 0, 0, 0),
('2450', 35, 0, 0, 0, 0),
('2450', 36, 0, 0, 0, 0),
('2450', 37, 0, 0, 0, 0),
('2450', 38, 0, 0, 0, 0),
('2450', 39, 0, 0, 0, 0),
('2450', 40, 0, 0, 0, 0),
('2450', 41, 0, 0, 0, 0),
('2450', 42, 0, 0, 0, 0),
('2450', 43, 0, 0, 0, 0),
('2450', 44, 0, 0, 0, 0),
('2450', 45, 0, 0, 0, 0),
('2450', 46, 0, 0, 0, 0),
('2460', 14, 0, 0, 0, 0),
('2460', 15, 0, 0, 0, 0),
('2460', 16, 0, 0, 0, 0),
('2460', 17, 0, 0, 0, 0),
('2460', 18, 0, 0, 0, 0),
('2460', 19, 0, 0, 0, 0),
('2460', 20, 0, 0, 0, 0),
('2460', 21, 0, 0, 0, 0),
('2460', 22, 0, 0, 0, 0),
('2460', 23, 0, 0, 0, 0),
('2460', 24, 0, 0, 0, 0),
('2460', 25, 0, 0, 0, 0),
('2460', 26, 0, 0, 0, 0),
('2460', 27, 0, 0, 0, 0),
('2460', 28, 0, 0, 0, 0),
('2460', 29, 0, 0, 0, 0),
('2460', 30, 0, 0, 0, 0),
('2460', 31, 0, 0, 0, 0),
('2460', 32, 0, 0, 0, 0),
('2460', 33, 0, 0, 0, 0),
('2460', 34, 0, 0, 0, 0),
('2460', 35, 0, 0, 0, 0),
('2460', 36, 0, 0, 0, 0),
('2460', 37, 0, 0, 0, 0),
('2460', 38, 0, 0, 0, 0),
('2460', 39, 0, 0, 0, 0),
('2460', 40, 0, 0, 0, 0),
('2460', 41, 0, 0, 0, 0),
('2460', 42, 0, 0, 0, 0),
('2460', 43, 0, 0, 0, 0),
('2460', 44, 0, 0, 0, 0),
('2460', 45, 0, 0, 0, 0),
('2460', 46, 0, 0, 0, 0),
('2480', 14, 0, 0, 0, 0),
('2480', 15, 0, 0, 0, 0),
('2480', 16, 0, 0, 0, 0),
('2480', 17, 0, 0, 0, 0),
('2480', 18, 0, 0, 0, 0),
('2480', 19, 0, 0, 0, 0),
('2480', 20, 0, 0, 0, 0),
('2480', 21, 0, 0, 0, 0),
('2480', 22, 0, 0, 0, 0),
('2480', 23, 0, 0, 0, 0),
('2480', 24, 0, 0, 0, 0),
('2480', 25, 0, 0, 0, 0),
('2480', 26, 0, 0, 0, 0),
('2480', 27, 0, 0, 0, 0),
('2480', 28, 0, 0, 0, 0),
('2480', 29, 0, 0, 0, 0),
('2480', 30, 0, 0, 0, 0),
('2480', 31, 0, 0, 0, 0),
('2480', 32, 0, 0, 0, 0),
('2480', 33, 0, 0, 0, 0),
('2480', 34, 0, 0, 0, 0),
('2480', 35, 0, 0, 0, 0),
('2480', 36, 0, 0, 0, 0),
('2480', 37, 0, 0, 0, 0),
('2480', 38, 0, 0, 0, 0),
('2480', 39, 0, 0, 0, 0),
('2480', 40, 0, 0, 0, 0),
('2480', 41, 0, 0, 0, 0),
('2480', 42, 0, 0, 0, 0),
('2480', 43, 0, 0, 0, 0),
('2480', 44, 0, 0, 0, 0),
('2480', 45, 0, 0, 0, 0),
('2480', 46, 0, 0, 0, 0),
('2500', 14, 0, 0, 0, 0),
('2500', 15, 0, 0, 0, 0),
('2500', 16, 0, 0, 0, 0),
('2500', 17, 0, 0, 0, 0),
('2500', 18, 0, 0, 0, 0),
('2500', 19, 0, 0, 0, 0),
('2500', 20, 0, 0, 0, 0),
('2500', 21, 0, 0, 0, 0),
('2500', 22, 0, 0, 0, 0),
('2500', 23, 0, 0, 0, 0),
('2500', 24, 0, 0, 0, 0),
('2500', 25, 0, 0, 0, 0),
('2500', 26, 0, 0, 0, 0),
('2500', 27, 0, 0, 0, 0),
('2500', 28, 0, 0, 0, 0),
('2500', 29, 0, 0, 0, 0),
('2500', 30, 0, 0, 0, 0),
('2500', 31, 0, 0, 0, 0),
('2500', 32, 0, 0, 0, 0),
('2500', 33, 0, 0, 0, 0),
('2500', 34, 0, 0, 0, 0),
('2500', 35, 0, 0, 0, 0),
('2500', 36, 0, 0, 0, 0),
('2500', 37, 0, 0, 0, 0),
('2500', 38, 0, 0, 0, 0),
('2500', 39, 0, 0, 0, 0),
('2500', 40, 0, 0, 0, 0),
('2500', 41, 0, 0, 0, 0),
('2500', 42, 0, 0, 0, 0),
('2500', 43, 0, 0, 0, 0),
('2500', 44, 0, 0, 0, 0),
('2500', 45, 0, 0, 0, 0),
('2500', 46, 0, 0, 0, 0),
('2550', 14, 0, 0, 0, 0),
('2550', 15, 0, 0, 0, 0),
('2550', 16, 0, 0, 0, 0),
('2550', 17, 0, 0, 0, 0),
('2550', 18, 0, 0, 0, 0),
('2550', 19, 0, 0, 0, 0),
('2550', 20, 0, 0, 0, 0),
('2550', 21, 0, 0, 0, 0),
('2550', 22, 0, 0, 0, 0),
('2550', 23, 0, 0, 0, 0),
('2550', 24, 0, 0, 0, 0),
('2550', 25, 0, 0, 0, 0),
('2550', 26, 0, 0, 0, 0),
('2550', 27, 0, 0, 0, 0),
('2550', 28, 0, 0, 0, 0),
('2550', 29, 0, 0, 0, 0),
('2550', 30, 0, 0, 0, 0),
('2550', 31, 0, 0, 0, 0),
('2550', 32, 0, 0, 0, 0),
('2550', 33, 0, 0, 0, 0),
('2550', 34, 0, 0, 0, 0),
('2550', 35, 0, 0, 0, 0),
('2550', 36, 0, 0, 0, 0),
('2550', 37, 0, 0, 0, 0),
('2550', 38, 0, 0, 0, 0),
('2550', 39, 0, 0, 0, 0),
('2550', 40, 0, 0, 0, 0),
('2550', 41, 0, 0, 0, 0),
('2550', 42, 0, 0, 0, 0),
('2550', 43, 0, 0, 0, 0),
('2550', 44, 0, 0, 0, 0),
('2550', 45, 0, 0, 0, 0),
('2550', 46, 0, 0, 0, 0),
('2560', 14, 0, 0, 0, 0),
('2560', 15, 0, 0, 0, 0),
('2560', 16, 0, 0, 0, 0),
('2560', 17, 0, 0, 0, 0),
('2560', 18, 0, 0, 0, 0),
('2560', 19, 0, 0, 0, 0),
('2560', 20, 0, 0, 0, 0),
('2560', 21, 0, 0, 0, 0),
('2560', 22, 0, 0, 0, 0),
('2560', 23, 0, 0, 0, 0),
('2560', 24, 0, 0, 0, 0),
('2560', 25, 0, 0, 0, 0),
('2560', 26, 0, 0, 0, 0),
('2560', 27, 0, 0, 0, 0),
('2560', 28, 0, 0, 0, 0),
('2560', 29, 0, 0, 0, 0),
('2560', 30, 0, 0, 0, 0),
('2560', 31, 0, 0, 0, 0),
('2560', 32, 0, 0, 0, 0),
('2560', 33, 0, 0, 0, 0),
('2560', 34, 0, 0, 0, 0),
('2560', 35, 0, 0, 0, 0),
('2560', 36, 0, 0, 0, 0),
('2560', 37, 0, 0, 0, 0),
('2560', 38, 0, 0, 0, 0),
('2560', 39, 0, 0, 0, 0),
('2560', 40, 0, 0, 0, 0),
('2560', 41, 0, 0, 0, 0);
INSERT INTO `chartdetails` (`accountcode`, `period`, `budget`, `actual`, `bfwd`, `bfwdbudget`) VALUES
('2560', 42, 0, 0, 0, 0),
('2560', 43, 0, 0, 0, 0),
('2560', 44, 0, 0, 0, 0),
('2560', 45, 0, 0, 0, 0),
('2560', 46, 0, 0, 0, 0),
('2600', 14, 0, 0, 0, 0),
('2600', 15, 0, 0, 0, 0),
('2600', 16, 0, 0, 0, 0),
('2600', 17, 0, 0, 0, 0),
('2600', 18, 0, 0, 0, 0),
('2600', 19, 0, 0, 0, 0),
('2600', 20, 0, 0, 0, 0),
('2600', 21, 0, 0, 0, 0),
('2600', 22, 0, 0, 0, 0),
('2600', 23, 0, 0, 0, 0),
('2600', 24, 0, 0, 0, 0),
('2600', 25, 0, 0, 0, 0),
('2600', 26, 0, 0, 0, 0),
('2600', 27, 0, 0, 0, 0),
('2600', 28, 0, 0, 0, 0),
('2600', 29, 0, 0, 0, 0),
('2600', 30, 0, 0, 0, 0),
('2600', 31, 0, 0, 0, 0),
('2600', 32, 0, 0, 0, 0),
('2600', 33, 0, 0, 0, 0),
('2600', 34, 0, 0, 0, 0),
('2600', 35, 0, 0, 0, 0),
('2600', 36, 0, 0, 0, 0),
('2600', 37, 0, 0, 0, 0),
('2600', 38, 0, 0, 0, 0),
('2600', 39, 0, 0, 0, 0),
('2600', 40, 0, 0, 0, 0),
('2600', 41, 0, 0, 0, 0),
('2600', 42, 0, 0, 0, 0),
('2600', 43, 0, 0, 0, 0),
('2600', 44, 0, 0, 0, 0),
('2600', 45, 0, 0, 0, 0),
('2600', 46, 0, 0, 0, 0),
('2700', 14, 0, 0, 0, 0),
('2700', 15, 0, 0, 0, 0),
('2700', 16, 0, 0, 0, 0),
('2700', 17, 0, 0, 0, 0),
('2700', 18, 0, 0, 0, 0),
('2700', 19, 0, 0, 0, 0),
('2700', 20, 0, 0, 0, 0),
('2700', 21, 0, 0, 0, 0),
('2700', 22, 0, 0, 0, 0),
('2700', 23, 0, 0, 0, 0),
('2700', 24, 0, 0, 0, 0),
('2700', 25, 0, 0, 0, 0),
('2700', 26, 0, 0, 0, 0),
('2700', 27, 0, 0, 0, 0),
('2700', 28, 0, 0, 0, 0),
('2700', 29, 0, 0, 0, 0),
('2700', 30, 0, 0, 0, 0),
('2700', 31, 0, 0, 0, 0),
('2700', 32, 0, 0, 0, 0),
('2700', 33, 0, 0, 0, 0),
('2700', 34, 0, 0, 0, 0),
('2700', 35, 0, 0, 0, 0),
('2700', 36, 0, 0, 0, 0),
('2700', 37, 0, 0, 0, 0),
('2700', 38, 0, 0, 0, 0),
('2700', 39, 0, 0, 0, 0),
('2700', 40, 0, 0, 0, 0),
('2700', 41, 0, 0, 0, 0),
('2700', 42, 0, 0, 0, 0),
('2700', 43, 0, 0, 0, 0),
('2700', 44, 0, 0, 0, 0),
('2700', 45, 0, 0, 0, 0),
('2700', 46, 0, 0, 0, 0),
('2720', 14, 0, 0, 0, 0),
('2720', 15, 0, 0, 0, 0),
('2720', 16, 0, 0, 0, 0),
('2720', 17, 0, 0, 0, 0),
('2720', 18, 0, 0, 0, 0),
('2720', 19, 0, 0, 0, 0),
('2720', 20, 0, 0, 0, 0),
('2720', 21, 0, 0, 0, 0),
('2720', 22, 0, 0, 0, 0),
('2720', 23, 0, 0, 0, 0),
('2720', 24, 0, 0, 0, 0),
('2720', 25, 0, 0, 0, 0),
('2720', 26, 0, 0, 0, 0),
('2720', 27, 0, 0, 0, 0),
('2720', 28, 0, 0, 0, 0),
('2720', 29, 0, 0, 0, 0),
('2720', 30, 0, 0, 0, 0),
('2720', 31, 0, 0, 0, 0),
('2720', 32, 0, 0, 0, 0),
('2720', 33, 0, 0, 0, 0),
('2720', 34, 0, 0, 0, 0),
('2720', 35, 0, 0, 0, 0),
('2720', 36, 0, 0, 0, 0),
('2720', 37, 0, 0, 0, 0),
('2720', 38, 0, 0, 0, 0),
('2720', 39, 0, 0, 0, 0),
('2720', 40, 0, 0, 0, 0),
('2720', 41, 0, 0, 0, 0),
('2720', 42, 0, 0, 0, 0),
('2720', 43, 0, 0, 0, 0),
('2720', 44, 0, 0, 0, 0),
('2720', 45, 0, 0, 0, 0),
('2720', 46, 0, 0, 0, 0),
('2740', 14, 0, 0, 0, 0),
('2740', 15, 0, 0, 0, 0),
('2740', 16, 0, 0, 0, 0),
('2740', 17, 0, 0, 0, 0),
('2740', 18, 0, 0, 0, 0),
('2740', 19, 0, 0, 0, 0),
('2740', 20, 0, 0, 0, 0),
('2740', 21, 0, 0, 0, 0),
('2740', 22, 0, 0, 0, 0),
('2740', 23, 0, 0, 0, 0),
('2740', 24, 0, 0, 0, 0),
('2740', 25, 0, 0, 0, 0),
('2740', 26, 0, 0, 0, 0),
('2740', 27, 0, 0, 0, 0),
('2740', 28, 0, 0, 0, 0),
('2740', 29, 0, 0, 0, 0),
('2740', 30, 0, 0, 0, 0),
('2740', 31, 0, 0, 0, 0),
('2740', 32, 0, 0, 0, 0),
('2740', 33, 0, 0, 0, 0),
('2740', 34, 0, 0, 0, 0),
('2740', 35, 0, 0, 0, 0),
('2740', 36, 0, 0, 0, 0),
('2740', 37, 0, 0, 0, 0),
('2740', 38, 0, 0, 0, 0),
('2740', 39, 0, 0, 0, 0),
('2740', 40, 0, 0, 0, 0),
('2740', 41, 0, 0, 0, 0),
('2740', 42, 0, 0, 0, 0),
('2740', 43, 0, 0, 0, 0),
('2740', 44, 0, 0, 0, 0),
('2740', 45, 0, 0, 0, 0),
('2740', 46, 0, 0, 0, 0),
('2760', 14, 0, 0, 0, 0),
('2760', 15, 0, 0, 0, 0),
('2760', 16, 0, 0, 0, 0),
('2760', 17, 0, 0, 0, 0),
('2760', 18, 0, 0, 0, 0),
('2760', 19, 0, 0, 0, 0),
('2760', 20, 0, 0, 0, 0),
('2760', 21, 0, 0, 0, 0),
('2760', 22, 0, 0, 0, 0),
('2760', 23, 0, 0, 0, 0),
('2760', 24, 0, 0, 0, 0),
('2760', 25, 0, 0, 0, 0),
('2760', 26, 0, 0, 0, 0),
('2760', 27, 0, 0, 0, 0),
('2760', 28, 0, 0, 0, 0),
('2760', 29, 0, 0, 0, 0),
('2760', 30, 0, 0, 0, 0),
('2760', 31, 0, 0, 0, 0),
('2760', 32, 0, 0, 0, 0),
('2760', 33, 0, 0, 0, 0),
('2760', 34, 0, 0, 0, 0),
('2760', 35, 0, 0, 0, 0),
('2760', 36, 0, 0, 0, 0),
('2760', 37, 0, 0, 0, 0),
('2760', 38, 0, 0, 0, 0),
('2760', 39, 0, 0, 0, 0),
('2760', 40, 0, 0, 0, 0),
('2760', 41, 0, 0, 0, 0),
('2760', 42, 0, 0, 0, 0),
('2760', 43, 0, 0, 0, 0),
('2760', 44, 0, 0, 0, 0),
('2760', 45, 0, 0, 0, 0),
('2760', 46, 0, 0, 0, 0),
('2800', 14, 0, 0, 0, 0),
('2800', 15, 0, 0, 0, 0),
('2800', 16, 0, 0, 0, 0),
('2800', 17, 0, 0, 0, 0),
('2800', 18, 0, 0, 0, 0),
('2800', 19, 0, 0, 0, 0),
('2800', 20, 0, 0, 0, 0),
('2800', 21, 0, 0, 0, 0),
('2800', 22, 0, 0, 0, 0),
('2800', 23, 0, 0, 0, 0),
('2800', 24, 0, 0, 0, 0),
('2800', 25, 0, 0, 0, 0),
('2800', 26, 0, 0, 0, 0),
('2800', 27, 0, 0, 0, 0),
('2800', 28, 0, 0, 0, 0),
('2800', 29, 0, 0, 0, 0),
('2800', 30, 0, 0, 0, 0),
('2800', 31, 0, 0, 0, 0),
('2800', 32, 0, 0, 0, 0),
('2800', 33, 0, 0, 0, 0),
('2800', 34, 0, 0, 0, 0),
('2800', 35, 0, 0, 0, 0),
('2800', 36, 0, 0, 0, 0),
('2800', 37, 0, 0, 0, 0),
('2800', 38, 0, 0, 0, 0),
('2800', 39, 0, 0, 0, 0),
('2800', 40, 0, 0, 0, 0),
('2800', 41, 0, 0, 0, 0),
('2800', 42, 0, 0, 0, 0),
('2800', 43, 0, 0, 0, 0),
('2800', 44, 0, 0, 0, 0),
('2800', 45, 0, 0, 0, 0),
('2800', 46, 0, 0, 0, 0),
('2900', 14, 0, 0, 0, 0),
('2900', 15, 0, 0, 0, 0),
('2900', 16, 0, 0, 0, 0),
('2900', 17, 0, 0, 0, 0),
('2900', 18, 0, 0, 0, 0),
('2900', 19, 0, 0, 0, 0),
('2900', 20, 0, 0, 0, 0),
('2900', 21, 0, 0, 0, 0),
('2900', 22, 0, 0, 0, 0),
('2900', 23, 0, 0, 0, 0),
('2900', 24, 0, 0, 0, 0),
('2900', 25, 0, 0, 0, 0),
('2900', 26, 0, 0, 0, 0),
('2900', 27, 0, 0, 0, 0),
('2900', 28, 0, 0, 0, 0),
('2900', 29, 0, 0, 0, 0),
('2900', 30, 0, 0, 0, 0),
('2900', 31, 0, 0, 0, 0),
('2900', 32, 0, 0, 0, 0),
('2900', 33, 0, 0, 0, 0),
('2900', 34, 0, 0, 0, 0),
('2900', 35, 0, 0, 0, 0),
('2900', 36, 0, 0, 0, 0),
('2900', 37, 0, 0, 0, 0),
('2900', 38, 0, 0, 0, 0),
('2900', 39, 0, 0, 0, 0),
('2900', 40, 0, 0, 0, 0),
('2900', 41, 0, 0, 0, 0),
('2900', 42, 0, 0, 0, 0),
('2900', 43, 0, 0, 0, 0),
('2900', 44, 0, 0, 0, 0),
('2900', 45, 0, 0, 0, 0),
('2900', 46, 0, 0, 0, 0),
('3100', 14, 0, 0, 0, 0),
('3100', 15, 0, 0, 0, 0),
('3100', 16, 0, 0, 0, 0),
('3100', 17, 0, 0, 0, 0),
('3100', 18, 0, 0, 0, 0),
('3100', 19, 0, 0, 0, 0),
('3100', 20, 0, 0, 0, 0),
('3100', 21, 0, 0, 0, 0),
('3100', 22, 0, 0, 0, 0),
('3100', 23, 0, 0, 0, 0),
('3100', 24, 0, 0, 0, 0),
('3100', 25, 0, 0, 0, 0),
('3100', 26, 0, 0, 0, 0),
('3100', 27, 0, 0, 0, 0),
('3100', 28, 0, 0, 0, 0),
('3100', 29, 0, 0, 0, 0),
('3100', 30, 0, 0, 0, 0),
('3100', 31, 0, 0, 0, 0),
('3100', 32, 0, 0, 0, 0),
('3100', 33, 0, 0, 0, 0),
('3100', 34, 0, 0, 0, 0),
('3100', 35, 0, 0, 0, 0),
('3100', 36, 0, 0, 0, 0),
('3100', 37, 0, 0, 0, 0),
('3100', 38, 0, 0, 0, 0),
('3100', 39, 0, 0, 0, 0),
('3100', 40, 0, 0, 0, 0),
('3100', 41, 0, 0, 0, 0),
('3100', 42, 0, 0, 0, 0),
('3100', 43, 0, 0, 0, 0),
('3100', 44, 0, 0, 0, 0),
('3100', 45, 0, 0, 0, 0),
('3100', 46, 0, 0, 0, 0),
('3200', 14, 0, 0, 0, 0),
('3200', 15, 0, 0, 0, 0),
('3200', 16, 0, 0, 0, 0),
('3200', 17, 0, 0, 0, 0),
('3200', 18, 0, 0, 0, 0),
('3200', 19, 0, 0, 0, 0),
('3200', 20, 0, 0, 0, 0),
('3200', 21, 0, 0, 0, 0),
('3200', 22, 0, 0, 0, 0),
('3200', 23, 0, 0, 0, 0),
('3200', 24, 0, 0, 0, 0),
('3200', 25, 0, 0, 0, 0),
('3200', 26, 0, 0, 0, 0),
('3200', 27, 0, 0, 0, 0),
('3200', 28, 0, 0, 0, 0),
('3200', 29, 0, 0, 0, 0),
('3200', 30, 0, 0, 0, 0),
('3200', 31, 0, 0, 0, 0),
('3200', 32, 0, 0, 0, 0),
('3200', 33, 0, 0, 0, 0),
('3200', 34, 0, 0, 0, 0),
('3200', 35, 0, 0, 0, 0),
('3200', 36, 0, 0, 0, 0),
('3200', 37, 0, 0, 0, 0),
('3200', 38, 0, 0, 0, 0),
('3200', 39, 0, 0, 0, 0),
('3200', 40, 0, 0, 0, 0),
('3200', 41, 0, 0, 0, 0),
('3200', 42, 0, 0, 0, 0),
('3200', 43, 0, 0, 0, 0),
('3200', 44, 0, 0, 0, 0),
('3200', 45, 0, 0, 0, 0),
('3200', 46, 0, 0, 0, 0),
('3300', 14, 0, 0, 0, 0),
('3300', 15, 0, 0, 0, 0),
('3300', 16, 0, 0, 0, 0),
('3300', 17, 0, 0, 0, 0),
('3300', 18, 0, 0, 0, 0),
('3300', 19, 0, 0, 0, 0),
('3300', 20, 0, 0, 0, 0),
('3300', 21, 0, 0, 0, 0),
('3300', 22, 0, 0, 0, 0),
('3300', 23, 0, 0, 0, 0),
('3300', 24, 0, 0, 0, 0),
('3300', 25, 0, 0, 0, 0),
('3300', 26, 0, 0, 0, 0),
('3300', 27, 0, 0, 0, 0),
('3300', 28, 0, 0, 0, 0),
('3300', 29, 0, 0, 0, 0),
('3300', 30, 0, 0, 0, 0),
('3300', 31, 0, 0, 0, 0),
('3300', 32, 0, 0, 0, 0),
('3300', 33, 0, 0, 0, 0),
('3300', 34, 0, 0, 0, 0),
('3300', 35, 0, 0, 0, 0),
('3300', 36, 0, 0, 0, 0),
('3300', 37, 0, 0, 0, 0),
('3300', 38, 0, 0, 0, 0),
('3300', 39, 0, 0, 0, 0),
('3300', 40, 0, 0, 0, 0),
('3300', 41, 0, 0, 0, 0),
('3300', 42, 0, 0, 0, 0),
('3300', 43, 0, 0, 0, 0),
('3300', 44, 0, 0, 0, 0),
('3300', 45, 0, 0, 0, 0),
('3300', 46, 0, 0, 0, 0),
('3400', 14, 0, 0, 0, 0),
('3400', 15, 0, 0, 0, 0),
('3400', 16, 0, 0, 0, 0),
('3400', 17, 0, 0, 0, 0),
('3400', 18, 0, 0, 0, 0),
('3400', 19, 0, 0, 0, 0),
('3400', 20, 0, 0, 0, 0),
('3400', 21, 0, 0, 0, 0),
('3400', 22, 0, 0, 0, 0),
('3400', 23, 0, 0, 0, 0),
('3400', 24, 0, 0, 0, 0),
('3400', 25, 0, 0, 0, 0),
('3400', 26, 0, 0, 0, 0),
('3400', 27, 0, 0, 0, 0),
('3400', 28, 0, 0, 0, 0),
('3400', 29, 0, 0, 0, 0),
('3400', 30, 0, 0, 0, 0),
('3400', 31, 0, 0, 0, 0),
('3400', 32, 0, 0, 0, 0),
('3400', 33, 0, 0, 0, 0),
('3400', 34, 0, 0, 0, 0),
('3400', 35, 0, 0, 0, 0),
('3400', 36, 0, 0, 0, 0),
('3400', 37, 0, 0, 0, 0),
('3400', 38, 0, 0, 0, 0),
('3400', 39, 0, 0, 0, 0),
('3400', 40, 0, 0, 0, 0),
('3400', 41, 0, 0, 0, 0),
('3400', 42, 0, 0, 0, 0),
('3400', 43, 0, 0, 0, 0),
('3400', 44, 0, 0, 0, 0),
('3400', 45, 0, 0, 0, 0),
('3400', 46, 0, 0, 0, 0),
('3500', 14, 0, 0, 0, 0),
('3500', 15, 0, 0, 0, 0),
('3500', 16, 0, 0, 0, 0),
('3500', 17, 0, 0, 0, 0),
('3500', 18, 0, 0, 0, 0),
('3500', 19, 0, 0, 0, 0),
('3500', 20, 0, 0, 0, 0),
('3500', 21, 0, 0, 0, 0),
('3500', 22, 0, 0, 0, 0),
('3500', 23, 0, 0, 0, 0),
('3500', 24, 0, 0, 0, 0),
('3500', 25, 0, 0, 0, 0),
('3500', 26, 0, 0, 0, 0),
('3500', 27, 0, 0, 0, 0),
('3500', 28, 0, 0, 0, 0),
('3500', 29, 0, 0, 0, 0),
('3500', 30, 0, 0, 0, 0),
('3500', 31, 0, 0, 0, 0),
('3500', 32, 0, 0, 0, 0),
('3500', 33, 0, 0, 0, 0),
('3500', 34, 0, 0, 0, 0),
('3500', 35, 0, 0, 0, 0),
('3500', 36, 0, 0, 0, 0),
('3500', 37, 0, 0, 0, 0),
('3500', 38, 0, 0, 0, 0),
('3500', 39, 0, 0, 0, 0),
('3500', 40, 0, 0, 0, 0),
('3500', 41, 0, 0, 0, 0),
('3500', 42, 0, 0, 0, 0),
('3500', 43, 0, 0, 0, 0),
('3500', 44, 0, 0, 0, 0),
('3500', 45, 0, 0, 0, 0),
('3500', 46, 0, 0, 0, 0),
('4100', 14, 0, 0, 0, 0),
('4100', 15, 0, 0, 0, 0),
('4100', 16, 0, 0, 0, 0),
('4100', 17, 0, 0, 0, 0),
('4100', 18, 0, 0, 0, 0),
('4100', 19, 0, 0, 0, 0),
('4100', 20, 0, 0, 0, 0),
('4100', 21, 0, 0, 0, 0),
('4100', 22, 0, 0, 0, 0),
('4100', 23, 0, 0, 0, 0),
('4100', 24, 0, 0, 0, 0),
('4100', 25, 0, 0, 0, 0),
('4100', 26, 0, 0, 0, 0),
('4100', 27, 0, 0, 0, 0),
('4100', 28, 0, 0, 0, 0),
('4100', 29, 0, 0, 0, 0),
('4100', 30, 0, 0, 0, 0),
('4100', 31, 0, 0, 0, 0),
('4100', 32, 0, 0, 0, 0),
('4100', 33, 0, 0, 0, 0),
('4100', 34, 0, 0, 0, 0),
('4100', 35, 0, 0, 0, 0),
('4100', 36, 0, 0, 0, 0),
('4100', 37, 0, 0, 0, 0),
('4100', 38, 0, 0, 0, 0),
('4100', 39, 0, 0, 0, 0),
('4100', 40, 0, 0, 0, 0),
('4100', 41, 0, 0, 0, 0),
('4100', 42, 0, 0, 0, 0),
('4100', 43, 0, 0, 0, 0),
('4100', 44, 0, 0, 0, 0),
('4100', 45, 0, 0, 0, 0),
('4100', 46, 0, 0, 0, 0),
('4200', 14, 0, 0, 0, 0),
('4200', 15, 0, 0, 0, 0),
('4200', 16, 0, 0, 0, 0),
('4200', 17, 0, 0, 0, 0),
('4200', 18, 0, 0, 0, 0),
('4200', 19, 0, 0, 0, 0),
('4200', 20, 0, 0, 0, 0),
('4200', 21, 0, 0, 0, 0),
('4200', 22, 0, 0, 0, 0),
('4200', 23, 0, 0, 0, 0),
('4200', 24, 0, 0, 0, 0),
('4200', 25, 0, 0, 0, 0),
('4200', 26, 0, 0, 0, 0),
('4200', 27, 0, 0, 0, 0),
('4200', 28, 0, 0, 0, 0),
('4200', 29, 0, 0, 0, 0),
('4200', 30, 0, 0, 0, 0),
('4200', 31, 0, 0, 0, 0),
('4200', 32, 0, 0, 0, 0),
('4200', 33, 0, 0, 0, 0),
('4200', 34, 0, 0, 0, 0),
('4200', 35, 0, 0, 0, 0),
('4200', 36, 0, 0, 0, 0),
('4200', 37, 0, 0, 0, 0),
('4200', 38, 0, 0, 0, 0),
('4200', 39, 0, 0, 0, 0),
('4200', 40, 0, 0, 0, 0),
('4200', 41, 0, 0, 0, 0),
('4200', 42, 0, 0, 0, 0),
('4200', 43, 0, 0, 0, 0),
('4200', 44, 0, 0, 0, 0),
('4200', 45, 0, 0, 0, 0),
('4200', 46, 0, 0, 0, 0),
('4500', 14, 0, 0, 0, 0),
('4500', 15, 0, 0, 0, 0),
('4500', 16, 0, 0, 0, 0),
('4500', 17, 0, 0, 0, 0),
('4500', 18, 0, 0, 0, 0),
('4500', 19, 0, 0, 0, 0),
('4500', 20, 0, 0, 0, 0),
('4500', 21, 0, 0, 0, 0),
('4500', 22, 0, 0, 0, 0),
('4500', 23, 0, 0, 0, 0),
('4500', 24, 0, 0, 0, 0),
('4500', 25, 0, 0, 0, 0),
('4500', 26, 0, 0, 0, 0),
('4500', 27, 0, 0, 0, 0),
('4500', 28, 0, 0, 0, 0),
('4500', 29, 0, 0, 0, 0),
('4500', 30, 0, 0, 0, 0),
('4500', 31, 0, 0, 0, 0),
('4500', 32, 0, 0, 0, 0),
('4500', 33, 0, 0, 0, 0),
('4500', 34, 0, 0, 0, 0),
('4500', 35, 0, 0, 0, 0),
('4500', 36, 0, 0, 0, 0),
('4500', 37, 0, 0, 0, 0),
('4500', 38, 0, 0, 0, 0),
('4500', 39, 0, 0, 0, 0),
('4500', 40, 0, 0, 0, 0),
('4500', 41, 0, 0, 0, 0),
('4500', 42, 0, 0, 0, 0),
('4500', 43, 0, 0, 0, 0),
('4500', 44, 0, 0, 0, 0),
('4500', 45, 0, 0, 0, 0),
('4500', 46, 0, 0, 0, 0),
('4600', 14, 0, 0, 0, 0),
('4600', 15, 0, 0, 0, 0),
('4600', 16, 0, 0, 0, 0),
('4600', 17, 0, 0, 0, 0),
('4600', 18, 0, 0, 0, 0),
('4600', 19, 0, 0, 0, 0),
('4600', 20, 0, 0, 0, 0),
('4600', 21, 0, 0, 0, 0),
('4600', 22, 0, 0, 0, 0),
('4600', 23, 0, 0, 0, 0),
('4600', 24, 0, 0, 0, 0),
('4600', 25, 0, 0, 0, 0),
('4600', 26, 0, 0, 0, 0),
('4600', 27, 0, 0, 0, 0),
('4600', 28, 0, 0, 0, 0),
('4600', 29, 0, 0, 0, 0),
('4600', 30, 0, 0, 0, 0),
('4600', 31, 0, 0, 0, 0),
('4600', 32, 0, 0, 0, 0),
('4600', 33, 0, 0, 0, 0),
('4600', 34, 0, 0, 0, 0),
('4600', 35, 0, 0, 0, 0),
('4600', 36, 0, 0, 0, 0),
('4600', 37, 0, 0, 0, 0),
('4600', 38, 0, 0, 0, 0),
('4600', 39, 0, 0, 0, 0),
('4600', 40, 0, 0, 0, 0),
('4600', 41, 0, 0, 0, 0),
('4600', 42, 0, 0, 0, 0),
('4600', 43, 0, 0, 0, 0),
('4600', 44, 0, 0, 0, 0),
('4600', 45, 0, 0, 0, 0),
('4600', 46, 0, 0, 0, 0),
('4700', 14, 0, 0, 0, 0),
('4700', 15, 0, 0, 0, 0),
('4700', 16, 0, 0, 0, 0),
('4700', 17, 0, 0, 0, 0),
('4700', 18, 0, 0, 0, 0),
('4700', 19, 0, 0, 0, 0),
('4700', 20, 0, 0, 0, 0),
('4700', 21, 0, 0, 0, 0),
('4700', 22, 0, 0, 0, 0),
('4700', 23, 0, 0, 0, 0),
('4700', 24, 0, 0, 0, 0),
('4700', 25, 0, 0, 0, 0),
('4700', 26, 0, 0, 0, 0),
('4700', 27, 0, 0, 0, 0),
('4700', 28, 0, 0, 0, 0),
('4700', 29, 0, 0, 0, 0),
('4700', 30, 0, 0, 0, 0),
('4700', 31, 0, 0, 0, 0),
('4700', 32, 0, 0, 0, 0),
('4700', 33, 0, 0, 0, 0),
('4700', 34, 0, 0, 0, 0),
('4700', 35, 0, 0, 0, 0),
('4700', 36, 0, 0, 0, 0),
('4700', 37, 0, 0, 0, 0),
('4700', 38, 0, 0, 0, 0),
('4700', 39, 0, 0, 0, 0),
('4700', 40, 0, 0, 0, 0),
('4700', 41, 0, 0, 0, 0),
('4700', 42, 0, 0, 0, 0),
('4700', 43, 0, 0, 0, 0),
('4700', 44, 0, 0, 0, 0),
('4700', 45, 0, 0, 0, 0),
('4700', 46, 0, 0, 0, 0),
('4800', 14, 0, 0, 0, 0),
('4800', 15, 0, 0, 0, 0),
('4800', 16, 0, 0, 0, 0),
('4800', 17, 0, 0, 0, 0),
('4800', 18, 0, 0, 0, 0),
('4800', 19, 0, 0, 0, 0),
('4800', 20, 0, 0, 0, 0),
('4800', 21, 0, 0, 0, 0),
('4800', 22, 0, 0, 0, 0),
('4800', 23, 0, 0, 0, 0),
('4800', 24, 0, 0, 0, 0),
('4800', 25, 0, 0, 0, 0),
('4800', 26, 0, 0, 0, 0),
('4800', 27, 0, 0, 0, 0),
('4800', 28, 0, 0, 0, 0),
('4800', 29, 0, 0, 0, 0),
('4800', 30, 0, 0, 0, 0),
('4800', 31, 0, 0, 0, 0),
('4800', 32, 0, 0, 0, 0),
('4800', 33, 0, 0, 0, 0),
('4800', 34, 0, 0, 0, 0),
('4800', 35, 0, 0, 0, 0),
('4800', 36, 0, 0, 0, 0),
('4800', 37, 0, 0, 0, 0),
('4800', 38, 0, 0, 0, 0),
('4800', 39, 0, 0, 0, 0),
('4800', 40, 0, 0, 0, 0),
('4800', 41, 0, 0, 0, 0),
('4800', 42, 0, 0, 0, 0),
('4800', 43, 0, 0, 0, 0),
('4800', 44, 0, 0, 0, 0),
('4800', 45, 0, 0, 0, 0),
('4800', 46, 0, 0, 0, 0),
('4900', 14, 0, 0, 0, 0),
('4900', 15, 0, 0, 0, 0),
('4900', 16, 0, 0, 0, 0),
('4900', 17, 0, 0, 0, 0),
('4900', 18, 0, 0, 0, 0),
('4900', 19, 0, 0, 0, 0),
('4900', 20, 0, 0, 0, 0),
('4900', 21, 0, 0, 0, 0),
('4900', 22, 0, 0, 0, 0),
('4900', 23, 0, 0, 0, 0),
('4900', 24, 0, 0, 0, 0),
('4900', 25, 0, 0, 0, 0),
('4900', 26, 0, 0, 0, 0),
('4900', 27, 0, 0, 0, 0),
('4900', 28, 0, 0, 0, 0),
('4900', 29, 0, 0, 0, 0),
('4900', 30, 0, 0, 0, 0),
('4900', 31, 0, 0, 0, 0),
('4900', 32, 0, 0, 0, 0),
('4900', 33, 0, 0, 0, 0),
('4900', 34, 0, 0, 0, 0),
('4900', 35, 0, 0, 0, 0),
('4900', 36, 0, 0, 0, 0),
('4900', 37, 0, 0, 0, 0),
('4900', 38, 0, 0, 0, 0),
('4900', 39, 0, 0, 0, 0),
('4900', 40, 0, 0, 0, 0),
('4900', 41, 0, 0, 0, 0),
('4900', 42, 0, 0, 0, 0),
('4900', 43, 0, 0, 0, 0),
('4900', 44, 0, 0, 0, 0),
('4900', 45, 0, 0, 0, 0),
('4900', 46, 0, 0, 0, 0),
('5000', 14, 0, 0, 0, 0),
('5000', 15, 0, 0, 0, 0),
('5000', 16, 0, 0, 0, 0),
('5000', 17, 0, 0, 0, 0),
('5000', 18, 0, 0, 0, 0),
('5000', 19, 0, 0, 0, 0),
('5000', 20, 0, 0, 0, 0),
('5000', 21, 0, 0, 0, 0),
('5000', 22, 0, 0, 0, 0),
('5000', 23, 0, 0, 0, 0),
('5000', 24, 0, 0, 0, 0),
('5000', 25, 0, 0, 0, 0),
('5000', 26, 0, 4, 0, 0),
('5000', 27, 0, 0, 4, 0),
('5000', 28, 0, 0, 0, 0),
('5000', 29, 0, 0, 0, 0),
('5000', 30, 0, 0, 0, 0),
('5000', 31, 0, 0, 0, 0),
('5000', 32, 0, 0, 0, 0),
('5000', 33, 0, 0, 0, 0),
('5000', 34, 0, 0, 0, 0),
('5000', 35, 0, 0, 0, 0),
('5000', 36, 0, 0, 0, 0),
('5000', 37, 0, 0, 0, 0),
('5000', 38, 0, 0, 0, 0),
('5000', 39, 0, 0, 0, 0),
('5000', 40, 0, 0, 0, 0),
('5000', 41, 0, 0, 0, 0),
('5000', 42, 0, 0, 0, 0),
('5000', 43, 0, 0, 0, 0),
('5000', 44, 0, 0, 0, 0),
('5000', 45, 0, 0, 0, 0),
('5000', 46, 0, 0, 0, 0),
('5100', 14, 0, 0, 0, 0),
('5100', 15, 0, 0, 0, 0),
('5100', 16, 0, 0, 0, 0),
('5100', 17, 0, 0, 0, 0),
('5100', 18, 0, 0, 0, 0),
('5100', 19, 0, 0, 0, 0),
('5100', 20, 0, 0, 0, 0),
('5100', 21, 0, 0, 0, 0),
('5100', 22, 0, 0, 0, 0),
('5100', 23, 0, 0, 0, 0),
('5100', 24, 0, 0, 0, 0),
('5100', 25, 0, 0, 0, 0),
('5100', 26, 0, 0, 0, 0),
('5100', 27, 0, 0, 0, 0),
('5100', 28, 0, 0, 0, 0),
('5100', 29, 0, 0, 0, 0),
('5100', 30, 0, 0, 0, 0),
('5100', 31, 0, 0, 0, 0),
('5100', 32, 0, 0, 0, 0),
('5100', 33, 0, 0, 0, 0),
('5100', 34, 0, 0, 0, 0),
('5100', 35, 0, 0, 0, 0),
('5100', 36, 0, 0, 0, 0),
('5100', 37, 0, 0, 0, 0),
('5100', 38, 0, 0, 0, 0),
('5100', 39, 0, 0, 0, 0),
('5100', 40, 0, 0, 0, 0),
('5100', 41, 0, 0, 0, 0),
('5100', 42, 0, 0, 0, 0),
('5100', 43, 0, 0, 0, 0),
('5100', 44, 0, 0, 0, 0),
('5100', 45, 0, 0, 0, 0),
('5100', 46, 0, 0, 0, 0),
('5200', 14, 0, 0, 0, 0),
('5200', 15, 0, 0, 0, 0),
('5200', 16, 0, 0, 0, 0),
('5200', 17, 0, 0, 0, 0),
('5200', 18, 0, 0, 0, 0),
('5200', 19, 0, 0, 0, 0),
('5200', 20, 0, 0, 0, 0),
('5200', 21, 0, 0, 0, 0),
('5200', 22, 0, 0, 0, 0),
('5200', 23, 0, 0, 0, 0),
('5200', 24, 0, 0, 0, 0),
('5200', 25, 0, 0, 0, 0),
('5200', 26, 0, 0, 0, 0),
('5200', 27, 0, 0, 0, 0),
('5200', 28, 0, 0, 0, 0),
('5200', 29, 0, 0, 0, 0),
('5200', 30, 0, 0, 0, 0),
('5200', 31, 0, 0, 0, 0),
('5200', 32, 0, 0, 0, 0),
('5200', 33, 0, 0, 0, 0),
('5200', 34, 0, 0, 0, 0),
('5200', 35, 0, 0, 0, 0),
('5200', 36, 0, 0, 0, 0),
('5200', 37, 0, 0, 0, 0),
('5200', 38, 0, 0, 0, 0),
('5200', 39, 0, 0, 0, 0),
('5200', 40, 0, 0, 0, 0),
('5200', 41, 0, 0, 0, 0),
('5200', 42, 0, 0, 0, 0),
('5200', 43, 0, 0, 0, 0),
('5200', 44, 0, 0, 0, 0),
('5200', 45, 0, 0, 0, 0),
('5200', 46, 0, 0, 0, 0),
('5500', 14, 0, 0, 0, 0),
('5500', 15, 0, 0, 0, 0),
('5500', 16, 0, 0, 0, 0),
('5500', 17, 0, 0, 0, 0),
('5500', 18, 0, 0, 0, 0),
('5500', 19, 0, 0, 0, 0),
('5500', 20, 0, 0, 0, 0),
('5500', 21, 0, 0, 0, 0),
('5500', 22, 0, 0, 0, 0),
('5500', 23, 0, 0, 0, 0),
('5500', 24, 0, 0, 0, 0),
('5500', 25, 0, 0, 0, 0),
('5500', 26, 0, 0, 0, 0),
('5500', 27, 0, 0, 0, 0),
('5500', 28, 0, 0, 0, 0),
('5500', 29, 0, 0, 0, 0),
('5500', 30, 0, 0, 0, 0),
('5500', 31, 0, 0, 0, 0),
('5500', 32, 0, 150, 0, 0),
('5500', 33, 0, 0, 150, 0),
('5500', 34, 0, 0, 0, 0),
('5500', 35, 0, 0, 0, 0),
('5500', 36, 0, 0, 0, 0),
('5500', 37, 0, 0, 0, 0),
('5500', 38, 0, 0, 0, 0),
('5500', 39, 0, 0, 0, 0),
('5500', 40, 0, 0, 0, 0),
('5500', 41, 0, 0, 0, 0),
('5500', 42, 0, 0, 0, 0),
('5500', 43, 0, 0, 0, 0),
('5500', 44, 0, 0, 0, 0),
('5500', 45, 0, 0, 0, 0),
('5500', 46, 0, 0, 0, 0),
('5600', 14, 0, 0, 0, 0),
('5600', 15, 0, 0, 0, 0),
('5600', 16, 0, 0, 0, 0),
('5600', 17, 0, 0, 0, 0),
('5600', 18, 0, 0, 0, 0),
('5600', 19, 0, 0, 0, 0),
('5600', 20, 0, 0, 0, 0),
('5600', 21, 0, 0, 0, 0),
('5600', 22, 0, 0, 0, 0),
('5600', 23, 0, 0, 0, 0),
('5600', 24, 0, 0, 0, 0),
('5600', 25, 0, 0, 0, 0),
('5600', 26, 0, 0, 0, 0),
('5600', 27, 0, 100, 0, 0),
('5600', 28, 0, 0, 100, 0),
('5600', 29, 0, 0, 0, 0),
('5600', 30, 0, 0, 0, 0),
('5600', 31, 0, 0, 0, 0),
('5600', 32, 0, 0, 0, 0),
('5600', 33, 0, 0, 0, 0),
('5600', 34, 0, 0, 0, 0),
('5600', 35, 0, 0, 0, 0),
('5600', 36, 0, 0, 0, 0),
('5600', 37, 0, 0, 0, 0),
('5600', 38, 0, 0, 0, 0),
('5600', 39, 0, 0, 0, 0),
('5600', 40, 0, 0, 0, 0),
('5600', 41, 0, 0, 0, 0),
('5600', 42, 0, 0, 0, 0),
('5600', 43, 0, 0, 0, 0),
('5600', 44, 0, 0, 0, 0),
('5600', 45, 0, 0, 0, 0),
('5600', 46, 0, 0, 0, 0),
('5700', 14, 0, 0, 0, 0),
('5700', 15, 0, 0, 0, 0),
('5700', 16, 0, 0, 0, 0),
('5700', 17, 0, 0, 0, 0),
('5700', 18, 0, 0, 0, 0),
('5700', 19, 0, 0, 0, 0),
('5700', 20, 0, 0, 0, 0),
('5700', 21, 0, 0, 0, 0),
('5700', 22, 0, 0, 0, 0),
('5700', 23, 0, 0, 0, 0),
('5700', 24, 0, 0, 0, 0),
('5700', 25, 0, 0, 0, 0),
('5700', 26, 0, 37.457, 0, 0),
('5700', 27, 0, 0, 37.457, 0),
('5700', 28, 0, 0, 0, 0),
('5700', 29, 0, 0, 0, 0),
('5700', 30, 0, 0, 0, 0),
('5700', 31, 0, 0, 0, 0),
('5700', 32, 0, 0, 0, 0),
('5700', 33, 0, 0, 0, 0),
('5700', 34, 0, 0, 0, 0),
('5700', 35, 0, 0, 0, 0),
('5700', 36, 0, 0, 0, 0),
('5700', 37, 0, 0, 0, 0),
('5700', 38, 0, 0, 0, 0),
('5700', 39, 0, 0, 0, 0),
('5700', 40, 0, 0, 0, 0),
('5700', 41, 0, 0, 0, 0),
('5700', 42, 0, 0, 0, 0),
('5700', 43, 0, 0, 0, 0),
('5700', 44, 0, 0, 0, 0),
('5700', 45, 0, 0, 0, 0),
('5700', 46, 0, 0, 0, 0),
('5800', 14, 0, 0, 0, 0),
('5800', 15, 0, 0, 0, 0),
('5800', 16, 0, 0, 0, 0),
('5800', 17, 0, 0, 0, 0),
('5800', 18, 0, 0, 0, 0),
('5800', 19, 0, 0, 0, 0),
('5800', 20, 0, 0, 0, 0),
('5800', 21, 0, 0, 0, 0),
('5800', 22, 0, 0, 0, 0),
('5800', 23, 0, 0, 0, 0),
('5800', 24, 0, 0, 0, 0),
('5800', 25, 0, 0, 0, 0),
('5800', 26, 0, 0, 0, 0),
('5800', 27, 0, 0, 0, 0),
('5800', 28, 0, 0, 0, 0),
('5800', 29, 0, 0, 0, 0),
('5800', 30, 0, 0, 0, 0),
('5800', 31, 0, 0, 0, 0),
('5800', 32, 0, 0, 0, 0),
('5800', 33, 0, 0, 0, 0),
('5800', 34, 0, 0, 0, 0),
('5800', 35, 0, 0, 0, 0),
('5800', 36, 0, 0, 0, 0),
('5800', 37, 0, 0, 0, 0),
('5800', 38, 0, 0, 0, 0),
('5800', 39, 0, 0, 0, 0),
('5800', 40, 0, 0, 0, 0),
('5800', 41, 0, 0, 0, 0),
('5800', 42, 0, 0, 0, 0),
('5800', 43, 0, 0, 0, 0),
('5800', 44, 0, 0, 0, 0),
('5800', 45, 0, 0, 0, 0),
('5800', 46, 0, 0, 0, 0),
('5900', 14, 0, 0, 0, 0),
('5900', 15, 0, 0, 0, 0),
('5900', 16, 0, 0, 0, 0),
('5900', 17, 0, 0, 0, 0),
('5900', 18, 0, 0, 0, 0),
('5900', 19, 0, 0, 0, 0),
('5900', 20, 0, 0, 0, 0),
('5900', 21, 0, 0, 0, 0),
('5900', 22, 0, 0, 0, 0),
('5900', 23, 0, 0, 0, 0),
('5900', 24, 0, 0, 0, 0),
('5900', 25, 0, 0, 0, 0),
('5900', 26, 0, 0, 0, 0),
('5900', 27, 0, 0, 0, 0),
('5900', 28, 0, 0, 0, 0),
('5900', 29, 0, 0, 0, 0),
('5900', 30, 0, 0, 0, 0),
('5900', 31, 0, 0, 0, 0),
('5900', 32, 0, 0, 0, 0),
('5900', 33, 0, 0, 0, 0),
('5900', 34, 0, 0, 0, 0),
('5900', 35, 0, 0, 0, 0),
('5900', 36, 0, 0, 0, 0),
('5900', 37, 0, 0, 0, 0),
('5900', 38, 0, 0, 0, 0),
('5900', 39, 0, 0, 0, 0),
('5900', 40, 0, 0, 0, 0),
('5900', 41, 0, 0, 0, 0),
('5900', 42, 0, 0, 0, 0),
('5900', 43, 0, 0, 0, 0),
('5900', 44, 0, 0, 0, 0),
('5900', 45, 0, 0, 0, 0),
('5900', 46, 0, 0, 0, 0),
('6100', 14, 0, 0, 0, 0),
('6100', 15, 0, 0, 0, 0),
('6100', 16, 0, 0, 0, 0),
('6100', 17, 0, 0, 0, 0),
('6100', 18, 0, 0, 0, 0),
('6100', 19, 0, 0, 0, 0),
('6100', 20, 0, 0, 0, 0),
('6100', 21, 0, 0, 0, 0),
('6100', 22, 0, 0, 0, 0),
('6100', 23, 0, 0, 0, 0),
('6100', 24, 0, 0, 0, 0),
('6100', 25, 0, 0, 0, 0),
('6100', 26, 0, 0, 0, 0),
('6100', 27, 0, 0, 0, 0),
('6100', 28, 0, 0, 0, 0),
('6100', 29, 0, 0, 0, 0),
('6100', 30, 0, 0, 0, 0),
('6100', 31, 0, 0, 0, 0),
('6100', 32, 0, 0, 0, 0),
('6100', 33, 0, 0, 0, 0),
('6100', 34, 0, 0, 0, 0),
('6100', 35, 0, 0, 0, 0),
('6100', 36, 0, 0, 0, 0),
('6100', 37, 0, 0, 0, 0),
('6100', 38, 0, 0, 0, 0),
('6100', 39, 0, 0, 0, 0),
('6100', 40, 0, 0, 0, 0),
('6100', 41, 0, 0, 0, 0),
('6100', 42, 0, 0, 0, 0),
('6100', 43, 0, 0, 0, 0),
('6100', 44, 0, 0, 0, 0),
('6100', 45, 0, 0, 0, 0),
('6100', 46, 0, 0, 0, 0),
('6150', 14, 0, 0, 0, 0),
('6150', 15, 0, 0, 0, 0),
('6150', 16, 0, 0, 0, 0),
('6150', 17, 0, 0, 0, 0),
('6150', 18, 0, 0, 0, 0),
('6150', 19, 0, 0, 0, 0),
('6150', 20, 0, 0, 0, 0),
('6150', 21, 0, 0, 0, 0),
('6150', 22, 0, 0, 0, 0),
('6150', 23, 0, 0, 0, 0),
('6150', 24, 0, 0, 0, 0),
('6150', 25, 0, 0, 0, 0),
('6150', 26, 0, 0, 0, 0),
('6150', 27, 0, 0, 0, 0),
('6150', 28, 0, 0, 0, 0),
('6150', 29, 0, 0, 0, 0),
('6150', 30, 0, 0, 0, 0),
('6150', 31, 0, 0, 0, 0),
('6150', 32, 0, 0, 0, 0),
('6150', 33, 0, 0, 0, 0),
('6150', 34, 0, 0, 0, 0),
('6150', 35, 0, 0, 0, 0),
('6150', 36, 0, 0, 0, 0),
('6150', 37, 0, 0, 0, 0),
('6150', 38, 0, 0, 0, 0),
('6150', 39, 0, 0, 0, 0),
('6150', 40, 0, 0, 0, 0),
('6150', 41, 0, 0, 0, 0),
('6150', 42, 0, 0, 0, 0),
('6150', 43, 0, 0, 0, 0),
('6150', 44, 0, 0, 0, 0),
('6150', 45, 0, 0, 0, 0),
('6150', 46, 0, 0, 0, 0),
('6200', 14, 0, 0, 0, 0),
('6200', 15, 0, 0, 0, 0),
('6200', 16, 0, 0, 0, 0),
('6200', 17, 0, 0, 0, 0),
('6200', 18, 0, 0, 0, 0),
('6200', 19, 0, 0, 0, 0),
('6200', 20, 0, 0, 0, 0),
('6200', 21, 0, 0, 0, 0),
('6200', 22, 0, 0, 0, 0),
('6200', 23, 0, 0, 0, 0),
('6200', 24, 0, 0, 0, 0),
('6200', 25, 0, 0, 0, 0),
('6200', 26, 0, 0, 0, 0),
('6200', 27, 0, 0, 0, 0),
('6200', 28, 0, 0, 0, 0),
('6200', 29, 0, 0, 0, 0),
('6200', 30, 0, 0, 0, 0),
('6200', 31, 0, 0, 0, 0),
('6200', 32, 0, 0, 0, 0),
('6200', 33, 0, 0, 0, 0),
('6200', 34, 0, 0, 0, 0),
('6200', 35, 0, 0, 0, 0),
('6200', 36, 0, 0, 0, 0),
('6200', 37, 0, 0, 0, 0),
('6200', 38, 0, 0, 0, 0),
('6200', 39, 0, 0, 0, 0),
('6200', 40, 0, 0, 0, 0),
('6200', 41, 0, 0, 0, 0),
('6200', 42, 0, 0, 0, 0),
('6200', 43, 0, 0, 0, 0),
('6200', 44, 0, 0, 0, 0),
('6200', 45, 0, 0, 0, 0),
('6200', 46, 0, 0, 0, 0),
('6250', 14, 0, 0, 0, 0),
('6250', 15, 0, 0, 0, 0),
('6250', 16, 0, 0, 0, 0),
('6250', 17, 0, 0, 0, 0),
('6250', 18, 0, 0, 0, 0),
('6250', 19, 0, 0, 0, 0),
('6250', 20, 0, 0, 0, 0),
('6250', 21, 0, 0, 0, 0),
('6250', 22, 0, 0, 0, 0),
('6250', 23, 0, 0, 0, 0),
('6250', 24, 0, 0, 0, 0),
('6250', 25, 0, 0, 0, 0),
('6250', 26, 0, 0, 0, 0),
('6250', 27, 0, 0, 0, 0),
('6250', 28, 0, 0, 0, 0),
('6250', 29, 0, 0, 0, 0),
('6250', 30, 0, 0, 0, 0),
('6250', 31, 0, 0, 0, 0),
('6250', 32, 0, 0, 0, 0),
('6250', 33, 0, 0, 0, 0),
('6250', 34, 0, 0, 0, 0),
('6250', 35, 0, 0, 0, 0),
('6250', 36, 0, 0, 0, 0),
('6250', 37, 0, 0, 0, 0),
('6250', 38, 0, 0, 0, 0),
('6250', 39, 0, 0, 0, 0),
('6250', 40, 0, 0, 0, 0),
('6250', 41, 0, 0, 0, 0),
('6250', 42, 0, 0, 0, 0),
('6250', 43, 0, 0, 0, 0),
('6250', 44, 0, 0, 0, 0),
('6250', 45, 0, 0, 0, 0),
('6250', 46, 0, 0, 0, 0),
('6300', 14, 0, 0, 0, 0),
('6300', 15, 0, 0, 0, 0),
('6300', 16, 0, 0, 0, 0),
('6300', 17, 0, 0, 0, 0),
('6300', 18, 0, 0, 0, 0),
('6300', 19, 0, 0, 0, 0),
('6300', 20, 0, 0, 0, 0),
('6300', 21, 0, 0, 0, 0),
('6300', 22, 0, 0, 0, 0),
('6300', 23, 0, 0, 0, 0),
('6300', 24, 0, 0, 0, 0),
('6300', 25, 0, 0, 0, 0),
('6300', 26, 0, 0, 0, 0),
('6300', 27, 0, 0, 0, 0),
('6300', 28, 0, 0, 0, 0),
('6300', 29, 0, 0, 0, 0),
('6300', 30, 0, 0, 0, 0),
('6300', 31, 0, 0, 0, 0),
('6300', 32, 0, 0, 0, 0),
('6300', 33, 0, 0, 0, 0),
('6300', 34, 0, 0, 0, 0),
('6300', 35, 0, 0, 0, 0),
('6300', 36, 0, 0, 0, 0),
('6300', 37, 0, 0, 0, 0),
('6300', 38, 0, 0, 0, 0),
('6300', 39, 0, 0, 0, 0),
('6300', 40, 0, 0, 0, 0),
('6300', 41, 0, 0, 0, 0),
('6300', 42, 0, 0, 0, 0),
('6300', 43, 0, 0, 0, 0),
('6300', 44, 0, 0, 0, 0),
('6300', 45, 0, 0, 0, 0),
('6300', 46, 0, 0, 0, 0),
('6400', 14, 0, 0, 0, 0),
('6400', 15, 0, 0, 0, 0),
('6400', 16, 0, 0, 0, 0),
('6400', 17, 0, 0, 0, 0),
('6400', 18, 0, 0, 0, 0),
('6400', 19, 0, 0, 0, 0),
('6400', 20, 0, 0, 0, 0),
('6400', 21, 0, 0, 0, 0),
('6400', 22, 0, 0, 0, 0),
('6400', 23, 0, 0, 0, 0),
('6400', 24, 0, 0, 0, 0),
('6400', 25, 0, 0, 0, 0),
('6400', 26, 0, 0, 0, 0),
('6400', 27, 0, 0, 0, 0),
('6400', 28, 0, 0, 0, 0),
('6400', 29, 0, 0, 0, 0),
('6400', 30, 0, 0, 0, 0),
('6400', 31, 0, 0, 0, 0),
('6400', 32, 0, 0, 0, 0),
('6400', 33, 0, 0, 0, 0),
('6400', 34, 0, 0, 0, 0),
('6400', 35, 0, 0, 0, 0),
('6400', 36, 0, 0, 0, 0),
('6400', 37, 0, 0, 0, 0),
('6400', 38, 0, 0, 0, 0),
('6400', 39, 0, 0, 0, 0),
('6400', 40, 0, 0, 0, 0),
('6400', 41, 0, 0, 0, 0),
('6400', 42, 0, 0, 0, 0),
('6400', 43, 0, 0, 0, 0),
('6400', 44, 0, 0, 0, 0),
('6400', 45, 0, 0, 0, 0),
('6400', 46, 0, 0, 0, 0),
('6500', 14, 0, 0, 0, 0),
('6500', 15, 0, 0, 0, 0),
('6500', 16, 0, 0, 0, 0),
('6500', 17, 0, 0, 0, 0),
('6500', 18, 0, 0, 0, 0),
('6500', 19, 0, 0, 0, 0),
('6500', 20, 0, 0, 0, 0),
('6500', 21, 0, 0, 0, 0),
('6500', 22, 0, 0, 0, 0),
('6500', 23, 0, 0, 0, 0),
('6500', 24, 0, 0, 0, 0),
('6500', 25, 0, 0, 0, 0),
('6500', 26, 0, 0, 0, 0),
('6500', 27, 0, 0, 0, 0),
('6500', 28, 0, 0, 0, 0),
('6500', 29, 0, 0, 0, 0),
('6500', 30, 0, 0, 0, 0),
('6500', 31, 0, 0, 0, 0),
('6500', 32, 0, 0, 0, 0),
('6500', 33, 0, 0, 0, 0),
('6500', 34, 0, 0, 0, 0),
('6500', 35, 0, 0, 0, 0),
('6500', 36, 0, 0, 0, 0),
('6500', 37, 0, 0, 0, 0),
('6500', 38, 0, 0, 0, 0),
('6500', 39, 0, 0, 0, 0),
('6500', 40, 0, 0, 0, 0),
('6500', 41, 0, 0, 0, 0),
('6500', 42, 0, 0, 0, 0),
('6500', 43, 0, 0, 0, 0),
('6500', 44, 0, 0, 0, 0),
('6500', 45, 0, 0, 0, 0),
('6500', 46, 0, 0, 0, 0),
('6550', 14, 0, 0, 0, 0),
('6550', 15, 0, 0, 0, 0),
('6550', 16, 0, 0, 0, 0),
('6550', 17, 0, 0, 0, 0),
('6550', 18, 0, 0, 0, 0),
('6550', 19, 0, 0, 0, 0),
('6550', 20, 0, 0, 0, 0),
('6550', 21, 0, 0, 0, 0),
('6550', 22, 0, 0, 0, 0),
('6550', 23, 0, 0, 0, 0),
('6550', 24, 0, 0, 0, 0),
('6550', 25, 0, 0, 0, 0),
('6550', 26, 0, 0, 0, 0),
('6550', 27, 0, 0, 0, 0),
('6550', 28, 0, 0, 0, 0),
('6550', 29, 0, 0, 0, 0),
('6550', 30, 0, 0, 0, 0),
('6550', 31, 0, 0, 0, 0),
('6550', 32, 0, 0, 0, 0),
('6550', 33, 0, 0, 0, 0),
('6550', 34, 0, 0, 0, 0),
('6550', 35, 0, 0, 0, 0),
('6550', 36, 0, 0, 0, 0),
('6550', 37, 0, 0, 0, 0),
('6550', 38, 0, 0, 0, 0),
('6550', 39, 0, 0, 0, 0),
('6550', 40, 0, 0, 0, 0),
('6550', 41, 0, 0, 0, 0),
('6550', 42, 0, 0, 0, 0),
('6550', 43, 0, 0, 0, 0),
('6550', 44, 0, 0, 0, 0),
('6550', 45, 0, 0, 0, 0),
('6550', 46, 0, 0, 0, 0),
('6590', 14, 0, 0, 0, 0),
('6590', 15, 0, 0, 0, 0),
('6590', 16, 0, 0, 0, 0),
('6590', 17, 0, 0, 0, 0),
('6590', 18, 0, 0, 0, 0),
('6590', 19, 0, 0, 0, 0),
('6590', 20, 0, 0, 0, 0),
('6590', 21, 0, 0, 0, 0),
('6590', 22, 0, 0, 0, 0),
('6590', 23, 0, 0, 0, 0),
('6590', 24, 0, 0, 0, 0),
('6590', 25, 0, 0, 0, 0),
('6590', 26, 0, 0, 0, 0),
('6590', 27, 0, 0, 0, 0),
('6590', 28, 0, 0, 0, 0),
('6590', 29, 0, 0, 0, 0),
('6590', 30, 0, 0, 0, 0),
('6590', 31, 0, 0, 0, 0),
('6590', 32, 0, 0, 0, 0),
('6590', 33, 0, 0, 0, 0),
('6590', 34, 0, 0, 0, 0),
('6590', 35, 0, 0, 0, 0),
('6590', 36, 0, 0, 0, 0),
('6590', 37, 0, 0, 0, 0),
('6590', 38, 0, 0, 0, 0),
('6590', 39, 0, 0, 0, 0),
('6590', 40, 0, 0, 0, 0),
('6590', 41, 0, 0, 0, 0),
('6590', 42, 0, 0, 0, 0),
('6590', 43, 0, 0, 0, 0),
('6590', 44, 0, 0, 0, 0),
('6590', 45, 0, 0, 0, 0),
('6590', 46, 0, 0, 0, 0),
('6600', 14, 0, 0, 0, 0),
('6600', 15, 0, 0, 0, 0),
('6600', 16, 0, 0, 0, 0),
('6600', 17, 0, 0, 0, 0),
('6600', 18, 0, 0, 0, 0),
('6600', 19, 0, 0, 0, 0),
('6600', 20, 0, 0, 0, 0),
('6600', 21, 0, 0, 0, 0),
('6600', 22, 0, 0, 0, 0),
('6600', 23, 0, 0, 0, 0),
('6600', 24, 0, 0, 0, 0),
('6600', 25, 0, 0, 0, 0),
('6600', 26, 0, 0, 0, 0),
('6600', 27, 0, 10.250000003856, 0, 0),
('6600', 28, 0, 0, 10.250000003856, 0),
('6600', 29, 0, 0, 0, 0),
('6600', 30, 0, 0, 0, 0),
('6600', 31, 0, 0, 0, 0),
('6600', 32, 0, 0, 0, 0),
('6600', 33, 0, 0, 0, 0),
('6600', 34, 0, 0, 0, 0),
('6600', 35, 0, 0, 0, 0),
('6600', 36, 0, 0, 0, 0),
('6600', 37, 0, 0, 0, 0),
('6600', 38, 0, 0, 0, 0),
('6600', 39, 0, 0, 0, 0),
('6600', 40, 0, 0, 0, 0),
('6600', 41, 0, 0, 0, 0),
('6600', 42, 0, 0, 0, 0),
('6600', 43, 0, 0, 0, 0),
('6600', 44, 0, 0, 0, 0),
('6600', 45, 0, 0, 0, 0),
('6600', 46, 0, 0, 0, 0),
('6700', 14, 0, 0, 0, 0),
('6700', 15, 0, 0, 0, 0),
('6700', 16, 0, 0, 0, 0),
('6700', 17, 0, 0, 0, 0),
('6700', 18, 0, 0, 0, 0),
('6700', 19, 0, 0, 0, 0),
('6700', 20, 0, 0, 0, 0),
('6700', 21, 0, 0, 0, 0),
('6700', 22, 0, 0, 0, 0),
('6700', 23, 0, 0, 0, 0),
('6700', 24, 0, 0, 0, 0),
('6700', 25, 0, 0, 0, 0),
('6700', 26, 0, 0, 0, 0),
('6700', 27, 0, 0, 0, 0),
('6700', 28, 0, 0, 0, 0),
('6700', 29, 0, 0, 0, 0),
('6700', 30, 0, 0, 0, 0),
('6700', 31, 0, 0, 0, 0),
('6700', 32, 0, 0, 0, 0),
('6700', 33, 0, 0, 0, 0),
('6700', 34, 0, 0, 0, 0),
('6700', 35, 0, 0, 0, 0),
('6700', 36, 0, 0, 0, 0),
('6700', 37, 0, 0, 0, 0),
('6700', 38, 0, 0, 0, 0),
('6700', 39, 0, 0, 0, 0),
('6700', 40, 0, 0, 0, 0),
('6700', 41, 0, 0, 0, 0),
('6700', 42, 0, 0, 0, 0),
('6700', 43, 0, 0, 0, 0),
('6700', 44, 0, 0, 0, 0),
('6700', 45, 0, 0, 0, 0),
('6700', 46, 0, 0, 0, 0),
('6800', 14, 0, 0, 0, 0),
('6800', 15, 0, 0, 0, 0),
('6800', 16, 0, 0, 0, 0),
('6800', 17, 0, 0, 0, 0),
('6800', 18, 0, 0, 0, 0),
('6800', 19, 0, 0, 0, 0),
('6800', 20, 0, 0, 0, 0),
('6800', 21, 0, 0, 0, 0),
('6800', 22, 0, 0, 0, 0),
('6800', 23, 0, 0, 0, 0),
('6800', 24, 0, 0, 0, 0),
('6800', 25, 0, 0, 0, 0),
('6800', 26, 0, 0, 0, 0),
('6800', 27, 0, 0, 0, 0),
('6800', 28, 0, 0, 0, 0),
('6800', 29, 0, 0, 0, 0),
('6800', 30, 0, 0, 0, 0),
('6800', 31, 0, 0, 0, 0),
('6800', 32, 0, 0, 0, 0),
('6800', 33, 0, 0, 0, 0),
('6800', 34, 0, 0, 0, 0),
('6800', 35, 0, 0, 0, 0),
('6800', 36, 0, 0, 0, 0),
('6800', 37, 0, 0, 0, 0),
('6800', 38, 0, 0, 0, 0),
('6800', 39, 0, 0, 0, 0),
('6800', 40, 0, 0, 0, 0),
('6800', 41, 0, 0, 0, 0),
('6800', 42, 0, 0, 0, 0),
('6800', 43, 0, 0, 0, 0),
('6800', 44, 0, 0, 0, 0),
('6800', 45, 0, 0, 0, 0),
('6800', 46, 0, 0, 0, 0),
('6900', 14, 0, 0, 0, 0),
('6900', 15, 0, 0, 0, 0),
('6900', 16, 0, 0, 0, 0),
('6900', 17, 0, 0, 0, 0),
('6900', 18, 0, 0, 0, 0),
('6900', 19, 0, 0, 0, 0),
('6900', 20, 0, 0, 0, 0),
('6900', 21, 0, 0, 0, 0),
('6900', 22, 0, 0, 0, 0),
('6900', 23, 0, 0, 0, 0),
('6900', 24, 0, 0, 0, 0),
('6900', 25, 0, 0, 0, 0),
('6900', 26, 0, 0, 0, 0),
('6900', 27, 0, 0, 0, 0),
('6900', 28, 0, 0, 0, 0),
('6900', 29, 0, 0, 0, 0),
('6900', 30, 0, 0, 0, 0),
('6900', 31, 0, 0, 0, 0),
('6900', 32, 0, 0, 0, 0),
('6900', 33, 0, 0, 0, 0),
('6900', 34, 0, 0, 0, 0),
('6900', 35, 0, 0, 0, 0),
('6900', 36, 0, 0, 0, 0),
('6900', 37, 0, 0, 0, 0),
('6900', 38, 0, 0, 0, 0),
('6900', 39, 0, 0, 0, 0),
('6900', 40, 0, 0, 0, 0),
('6900', 41, 0, 0, 0, 0),
('6900', 42, 0, 0, 0, 0),
('6900', 43, 0, 0, 0, 0),
('6900', 44, 0, 0, 0, 0),
('6900', 45, 0, 0, 0, 0),
('6900', 46, 0, 0, 0, 0),
('7020', 14, 0, 0, 0, 0),
('7020', 15, 0, 0, 0, 0),
('7020', 16, 0, 0, 0, 0),
('7020', 17, 0, 0, 0, 0),
('7020', 18, 0, 0, 0, 0),
('7020', 19, 0, 0, 0, 0),
('7020', 20, 0, 0, 0, 0),
('7020', 21, 0, 0, 0, 0),
('7020', 22, 0, 0, 0, 0),
('7020', 23, 0, 0, 0, 0),
('7020', 24, 0, 0, 0, 0),
('7020', 25, 0, 0, 0, 0),
('7020', 26, 0, 0, 0, 0),
('7020', 27, 0, 0, 0, 0),
('7020', 28, 0, 0, 0, 0),
('7020', 29, 0, 0, 0, 0),
('7020', 30, 0, 0, 0, 0),
('7020', 31, 0, 0, 0, 0),
('7020', 32, 0, 0, 0, 0),
('7020', 33, 0, 0, 0, 0),
('7020', 34, 0, 0, 0, 0),
('7020', 35, 0, 0, 0, 0),
('7020', 36, 0, 0, 0, 0),
('7020', 37, 0, 0, 0, 0),
('7020', 38, 0, 0, 0, 0),
('7020', 39, 0, 0, 0, 0),
('7020', 40, 0, 0, 0, 0),
('7020', 41, 0, 0, 0, 0),
('7020', 42, 0, 0, 0, 0),
('7020', 43, 0, 0, 0, 0),
('7020', 44, 0, 0, 0, 0),
('7020', 45, 0, 0, 0, 0),
('7020', 46, 0, 0, 0, 0),
('7030', 14, 0, 0, 0, 0),
('7030', 15, 0, 0, 0, 0),
('7030', 16, 0, 0, 0, 0),
('7030', 17, 0, 0, 0, 0),
('7030', 18, 0, 0, 0, 0),
('7030', 19, 0, 0, 0, 0),
('7030', 20, 0, 0, 0, 0),
('7030', 21, 0, 0, 0, 0),
('7030', 22, 0, 0, 0, 0),
('7030', 23, 0, 0, 0, 0),
('7030', 24, 0, 0, 0, 0),
('7030', 25, 0, 0, 0, 0),
('7030', 26, 0, 0, 0, 0),
('7030', 27, 0, 0, 0, 0),
('7030', 28, 0, 0, 0, 0),
('7030', 29, 0, 0, 0, 0),
('7030', 30, 0, 0, 0, 0),
('7030', 31, 0, 0, 0, 0),
('7030', 32, 0, 0, 0, 0),
('7030', 33, 0, 0, 0, 0),
('7030', 34, 0, 0, 0, 0),
('7030', 35, 0, 0, 0, 0),
('7030', 36, 0, 0, 0, 0),
('7030', 37, 0, 0, 0, 0),
('7030', 38, 0, 0, 0, 0),
('7030', 39, 0, 0, 0, 0),
('7030', 40, 0, 0, 0, 0),
('7030', 41, 0, 0, 0, 0),
('7030', 42, 0, 0, 0, 0),
('7030', 43, 0, 0, 0, 0),
('7030', 44, 0, 0, 0, 0),
('7030', 45, 0, 0, 0, 0),
('7030', 46, 0, 0, 0, 0),
('7040', 14, 0, 0, 0, 0),
('7040', 15, 0, 0, 0, 0),
('7040', 16, 0, 0, 0, 0),
('7040', 17, 0, 0, 0, 0),
('7040', 18, 0, 0, 0, 0),
('7040', 19, 0, 0, 0, 0),
('7040', 20, 0, 0, 0, 0),
('7040', 21, 0, 0, 0, 0),
('7040', 22, 0, 0, 0, 0),
('7040', 23, 0, 0, 0, 0),
('7040', 24, 0, 0, 0, 0),
('7040', 25, 0, 0, 0, 0),
('7040', 26, 0, 0, 0, 0),
('7040', 27, 0, 0, 0, 0),
('7040', 28, 0, 0, 0, 0),
('7040', 29, 0, 0, 0, 0),
('7040', 30, 0, 0, 0, 0),
('7040', 31, 0, 0, 0, 0),
('7040', 32, 0, 0, 0, 0),
('7040', 33, 0, 0, 0, 0),
('7040', 34, 0, 0, 0, 0),
('7040', 35, 0, 0, 0, 0),
('7040', 36, 0, 0, 0, 0),
('7040', 37, 0, 0, 0, 0),
('7040', 38, 0, 0, 0, 0),
('7040', 39, 0, 0, 0, 0),
('7040', 40, 0, 0, 0, 0),
('7040', 41, 0, 0, 0, 0),
('7040', 42, 0, 0, 0, 0),
('7040', 43, 0, 0, 0, 0),
('7040', 44, 0, 0, 0, 0),
('7040', 45, 0, 0, 0, 0),
('7040', 46, 0, 0, 0, 0),
('7050', 14, 0, 0, 0, 0),
('7050', 15, 0, 0, 0, 0),
('7050', 16, 0, 0, 0, 0),
('7050', 17, 0, 0, 0, 0),
('7050', 18, 0, 0, 0, 0),
('7050', 19, 0, 0, 0, 0),
('7050', 20, 0, 0, 0, 0),
('7050', 21, 0, 0, 0, 0),
('7050', 22, 0, 0, 0, 0),
('7050', 23, 0, 0, 0, 0),
('7050', 24, 0, 0, 0, 0),
('7050', 25, 0, 0, 0, 0),
('7050', 26, 0, 0, 0, 0),
('7050', 27, 0, 0, 0, 0),
('7050', 28, 0, 0, 0, 0),
('7050', 29, 0, 0, 0, 0),
('7050', 30, 0, 0, 0, 0),
('7050', 31, 0, 0, 0, 0),
('7050', 32, 0, 0, 0, 0),
('7050', 33, 0, 0, 0, 0),
('7050', 34, 0, 0, 0, 0),
('7050', 35, 0, 0, 0, 0),
('7050', 36, 0, 0, 0, 0),
('7050', 37, 0, 0, 0, 0),
('7050', 38, 0, 0, 0, 0),
('7050', 39, 0, 0, 0, 0),
('7050', 40, 0, 0, 0, 0),
('7050', 41, 0, 0, 0, 0),
('7050', 42, 0, 0, 0, 0),
('7050', 43, 0, 0, 0, 0),
('7050', 44, 0, 0, 0, 0),
('7050', 45, 0, 0, 0, 0),
('7050', 46, 0, 0, 0, 0),
('7060', 14, 0, 0, 0, 0),
('7060', 15, 0, 0, 0, 0),
('7060', 16, 0, 0, 0, 0),
('7060', 17, 0, 0, 0, 0),
('7060', 18, 0, 0, 0, 0),
('7060', 19, 0, 0, 0, 0),
('7060', 20, 0, 0, 0, 0),
('7060', 21, 0, 0, 0, 0),
('7060', 22, 0, 0, 0, 0),
('7060', 23, 0, 0, 0, 0),
('7060', 24, 0, 0, 0, 0),
('7060', 25, 0, 0, 0, 0),
('7060', 26, 0, 0, 0, 0),
('7060', 27, 0, 0, 0, 0),
('7060', 28, 0, 0, 0, 0),
('7060', 29, 0, 0, 0, 0),
('7060', 30, 0, 0, 0, 0),
('7060', 31, 0, 0, 0, 0),
('7060', 32, 0, 0, 0, 0),
('7060', 33, 0, 0, 0, 0),
('7060', 34, 0, 0, 0, 0),
('7060', 35, 0, 0, 0, 0),
('7060', 36, 0, 0, 0, 0),
('7060', 37, 0, 0, 0, 0),
('7060', 38, 0, 0, 0, 0),
('7060', 39, 0, 0, 0, 0),
('7060', 40, 0, 0, 0, 0),
('7060', 41, 0, 0, 0, 0),
('7060', 42, 0, 0, 0, 0),
('7060', 43, 0, 0, 0, 0),
('7060', 44, 0, 0, 0, 0),
('7060', 45, 0, 0, 0, 0),
('7060', 46, 0, 0, 0, 0),
('7070', 14, 0, 0, 0, 0),
('7070', 15, 0, 0, 0, 0),
('7070', 16, 0, 0, 0, 0),
('7070', 17, 0, 0, 0, 0),
('7070', 18, 0, 0, 0, 0),
('7070', 19, 0, 0, 0, 0),
('7070', 20, 0, 0, 0, 0),
('7070', 21, 0, 0, 0, 0),
('7070', 22, 0, 0, 0, 0),
('7070', 23, 0, 0, 0, 0),
('7070', 24, 0, 0, 0, 0),
('7070', 25, 0, 0, 0, 0),
('7070', 26, 0, 0, 0, 0),
('7070', 27, 0, 0, 0, 0),
('7070', 28, 0, 0, 0, 0),
('7070', 29, 0, 0, 0, 0),
('7070', 30, 0, 0, 0, 0),
('7070', 31, 0, 0, 0, 0),
('7070', 32, 0, 0, 0, 0),
('7070', 33, 0, 0, 0, 0),
('7070', 34, 0, 0, 0, 0),
('7070', 35, 0, 0, 0, 0),
('7070', 36, 0, 0, 0, 0),
('7070', 37, 0, 0, 0, 0),
('7070', 38, 0, 0, 0, 0),
('7070', 39, 0, 0, 0, 0),
('7070', 40, 0, 0, 0, 0),
('7070', 41, 0, 0, 0, 0),
('7070', 42, 0, 0, 0, 0),
('7070', 43, 0, 0, 0, 0),
('7070', 44, 0, 0, 0, 0),
('7070', 45, 0, 0, 0, 0),
('7070', 46, 0, 0, 0, 0),
('7080', 14, 0, 0, 0, 0),
('7080', 15, 0, 0, 0, 0),
('7080', 16, 0, 0, 0, 0),
('7080', 17, 0, 0, 0, 0),
('7080', 18, 0, 0, 0, 0),
('7080', 19, 0, 0, 0, 0),
('7080', 20, 0, 0, 0, 0),
('7080', 21, 0, 0, 0, 0),
('7080', 22, 0, 0, 0, 0),
('7080', 23, 0, 0, 0, 0),
('7080', 24, 0, 0, 0, 0),
('7080', 25, 0, 0, 0, 0),
('7080', 26, 0, 0, 0, 0),
('7080', 27, 0, 0, 0, 0),
('7080', 28, 0, 0, 0, 0),
('7080', 29, 0, 0, 0, 0),
('7080', 30, 0, 0, 0, 0),
('7080', 31, 0, 0, 0, 0),
('7080', 32, 0, 0, 0, 0),
('7080', 33, 0, 0, 0, 0),
('7080', 34, 0, 0, 0, 0),
('7080', 35, 0, 0, 0, 0),
('7080', 36, 0, 0, 0, 0),
('7080', 37, 0, 0, 0, 0),
('7080', 38, 0, 0, 0, 0),
('7080', 39, 0, 0, 0, 0),
('7080', 40, 0, 0, 0, 0),
('7080', 41, 0, 0, 0, 0),
('7080', 42, 0, 0, 0, 0),
('7080', 43, 0, 0, 0, 0),
('7080', 44, 0, 0, 0, 0),
('7080', 45, 0, 0, 0, 0),
('7080', 46, 0, 0, 0, 0),
('7090', 14, 0, 0, 0, 0),
('7090', 15, 0, 0, 0, 0),
('7090', 16, 0, 0, 0, 0),
('7090', 17, 0, 0, 0, 0),
('7090', 18, 0, 0, 0, 0),
('7090', 19, 0, 0, 0, 0),
('7090', 20, 0, 0, 0, 0),
('7090', 21, 0, 0, 0, 0),
('7090', 22, 0, 0, 0, 0),
('7090', 23, 0, 0, 0, 0),
('7090', 24, 0, 0, 0, 0),
('7090', 25, 0, 0, 0, 0),
('7090', 26, 0, 0, 0, 0),
('7090', 27, 0, 95.250000035814, 0, 0),
('7090', 28, 0, 0, 95.250000035814, 0),
('7090', 29, 0, 0, 0, 0),
('7090', 30, 0, 0, 0, 0),
('7090', 31, 0, 0, 0, 0),
('7090', 32, 0, 0, 0, 0),
('7090', 33, 0, 0, 0, 0),
('7090', 34, 0, 0, 0, 0),
('7090', 35, 0, 0, 0, 0),
('7090', 36, 0, 0, 0, 0),
('7090', 37, 0, 0, 0, 0),
('7090', 38, 0, 0, 0, 0),
('7090', 39, 0, 0, 0, 0),
('7090', 40, 0, 0, 0, 0),
('7090', 41, 0, 0, 0, 0),
('7090', 42, 0, 0, 0, 0),
('7090', 43, 0, 0, 0, 0),
('7090', 44, 0, 0, 0, 0),
('7090', 45, 0, 0, 0, 0),
('7090', 46, 0, 0, 0, 0),
('7100', 14, 0, 0, 0, 0),
('7100', 15, 0, 0, 0, 0),
('7100', 16, 0, 0, 0, 0),
('7100', 17, 0, 0, 0, 0),
('7100', 18, 0, 0, 0, 0),
('7100', 19, 0, 0, 0, 0),
('7100', 20, 0, 0, 0, 0),
('7100', 21, 0, 0, 0, 0),
('7100', 22, 0, 0, 0, 0),
('7100', 23, 0, 0, 0, 0),
('7100', 24, 0, 0, 0, 0),
('7100', 25, 0, 0, 0, 0),
('7100', 26, 0, 0, 0, 0),
('7100', 27, 0, 0, 0, 0),
('7100', 28, 0, 0, 0, 0),
('7100', 29, 0, 0, 0, 0),
('7100', 30, 0, 0, 0, 0),
('7100', 31, 0, 0, 0, 0),
('7100', 32, 0, 0, 0, 0),
('7100', 33, 0, 0, 0, 0),
('7100', 34, 0, 0, 0, 0),
('7100', 35, 0, 0, 0, 0),
('7100', 36, 0, 0, 0, 0),
('7100', 37, 0, 0, 0, 0),
('7100', 38, 0, 0, 0, 0),
('7100', 39, 0, 0, 0, 0),
('7100', 40, 0, 0, 0, 0),
('7100', 41, 0, 0, 0, 0),
('7100', 42, 0, 0, 0, 0),
('7100', 43, 0, 0, 0, 0),
('7100', 44, 0, 0, 0, 0),
('7100', 45, 0, 0, 0, 0),
('7100', 46, 0, 0, 0, 0),
('7150', 14, 0, 0, 0, 0),
('7150', 15, 0, 0, 0, 0),
('7150', 16, 0, 0, 0, 0),
('7150', 17, 0, 0, 0, 0),
('7150', 18, 0, 0, 0, 0),
('7150', 19, 0, 0, 0, 0),
('7150', 20, 0, 0, 0, 0),
('7150', 21, 0, 0, 0, 0),
('7150', 22, 0, 0, 0, 0),
('7150', 23, 0, 0, 0, 0),
('7150', 24, 0, 0, 0, 0),
('7150', 25, 0, 0, 0, 0),
('7150', 26, 0, 0, 0, 0),
('7150', 27, 0, 0, 0, 0),
('7150', 28, 0, 0, 0, 0),
('7150', 29, 0, 0, 0, 0),
('7150', 30, 0, 0, 0, 0),
('7150', 31, 0, 0, 0, 0),
('7150', 32, 0, 0, 0, 0),
('7150', 33, 0, 0, 0, 0),
('7150', 34, 0, 0, 0, 0),
('7150', 35, 0, 0, 0, 0),
('7150', 36, 0, 0, 0, 0),
('7150', 37, 0, 0, 0, 0),
('7150', 38, 0, 0, 0, 0),
('7150', 39, 0, 0, 0, 0),
('7150', 40, 0, 0, 0, 0),
('7150', 41, 0, 0, 0, 0),
('7150', 42, 0, 0, 0, 0),
('7150', 43, 0, 0, 0, 0),
('7150', 44, 0, 0, 0, 0),
('7150', 45, 0, 0, 0, 0),
('7150', 46, 0, 0, 0, 0),
('7200', 14, 0, 0, 0, 0),
('7200', 15, 0, 0, 0, 0),
('7200', 16, 0, 0, 0, 0),
('7200', 17, 0, 0, 0, 0),
('7200', 18, 0, 0, 0, 0),
('7200', 19, 0, 0, 0, 0),
('7200', 20, 0, 0, 0, 0),
('7200', 21, 0, 0, 0, 0),
('7200', 22, 0, 0, 0, 0),
('7200', 23, 0, 0, 0, 0),
('7200', 24, 0, 0, 0, 0),
('7200', 25, 0, 0, 0, 0),
('7200', 26, 0, 0, 0, 0),
('7200', 27, 0, 0, 0, 0),
('7200', 28, 0, 0, 0, 0),
('7200', 29, 0, 0, 0, 0),
('7200', 30, 0, 0, 0, 0),
('7200', 31, 0, 0, 0, 0),
('7200', 32, 0, 0, 0, 0),
('7200', 33, 0, 0, 0, 0),
('7200', 34, 0, 0, 0, 0),
('7200', 35, 0, 0, 0, 0),
('7200', 36, 0, 0, 0, 0),
('7200', 37, 0, 0, 0, 0),
('7200', 38, 0, 0, 0, 0),
('7200', 39, 0, 0, 0, 0),
('7200', 40, 0, 0, 0, 0),
('7200', 41, 0, 0, 0, 0),
('7200', 42, 0, 0, 0, 0),
('7200', 43, 0, 0, 0, 0),
('7200', 44, 0, 0, 0, 0),
('7200', 45, 0, 0, 0, 0),
('7200', 46, 0, 0, 0, 0),
('7210', 14, 0, 0, 0, 0),
('7210', 15, 0, 0, 0, 0),
('7210', 16, 0, 0, 0, 0),
('7210', 17, 0, 0, 0, 0),
('7210', 18, 0, 0, 0, 0),
('7210', 19, 0, 0, 0, 0),
('7210', 20, 0, 0, 0, 0),
('7210', 21, 0, 0, 0, 0),
('7210', 22, 0, 0, 0, 0),
('7210', 23, 0, 0, 0, 0),
('7210', 24, 0, 0, 0, 0),
('7210', 25, 0, 0, 0, 0),
('7210', 26, 0, 0, 0, 0),
('7210', 27, 0, 0, 0, 0),
('7210', 28, 0, 0, 0, 0),
('7210', 29, 0, 0, 0, 0),
('7210', 30, 0, 0, 0, 0),
('7210', 31, 0, 0, 0, 0),
('7210', 32, 0, 0, 0, 0),
('7210', 33, 0, 0, 0, 0),
('7210', 34, 0, 0, 0, 0),
('7210', 35, 0, 0, 0, 0),
('7210', 36, 0, 0, 0, 0),
('7210', 37, 0, 0, 0, 0),
('7210', 38, 0, 0, 0, 0),
('7210', 39, 0, 0, 0, 0),
('7210', 40, 0, 0, 0, 0),
('7210', 41, 0, 0, 0, 0),
('7210', 42, 0, 0, 0, 0),
('7210', 43, 0, 0, 0, 0),
('7210', 44, 0, 0, 0, 0),
('7210', 45, 0, 0, 0, 0),
('7210', 46, 0, 0, 0, 0),
('7220', 14, 0, 0, 0, 0),
('7220', 15, 0, 0, 0, 0),
('7220', 16, 0, 0, 0, 0),
('7220', 17, 0, 0, 0, 0),
('7220', 18, 0, 0, 0, 0),
('7220', 19, 0, 0, 0, 0),
('7220', 20, 0, 0, 0, 0),
('7220', 21, 0, 0, 0, 0),
('7220', 22, 0, 0, 0, 0),
('7220', 23, 0, 0, 0, 0),
('7220', 24, 0, 0, 0, 0),
('7220', 25, 0, 0, 0, 0),
('7220', 26, 0, 0, 0, 0),
('7220', 27, 0, 0, 0, 0),
('7220', 28, 0, 0, 0, 0),
('7220', 29, 0, 0, 0, 0),
('7220', 30, 0, 0, 0, 0),
('7220', 31, 0, 0, 0, 0),
('7220', 32, 0, 0, 0, 0),
('7220', 33, 0, 0, 0, 0),
('7220', 34, 0, 0, 0, 0),
('7220', 35, 0, 0, 0, 0),
('7220', 36, 0, 0, 0, 0),
('7220', 37, 0, 0, 0, 0),
('7220', 38, 0, 0, 0, 0),
('7220', 39, 0, 0, 0, 0),
('7220', 40, 0, 0, 0, 0),
('7220', 41, 0, 0, 0, 0),
('7220', 42, 0, 0, 0, 0),
('7220', 43, 0, 0, 0, 0),
('7220', 44, 0, 0, 0, 0),
('7220', 45, 0, 0, 0, 0),
('7220', 46, 0, 0, 0, 0),
('7230', 14, 0, 0, 0, 0),
('7230', 15, 0, 0, 0, 0),
('7230', 16, 0, 0, 0, 0),
('7230', 17, 0, 0, 0, 0),
('7230', 18, 0, 0, 0, 0),
('7230', 19, 0, 0, 0, 0),
('7230', 20, 0, 0, 0, 0),
('7230', 21, 0, 0, 0, 0),
('7230', 22, 0, 0, 0, 0),
('7230', 23, 0, 0, 0, 0),
('7230', 24, 0, 0, 0, 0),
('7230', 25, 0, 0, 0, 0),
('7230', 26, 0, 0, 0, 0),
('7230', 27, 0, 0, 0, 0),
('7230', 28, 0, 0, 0, 0),
('7230', 29, 0, 0, 0, 0),
('7230', 30, 0, 0, 0, 0),
('7230', 31, 0, 0, 0, 0),
('7230', 32, 0, 0, 0, 0),
('7230', 33, 0, 0, 0, 0),
('7230', 34, 0, 0, 0, 0),
('7230', 35, 0, 0, 0, 0),
('7230', 36, 0, 0, 0, 0),
('7230', 37, 0, 0, 0, 0),
('7230', 38, 0, 0, 0, 0),
('7230', 39, 0, 0, 0, 0),
('7230', 40, 0, 0, 0, 0),
('7230', 41, 0, 0, 0, 0),
('7230', 42, 0, 0, 0, 0),
('7230', 43, 0, 0, 0, 0),
('7230', 44, 0, 0, 0, 0),
('7230', 45, 0, 0, 0, 0),
('7230', 46, 0, 0, 0, 0),
('7240', 14, 0, 0, 0, 0),
('7240', 15, 0, 0, 0, 0),
('7240', 16, 0, 0, 0, 0),
('7240', 17, 0, 0, 0, 0),
('7240', 18, 0, 0, 0, 0),
('7240', 19, 0, 0, 0, 0),
('7240', 20, 0, 0, 0, 0),
('7240', 21, 0, 0, 0, 0),
('7240', 22, 0, 0, 0, 0),
('7240', 23, 0, 0, 0, 0),
('7240', 24, 0, 0, 0, 0),
('7240', 25, 0, 0, 0, 0),
('7240', 26, 0, 0, 0, 0),
('7240', 27, 0, 0, 0, 0),
('7240', 28, 0, 0, 0, 0),
('7240', 29, 0, 0, 0, 0),
('7240', 30, 0, 0, 0, 0),
('7240', 31, 0, 0, 0, 0),
('7240', 32, 0, 0, 0, 0),
('7240', 33, 0, 0, 0, 0),
('7240', 34, 0, 0, 0, 0),
('7240', 35, 0, 0, 0, 0),
('7240', 36, 0, 0, 0, 0),
('7240', 37, 0, 0, 0, 0),
('7240', 38, 0, 0, 0, 0),
('7240', 39, 0, 0, 0, 0),
('7240', 40, 0, 0, 0, 0),
('7240', 41, 0, 0, 0, 0),
('7240', 42, 0, 0, 0, 0),
('7240', 43, 0, 0, 0, 0),
('7240', 44, 0, 0, 0, 0),
('7240', 45, 0, 0, 0, 0),
('7240', 46, 0, 0, 0, 0),
('7260', 14, 0, 0, 0, 0),
('7260', 15, 0, 0, 0, 0),
('7260', 16, 0, 0, 0, 0),
('7260', 17, 0, 0, 0, 0),
('7260', 18, 0, 0, 0, 0),
('7260', 19, 0, 0, 0, 0),
('7260', 20, 0, 0, 0, 0),
('7260', 21, 0, 0, 0, 0),
('7260', 22, 0, 0, 0, 0),
('7260', 23, 0, 0, 0, 0),
('7260', 24, 0, 0, 0, 0),
('7260', 25, 0, 0, 0, 0),
('7260', 26, 0, 0, 0, 0),
('7260', 27, 0, 0, 0, 0),
('7260', 28, 0, 0, 0, 0),
('7260', 29, 0, 0, 0, 0),
('7260', 30, 0, 0, 0, 0),
('7260', 31, 0, 0, 0, 0),
('7260', 32, 0, 0, 0, 0),
('7260', 33, 0, 0, 0, 0),
('7260', 34, 0, 0, 0, 0),
('7260', 35, 0, 0, 0, 0),
('7260', 36, 0, 0, 0, 0),
('7260', 37, 0, 0, 0, 0),
('7260', 38, 0, 0, 0, 0),
('7260', 39, 0, 0, 0, 0),
('7260', 40, 0, 0, 0, 0),
('7260', 41, 0, 0, 0, 0),
('7260', 42, 0, 0, 0, 0),
('7260', 43, 0, 0, 0, 0),
('7260', 44, 0, 0, 0, 0),
('7260', 45, 0, 0, 0, 0),
('7260', 46, 0, 0, 0, 0),
('7280', 14, 0, 0, 0, 0),
('7280', 15, 0, 0, 0, 0),
('7280', 16, 0, 0, 0, 0),
('7280', 17, 0, 0, 0, 0),
('7280', 18, 0, 0, 0, 0),
('7280', 19, 0, 0, 0, 0),
('7280', 20, 0, 0, 0, 0),
('7280', 21, 0, 0, 0, 0),
('7280', 22, 0, 0, 0, 0),
('7280', 23, 0, 0, 0, 0),
('7280', 24, 0, 0, 0, 0),
('7280', 25, 0, 0, 0, 0),
('7280', 26, 0, 0, 0, 0),
('7280', 27, 0, 0, 0, 0),
('7280', 28, 0, 0, 0, 0),
('7280', 29, 0, 0, 0, 0),
('7280', 30, 0, 0, 0, 0),
('7280', 31, 0, 0, 0, 0),
('7280', 32, 0, 0, 0, 0),
('7280', 33, 0, 0, 0, 0),
('7280', 34, 0, 0, 0, 0),
('7280', 35, 0, 0, 0, 0),
('7280', 36, 0, 0, 0, 0),
('7280', 37, 0, 0, 0, 0),
('7280', 38, 0, 0, 0, 0),
('7280', 39, 0, 0, 0, 0),
('7280', 40, 0, 0, 0, 0),
('7280', 41, 0, 0, 0, 0),
('7280', 42, 0, 0, 0, 0),
('7280', 43, 0, 0, 0, 0),
('7280', 44, 0, 0, 0, 0),
('7280', 45, 0, 0, 0, 0),
('7280', 46, 0, 0, 0, 0),
('7300', 14, 0, 0, 0, 0),
('7300', 15, 0, 0, 0, 0),
('7300', 16, 0, 0, 0, 0),
('7300', 17, 0, 0, 0, 0),
('7300', 18, 0, 0, 0, 0),
('7300', 19, 0, 0, 0, 0),
('7300', 20, 0, 0, 0, 0),
('7300', 21, 0, 0, 0, 0),
('7300', 22, 0, 0, 0, 0),
('7300', 23, 0, 0, 0, 0),
('7300', 24, 0, 0, 0, 0),
('7300', 25, 0, 0, 0, 0),
('7300', 26, 0, 0, 0, 0),
('7300', 27, 0, 0, 0, 0),
('7300', 28, 0, 0, 0, 0),
('7300', 29, 0, 0, 0, 0),
('7300', 30, 0, 0, 0, 0),
('7300', 31, 0, 0, 0, 0),
('7300', 32, 0, 0, 0, 0),
('7300', 33, 0, 0, 0, 0),
('7300', 34, 0, 0, 0, 0),
('7300', 35, 0, 0, 0, 0),
('7300', 36, 0, 0, 0, 0),
('7300', 37, 0, 0, 0, 0),
('7300', 38, 0, 0, 0, 0),
('7300', 39, 0, 0, 0, 0),
('7300', 40, 0, 0, 0, 0),
('7300', 41, 0, 0, 0, 0),
('7300', 42, 0, 0, 0, 0),
('7300', 43, 0, 0, 0, 0),
('7300', 44, 0, 0, 0, 0),
('7300', 45, 0, 0, 0, 0),
('7300', 46, 0, 0, 0, 0),
('7350', 14, 0, 0, 0, 0),
('7350', 15, 0, 0, 0, 0),
('7350', 16, 0, 0, 0, 0),
('7350', 17, 0, 0, 0, 0),
('7350', 18, 0, 0, 0, 0),
('7350', 19, 0, 0, 0, 0),
('7350', 20, 0, 0, 0, 0),
('7350', 21, 0, 0, 0, 0),
('7350', 22, 0, 0, 0, 0),
('7350', 23, 0, 0, 0, 0),
('7350', 24, 0, 0, 0, 0),
('7350', 25, 0, 0, 0, 0),
('7350', 26, 0, 0, 0, 0),
('7350', 27, 0, 0, 0, 0),
('7350', 28, 0, 0, 0, 0),
('7350', 29, 0, 0, 0, 0),
('7350', 30, 0, 0, 0, 0),
('7350', 31, 0, 0, 0, 0),
('7350', 32, 0, 0, 0, 0),
('7350', 33, 0, 0, 0, 0),
('7350', 34, 0, 0, 0, 0),
('7350', 35, 0, 0, 0, 0),
('7350', 36, 0, 0, 0, 0),
('7350', 37, 0, 0, 0, 0),
('7350', 38, 0, 0, 0, 0),
('7350', 39, 0, 0, 0, 0),
('7350', 40, 0, 0, 0, 0),
('7350', 41, 0, 0, 0, 0),
('7350', 42, 0, 0, 0, 0),
('7350', 43, 0, 0, 0, 0),
('7350', 44, 0, 0, 0, 0),
('7350', 45, 0, 0, 0, 0),
('7350', 46, 0, 0, 0, 0),
('7390', 14, 0, 0, 0, 0),
('7390', 15, 0, 0, 0, 0),
('7390', 16, 0, 0, 0, 0),
('7390', 17, 0, 0, 0, 0),
('7390', 18, 0, 0, 0, 0),
('7390', 19, 0, 0, 0, 0),
('7390', 20, 0, 0, 0, 0),
('7390', 21, 0, 0, 0, 0),
('7390', 22, 0, 0, 0, 0),
('7390', 23, 0, 0, 0, 0),
('7390', 24, 0, 0, 0, 0),
('7390', 25, 0, 0, 0, 0),
('7390', 26, 0, 0, 0, 0),
('7390', 27, 0, 0, 0, 0),
('7390', 28, 0, 0, 0, 0),
('7390', 29, 0, 0, 0, 0),
('7390', 30, 0, 0, 0, 0),
('7390', 31, 0, 0, 0, 0),
('7390', 32, 0, 0, 0, 0),
('7390', 33, 0, 0, 0, 0),
('7390', 34, 0, 0, 0, 0),
('7390', 35, 0, 0, 0, 0),
('7390', 36, 0, 0, 0, 0),
('7390', 37, 0, 0, 0, 0),
('7390', 38, 0, 0, 0, 0),
('7390', 39, 0, 0, 0, 0),
('7390', 40, 0, 0, 0, 0),
('7390', 41, 0, 0, 0, 0),
('7390', 42, 0, 0, 0, 0),
('7390', 43, 0, 0, 0, 0),
('7390', 44, 0, 0, 0, 0),
('7390', 45, 0, 0, 0, 0),
('7390', 46, 0, 0, 0, 0),
('7400', 14, 0, 0, 0, 0),
('7400', 15, 0, 0, 0, 0),
('7400', 16, 0, 0, 0, 0),
('7400', 17, 0, 0, 0, 0),
('7400', 18, 0, 0, 0, 0),
('7400', 19, 0, 0, 0, 0),
('7400', 20, 0, 0, 0, 0),
('7400', 21, 0, 0, 0, 0),
('7400', 22, 0, 0, 0, 0),
('7400', 23, 0, 0, 0, 0),
('7400', 24, 0, 0, 0, 0),
('7400', 25, 0, 0, 0, 0),
('7400', 26, 0, 0, 0, 0),
('7400', 27, 0, 0, 0, 0),
('7400', 28, 0, 0, 0, 0),
('7400', 29, 0, 0, 0, 0),
('7400', 30, 0, 0, 0, 0),
('7400', 31, 0, 0, 0, 0),
('7400', 32, 0, 0, 0, 0),
('7400', 33, 0, 0, 0, 0),
('7400', 34, 0, 0, 0, 0),
('7400', 35, 0, 0, 0, 0),
('7400', 36, 0, 0, 0, 0),
('7400', 37, 0, 0, 0, 0),
('7400', 38, 0, 0, 0, 0),
('7400', 39, 0, 0, 0, 0),
('7400', 40, 0, 0, 0, 0),
('7400', 41, 0, 0, 0, 0),
('7400', 42, 0, 0, 0, 0),
('7400', 43, 0, 0, 0, 0),
('7400', 44, 0, 0, 0, 0),
('7400', 45, 0, 0, 0, 0),
('7400', 46, 0, 0, 0, 0),
('7450', 14, 0, 0, 0, 0),
('7450', 15, 0, 0, 0, 0),
('7450', 16, 0, 0, 0, 0),
('7450', 17, 0, 0, 0, 0),
('7450', 18, 0, 0, 0, 0),
('7450', 19, 0, 0, 0, 0),
('7450', 20, 0, 0, 0, 0),
('7450', 21, 0, 0, 0, 0),
('7450', 22, 0, 0, 0, 0),
('7450', 23, 0, 0, 0, 0),
('7450', 24, 0, 0, 0, 0),
('7450', 25, 0, 0, 0, 0),
('7450', 26, 0, 0, 0, 0),
('7450', 27, 0, 0, 0, 0),
('7450', 28, 0, 0, 0, 0),
('7450', 29, 0, 0, 0, 0),
('7450', 30, 0, 0, 0, 0),
('7450', 31, 0, 0, 0, 0),
('7450', 32, 0, 0, 0, 0),
('7450', 33, 0, 0, 0, 0),
('7450', 34, 0, 0, 0, 0),
('7450', 35, 0, 0, 0, 0),
('7450', 36, 0, 0, 0, 0),
('7450', 37, 0, 0, 0, 0),
('7450', 38, 0, 0, 0, 0),
('7450', 39, 0, 0, 0, 0),
('7450', 40, 0, 0, 0, 0),
('7450', 41, 0, 0, 0, 0),
('7450', 42, 0, 0, 0, 0),
('7450', 43, 0, 0, 0, 0),
('7450', 44, 0, 0, 0, 0),
('7450', 45, 0, 0, 0, 0),
('7450', 46, 0, 0, 0, 0),
('7500', 14, 0, 0, 0, 0),
('7500', 15, 0, 0, 0, 0),
('7500', 16, 0, 0, 0, 0),
('7500', 17, 0, 0, 0, 0),
('7500', 18, 0, 0, 0, 0),
('7500', 19, 0, 0, 0, 0),
('7500', 20, 0, 0, 0, 0),
('7500', 21, 0, 0, 0, 0),
('7500', 22, 0, 0, 0, 0),
('7500', 23, 0, 0, 0, 0),
('7500', 24, 0, 0, 0, 0),
('7500', 25, 0, 0, 0, 0),
('7500', 26, 0, 0, 0, 0),
('7500', 27, 0, 0, 0, 0),
('7500', 28, 0, 0, 0, 0),
('7500', 29, 0, 0, 0, 0),
('7500', 30, 0, 0, 0, 0),
('7500', 31, 0, 0, 0, 0),
('7500', 32, 0, 0, 0, 0),
('7500', 33, 0, 0, 0, 0),
('7500', 34, 0, 0, 0, 0),
('7500', 35, 0, 0, 0, 0),
('7500', 36, 0, 0, 0, 0),
('7500', 37, 0, 0, 0, 0),
('7500', 38, 0, 0, 0, 0);
INSERT INTO `chartdetails` (`accountcode`, `period`, `budget`, `actual`, `bfwd`, `bfwdbudget`) VALUES
('7500', 39, 0, 0, 0, 0),
('7500', 40, 0, 0, 0, 0),
('7500', 41, 0, 0, 0, 0),
('7500', 42, 0, 0, 0, 0),
('7500', 43, 0, 0, 0, 0),
('7500', 44, 0, 0, 0, 0),
('7500', 45, 0, 0, 0, 0),
('7500', 46, 0, 0, 0, 0),
('7550', 14, 0, 0, 0, 0),
('7550', 15, 0, 0, 0, 0),
('7550', 16, 0, 0, 0, 0),
('7550', 17, 0, 0, 0, 0),
('7550', 18, 0, 0, 0, 0),
('7550', 19, 0, 0, 0, 0),
('7550', 20, 0, 0, 0, 0),
('7550', 21, 0, 0, 0, 0),
('7550', 22, 0, 0, 0, 0),
('7550', 23, 0, 0, 0, 0),
('7550', 24, 0, 0, 0, 0),
('7550', 25, 0, 0, 0, 0),
('7550', 26, 0, 0, 0, 0),
('7550', 27, 0, 0, 0, 0),
('7550', 28, 0, 0, 0, 0),
('7550', 29, 0, 0, 0, 0),
('7550', 30, 0, 0, 0, 0),
('7550', 31, 0, 0, 0, 0),
('7550', 32, 0, 0, 0, 0),
('7550', 33, 0, 0, 0, 0),
('7550', 34, 0, 0, 0, 0),
('7550', 35, 0, 0, 0, 0),
('7550', 36, 0, 0, 0, 0),
('7550', 37, 0, 0, 0, 0),
('7550', 38, 0, 0, 0, 0),
('7550', 39, 0, 0, 0, 0),
('7550', 40, 0, 0, 0, 0),
('7550', 41, 0, 0, 0, 0),
('7550', 42, 0, 0, 0, 0),
('7550', 43, 0, 0, 0, 0),
('7550', 44, 0, 0, 0, 0),
('7550', 45, 0, 0, 0, 0),
('7550', 46, 0, 0, 0, 0),
('7600', 14, 0, 0, 0, 0),
('7600', 15, 0, 0, 0, 0),
('7600', 16, 0, 0, 0, 0),
('7600', 17, 0, 0, 0, 0),
('7600', 18, 0, 0, 0, 0),
('7600', 19, 0, 0, 0, 0),
('7600', 20, 0, 0, 0, 0),
('7600', 21, 0, 0, 0, 0),
('7600', 22, 0, 0, 0, 0),
('7600', 23, 0, 0, 0, 0),
('7600', 24, 0, 0, 0, 0),
('7600', 25, 0, 0, 0, 0),
('7600', 26, 0, 0, 0, 0),
('7600', 27, 0, 0, 0, 0),
('7600', 28, 0, 0, 0, 0),
('7600', 29, 0, 0, 0, 0),
('7600', 30, 0, 0, 0, 0),
('7600', 31, 0, 0, 0, 0),
('7600', 32, 0, 0, 0, 0),
('7600', 33, 0, 0, 0, 0),
('7600', 34, 0, 0, 0, 0),
('7600', 35, 0, 0, 0, 0),
('7600', 36, 0, 0, 0, 0),
('7600', 37, 0, 0, 0, 0),
('7600', 38, 0, 0, 0, 0),
('7600', 39, 0, 0, 0, 0),
('7600', 40, 0, 0, 0, 0),
('7600', 41, 0, 0, 0, 0),
('7600', 42, 0, 0, 0, 0),
('7600', 43, 0, 0, 0, 0),
('7600', 44, 0, 0, 0, 0),
('7600', 45, 0, 0, 0, 0),
('7600', 46, 0, 0, 0, 0),
('7610', 14, 0, 0, 0, 0),
('7610', 15, 0, 0, 0, 0),
('7610', 16, 0, 0, 0, 0),
('7610', 17, 0, 0, 0, 0),
('7610', 18, 0, 0, 0, 0),
('7610', 19, 0, 0, 0, 0),
('7610', 20, 0, 0, 0, 0),
('7610', 21, 0, 0, 0, 0),
('7610', 22, 0, 0, 0, 0),
('7610', 23, 0, 0, 0, 0),
('7610', 24, 0, 0, 0, 0),
('7610', 25, 0, 0, 0, 0),
('7610', 26, 0, 0, 0, 0),
('7610', 27, 0, 0, 0, 0),
('7610', 28, 0, 0, 0, 0),
('7610', 29, 0, 0, 0, 0),
('7610', 30, 0, 0, 0, 0),
('7610', 31, 0, 0, 0, 0),
('7610', 32, 0, 0, 0, 0),
('7610', 33, 0, 0, 0, 0),
('7610', 34, 0, 0, 0, 0),
('7610', 35, 0, 0, 0, 0),
('7610', 36, 0, 0, 0, 0),
('7610', 37, 0, 0, 0, 0),
('7610', 38, 0, 0, 0, 0),
('7610', 39, 0, 0, 0, 0),
('7610', 40, 0, 0, 0, 0),
('7610', 41, 0, 0, 0, 0),
('7610', 42, 0, 0, 0, 0),
('7610', 43, 0, 0, 0, 0),
('7610', 44, 0, 0, 0, 0),
('7610', 45, 0, 0, 0, 0),
('7610', 46, 0, 0, 0, 0),
('7620', 14, 0, 0, 0, 0),
('7620', 15, 0, 0, 0, 0),
('7620', 16, 0, 0, 0, 0),
('7620', 17, 0, 0, 0, 0),
('7620', 18, 0, 0, 0, 0),
('7620', 19, 0, 0, 0, 0),
('7620', 20, 0, 0, 0, 0),
('7620', 21, 0, 0, 0, 0),
('7620', 22, 0, 0, 0, 0),
('7620', 23, 0, 0, 0, 0),
('7620', 24, 0, 0, 0, 0),
('7620', 25, 0, 0, 0, 0),
('7620', 26, 0, 0, 0, 0),
('7620', 27, 0, 0, 0, 0),
('7620', 28, 0, 0, 0, 0),
('7620', 29, 0, 0, 0, 0),
('7620', 30, 0, 0, 0, 0),
('7620', 31, 0, 0, 0, 0),
('7620', 32, 0, 0, 0, 0),
('7620', 33, 0, 0, 0, 0),
('7620', 34, 0, 0, 0, 0),
('7620', 35, 0, 0, 0, 0),
('7620', 36, 0, 0, 0, 0),
('7620', 37, 0, 0, 0, 0),
('7620', 38, 0, 0, 0, 0),
('7620', 39, 0, 0, 0, 0),
('7620', 40, 0, 0, 0, 0),
('7620', 41, 0, 0, 0, 0),
('7620', 42, 0, 0, 0, 0),
('7620', 43, 0, 0, 0, 0),
('7620', 44, 0, 0, 0, 0),
('7620', 45, 0, 0, 0, 0),
('7620', 46, 0, 0, 0, 0),
('7630', 14, 0, 0, 0, 0),
('7630', 15, 0, 0, 0, 0),
('7630', 16, 0, 0, 0, 0),
('7630', 17, 0, 0, 0, 0),
('7630', 18, 0, 0, 0, 0),
('7630', 19, 0, 0, 0, 0),
('7630', 20, 0, 0, 0, 0),
('7630', 21, 0, 0, 0, 0),
('7630', 22, 0, 0, 0, 0),
('7630', 23, 0, 0, 0, 0),
('7630', 24, 0, 0, 0, 0),
('7630', 25, 0, 0, 0, 0),
('7630', 26, 0, 0, 0, 0),
('7630', 27, 0, 0, 0, 0),
('7630', 28, 0, 0, 0, 0),
('7630', 29, 0, 0, 0, 0),
('7630', 30, 0, 0, 0, 0),
('7630', 31, 0, 0, 0, 0),
('7630', 32, 0, 0, 0, 0),
('7630', 33, 0, 0, 0, 0),
('7630', 34, 0, 0, 0, 0),
('7630', 35, 0, 0, 0, 0),
('7630', 36, 0, 0, 0, 0),
('7630', 37, 0, 0, 0, 0),
('7630', 38, 0, 0, 0, 0),
('7630', 39, 0, 0, 0, 0),
('7630', 40, 0, 0, 0, 0),
('7630', 41, 0, 0, 0, 0),
('7630', 42, 0, 0, 0, 0),
('7630', 43, 0, 0, 0, 0),
('7630', 44, 0, 0, 0, 0),
('7630', 45, 0, 0, 0, 0),
('7630', 46, 0, 0, 0, 0),
('7640', 14, 0, 0, 0, 0),
('7640', 15, 0, 0, 0, 0),
('7640', 16, 0, 0, 0, 0),
('7640', 17, 0, 0, 0, 0),
('7640', 18, 0, 0, 0, 0),
('7640', 19, 0, 0, 0, 0),
('7640', 20, 0, 0, 0, 0),
('7640', 21, 0, 0, 0, 0),
('7640', 22, 0, 0, 0, 0),
('7640', 23, 0, 0, 0, 0),
('7640', 24, 0, 0, 0, 0),
('7640', 25, 0, 0, 0, 0),
('7640', 26, 0, 0, 0, 0),
('7640', 27, 0, 0, 0, 0),
('7640', 28, 0, 0, 0, 0),
('7640', 29, 0, 0, 0, 0),
('7640', 30, 0, 0, 0, 0),
('7640', 31, 0, 0, 0, 0),
('7640', 32, 0, 0, 0, 0),
('7640', 33, 0, 0, 0, 0),
('7640', 34, 0, 0, 0, 0),
('7640', 35, 0, 0, 0, 0),
('7640', 36, 0, 0, 0, 0),
('7640', 37, 0, 0, 0, 0),
('7640', 38, 0, 0, 0, 0),
('7640', 39, 0, 0, 0, 0),
('7640', 40, 0, 0, 0, 0),
('7640', 41, 0, 0, 0, 0),
('7640', 42, 0, 0, 0, 0),
('7640', 43, 0, 0, 0, 0),
('7640', 44, 0, 0, 0, 0),
('7640', 45, 0, 0, 0, 0),
('7640', 46, 0, 0, 0, 0),
('7650', 14, 0, 0, 0, 0),
('7650', 15, 0, 0, 0, 0),
('7650', 16, 0, 0, 0, 0),
('7650', 17, 0, 0, 0, 0),
('7650', 18, 0, 0, 0, 0),
('7650', 19, 0, 0, 0, 0),
('7650', 20, 0, 0, 0, 0),
('7650', 21, 0, 0, 0, 0),
('7650', 22, 0, 0, 0, 0),
('7650', 23, 0, 0, 0, 0),
('7650', 24, 0, 0, 0, 0),
('7650', 25, 0, 0, 0, 0),
('7650', 26, 0, 0, 0, 0),
('7650', 27, 0, 0, 0, 0),
('7650', 28, 0, 0, 0, 0),
('7650', 29, 0, 0, 0, 0),
('7650', 30, 0, 0, 0, 0),
('7650', 31, 0, 0, 0, 0),
('7650', 32, 0, 0, 0, 0),
('7650', 33, 0, 0, 0, 0),
('7650', 34, 0, 0, 0, 0),
('7650', 35, 0, 0, 0, 0),
('7650', 36, 0, 0, 0, 0),
('7650', 37, 0, 0, 0, 0),
('7650', 38, 0, 0, 0, 0),
('7650', 39, 0, 0, 0, 0),
('7650', 40, 0, 0, 0, 0),
('7650', 41, 0, 0, 0, 0),
('7650', 42, 0, 0, 0, 0),
('7650', 43, 0, 0, 0, 0),
('7650', 44, 0, 0, 0, 0),
('7650', 45, 0, 0, 0, 0),
('7650', 46, 0, 0, 0, 0),
('7660', 14, 0, 0, 0, 0),
('7660', 15, 0, 0, 0, 0),
('7660', 16, 0, 0, 0, 0),
('7660', 17, 0, 0, 0, 0),
('7660', 18, 0, 0, 0, 0),
('7660', 19, 0, 0, 0, 0),
('7660', 20, 0, 0, 0, 0),
('7660', 21, 0, 0, 0, 0),
('7660', 22, 0, 0, 0, 0),
('7660', 23, 0, 0, 0, 0),
('7660', 24, 0, 0, 0, 0),
('7660', 25, 0, 0, 0, 0),
('7660', 26, 0, 0, 0, 0),
('7660', 27, 0, 0, 0, 0),
('7660', 28, 0, 0, 0, 0),
('7660', 29, 0, 0, 0, 0),
('7660', 30, 0, 0, 0, 0),
('7660', 31, 0, 0, 0, 0),
('7660', 32, 0, 0, 0, 0),
('7660', 33, 0, 0, 0, 0),
('7660', 34, 0, 0, 0, 0),
('7660', 35, 0, 0, 0, 0),
('7660', 36, 0, 0, 0, 0),
('7660', 37, 0, 0, 0, 0),
('7660', 38, 0, 0, 0, 0),
('7660', 39, 0, 0, 0, 0),
('7660', 40, 0, 0, 0, 0),
('7660', 41, 0, 0, 0, 0),
('7660', 42, 0, 0, 0, 0),
('7660', 43, 0, 0, 0, 0),
('7660', 44, 0, 0, 0, 0),
('7660', 45, 0, 0, 0, 0),
('7660', 46, 0, 0, 0, 0),
('7700', 14, 0, 0, 0, 0),
('7700', 15, 0, 0, 0, 0),
('7700', 16, 0, 0, 0, 0),
('7700', 17, 0, 0, 0, 0),
('7700', 18, 0, 0, 0, 0),
('7700', 19, 0, 0, 0, 0),
('7700', 20, 0, 0, 0, 0),
('7700', 21, 0, 0, 0, 0),
('7700', 22, 0, 0, 0, 0),
('7700', 23, 0, 0, 0, 0),
('7700', 24, 0, 0, 0, 0),
('7700', 25, 0, 0, 0, 0),
('7700', 26, 0, 0, 0, 0),
('7700', 27, 0, 0, 0, 0),
('7700', 28, 0, 0, 0, 0),
('7700', 29, 0, 0, 0, 0),
('7700', 30, 0, 0, 0, 0),
('7700', 31, 0, 0, 0, 0),
('7700', 32, 0, 0, 0, 0),
('7700', 33, 0, 0, 0, 0),
('7700', 34, 0, 0, 0, 0),
('7700', 35, 0, 0, 0, 0),
('7700', 36, 0, 0, 0, 0),
('7700', 37, 0, 0, 0, 0),
('7700', 38, 0, 0, 0, 0),
('7700', 39, 0, 0, 0, 0),
('7700', 40, 0, 0, 0, 0),
('7700', 41, 0, 0, 0, 0),
('7700', 42, 0, 0, 0, 0),
('7700', 43, 0, 0, 0, 0),
('7700', 44, 0, 0, 0, 0),
('7700', 45, 0, 0, 0, 0),
('7700', 46, 0, 0, 0, 0),
('7750', 14, 0, 0, 0, 0),
('7750', 15, 0, 0, 0, 0),
('7750', 16, 0, 0, 0, 0),
('7750', 17, 0, 0, 0, 0),
('7750', 18, 0, 0, 0, 0),
('7750', 19, 0, 0, 0, 0),
('7750', 20, 0, 0, 0, 0),
('7750', 21, 0, 0, 0, 0),
('7750', 22, 0, 0, 0, 0),
('7750', 23, 0, 0, 0, 0),
('7750', 24, 0, 0, 0, 0),
('7750', 25, 0, 0, 0, 0),
('7750', 26, 0, 0, 0, 0),
('7750', 27, 0, 0, 0, 0),
('7750', 28, 0, 0, 0, 0),
('7750', 29, 0, 0, 0, 0),
('7750', 30, 0, 0, 0, 0),
('7750', 31, 0, 0, 0, 0),
('7750', 32, 0, 0, 0, 0),
('7750', 33, 0, 0, 0, 0),
('7750', 34, 0, 0, 0, 0),
('7750', 35, 0, 0, 0, 0),
('7750', 36, 0, 0, 0, 0),
('7750', 37, 0, 0, 0, 0),
('7750', 38, 0, 0, 0, 0),
('7750', 39, 0, 0, 0, 0),
('7750', 40, 0, 0, 0, 0),
('7750', 41, 0, 0, 0, 0),
('7750', 42, 0, 0, 0, 0),
('7750', 43, 0, 0, 0, 0),
('7750', 44, 0, 0, 0, 0),
('7750', 45, 0, 0, 0, 0),
('7750', 46, 0, 0, 0, 0),
('7800', 14, 0, 0, 0, 0),
('7800', 15, 0, 0, 0, 0),
('7800', 16, 0, 0, 0, 0),
('7800', 17, 0, 0, 0, 0),
('7800', 18, 0, 0, 0, 0),
('7800', 19, 0, 0, 0, 0),
('7800', 20, 0, 0, 0, 0),
('7800', 21, 0, 0, 0, 0),
('7800', 22, 0, 0, 0, 0),
('7800', 23, 0, 0, 0, 0),
('7800', 24, 0, 0, 0, 0),
('7800', 25, 0, 0, 0, 0),
('7800', 26, 0, 0, 0, 0),
('7800', 27, 0, 0, 0, 0),
('7800', 28, 0, 0, 0, 0),
('7800', 29, 0, 0, 0, 0),
('7800', 30, 0, 0, 0, 0),
('7800', 31, 0, 0, 0, 0),
('7800', 32, 0, 0, 0, 0),
('7800', 33, 0, 0, 0, 0),
('7800', 34, 0, 0, 0, 0),
('7800', 35, 0, 0, 0, 0),
('7800', 36, 0, 0, 0, 0),
('7800', 37, 0, 0, 0, 0),
('7800', 38, 0, 0, 0, 0),
('7800', 39, 0, 0, 0, 0),
('7800', 40, 0, 0, 0, 0),
('7800', 41, 0, 0, 0, 0),
('7800', 42, 0, 0, 0, 0),
('7800', 43, 0, 0, 0, 0),
('7800', 44, 0, 0, 0, 0),
('7800', 45, 0, 0, 0, 0),
('7800', 46, 0, 0, 0, 0),
('7900', 14, 0, 0, 0, 0),
('7900', 15, 0, 0, 0, 0),
('7900', 16, 0, 0, 0, 0),
('7900', 17, 0, 0, 0, 0),
('7900', 18, 0, 0, 0, 0),
('7900', 19, 0, 0, 0, 0),
('7900', 20, 0, 0, 0, 0),
('7900', 21, 0, 0, 0, 0),
('7900', 22, 0, 0, 0, 0),
('7900', 23, 0, 0, 0, 0),
('7900', 24, 0, 0, 0, 0),
('7900', 25, 0, 0, 0, 0),
('7900', 26, 0, 0, 0, 0),
('7900', 27, 0, 0, 0, 0),
('7900', 28, 0, 0, 0, 0),
('7900', 29, 0, 0, 0, 0),
('7900', 30, 0, 0, 0, 0),
('7900', 31, 0, 0, 0, 0),
('7900', 32, 0, 0, 0, 0),
('7900', 33, 0, 0, 0, 0),
('7900', 34, 0, 0, 0, 0),
('7900', 35, 0, 0, 0, 0),
('7900', 36, 0, 0, 0, 0),
('7900', 37, 0, 0, 0, 0),
('7900', 38, 0, 0, 0, 0),
('7900', 39, 0, 0, 0, 0),
('7900', 40, 0, 0, 0, 0),
('7900', 41, 0, 0, 0, 0),
('7900', 42, 0, 0, 0, 0),
('7900', 43, 0, 0, 0, 0),
('7900', 44, 0, 0, 0, 0),
('7900', 45, 0, 0, 0, 0),
('7900', 46, 0, 0, 0, 0),
('8100', 14, 0, 0, 0, 0),
('8100', 15, 0, 0, 0, 0),
('8100', 16, 0, 0, 0, 0),
('8100', 17, 0, 0, 0, 0),
('8100', 18, 0, 0, 0, 0),
('8100', 19, 0, 0, 0, 0),
('8100', 20, 0, 0, 0, 0),
('8100', 21, 0, 0, 0, 0),
('8100', 22, 0, 0, 0, 0),
('8100', 23, 0, 0, 0, 0),
('8100', 24, 0, 0, 0, 0),
('8100', 25, 0, 0, 0, 0),
('8100', 26, 0, 0, 0, 0),
('8100', 27, 0, 0, 0, 0),
('8100', 28, 0, 0, 0, 0),
('8100', 29, 0, 0, 0, 0),
('8100', 30, 0, 0, 0, 0),
('8100', 31, 0, 0, 0, 0),
('8100', 32, 0, 0, 0, 0),
('8100', 33, 0, 0, 0, 0),
('8100', 34, 0, 0, 0, 0),
('8100', 35, 0, 0, 0, 0),
('8100', 36, 0, 0, 0, 0),
('8100', 37, 0, 0, 0, 0),
('8100', 38, 0, 0, 0, 0),
('8100', 39, 0, 0, 0, 0),
('8100', 40, 0, 0, 0, 0),
('8100', 41, 0, 0, 0, 0),
('8100', 42, 0, 0, 0, 0),
('8100', 43, 0, 0, 0, 0),
('8100', 44, 0, 0, 0, 0),
('8100', 45, 0, 0, 0, 0),
('8100', 46, 0, 0, 0, 0),
('8200', 14, 0, 0, 0, 0),
('8200', 15, 0, 0, 0, 0),
('8200', 16, 0, 0, 0, 0),
('8200', 17, 0, 0, 0, 0),
('8200', 18, 0, 0, 0, 0),
('8200', 19, 0, 0, 0, 0),
('8200', 20, 0, 0, 0, 0),
('8200', 21, 0, 0, 0, 0),
('8200', 22, 0, 0, 0, 0),
('8200', 23, 0, 0, 0, 0),
('8200', 24, 0, 0, 0, 0),
('8200', 25, 0, 0, 0, 0),
('8200', 26, 0, 0, 0, 0),
('8200', 27, 0, 0, 0, 0),
('8200', 28, 0, 0, 0, 0),
('8200', 29, 0, 0, 0, 0),
('8200', 30, 0, 0, 0, 0),
('8200', 31, 0, 0, 0, 0),
('8200', 32, 0, 0, 0, 0),
('8200', 33, 0, 0, 0, 0),
('8200', 34, 0, 0, 0, 0),
('8200', 35, 0, 0, 0, 0),
('8200', 36, 0, 0, 0, 0),
('8200', 37, 0, 0, 0, 0),
('8200', 38, 0, 0, 0, 0),
('8200', 39, 0, 0, 0, 0),
('8200', 40, 0, 0, 0, 0),
('8200', 41, 0, 0, 0, 0),
('8200', 42, 0, 0, 0, 0),
('8200', 43, 0, 0, 0, 0),
('8200', 44, 0, 0, 0, 0),
('8200', 45, 0, 0, 0, 0),
('8200', 46, 0, 0, 0, 0),
('8300', 14, 0, 0, 0, 0),
('8300', 15, 0, 0, 0, 0),
('8300', 16, 0, 0, 0, 0),
('8300', 17, 0, 0, 0, 0),
('8300', 18, 0, 0, 0, 0),
('8300', 19, 0, 0, 0, 0),
('8300', 20, 0, 0, 0, 0),
('8300', 21, 0, 0, 0, 0),
('8300', 22, 0, 0, 0, 0),
('8300', 23, 0, 0, 0, 0),
('8300', 24, 0, 0, 0, 0),
('8300', 25, 0, 0, 0, 0),
('8300', 26, 0, 0, 0, 0),
('8300', 27, 0, 0, 0, 0),
('8300', 28, 0, 0, 0, 0),
('8300', 29, 0, 0, 0, 0),
('8300', 30, 0, 0, 0, 0),
('8300', 31, 0, 0, 0, 0),
('8300', 32, 0, 0, 0, 0),
('8300', 33, 0, 0, 0, 0),
('8300', 34, 0, 0, 0, 0),
('8300', 35, 0, 0, 0, 0),
('8300', 36, 0, 0, 0, 0),
('8300', 37, 0, 0, 0, 0),
('8300', 38, 0, 0, 0, 0),
('8300', 39, 0, 0, 0, 0),
('8300', 40, 0, 0, 0, 0),
('8300', 41, 0, 0, 0, 0),
('8300', 42, 0, 0, 0, 0),
('8300', 43, 0, 0, 0, 0),
('8300', 44, 0, 0, 0, 0),
('8300', 45, 0, 0, 0, 0),
('8300', 46, 0, 0, 0, 0),
('8400', 14, 0, 0, 0, 0),
('8400', 15, 0, 0, 0, 0),
('8400', 16, 0, 0, 0, 0),
('8400', 17, 0, 0, 0, 0),
('8400', 18, 0, 0, 0, 0),
('8400', 19, 0, 0, 0, 0),
('8400', 20, 0, 0, 0, 0),
('8400', 21, 0, 0, 0, 0),
('8400', 22, 0, 0, 0, 0),
('8400', 23, 0, 0, 0, 0),
('8400', 24, 0, 0, 0, 0),
('8400', 25, 0, 0, 0, 0),
('8400', 26, 0, 0, 0, 0),
('8400', 27, 0, 0, 0, 0),
('8400', 28, 0, 0, 0, 0),
('8400', 29, 0, 0, 0, 0),
('8400', 30, 0, 0, 0, 0),
('8400', 31, 0, 0, 0, 0),
('8400', 32, 0, 0, 0, 0),
('8400', 33, 0, 0, 0, 0),
('8400', 34, 0, 0, 0, 0),
('8400', 35, 0, 0, 0, 0),
('8400', 36, 0, 0, 0, 0),
('8400', 37, 0, 0, 0, 0),
('8400', 38, 0, 0, 0, 0),
('8400', 39, 0, 0, 0, 0),
('8400', 40, 0, 0, 0, 0),
('8400', 41, 0, 0, 0, 0),
('8400', 42, 0, 0, 0, 0),
('8400', 43, 0, 0, 0, 0),
('8400', 44, 0, 0, 0, 0),
('8400', 45, 0, 0, 0, 0),
('8400', 46, 0, 0, 0, 0),
('8500', 14, 0, 0, 0, 0),
('8500', 15, 0, 0, 0, 0),
('8500', 16, 0, 0, 0, 0),
('8500', 17, 0, 0, 0, 0),
('8500', 18, 0, 0, 0, 0),
('8500', 19, 0, 0, 0, 0),
('8500', 20, 0, 0, 0, 0),
('8500', 21, 0, 0, 0, 0),
('8500', 22, 0, 0, 0, 0),
('8500', 23, 0, 0, 0, 0),
('8500', 24, 0, 0, 0, 0),
('8500', 25, 0, 0, 0, 0),
('8500', 26, 0, 0, 0, 0),
('8500', 27, 0, 0, 0, 0),
('8500', 28, 0, 0, 0, 0),
('8500', 29, 0, 0, 0, 0),
('8500', 30, 0, 0, 0, 0),
('8500', 31, 0, 0, 0, 0),
('8500', 32, 0, 0, 0, 0),
('8500', 33, 0, 0, 0, 0),
('8500', 34, 0, 0, 0, 0),
('8500', 35, 0, 0, 0, 0),
('8500', 36, 0, 0, 0, 0),
('8500', 37, 0, 0, 0, 0),
('8500', 38, 0, 0, 0, 0),
('8500', 39, 0, 0, 0, 0),
('8500', 40, 0, 0, 0, 0),
('8500', 41, 0, 0, 0, 0),
('8500', 42, 0, 0, 0, 0),
('8500', 43, 0, 0, 0, 0),
('8500', 44, 0, 0, 0, 0),
('8500', 45, 0, 0, 0, 0),
('8500', 46, 0, 0, 0, 0),
('8600', 14, 0, 0, 0, 0),
('8600', 15, 0, 0, 0, 0),
('8600', 16, 0, 0, 0, 0),
('8600', 17, 0, 0, 0, 0),
('8600', 18, 0, 0, 0, 0),
('8600', 19, 0, 0, 0, 0),
('8600', 20, 0, 0, 0, 0),
('8600', 21, 0, 0, 0, 0),
('8600', 22, 0, 0, 0, 0),
('8600', 23, 0, 0, 0, 0),
('8600', 24, 0, 0, 0, 0),
('8600', 25, 0, 0, 0, 0),
('8600', 26, 0, 0, 0, 0),
('8600', 27, 0, 0, 0, 0),
('8600', 28, 0, 0, 0, 0),
('8600', 29, 0, 0, 0, 0),
('8600', 30, 0, 0, 0, 0),
('8600', 31, 0, 0, 0, 0),
('8600', 32, 0, 0, 0, 0),
('8600', 33, 0, 0, 0, 0),
('8600', 34, 0, 0, 0, 0),
('8600', 35, 0, 0, 0, 0),
('8600', 36, 0, 0, 0, 0),
('8600', 37, 0, 0, 0, 0),
('8600', 38, 0, 0, 0, 0),
('8600', 39, 0, 0, 0, 0),
('8600', 40, 0, 0, 0, 0),
('8600', 41, 0, 0, 0, 0),
('8600', 42, 0, 0, 0, 0),
('8600', 43, 0, 0, 0, 0),
('8600', 44, 0, 0, 0, 0),
('8600', 45, 0, 0, 0, 0),
('8600', 46, 0, 0, 0, 0),
('8900', 14, 0, 0, 0, 0),
('8900', 15, 0, 0, 0, 0),
('8900', 16, 0, 0, 0, 0),
('8900', 17, 0, 0, 0, 0),
('8900', 18, 0, 0, 0, 0),
('8900', 19, 0, 0, 0, 0),
('8900', 20, 0, 0, 0, 0),
('8900', 21, 0, 0, 0, 0),
('8900', 22, 0, 0, 0, 0),
('8900', 23, 0, 0, 0, 0),
('8900', 24, 0, 0, 0, 0),
('8900', 25, 0, 0, 0, 0),
('8900', 26, 0, 0, 0, 0),
('8900', 27, 0, 0, 0, 0),
('8900', 28, 0, 0, 0, 0),
('8900', 29, 0, 0, 0, 0),
('8900', 30, 0, 0, 0, 0),
('8900', 31, 0, 0, 0, 0),
('8900', 32, 0, 0, 0, 0),
('8900', 33, 0, 0, 0, 0),
('8900', 34, 0, 0, 0, 0),
('8900', 35, 0, 0, 0, 0),
('8900', 36, 0, 0, 0, 0),
('8900', 37, 0, 0, 0, 0),
('8900', 38, 0, 0, 0, 0),
('8900', 39, 0, 0, 0, 0),
('8900', 40, 0, 0, 0, 0),
('8900', 41, 0, 0, 0, 0),
('8900', 42, 0, 0, 0, 0),
('8900', 43, 0, 0, 0, 0),
('8900', 44, 0, 0, 0, 0),
('8900', 45, 0, 0, 0, 0),
('8900', 46, 0, 0, 0, 0),
('9100', 14, 0, 0, 0, 0),
('9100', 15, 0, 0, 0, 0),
('9100', 16, 0, 0, 0, 0),
('9100', 17, 0, 0, 0, 0),
('9100', 18, 0, 0, 0, 0),
('9100', 19, 0, 0, 0, 0),
('9100', 20, 0, 0, 0, 0),
('9100', 21, 0, 0, 0, 0),
('9100', 22, 0, 0, 0, 0),
('9100', 23, 0, 0, 0, 0),
('9100', 24, 0, 0, 0, 0),
('9100', 25, 0, 0, 0, 0),
('9100', 26, 0, 0, 0, 0),
('9100', 27, 0, 0, 0, 0),
('9100', 28, 0, 0, 0, 0),
('9100', 29, 0, 0, 0, 0),
('9100', 30, 0, 0, 0, 0),
('9100', 31, 0, 0, 0, 0),
('9100', 32, 0, 0, 0, 0),
('9100', 33, 0, 0, 0, 0),
('9100', 34, 0, 0, 0, 0),
('9100', 35, 0, 0, 0, 0),
('9100', 36, 0, 0, 0, 0),
('9100', 37, 0, 0, 0, 0),
('9100', 38, 0, 0, 0, 0),
('9100', 39, 0, 0, 0, 0),
('9100', 40, 0, 0, 0, 0),
('9100', 41, 0, 0, 0, 0),
('9100', 42, 0, 0, 0, 0),
('9100', 43, 0, 0, 0, 0),
('9100', 44, 0, 0, 0, 0),
('9100', 45, 0, 0, 0, 0),
('9100', 46, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `chartmaster`
--
CREATE TABLE `chartmaster` (
`accountcode` varchar(20) NOT NULL DEFAULT '0',
`accountname` char(50) NOT NULL DEFAULT '',
`group_` char(30) NOT NULL DEFAULT '',
`cashflowsactivity` tinyint(1) NOT NULL DEFAULT '-1' COMMENT 'Cash flows activity'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `chartmaster`
--
INSERT INTO `chartmaster` (`accountcode`, `accountname`, `group_`, `cashflowsactivity`) VALUES
('1', 'Default Sales/Discounts', 'Sales', -1),
('1010', 'Petty Cash', 'Current Assets', -1),
('1020', 'Cash on Hand', 'Current Assets', -1),
('1030', 'Cheque Accounts', 'Current Assets', -1),
('1040', 'Savings Accounts', 'Current Assets', -1),
('1050', 'Payroll Accounts', 'Current Assets', -1),
('1060', 'Special Accounts', 'Current Assets', -1),
('1070', 'Money Market Investments', 'Current Assets', -1),
('1080', 'Short-Term Investments (< 90 days)', 'Current Assets', -1),
('1090', 'Interest Receivable', 'Current Assets', -1),
('1100', 'Accounts Receivable', 'Current Assets', -1),
('1150', 'Allowance for Doubtful Accounts', 'Current Assets', -1),
('1200', 'Notes Receivable', 'Current Assets', -1),
('1250', 'Income Tax Receivable', 'Current Assets', -1),
('1300', 'Prepaid Expenses', 'Current Assets', -1),
('1350', 'Advances', 'Current Assets', -1),
('1400', 'Supplies Inventory', 'Current Assets', -1),
('1420', 'Raw Material Inventory', 'Current Assets', -1),
('1440', 'Work in Progress Inventory', 'Current Assets', -1),
('1460', 'Finished Goods Inventory', 'Current Assets', -1),
('1500', 'Land', 'Fixed Assets', -1),
('1550', 'Bonds', 'Fixed Assets', -1),
('1600', 'Buildings', 'Fixed Assets', -1),
('1620', 'Accumulated Depreciation of Buildings', 'Fixed Assets', -1),
('1650', 'Equipment', 'Fixed Assets', -1),
('1670', 'Accumulated Depreciation of Equipment', 'Fixed Assets', -1),
('1700', 'Furniture & Fixtures', 'Fixed Assets', -1),
('1710', 'Accumulated Depreciation of Furniture & Fixtures', 'Fixed Assets', -1),
('1720', 'Office Equipment', 'Fixed Assets', -1),
('1730', 'Accumulated Depreciation of Office Equipment', 'Fixed Assets', -1),
('1740', 'Software', 'Fixed Assets', -1),
('1750', 'Accumulated Depreciation of Software', 'Fixed Assets', -1),
('1760', 'Vehicles', 'Fixed Assets', -1),
('1770', 'Accumulated Depreciation Vehicles', 'Fixed Assets', -1),
('1780', 'Other Depreciable Property', 'Fixed Assets', -1),
('1790', 'Accumulated Depreciation of Other Depreciable Prop', 'Fixed Assets', -1),
('1800', 'Patents', 'Fixed Assets', -1),
('1850', 'Goodwill', 'Fixed Assets', -1),
('1900', 'Future Income Tax Receivable', 'Current Assets', -1),
('2010', 'Bank Indedebtedness (overdraft)', 'Liabilities', -1),
('2020', 'Retainers or Advances on Work', 'Liabilities', -1),
('2050', 'Interest Payable', 'Liabilities', -1),
('2100', 'Accounts Payable', 'Liabilities', -1),
('2150', 'Goods Received Suspense', 'Liabilities', -1),
('2200', 'Short-Term Loan Payable', 'Liabilities', -1),
('2230', 'Current Portion of Long-Term Debt Payable', 'Liabilities', -1),
('2250', 'Income Tax Payable', 'Liabilities', -1),
('2300', 'GST Payable', 'Liabilities', -1),
('2310', 'GST Recoverable', 'Liabilities', -1),
('2320', 'PST Payable', 'Liabilities', -1),
('2330', 'PST Recoverable (commission)', 'Liabilities', -1),
('2340', 'Payroll Tax Payable', 'Liabilities', -1),
('2350', 'Withholding Income Tax Payable', 'Liabilities', -1),
('2360', 'Other Taxes Payable', 'Liabilities', -1),
('2400', 'Employee Salaries Payable', 'Liabilities', -1),
('2410', 'Management Salaries Payable', 'Liabilities', -1),
('2420', 'Director / Partner Fees Payable', 'Liabilities', -1),
('2450', 'Health Benefits Payable', 'Liabilities', -1),
('2460', 'Pension Benefits Payable', 'Liabilities', -1),
('2480', 'Employment Insurance Premiums Payable', 'Liabilities', -1),
('2500', 'Land Payable', 'Liabilities', -1),
('2550', 'Long-Term Bank Loan', 'Liabilities', -1),
('2560', 'Notes Payable', 'Liabilities', -1),
('2600', 'Building & Equipment Payable', 'Liabilities', -1),
('2700', 'Furnishing & Fixture Payable', 'Liabilities', -1),
('2720', 'Office Equipment Payable', 'Liabilities', -1),
('2740', 'Vehicle Payable', 'Liabilities', -1),
('2760', 'Other Property Payable', 'Liabilities', -1),
('2800', 'Shareholder Loans', 'Liabilities', -1),
('2900', 'Suspense', 'Liabilities', -1),
('3100', 'Capital Stock', 'Financed', -1),
('3200', 'Capital Surplus / Dividends', 'Financed', -1),
('3300', 'Dividend Taxes Payable', 'Financed', -1),
('3400', 'Dividend Taxes Refundable', 'Financed', -1),
('3500', 'Retained Earnings', 'Financed', -1),
('4100', 'Product / Service Sales', 'Revenue', -1),
('4200', 'Sales Exchange Gains/Losses', 'Revenue', -1),
('4500', 'Consulting Services', 'Revenue', -1),
('4600', 'Rentals', 'Revenue', -1),
('4700', 'Finance Charge Income', 'Revenue', -1),
('4800', 'Sales Returns & Allowances', 'Revenue', -1),
('4900', 'Sales Discounts', 'Revenue', -1),
('5000', 'Cost of Sales', 'Cost of Goods Sold', -1),
('5100', 'Production Expenses', 'Cost of Goods Sold', -1),
('5200', 'Purchases Exchange Gains/Losses', 'Cost of Goods Sold', -1),
('5500', 'Direct Labour Costs', 'Cost of Goods Sold', -1),
('5600', 'Freight Charges', 'Outward Freight', -1),
('5700', 'Inventory Adjustment', 'Cost of Goods Sold', -1),
('5800', 'Purchase Returns & Allowances', 'Cost of Goods Sold', -1),
('5900', 'Purchase Discounts', 'Cost of Goods Sold', -1),
('6100', 'Advertising', 'Marketing Expenses', -1),
('6150', 'Promotion', 'Promotions', -1),
('6200', 'Communications', 'Marketing Expenses', -1),
('6250', 'Meeting Expenses', 'Marketing Expenses', -1),
('6300', 'Travelling Expenses', 'Marketing Expenses', -1),
('6400', 'Delivery Expenses', 'Marketing Expenses', -1),
('6500', 'Sales Salaries & Commission', 'Marketing Expenses', -1),
('6550', 'Sales Salaries & Commission Deductions', 'Marketing Expenses', -1),
('6590', 'Benefits', 'Marketing Expenses', -1),
('6600', 'Other Selling Expenses', 'Marketing Expenses', -1),
('6700', 'Permits, Licenses & License Fees', 'Marketing Expenses', -1),
('6800', 'Research & Development', 'Marketing Expenses', -1),
('6900', 'Professional Services', 'Marketing Expenses', -1),
('7020', 'Support Salaries & Wages', 'Operating Expenses', -1),
('7030', 'Support Salary & Wage Deductions', 'Operating Expenses', -1),
('7040', 'Management Salaries', 'Operating Expenses', -1),
('7050', 'Management Salary deductions', 'Operating Expenses', -1),
('7060', 'Director / Partner Fees', 'Operating Expenses', -1),
('7070', 'Director / Partner Deductions', 'Operating Expenses', -1),
('7080', 'Payroll Tax', 'Operating Expenses', -1),
('7090', 'Benefits', 'Operating Expenses', -1),
('7100', 'Training & Education Expenses', 'Operating Expenses', -1),
('7150', 'Dues & Subscriptions', 'Operating Expenses', -1),
('7200', 'Accounting Fees', 'Operating Expenses', -1),
('7210', 'Audit Fees', 'Operating Expenses', -1),
('7220', 'Banking Fees', 'Operating Expenses', -1),
('7230', 'Credit Card Fees', 'Operating Expenses', -1),
('7240', 'Consulting Fees', 'Operating Expenses', -1),
('7260', 'Legal Fees', 'Operating Expenses', -1),
('7280', 'Other Professional Fees', 'Operating Expenses', -1),
('7300', 'Business Tax', 'Operating Expenses', -1),
('7350', 'Property Tax', 'Operating Expenses', -1),
('7390', 'Corporation Capital Tax', 'Operating Expenses', -1),
('7400', 'Office Rent', 'Operating Expenses', -1),
('7450', 'Equipment Rental', 'Operating Expenses', -1),
('7500', 'Office Supplies', 'Operating Expenses', -1),
('7550', 'Office Repair & Maintenance', 'Operating Expenses', -1),
('7600', 'Automotive Expenses', 'Operating Expenses', -1),
('7610', 'Communication Expenses', 'Operating Expenses', -1),
('7620', 'Insurance Expenses', 'Operating Expenses', -1),
('7630', 'Postage & Courier Expenses', 'Operating Expenses', -1),
('7640', 'Miscellaneous Expenses', 'Operating Expenses', -1),
('7650', 'Travel Expenses', 'Operating Expenses', -1),
('7660', 'Utilities', 'Operating Expenses', -1),
('7700', 'Ammortization Expenses', 'Operating Expenses', -1),
('7750', 'Depreciation Expenses', 'Operating Expenses', -1),
('7800', 'Interest Expense', 'Operating Expenses', -1),
('7900', 'Bad Debt Expense', 'Operating Expenses', -1),
('8100', 'Gain on Sale of Assets', 'Other Revenue and Expenses', -1),
('8200', 'Interest Income', 'Other Revenue and Expenses', -1),
('8300', 'Recovery on Bad Debt', 'Other Revenue and Expenses', -1),
('8400', 'Other Revenue', 'Other Revenue and Expenses', -1),
('8500', 'Loss on Sale of Assets', 'Other Revenue and Expenses', -1),
('8600', 'Charitable Contributions', 'Other Revenue and Expenses', -1),
('8900', 'Other Expenses', 'Other Revenue and Expenses', -1),
('9100', 'Income Tax Provision', 'Income Tax', -1);
-- --------------------------------------------------------
--
-- Table structure for table `cogsglpostings`
--
CREATE TABLE `cogsglpostings` (
`id` int(11) NOT NULL,
`area` char(3) NOT NULL DEFAULT '',
`stkcat` varchar(6) NOT NULL DEFAULT '',
`glcode` varchar(20) NOT NULL DEFAULT '0',
`salestype` char(2) NOT NULL DEFAULT 'AN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `cogsglpostings`
--
INSERT INTO `cogsglpostings` (`id`, `area`, `stkcat`, `glcode`, `salestype`) VALUES
(5, 'AN', 'ANY', '5000', 'AN'),
(6, '123', 'ANY', '6100', 'AN');
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
CREATE TABLE `companies` (
`coycode` int(11) NOT NULL DEFAULT '1',
`coyname` varchar(50) NOT NULL DEFAULT '',
`gstno` varchar(20) NOT NULL DEFAULT '',
`companynumber` varchar(20) NOT NULL DEFAULT '0',
`regoffice1` varchar(40) NOT NULL DEFAULT '',
`regoffice2` varchar(40) NOT NULL DEFAULT '',
`regoffice3` varchar(40) NOT NULL DEFAULT '',
`regoffice4` varchar(40) NOT NULL DEFAULT '',
`regoffice5` varchar(20) NOT NULL DEFAULT '',
`regoffice6` varchar(15) NOT NULL DEFAULT '',
`telephone` varchar(25) NOT NULL DEFAULT '',
`fax` varchar(25) NOT NULL DEFAULT '',
`email` varchar(55) NOT NULL DEFAULT '',
`currencydefault` varchar(4) NOT NULL DEFAULT '',
`debtorsact` varchar(20) NOT NULL DEFAULT '70000',
`pytdiscountact` varchar(20) NOT NULL DEFAULT '55000',
`creditorsact` varchar(20) NOT NULL DEFAULT '80000',
`payrollact` varchar(20) NOT NULL DEFAULT '84000',
`grnact` varchar(20) NOT NULL DEFAULT '72000',
`exchangediffact` varchar(20) NOT NULL DEFAULT '65000',
`purchasesexchangediffact` varchar(20) NOT NULL DEFAULT '0',
`retainedearnings` varchar(20) NOT NULL DEFAULT '90000',
`gllink_debtors` tinyint(1) DEFAULT '1',
`gllink_creditors` tinyint(1) DEFAULT '1',
`gllink_stock` tinyint(1) DEFAULT '1',
`freightact` varchar(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `companies`
--
INSERT INTO `companies` (`coycode`, `coyname`, `gstno`, `companynumber`, `regoffice1`, `regoffice2`, `regoffice3`, `regoffice4`, `regoffice5`, `regoffice6`, `telephone`, `fax`, `email`, `currencydefault`, `debtorsact`, `pytdiscountact`, `creditorsact`, `payrollact`, `grnact`, `exchangediffact`, `purchasesexchangediffact`, `retainedearnings`, `gllink_debtors`, `gllink_creditors`, `gllink_stock`, `freightact`) VALUES
(1, 'weberpdemo', 'not entered yet', '', '123 Web Way', 'PO Box 123', 'Queen Street', 'Melbourne', 'Victoria 3043', 'Australia', '+61 3 4567 8901', '+61 3 4567 8902', 'weberp@weberpdemo.com', 'USD', '1100', '4900', '2100', '2400', '2150', '4200', '5200', '3500', 1, 1, 1, '5600');
-- --------------------------------------------------------
--
-- Table structure for table `config`
--
CREATE TABLE `config` (
`confname` varchar(35) NOT NULL DEFAULT '',
`confvalue` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `config`
--
INSERT INTO `config` (`confname`, `confvalue`) VALUES
('AllowOrderLineItemNarrative', '1'),
('AllowSalesOfZeroCostItems', '0'),
('AutoAuthorisePO', '1'),
('AutoCreateWOs', '1'),
('AutoDebtorNo', '0'),
('AutoIssue', '1'),
('AutoSupplierNo', '0'),
('CheckCreditLimits', '1'),
('Check_Price_Charged_vs_Order_Price', '1'),
('Check_Qty_Charged_vs_Del_Qty', '1'),
('CountryOfOperation', 'US'),
('CreditingControlledItems_MustExist', '0'),
('DB_Maintenance', '0'),
('DB_Maintenance_LastRun', '2015-08-14'),
('DefaultBlindPackNote', '1'),
('DefaultCreditLimit', '1000'),
('DefaultCustomerType', '1'),
('DefaultDateFormat', 'd/m/Y'),
('DefaultDisplayRecordsMax', '50'),
('DefaultFactoryLocation', 'MEL'),
('DefaultPriceList', 'DE'),
('DefaultSupplierType', '1'),
('DefaultTaxCategory', '1'),
('Default_Shipper', '1'),
('DefineControlledOnWOEntry', '1'),
('DispatchCutOffTime', '14'),
('DoFreightCalc', '0'),
('EDIHeaderMsgId', 'D:01B:UN:EAN010'),
('EDIReference', 'WEBERP'),
('EDI_Incoming_Orders', 'companies/test/EDI_Incoming_Orders'),
('EDI_MsgPending', 'companies/test/EDI_Pending'),
('EDI_MsgSent', 'companies/test/EDI__Sent'),
('ExchangeRateFeed', 'Google'),
('Extended_CustomerInfo', '1'),
('Extended_SupplierInfo', '1'),
('FactoryManagerEmail', 'manager@company.com'),
('FreightChargeAppliesIfLessThan', '1000'),
('FreightTaxCategory', '1'),
('FrequentlyOrderedItems', '0'),
('geocode_integration', '0'),
('GoogleTranslatorAPIKey', ''),
('HTTPS_Only', '0'),
('InventoryManagerEmail', 'test@company.com'),
('InvoicePortraitFormat', '0'),
('InvoiceQuantityDefault', '1'),
('ItemDescriptionLanguages', ',fr_FR.utf8,'),
('LogPath', ''),
('LogSeverity', '0'),
('MaxImageSize', '300'),
('MonthsAuditTrail', '1'),
('NumberOfMonthMustBeShown', '6'),
('NumberOfPeriodsOfStockUsage', '12'),
('OverChargeProportion', '30'),
('OverReceiveProportion', '20'),
('PackNoteFormat', '1'),
('PageLength', '48'),
('part_pics_dir', 'companies/weberpdemo/part_pics'),
('PastDueDays1', '30'),
('PastDueDays2', '60'),
('PO_AllowSameItemMultipleTimes', '1'),
('ProhibitJournalsToControlAccounts', '1'),
('ProhibitNegativeStock', '0'),
('ProhibitPostingsBefore', '2013-12-31'),
('PurchasingManagerEmail', 'test@company.com'),
('QualityCOAText', ''),
('QualityLogSamples', '0'),
('QualityProdSpecText', ''),
('QuickEntries', '10'),
('RadioBeaconFileCounter', '/home/RadioBeacon/FileCounter'),
('RadioBeaconFTP_user_name', 'RadioBeacon ftp server user name'),
('RadioBeaconHomeDir', '/home/RadioBeacon'),
('RadioBeaconStockLocation', 'BL'),
('RadioBraconFTP_server', '192.168.2.2'),
('RadioBreaconFilePrefix', 'ORDXX'),
('RadionBeaconFTP_user_pass', 'Radio Beacon remote ftp server password'),
('reports_dir', 'companies/weberpdemo/reportwriter'),
('RequirePickingNote', '0'),
('RomalpaClause', 'Ownership will not pass to the buyer until the goods have been paid for in full.'),
('ShopAboutUs', 'This web-shop software has been developed by Logic Works Ltd for webERP. For support contact Phil Daintree by rn<a href=\\"mailto:support@logicworks.co.nz\\">email</a>rn'),
('ShopAllowBankTransfer', '1'),
('ShopAllowCreditCards', '1'),
('ShopAllowPayPal', '1'),
('ShopAllowSurcharges', '1'),
('ShopBankTransferSurcharge', '0.0'),
('ShopBranchCode', 'ANGRY'),
('ShopContactUs', 'For support contact Logic Works Ltd by rn<a href=\\"mailto:support@logicworks.co.nz\\">email</a>'),
('ShopCreditCardBankAccount', '1030'),
('ShopCreditCardGateway', 'SwipeHQ'),
('ShopCreditCardSurcharge', '2.95'),
('ShopDebtorNo', 'ANGRY'),
('ShopFreightMethod', 'NoFreight'),
('ShopFreightPolicy', 'Shipping information'),
('ShopManagerEmail', 'shopmanager@yourdomain.com'),
('ShopMode', 'test'),
('ShopName', 'webERP Demo Store'),
('ShopPayFlowMerchant', ''),
('ShopPayFlowPassword', ''),
('ShopPayFlowUser', ''),
('ShopPayFlowVendor', ''),
('ShopPayPalBankAccount', '1040'),
('ShopPaypalCommissionAccount', '1'),
('ShopPayPalPassword', ''),
('ShopPayPalProPassword', ''),
('ShopPayPalProSignature', ''),
('ShopPayPalProUser', ''),
('ShopPayPalSignature', ''),
('ShopPayPalSurcharge', '3.4'),
('ShopPayPalUser', ''),
('ShopPrivacyStatement', '<h2>We are committed to protecting your privacy.</h2><p>We recognise that your personal information is confidential and we understand that it is important for you to know how we treat your personal information. Please read on for more information about our Privacy Policy.</p><ul><li><h2>1. What information do we collect and how do we use it?</h2><br />We use the information it collects from you for the following purposes:<ul><li>To assist us in providing you with a quality service</li><li>To respond to, and process, your request</li><li>To notify competition winners or fulfil promotional obligations</li><li>To inform you of, and provide you with, new and existing products and services offered by us from time to time </li></ul><p>Any information we collect will not be used in ways that you have not consented to.</p><p>If you send us an email, we will store your email address and the contents of the email. This information will only be used for the purpose for which you have provided it. Electronic mail submitted to us is handled and saved according to the provisions of the the relevant statues.</p><p>When we offer contests and promotions, customers who choose to enter are asked to provide personal information. This information may then be used by us to notify winners, or to fulfil promotional obligations.</p><p>We may use the information we collect to occasionally notify you about important functionality changes to our website, new and special offers we think you will find valuable. If at any stage you no longer wish to receive these notifications you may opt out by sending us an email.</p><p>We do monitor this website in order to identify user trends and to improve the site if necessary. Any of this information, such as the type of site browser your computer has, will be used only in aggregate form and your individual details will not be identified.</p></li><li><h2>2. How do we store and protect your personal information and who has access to that information?</h2><p>As required by statute, we follow strict procedures when storing and using the information you have provided.</p><p>We do not sell, trade or rent your personal information to others. We may provide aggregate statistics about our customers and website trends. However, these statistics will not have any personal information which would identify you.</p><p>Only specific employees within our company are able to access your personal data.</p><p>This policy means that we may require proof of identity before we disclose any information to you.</p></li><li><h2>3. What should I do if I want to change my details or if I don’t want to be contacted any more?</h2><p>At any stage you have the right to access and amend or update your personal details. If you do not want to receive any communications from us you may opt out by contacting us see <a href=\\"index.php?Page=ContactUs\\">the Contact Us Page</a></p></li><li><h2>4. What happens if we decide to change this Privacy Policy?</h2><p>If we change any aspect of our Privacy Policy we will post these changes on this page so that you are always aware of how we are treating your personal information.</p></li><li><h2>5. How can you contact us if you have any questions, comments or concerns about our Privacy Policy?</h2><p>We welcome any questions or comments you may have please email us via the contact details provided on our <a href=\\"index.php?Page=ContactUs\\">Contact Us Page</a></p></li></ul><p>Please also refer to our <a href=\\"index.php?Page=TermsAndConditions\\">Terms and Conditions</a> for more information.</p>'),
('ShopShowOnlyAvailableItems', '0'),
('ShopShowQOHColumn', '1'),
('ShopStockLocations', 'MEL,TOR'),
('ShopSurchargeStockID', 'PAYTSURCHARGE'),
('ShopSwipeHQAPIKey', ''),
('ShopSwipeHQMerchantID', ''),
('ShopTermsConditions', '<p>These terms cover the use of this website. Use includes visits to our sites, purchases on our sites, participation in our database and promotions. These terms of use apply to you when you use our websites. Please read these terms carefully - if you need to refer to them again they can be accessed from the link at the bottom of any page of our websites.</p><br /><ul><li><h2>1. Content</h2><p>While we endeavour to supply accurate information on this site, errors and omissions may occur. We do not accept any liability, direct or indirect, for any loss or damage which may directly or indirectly result from any advice, opinion, information, representation or omission whether negligent or otherwise, contained on this site. You are solely responsible for the actions you take in reliance on the content on, or accessed, through this site.</p><p>We reserve the right to make changes to the content on this site at any time and without notice.</p><p>To the extent permitted by law, we make no warranties in relation to the merchantability, fitness for purpose, freedom from computer virus, accuracy or availability of this web site or any other web site.</p></li><li><h2>2. Making a contract with us</h2><p>When you place an order with us, you are making an offer to buy goods. We will send you an e-mail to confirm that we have received and accepted your order, which indicates that a contract has been made between us. We will take payment from you when we accept your order. In the unlikely event that the goods are no longer available, we will refund your payment to the account it originated from, and advise that the goods are no longer available.</p><p>An order is placed on our website via adding a product to the shopping cart and proceeding through our checkout process. The checkout process includes giving us delivery and any other relevant details for your order, entering payment information and submitting your order. The final step consists of a confirmation page with full details of your order, which you are able to print as a receipt of your order. We will also email you with confirmation of your order.</p><p>We reserve the right to refuse or cancel any orders that we believe, solely by our own judgement, to be placed for commercial purposes, e.g. any kind of reseller. We also reserve the right to refuse or cancel any orders that we believe, solely by our own judgement, to have been placed fraudulently.</p><p>We reserve the right to limit the number of an item customers can purchase in a single transaction.</p></li><li><h2>3. Payment options</h2><p>We currently accept the following credit cards:</p><ul><li>Visa</li><li>MasterCard</li><li>American Express</li></ul>You can also pay using PayPal and internet bank transfer. Surcharges may apply for payment by PayPal or credit cards.</p></li><li><h2>4. Pricing</h2><p>All prices listed are inclusive of relevant taxes. All prices are correct when published. Please note that we reserve the right to alter prices at any time for any reason. If this should happen after you have ordered a product, we will contact you prior to processing your order. Online and in store pricing may differ.</p></li><li><h2>5. Website and Credit Card Security</h2><p>We want you to have a safe and secure shopping experience online. All payments via our sites are processed using SSL (Secure Socket Layer) protocol, whereby sensitive information is encrypted to protect your privacy.</p><p>You can help to protect your details from unauthorised access by logging out each time you finish using the site, particularly if you are doing so from a public or shared computer.</p><p>For security purposes certain transactions may require proof of identification.</p></li><li><h2>6. Delivery and Delivery Charges</h2><p>We do not deliver to Post Office boxes.</p><p>Please note that a signature is required for all deliveries. The goods become the recipient’s property and responsibility once they have been signed for at the time of delivery. If goods are lost or damaged in transit, please contact us within 7 business days <a href=\\"index.php?Page=ContactUs\\">see Contact Us page for contact details</a>. We will use this delivery information to make a claim against our courier company. We will offer you the choice of a replacement or a full refund, once we have received confirmation from our courier company that delivery was not successful.</p></li><li><h2>7. Restricted Products</h2><p>Some products on our site carry an age restriction, if a product you have selected is R16 or R18 a message will appear in the cart asking you to confirm you are an appropriate age to purchase the item(s). Confirming this means that you are of an eligible age to purchase the selected product(s). You are also agreeing that you are not purchasing the item on behalf of a person who is not the appropriate age.</p></li><li><h2>8. Delivery Period</h2><p>Delivery lead time for products may vary. Deliveries to rural addresses may take longer. You will receive an email that confirms that your order has been dispatched.</p><p>To ensure successful delivery, please provide a delivery address where someone will be present during business hours to sign for the receipt of your package. You can track your order by entering the tracking number emailed to you in the dispatch email at the Courier\\''s web-site.</p></li><li><h2>9. Disclaimer</h2><p>Our websites are intended to provide information for people shopping our products and accessing our services, including making purchases via our website and registering on our database to receive e-mails from us.</p><p>While we endeavour to supply accurate information on this site, errors and omissions may occur. We do not accept any liability, direct or indirect, for any loss or damage which may directly or indirectly result from any advice, opinion, information, representation or omission whether negligent or otherwise, contained on this site. You are solely responsible for the actions you take in reliance on the content on, or accessed, through this site.</p><p>We reserve the right to make changes to the content on this site at any time and without notice.</p><p>To the extent permitted by law, we make no warranties in relation to the merchantability, fitness for purpose, freedom from computer virus, accuracy or availability of this web site or any other web site.</p></li><li><h2>10. Links</h2><p>Please note that although this site has some hyperlinks to other third party websites, these sites have not been prepared by us are not under our control. The links are only provided as a convenience, and do not imply that we endorse, check, or approve of the third party site. We are not responsible for the privacy principles or content of these third party sites. We are not responsible for the availability of any of these links.</p></li><li><h2>11. Jurisdiction</h2><p>This website is governed by, and is to be interpreted in accordance with, the laws of ????.</p></li><li><h2>12. Changes to this Agreement</h2><p>We reserve the right to alter, modify or update these terms of use. These terms apply to your order. We may change our terms and conditions at any time, so please do not assume that the same terms will apply to future orders.</p></li></ul>'),
('ShopTitle', 'Shop Home'),
('ShowStockidOnImages', '0'),
('ShowValueOnGRN', '1'),
('Show_Settled_LastMonth', '1'),
('SmtpSetting', '0'),
('SO_AllowSameItemMultipleTimes', '1'),
('StandardCostDecimalPlaces', '2'),
('TaxAuthorityReferenceName', ''),
('UpdateCurrencyRatesDaily', '2016-11-27'),
('VersionNumber', '4.13.1'),
('WeightedAverageCosting', '0'),
('WikiApp', 'DokuWiki'),
('WikiPath', 'wiki'),
('WorkingDaysWeek', '5'),
('YearEnd', '3');
-- --------------------------------------------------------
--
-- Table structure for table `contractbom`
--
CREATE TABLE `contractbom` (
`contractref` varchar(20) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`workcentreadded` char(5) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `contractbom`
--
INSERT INTO `contractbom` (`contractref`, `stockid`, `workcentreadded`, `quantity`) VALUES
('Test123', 'SALT', 'ASS', 2),
('Test123', 'TAPE1', 'ASS', 3),
('Test123', 'TAPE2', 'ASS', 4);
-- --------------------------------------------------------
--
-- Table structure for table `contractcharges`
--
CREATE TABLE `contractcharges` (
`id` int(11) NOT NULL,
`contractref` varchar(20) NOT NULL,
`transtype` smallint(6) NOT NULL DEFAULT '20',
`transno` int(11) NOT NULL DEFAULT '0',
`amount` double NOT NULL DEFAULT '0',
`narrative` text NOT NULL,
`anticipated` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `contractreqts`
--
CREATE TABLE `contractreqts` (
`contractreqid` int(11) NOT NULL,
`contractref` varchar(20) NOT NULL DEFAULT '0',
`requirement` varchar(40) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '1',
`costperunit` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `contractreqts`
--
INSERT INTO `contractreqts` (`contractreqid`, `contractref`, `requirement`, `quantity`, `costperunit`) VALUES
(3, 'Test123', 'Other stuff', 2, 5.95),
(4, 'Test123', 'And that thing too', 4, 85);
-- --------------------------------------------------------
--
-- Table structure for table `contracts`
--
CREATE TABLE `contracts` (
`contractref` varchar(20) NOT NULL DEFAULT '',
`contractdescription` text NOT NULL,
`debtorno` varchar(10) NOT NULL DEFAULT '',
`branchcode` varchar(10) NOT NULL DEFAULT '',
`loccode` varchar(5) NOT NULL DEFAULT '',
`status` tinyint(4) NOT NULL DEFAULT '0',
`categoryid` varchar(6) NOT NULL DEFAULT '',
`orderno` int(11) NOT NULL DEFAULT '0',
`customerref` varchar(20) NOT NULL DEFAULT '',
`margin` double NOT NULL DEFAULT '1',
`wo` int(11) NOT NULL DEFAULT '0',
`requireddate` date NOT NULL DEFAULT '0000-00-00',
`drawing` varchar(50) NOT NULL DEFAULT '',
`exrate` double NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `contracts`
--
INSERT INTO `contracts` (`contractref`, `contractdescription`, `debtorno`, `branchcode`, `loccode`, `status`, `categoryid`, `orderno`, `customerref`, `margin`, `wo`, `requireddate`, `drawing`, `exrate`) VALUES
('Test123', 'Testing manufact tape', '14', '14', 'TOR', 2, 'TAPE', 40, 'dsssa', 50, 32, '2013-07-21', '', 1);
-- --------------------------------------------------------
--
-- Table structure for table `currencies`
--
CREATE TABLE `currencies` (
`currency` char(20) NOT NULL DEFAULT '',
`currabrev` char(3) NOT NULL DEFAULT '',
`country` char(50) NOT NULL DEFAULT '',
`hundredsname` char(15) NOT NULL DEFAULT 'Cents',
`decimalplaces` tinyint(3) NOT NULL DEFAULT '2',
`rate` double NOT NULL DEFAULT '1',
`webcart` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'If 1 shown in weberp cart. if 0 no show'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `currencies`
--
INSERT INTO `currencies` (`currency`, `currabrev`, `country`, `hundredsname`, `decimalplaces`, `rate`, `webcart`) VALUES
('Australian Dollars', 'AUD', 'Australia', 'cents', 2, 1.344, 0),
('Swiss Francs', 'CHF', 'Swizerland', 'centimes', 2, 1.0141, 0),
('Euro', 'EUR', 'Euroland', 'cents', 2, 0.944, 1),
('Pounds', 'GBP', 'England', 'Pence', 2, 0.8011, 0),
('Kenyian Shillings', 'KES', 'Kenya', 'none', 0, 101.841, 0),
('US Dollars', 'USD', 'United States', 'Cents', 2, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `custallocns`
--
CREATE TABLE `custallocns` (
`id` int(11) NOT NULL,
`amt` decimal(20,4) NOT NULL DEFAULT '0.0000',
`datealloc` date NOT NULL DEFAULT '0000-00-00',
`transid_allocfrom` int(11) NOT NULL DEFAULT '0',
`transid_allocto` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `custallocns`
--
INSERT INTO `custallocns` (`id`, `amt`, `datealloc`, `transid_allocfrom`, `transid_allocto`) VALUES
(1, '109.2500', '2013-06-25', 30, 34);
-- --------------------------------------------------------
--
-- Table structure for table `custbranch`
--
CREATE TABLE `custbranch` (
`branchcode` varchar(10) NOT NULL DEFAULT '',
`debtorno` varchar(10) NOT NULL DEFAULT '',
`brname` varchar(40) NOT NULL DEFAULT '',
`braddress1` varchar(40) NOT NULL DEFAULT '',
`braddress2` varchar(40) NOT NULL DEFAULT '',
`braddress3` varchar(40) NOT NULL DEFAULT '',
`braddress4` varchar(50) NOT NULL DEFAULT '',
`braddress5` varchar(20) NOT NULL DEFAULT '',
`braddress6` varchar(40) NOT NULL DEFAULT '',
`lat` float(10,6) NOT NULL DEFAULT '0.000000',
`lng` float(10,6) NOT NULL DEFAULT '0.000000',
`estdeliverydays` smallint(6) NOT NULL DEFAULT '1',
`area` char(3) NOT NULL,
`salesman` varchar(4) NOT NULL DEFAULT '',
`fwddate` smallint(6) NOT NULL DEFAULT '0',
`phoneno` varchar(20) NOT NULL DEFAULT '',
`faxno` varchar(20) NOT NULL DEFAULT '',
`contactname` varchar(30) NOT NULL DEFAULT '',
`email` varchar(55) NOT NULL DEFAULT '',
`defaultlocation` varchar(5) NOT NULL DEFAULT '',
`taxgroupid` tinyint(4) NOT NULL DEFAULT '1',
`defaultshipvia` int(11) NOT NULL DEFAULT '1',
`deliverblind` tinyint(1) DEFAULT '1',
`disabletrans` tinyint(4) NOT NULL DEFAULT '0',
`brpostaddr1` varchar(40) NOT NULL DEFAULT '',
`brpostaddr2` varchar(40) NOT NULL DEFAULT '',
`brpostaddr3` varchar(40) NOT NULL DEFAULT '',
`brpostaddr4` varchar(50) NOT NULL DEFAULT '',
`brpostaddr5` varchar(20) NOT NULL DEFAULT '',
`brpostaddr6` varchar(40) NOT NULL DEFAULT '',
`specialinstructions` text NOT NULL,
`custbranchcode` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `custbranch`
--
INSERT INTO `custbranch` (`branchcode`, `debtorno`, `brname`, `braddress1`, `braddress2`, `braddress3`, `braddress4`, `braddress5`, `braddress6`, `lat`, `lng`, `estdeliverydays`, `area`, `salesman`, `fwddate`, `phoneno`, `faxno`, `contactname`, `email`, `defaultlocation`, `taxgroupid`, `defaultshipvia`, `deliverblind`, `disabletrans`, `brpostaddr1`, `brpostaddr2`, `brpostaddr3`, `brpostaddr4`, `brpostaddr5`, `brpostaddr6`, `specialinstructions`, `custbranchcode`) VALUES
('11', '11', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '3200', '', 'United Kingdom', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '454422111', '', 'Angus McDougall', 'angus@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('12', '12', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '3211', '', 'United Kingdom', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '212234566', '', 'Angus McDougall', 'angus@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('13', '13', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', 'LE189', '', 'United Kingdom', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '0291882001', '', 'Angus McDougall', 'angus@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('14', '14', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '2113', '', 'United Kingdom', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '12323434355566778899', '', 'Angus McDougall', 'angus@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('16', '16', 'Logic Works Ltd', '34 Marram Way', 'Peka Peka', 'RD1 Waiakane', 'Kapiti', '5134', 'New Zealand', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '64275567890', '', 'Phil Daintree', 'phil@logicworks.co.nz', 'TOR', 2, 1, 1, 0, '34 Marram Way', 'Peka Peka', 'RD1 Waiakane', 'Kapiti', '5134', 'New Zealand', '', ''),
('8', '8', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '43990', '', 'United Kingdom', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '124544665', '', 'Angus McDougall', 'angus@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('ANGRY', 'ANGRY', 'Angus Rouledge - Toronto', 'P O Box 671', 'Gowerbridge', 'Upperton', 'Toronto ', 'Canada', 'United States', 0.000000, 0.000000, 3, 'TR', 'ERI', 0, '0422 2245 2213', '0422 2245 2215', 'Granville Thomas', 'graville@angry.com', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('ANGRYFL', 'ANGRY', 'Angus Rouledge - Florida', '1821 Sunnyside', 'Ft Lauderdale', 'Florida', '42554', '', 'United States', 0.000000, 0.000000, 3, 'FL', 'PHO', 0, '2445 2232 524', '2445 2232 522', 'Wendy Blowers', 'wendy@angry.com', 'TOR', 1, 1, 1, 0, '', '', '', '', '', '', 'Watch out can bite!', ''),
('DUMBLE', 'DUMBLE', 'Dumbledoor McGonagal & Co', 'Hogwarts castle', 'Platform 9.75', '', '', '', '', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, 'Owls only', 'Owls only', 'Minerva McGonagal', 'mmgonagal@hogwarts.edu.uk', 'TOR', 3, 10, 1, 0, '', '', '', '', '', '', '', ''),
('JOLOMU', 'JOLOMU', 'Lorrima Productions Inc', '3215 Great Western Highway', 'Blubberhouses', 'Yorkshire', 'England', '', '', 0.000000, 0.000000, 20, 'FL', 'PHO', 0, '+44 812 211456', '+44 812 211 554', 'Jo Lomu', 'jolomu@lorrima.co.uk', 'TOR', 3, 1, 1, 0, '', '', '', '', '', '', '', ''),
('KES', 'KES', 'Ken Estoban', '', '', '', '', '', '', 0.000000, 0.000000, 0, 'DE', 'DE', 0, '', '', '', '', 'MEL', 1, 1, 1, 0, '', '', '', '', '', '', '', ''),
('NEWTEST', 'NEWTEST', 'New Customer', '', '', '', '', '', 'United States', 0.000000, 0.000000, 0, '123', 'DE', 0, '', '', '', '', 'AN', 1, 1, 1, 0, '', '', '', '', '', '', '', ''),
('QUARTER', 'QUARTER', 'Quarter Back to Back', '1356 Union Drive', 'Holborn', 'England', '', '', '', 0.000000, 0.000000, 5, 'FL', 'ERI', 0, '123456', '1234567', '', '', 'TOR', 3, 1, 1, 0, '', '', '', '', '', '', '', ''),
('QUIC', 'QUICK', 'Quick Brown PLC', 'Fox Street', 'Jumped Over', 'The Lazy Dog', '', '', '', 0.000000, 0.000000, 1, 'FL', 'ERI', 0, '', '', '', '', 'TOR', 1, 1, 1, 0, '', '', '', '', '', '', '', ''),
('SLOW', 'QUICK', 'Slow Dog', 'Hunstman Road', 'Woofton', '', '', '', '', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '', '', 'Staffordshire Terrier', '', 'TOR', 2, 1, 1, 0, '', '', '', '', '', '', '', ''),
('WEB0000017', 'WEB0000017', 'Phil Daintree', '8 James Nairn Grove', '', '', 'Upper Hutt', '5018', 'New Zealand', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '+64(0)275567890', '', 'Phil Daintree', 'phil@logicworks.co.nz', 'TOR', 2, 1, 1, 0, '8 James Nairn Grove', '', '', 'Upper Hutt', '5018', 'New Zealand', '', ''),
('WEB0000018', 'WEB0000018', 'Logic Works Ltd', '34 Marram Way', 'Peka Peka, RD1 Waikanae', '', 'Kapiti', '5134', 'New Zealand', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '04 528 9514', '', 'Phil Daintree', 'phil@logicworks.co.nz', 'TOR', 2, 1, 1, 0, '34 Marram Way', 'Peka Peka, RD1 Waikanae', '', 'Kapiti', '5134', 'New Zealand', '', ''),
('WEB0000019', 'WEB0000019', 'Logic Works Ltd', '8 James Nairn Grove', 'James Nairn Grove', 'Riverstone Terraces', 'Upper Hutt', '5018', 'New Zealand', 0.000000, 0.000000, 1, 'TR', 'ERI', 0, '+6445289514', '', 'Phil Daintree', 'phil@logicworks.co.nz', 'TOR', 2, 1, 1, 0, '8 James Nairn Grove', 'James Nairn Grove', 'Riverstone Terraces', 'Upper Hutt', '5018', 'New Zealand', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `custcontacts`
--
CREATE TABLE `custcontacts` (
`contid` int(11) NOT NULL,
`debtorno` varchar(10) NOT NULL,
`contactname` varchar(40) NOT NULL,
`role` varchar(40) NOT NULL,
`phoneno` varchar(20) NOT NULL,
`notes` varchar(255) NOT NULL,
`email` varchar(55) NOT NULL,
`statement` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `custcontacts`
--
INSERT INTO `custcontacts` (`contid`, `debtorno`, `contactname`, `role`, `phoneno`, `notes`, `email`, `statement`) VALUES
(2, 'ANGRY', 'Hamish McKay', 'CEO', '12334302', 'Whisky drinker single malt only', '', 0),
(5, 'ANGRY', 'Bob (Robert) Bruce', 'Chairman', '10292811', '', '', 0),
(6, 'ANGRY', 'Billy Wallace', 'Mover and Shaker', '12455778', 'English Hater', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `custitem`
--
CREATE TABLE `custitem` (
`debtorno` char(10) NOT NULL DEFAULT '',
`stockid` varchar(20) NOT NULL DEFAULT '',
`cust_part` varchar(20) NOT NULL DEFAULT '',
`cust_description` varchar(30) NOT NULL DEFAULT '',
`customersuom` char(50) NOT NULL DEFAULT '',
`conversionfactor` double NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `custnotes`
--
CREATE TABLE `custnotes` (
`noteid` tinyint(4) NOT NULL,
`debtorno` varchar(10) NOT NULL DEFAULT '0',
`href` varchar(100) NOT NULL,
`note` text NOT NULL,
`date` date NOT NULL DEFAULT '0000-00-00',
`priority` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `debtorsmaster`
--
CREATE TABLE `debtorsmaster` (
`debtorno` varchar(10) NOT NULL DEFAULT '',
`name` varchar(40) NOT NULL DEFAULT '',
`address1` varchar(40) NOT NULL DEFAULT '',
`address2` varchar(40) NOT NULL DEFAULT '',
`address3` varchar(40) NOT NULL DEFAULT '',
`address4` varchar(50) NOT NULL DEFAULT '',
`address5` varchar(20) NOT NULL DEFAULT '',
`address6` varchar(40) NOT NULL DEFAULT '',
`currcode` char(3) NOT NULL DEFAULT '',
`salestype` char(2) NOT NULL DEFAULT '',
`clientsince` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`holdreason` smallint(6) NOT NULL DEFAULT '0',
`paymentterms` char(2) NOT NULL DEFAULT 'f',
`discount` double NOT NULL DEFAULT '0',
`pymtdiscount` double NOT NULL DEFAULT '0',
`lastpaid` double NOT NULL DEFAULT '0',
`lastpaiddate` datetime DEFAULT NULL,
`creditlimit` double NOT NULL DEFAULT '1000',
`invaddrbranch` tinyint(4) NOT NULL DEFAULT '0',
`discountcode` char(2) NOT NULL DEFAULT '',
`ediinvoices` tinyint(4) NOT NULL DEFAULT '0',
`ediorders` tinyint(4) NOT NULL DEFAULT '0',
`edireference` varchar(20) NOT NULL DEFAULT '',
`editransport` varchar(5) NOT NULL DEFAULT 'email',
`ediaddress` varchar(50) NOT NULL DEFAULT '',
`ediserveruser` varchar(20) NOT NULL DEFAULT '',
`ediserverpwd` varchar(20) NOT NULL DEFAULT '',
`taxref` varchar(20) NOT NULL DEFAULT '',
`customerpoline` tinyint(1) NOT NULL DEFAULT '0',
`typeid` tinyint(4) NOT NULL DEFAULT '1',
`language_id` varchar(10) NOT NULL DEFAULT 'en_GB.utf8'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `debtorsmaster`
--
INSERT INTO `debtorsmaster` (`debtorno`, `name`, `address1`, `address2`, `address3`, `address4`, `address5`, `address6`, `currcode`, `salestype`, `clientsince`, `holdreason`, `paymentterms`, `discount`, `pymtdiscount`, `lastpaid`, `lastpaiddate`, `creditlimit`, `invaddrbranch`, `discountcode`, `ediinvoices`, `ediorders`, `edireference`, `editransport`, `ediaddress`, `ediserveruser`, `ediserverpwd`, `taxref`, `customerpoline`, `typeid`, `language_id`) VALUES
('11', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '3200', '', 'United Kingdom', 'USD', 'DE', '2013-06-16 00:00:00', 1, 'CA', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('12', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '3211', '', 'United Kingdom', 'USD', 'DE', '2013-06-16 00:00:00', 1, 'CA', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('13', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', 'LE189', '', 'United Kingdom', 'USD', 'DE', '2013-06-16 00:00:00', 1, 'CA', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('14', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '2113', '', 'United Kingdom', 'USD', 'DE', '2013-06-16 00:00:00', 1, 'CA', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('16', 'Logic Works Ltd', '34 Marram Way', 'Peka Peka', 'RD1 Waiakane', 'Kapiti', '5134', 'New Zealand', 'USD', 'DE', '2013-06-23 00:00:00', 1, 'CA', 0, 0, 8.659050435, '2013-06-24 00:00:00', 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('8', 'Angus Routledge & Co', '123 Alexander Road', 'Roundhay', 'Leeds', '43990', '', 'United Kingdom', 'USD', 'DE', '2013-06-16 00:00:00', 1, 'CA', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'fr_FR.utf8'),
('ANGRY', 'Angus Rouledge Younger & Son', 'P O Box 67', 'Gowerbridge', 'Upperton', 'Michigan', '', 'United States', 'USD', 'DE', '2005-04-30 00:00:00', 1, 'CA', 0, 0, 50, '2013-06-16 00:00:00', 2500, 0, '', 0, 0, '', 'email', '', '', '', '1344-654-112', 0, 1, 'en_GB.utf8'),
('DUMBLE', 'Dumbledoor McGonagal & Co', 'Hogwarts castle', 'Platform 9.75', '', '', '', '', 'GBP', 'DE', '2005-06-18 00:00:00', 1, '30', 0, 0, 10, '2012-12-16 00:00:00', 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('JOLOMU', 'Lorrima Productions Inc', '3215 Great Western Highway', 'Blubberhouses', 'Yorkshire', 'England', '', '', 'GBP', 'DE', '2005-06-15 00:00:00', 1, '30', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('KES', 'Ken Estoban', '', '', '', '', '', '', 'KES', 'DE', '2012-10-25 00:00:00', 1, '20', 0, 0, 50094, '2012-11-18 00:00:00', 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('NEWTEST', 'New Customer', '', '', '', '', '', 'United States', 'USD', 'DE', '2013-06-29 00:00:00', 1, '20', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('QUARTER', 'Quarter Back to Back', '1356 Union Drive', 'Holborn', 'England', '', '', '', 'CHF', 'DE', '2005-09-03 00:00:00', 1, '20', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('QUICK', 'Quick Brown PLC', 'Fox Street', 'Jumped Over', 'The Lazy Dog', '', '', '', 'USD', 'DE', '2007-01-30 00:00:00', 1, '20', 0, 0, 0, NULL, 1000, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('WEB0000017', 'Phil Daintree', '8 James Nairn Grove', '', '', 'Upper Hutt', '5018', 'New Zealand', 'USD', 'DE', '2013-10-06 09:09:46', 1, 'CA', 0, 0, 0, NULL, 2500, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('WEB0000018', 'Logic Works Ltd', '34 Marram Way', 'Peka Peka, RD1 Waikanae', '', 'Kapiti', '5134', 'New Zealand', 'USD', 'DE', '2014-08-31 12:32:16', 1, 'CA', 0, 0, 0, NULL, 2500, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8'),
('WEB0000019', 'Logic Works Ltd', '8 James Nairn Grove', 'James Nairn Grove', 'Riverstone Terraces', 'Upper Hutt', '5018', 'New Zealand', 'USD', 'DE', '2015-01-31 11:40:36', 1, 'CA', 0, 0, 0, NULL, 2500, 0, '', 0, 0, '', 'email', '', '', '', '', 0, 1, 'en_GB.utf8');
-- --------------------------------------------------------
--
-- Table structure for table `debtortrans`
--
CREATE TABLE `debtortrans` (
`id` int(11) NOT NULL,
`transno` int(11) NOT NULL DEFAULT '0',
`type` smallint(6) NOT NULL DEFAULT '0',
`debtorno` varchar(10) NOT NULL DEFAULT '',
`branchcode` varchar(10) NOT NULL DEFAULT '',
`trandate` date NOT NULL DEFAULT '0000-00-00',
`inputdate` datetime NOT NULL,
`prd` smallint(6) NOT NULL DEFAULT '0',
`settled` tinyint(4) NOT NULL DEFAULT '0',
`reference` varchar(20) NOT NULL DEFAULT '',
`tpe` char(2) NOT NULL DEFAULT '',
`order_` int(11) NOT NULL DEFAULT '0',
`rate` double NOT NULL DEFAULT '0',
`ovamount` double NOT NULL DEFAULT '0',
`ovgst` double NOT NULL DEFAULT '0',
`ovfreight` double NOT NULL DEFAULT '0',
`ovdiscount` double NOT NULL DEFAULT '0',
`diffonexch` double NOT NULL DEFAULT '0',
`alloc` double NOT NULL DEFAULT '0',
`invtext` text,
`shipvia` int(11) NOT NULL DEFAULT '0',
`edisent` tinyint(4) NOT NULL DEFAULT '0',
`consignment` varchar(20) NOT NULL DEFAULT '',
`packages` int(11) NOT NULL DEFAULT '1' COMMENT 'number of cartons',
`salesperson` varchar(4) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `debtortrans`
--
INSERT INTO `debtortrans` (`id`, `transno`, `type`, `debtorno`, `branchcode`, `trandate`, `inputdate`, `prd`, `settled`, `reference`, `tpe`, `order_`, `rate`, `ovamount`, `ovgst`, `ovfreight`, `ovdiscount`, `diffonexch`, `alloc`, `invtext`, `shipvia`, `edisent`, `consignment`, `packages`, `salesperson`) VALUES
(30, 1, 12, '16', '16', '2013-06-23', '2013-06-23 19:51:00', 19, 1, '', '', 0, 1, -109.25, 0, 0, 0, 0, -109.25, 'web payment', 0, 0, '', 1, ''),
(31, 2, 12, '16', '16', '2013-06-24', '2013-06-24 21:53:00', 19, 0, '', '', 0, 1, -14.16, 0, 0, 0, 0, 0, 'web payment', 0, 0, '', 1, ''),
(32, 3, 12, '16', '16', '2013-06-24', '2013-06-24 22:36:00', 19, 0, 'V78R4D18BB1E', '', 4, 1, -14.16, 0, 0, 0, 0, 0, 'web payment', 0, 0, '', 1, 'ERI'),
(33, 4, 12, '16', '16', '2013-06-24', '2013-06-24 22:38:00', 19, 0, 'V18R4E55E804', '', 5, 1, -8.66, 0, 0, 0, 0, 0, 'web payment', 0, 0, '', 1, 'ERI'),
(34, 1, 10, '16', '16', '2013-06-26', '2013-06-25 21:42:59', 19, 1, '', 'DE', 1, 1, 97.24, 12.01, 0, 0, 0, 109.25, '', 1, 0, '', 1, 'ERI'),
(35, 2, 10, '12', '12', '2013-09-07', '2013-09-06 21:29:53', 22, 0, '', 'DE', 7, 1, 5, 0.62, 0, 0, 0, 0, '', 1, 0, '', 1, 'ERI');
-- --------------------------------------------------------
--
-- Table structure for table `debtortranstaxes`
--
CREATE TABLE `debtortranstaxes` (
`debtortransid` int(11) NOT NULL DEFAULT '0',
`taxauthid` tinyint(4) NOT NULL DEFAULT '0',
`taxamount` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `debtortranstaxes`
--
INSERT INTO `debtortranstaxes` (`debtortransid`, `taxauthid`, `taxamount`) VALUES
(34, 11, 7.14717675),
(34, 12, 4.862025),
(35, 11, 0.3675),
(35, 12, 0.25);
-- --------------------------------------------------------
--
-- Table structure for table `debtortype`
--
CREATE TABLE `debtortype` (
`typeid` tinyint(4) NOT NULL,
`typename` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `debtortype`
--
INSERT INTO `debtortype` (`typeid`, `typename`) VALUES
(1, 'Default');
-- --------------------------------------------------------
--
-- Table structure for table `debtortypenotes`
--
CREATE TABLE `debtortypenotes` (
`noteid` tinyint(4) NOT NULL,
`typeid` tinyint(4) NOT NULL DEFAULT '0',
`href` varchar(100) NOT NULL,
`note` varchar(200) NOT NULL,
`date` date NOT NULL DEFAULT '0000-00-00',
`priority` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `deliverynotes`
--
CREATE TABLE `deliverynotes` (
`deliverynotenumber` int(11) NOT NULL,
`deliverynotelineno` tinyint(4) NOT NULL,
`salesorderno` int(11) NOT NULL,
`salesorderlineno` int(11) NOT NULL,
`qtydelivered` double NOT NULL DEFAULT '0',
`printed` tinyint(4) NOT NULL DEFAULT '0',
`invoiced` tinyint(4) NOT NULL DEFAULT '0',
`deliverydate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`departmentid` int(11) NOT NULL,
`description` varchar(100) NOT NULL DEFAULT '',
`authoriser` varchar(20) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`departmentid`, `description`, `authoriser`) VALUES
(1, 'Workshop', 'admin'),
(2, 'Customer Services', 'admin');
-- --------------------------------------------------------
--
-- Table structure for table `discountmatrix`
--
CREATE TABLE `discountmatrix` (
`salestype` char(2) NOT NULL DEFAULT '',
`discountcategory` char(2) NOT NULL DEFAULT '',
`quantitybreak` int(11) NOT NULL DEFAULT '1',
`discountrate` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `discountmatrix`
--
INSERT INTO `discountmatrix` (`salestype`, `discountcategory`, `quantitybreak`, `discountrate`) VALUES
('DE', 'DE', 3, 0.025);
-- --------------------------------------------------------
--
-- Table structure for table `ediitemmapping`
--
CREATE TABLE `ediitemmapping` (
`supporcust` varchar(4) NOT NULL DEFAULT '',
`partnercode` varchar(10) NOT NULL DEFAULT '',
`stockid` varchar(20) NOT NULL DEFAULT '',
`partnerstockid` varchar(50) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `edimessageformat`
--
CREATE TABLE `edimessageformat` (
`id` int(11) NOT NULL,
`partnercode` varchar(10) NOT NULL DEFAULT '',
`messagetype` varchar(6) NOT NULL DEFAULT '',
`section` varchar(7) NOT NULL DEFAULT '',
`sequenceno` int(11) NOT NULL DEFAULT '0',
`linetext` varchar(70) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `edi_orders_segs`
--
CREATE TABLE `edi_orders_segs` (
`id` int(11) NOT NULL,
`segtag` char(3) NOT NULL DEFAULT '',
`seggroup` tinyint(4) NOT NULL DEFAULT '0',
`maxoccur` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `edi_orders_segs`
--
INSERT INTO `edi_orders_segs` (`id`, `segtag`, `seggroup`, `maxoccur`) VALUES
(1, 'UNB', 0, 1),
(2, 'UNH', 0, 1),
(3, 'BGM', 0, 1),
(4, 'DTM', 0, 35),
(5, 'PAI', 0, 1),
(6, 'ALI', 0, 5),
(7, 'FTX', 0, 99),
(8, 'RFF', 1, 1),
(9, 'DTM', 1, 5),
(10, 'NAD', 2, 1),
(11, 'LOC', 2, 99),
(12, 'FII', 2, 5),
(13, 'RFF', 3, 1),
(14, 'CTA', 5, 1),
(15, 'COM', 5, 5),
(16, 'TAX', 6, 1),
(17, 'MOA', 6, 1),
(18, 'CUX', 7, 1),
(19, 'DTM', 7, 5),
(20, 'PAT', 8, 1),
(21, 'DTM', 8, 5),
(22, 'PCD', 8, 1),
(23, 'MOA', 9, 1),
(24, 'TDT', 10, 1),
(25, 'LOC', 11, 1),
(26, 'DTM', 11, 5),
(27, 'TOD', 12, 1),
(28, 'LOC', 12, 2),
(29, 'PAC', 13, 1),
(30, 'PCI', 14, 1),
(31, 'RFF', 14, 1),
(32, 'DTM', 14, 5),
(33, 'GIN', 14, 10),
(34, 'EQD', 15, 1),
(35, 'ALC', 19, 1),
(36, 'ALI', 19, 5),
(37, 'DTM', 19, 5),
(38, 'QTY', 20, 1),
(39, 'RNG', 20, 1),
(40, 'PCD', 21, 1),
(41, 'RNG', 21, 1),
(42, 'MOA', 22, 1),
(43, 'RNG', 22, 1),
(44, 'RTE', 23, 1),
(45, 'RNG', 23, 1),
(46, 'TAX', 24, 1),
(47, 'MOA', 24, 1),
(48, 'LIN', 28, 1),
(49, 'PIA', 28, 25),
(50, 'IMD', 28, 99),
(51, 'MEA', 28, 99),
(52, 'QTY', 28, 99),
(53, 'ALI', 28, 5),
(54, 'DTM', 28, 35),
(55, 'MOA', 28, 10),
(56, 'GIN', 28, 127),
(57, 'QVR', 28, 1),
(58, 'FTX', 28, 99),
(59, 'PRI', 32, 1),
(60, 'CUX', 32, 1),
(61, 'DTM', 32, 5),
(62, 'RFF', 33, 1),
(63, 'DTM', 33, 5),
(64, 'PAC', 34, 1),
(65, 'QTY', 34, 5),
(66, 'PCI', 36, 1),
(67, 'RFF', 36, 1),
(68, 'DTM', 36, 5),
(69, 'GIN', 36, 10),
(70, 'LOC', 37, 1),
(71, 'QTY', 37, 1),
(72, 'DTM', 37, 5),
(73, 'TAX', 38, 1),
(74, 'MOA', 38, 1),
(75, 'NAD', 39, 1),
(76, 'CTA', 42, 1),
(77, 'COM', 42, 5),
(78, 'ALC', 43, 1),
(79, 'ALI', 43, 5),
(80, 'DTM', 43, 5),
(81, 'QTY', 44, 1),
(82, 'RNG', 44, 1),
(83, 'PCD', 45, 1),
(84, 'RNG', 45, 1),
(85, 'MOA', 46, 1),
(86, 'RNG', 46, 1),
(87, 'RTE', 47, 1),
(88, 'RNG', 47, 1),
(89, 'TAX', 48, 1),
(90, 'MOA', 48, 1),
(91, 'TDT', 49, 1),
(92, 'UNS', 50, 1),
(93, 'MOA', 50, 1),
(94, 'CNT', 50, 1),
(95, 'UNT', 50, 1);
-- --------------------------------------------------------
--
-- Table structure for table `edi_orders_seg_groups`
--
CREATE TABLE `edi_orders_seg_groups` (
`seggroupno` tinyint(4) NOT NULL DEFAULT '0',
`maxoccur` int(4) NOT NULL DEFAULT '0',
`parentseggroup` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `edi_orders_seg_groups`
--
INSERT INTO `edi_orders_seg_groups` (`seggroupno`, `maxoccur`, `parentseggroup`) VALUES
(0, 1, 0),
(1, 9999, 0),
(2, 99, 0),
(3, 99, 2),
(5, 5, 2),
(6, 5, 0),
(7, 5, 0),
(8, 10, 0),
(9, 9999, 8),
(10, 10, 0),
(11, 10, 10),
(12, 5, 0),
(13, 99, 0),
(14, 5, 13),
(15, 10, 0),
(19, 99, 0),
(20, 1, 19),
(21, 1, 19),
(22, 2, 19),
(23, 1, 19),
(24, 5, 19),
(28, 200000, 0),
(32, 25, 28),
(33, 9999, 28),
(34, 99, 28),
(36, 5, 34),
(37, 9999, 28),
(38, 10, 28),
(39, 999, 28),
(42, 5, 39),
(43, 99, 28),
(44, 1, 43),
(45, 1, 43),
(46, 2, 43),
(47, 1, 43),
(48, 5, 43),
(49, 10, 28),
(50, 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `emailsettings`
--
CREATE TABLE `emailsettings` (
`id` int(11) NOT NULL,
`host` varchar(30) NOT NULL,
`port` char(5) NOT NULL,
`heloaddress` varchar(20) NOT NULL,
`username` varchar(50) DEFAULT NULL,
`password` varchar(30) DEFAULT NULL,
`timeout` int(11) DEFAULT '5',
`companyname` varchar(50) DEFAULT NULL,
`auth` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `factorcompanies`
--
CREATE TABLE `factorcompanies` (
`id` int(11) NOT NULL,
`coyname` varchar(50) NOT NULL DEFAULT '',
`address1` varchar(40) NOT NULL DEFAULT '',
`address2` varchar(40) NOT NULL DEFAULT '',
`address3` varchar(40) NOT NULL DEFAULT '',
`address4` varchar(40) NOT NULL DEFAULT '',
`address5` varchar(20) NOT NULL DEFAULT '',
`address6` varchar(15) NOT NULL DEFAULT '',
`contact` varchar(25) NOT NULL DEFAULT '',
`telephone` varchar(25) NOT NULL DEFAULT '',
`fax` varchar(25) NOT NULL DEFAULT '',
`email` varchar(55) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `fixedassetcategories`
--
CREATE TABLE `fixedassetcategories` (
`categoryid` char(6) NOT NULL DEFAULT '',
`categorydescription` char(20) NOT NULL DEFAULT '',
`costact` varchar(20) NOT NULL DEFAULT '0',
`depnact` varchar(20) NOT NULL DEFAULT '0',
`disposalact` varchar(20) NOT NULL DEFAULT '80000',
`accumdepnact` varchar(20) NOT NULL DEFAULT '0',
`defaultdepnrate` double NOT NULL DEFAULT '0.2',
`defaultdepntype` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `fixedassetcategories`
--
INSERT INTO `fixedassetcategories` (`categoryid`, `categorydescription`, `costact`, `depnact`, `disposalact`, `accumdepnact`, `defaultdepnrate`, `defaultdepntype`) VALUES
('PLANT', 'Plant and Equipment', '1650', '7750', '8100', '1670', 0.2, 1);
-- --------------------------------------------------------
--
-- Table structure for table `fixedassetlocations`
--
CREATE TABLE `fixedassetlocations` (
`locationid` char(6) NOT NULL DEFAULT '',
`locationdescription` char(20) NOT NULL DEFAULT '',
`parentlocationid` char(6) DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `fixedassetlocations`
--
INSERT INTO `fixedassetlocations` (`locationid`, `locationdescription`, `parentlocationid`) VALUES
('HEADOF', 'Head Office', ''),
('TORONT', 'Toronto Warehouse', '');
-- --------------------------------------------------------
--
-- Table structure for table `fixedassets`
--
CREATE TABLE `fixedassets` (
`assetid` int(11) NOT NULL,
`serialno` varchar(30) NOT NULL DEFAULT '',
`barcode` varchar(20) NOT NULL,
`assetlocation` varchar(6) NOT NULL DEFAULT '',
`cost` double NOT NULL DEFAULT '0',
`accumdepn` double NOT NULL DEFAULT '0',
`datepurchased` date NOT NULL DEFAULT '0000-00-00',
`disposalproceeds` double NOT NULL DEFAULT '0',
`assetcategoryid` varchar(6) NOT NULL DEFAULT '',
`description` varchar(50) NOT NULL DEFAULT '',
`longdescription` text NOT NULL,
`depntype` int(11) NOT NULL DEFAULT '1',
`depnrate` double NOT NULL,
`disposaldate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `fixedassets`
--
INSERT INTO `fixedassets` (`assetid`, `serialno`, `barcode`, `assetlocation`, `cost`, `accumdepn`, `datepurchased`, `disposalproceeds`, `assetcategoryid`, `description`, `longdescription`, `depntype`, `depnrate`, `disposaldate`) VALUES
(1, '', '', 'HEADOF', 0, 0, '0000-00-00', 0, 'PLANT', 'test 1', 'Test 1', 0, 5, '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `fixedassettasks`
--
CREATE TABLE `fixedassettasks` (
`taskid` int(11) NOT NULL,
`assetid` int(11) NOT NULL,
`taskdescription` text NOT NULL,
`frequencydays` int(11) NOT NULL DEFAULT '365',
`lastcompleted` date NOT NULL,
`userresponsible` varchar(20) NOT NULL,
`manager` varchar(20) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `fixedassettrans`
--
CREATE TABLE `fixedassettrans` (
`id` int(11) NOT NULL,
`assetid` int(11) NOT NULL,
`transtype` tinyint(4) NOT NULL,
`transdate` date NOT NULL,
`transno` int(11) NOT NULL,
`periodno` smallint(6) NOT NULL,
`inputdate` date NOT NULL,
`fixedassettranstype` varchar(8) NOT NULL,
`amount` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `freightcosts`
--
CREATE TABLE `freightcosts` (
`shipcostfromid` int(11) NOT NULL,
`locationfrom` varchar(5) NOT NULL DEFAULT '',
`destinationcountry` varchar(40) NOT NULL,
`destination` varchar(40) NOT NULL DEFAULT '',
`shipperid` int(11) NOT NULL DEFAULT '0',
`cubrate` double NOT NULL DEFAULT '0',
`kgrate` double NOT NULL DEFAULT '0',
`maxkgs` double NOT NULL DEFAULT '999999',
`maxcub` double NOT NULL DEFAULT '999999',
`fixedprice` double NOT NULL DEFAULT '0',
`minimumchg` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `geocode_param`
--
CREATE TABLE `geocode_param` (
`geocodeid` tinyint(4) NOT NULL,
`geocode_key` varchar(200) NOT NULL DEFAULT '',
`center_long` varchar(20) NOT NULL DEFAULT '',
`center_lat` varchar(20) NOT NULL DEFAULT '',
`map_height` varchar(10) NOT NULL DEFAULT '',
`map_width` varchar(10) NOT NULL DEFAULT '',
`map_host` varchar(50) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `glaccountusers`
--
CREATE TABLE `glaccountusers` (
`accountcode` varchar(20) NOT NULL COMMENT 'GL account code from chartmaster',
`userid` varchar(20) NOT NULL,
`canview` tinyint(4) NOT NULL DEFAULT '0',
`canupd` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `glaccountusers`
--
INSERT INTO `glaccountusers` (`accountcode`, `userid`, `canview`, `canupd`) VALUES
('1', 'admin', 1, 1),
('1010', 'admin', 1, 1),
('1020', 'admin', 1, 1),
('1030', 'admin', 1, 1),
('1040', 'admin', 1, 1),
('1050', 'admin', 1, 1),
('1060', 'admin', 1, 1),
('1070', 'admin', 1, 1),
('1080', 'admin', 1, 1),
('1090', 'admin', 1, 1),
('1100', 'admin', 1, 1),
('1150', 'admin', 1, 1),
('1200', 'admin', 1, 1),
('1250', 'admin', 1, 1),
('1300', 'admin', 1, 1),
('1350', 'admin', 1, 1),
('1400', 'admin', 1, 1),
('1420', 'admin', 1, 1),
('1440', 'admin', 1, 1),
('1460', 'admin', 1, 1),
('1500', 'admin', 1, 1),
('1550', 'admin', 1, 1),
('1600', 'admin', 1, 1),
('1620', 'admin', 1, 1),
('1650', 'admin', 1, 1),
('1670', 'admin', 1, 1),
('1700', 'admin', 1, 1),
('1710', 'admin', 1, 1),
('1720', 'admin', 1, 1),
('1730', 'admin', 1, 1),
('1740', 'admin', 1, 1),
('1750', 'admin', 1, 1),
('1760', 'admin', 1, 1),
('1770', 'admin', 1, 1),
('1780', 'admin', 1, 1),
('1790', 'admin', 1, 1),
('1800', 'admin', 1, 1),
('1850', 'admin', 1, 1),
('1900', 'admin', 1, 1),
('2010', 'admin', 1, 1),
('2020', 'admin', 1, 1),
('2050', 'admin', 1, 1),
('2100', 'admin', 1, 1),
('2150', 'admin', 1, 1),
('2200', 'admin', 1, 1),
('2230', 'admin', 1, 1),
('2250', 'admin', 1, 1),
('2300', 'admin', 1, 1),
('2310', 'admin', 1, 1),
('2320', 'admin', 1, 1),
('2330', 'admin', 1, 1),
('2340', 'admin', 1, 1),
('2350', 'admin', 1, 1),
('2360', 'admin', 1, 1),
('2400', 'admin', 1, 1),
('2410', 'admin', 1, 1),
('2420', 'admin', 1, 1),
('2450', 'admin', 1, 1),
('2460', 'admin', 1, 1),
('2480', 'admin', 1, 1),
('2500', 'admin', 1, 1),
('2550', 'admin', 1, 1),
('2560', 'admin', 1, 1),
('2600', 'admin', 1, 1),
('2700', 'admin', 1, 1),
('2720', 'admin', 1, 1),
('2740', 'admin', 1, 1),
('2760', 'admin', 1, 1),
('2800', 'admin', 1, 1),
('2900', 'admin', 1, 1),
('3100', 'admin', 1, 1),
('3200', 'admin', 1, 1),
('3300', 'admin', 1, 1),
('3400', 'admin', 1, 1),
('3500', 'admin', 1, 1),
('4100', 'admin', 1, 1),
('4200', 'admin', 1, 1),
('4500', 'admin', 1, 1),
('4600', 'admin', 1, 1),
('4700', 'admin', 1, 1),
('4800', 'admin', 1, 1),
('4900', 'admin', 1, 1),
('5000', 'admin', 1, 1),
('5100', 'admin', 1, 1),
('5200', 'admin', 1, 1),
('5500', 'admin', 1, 1),
('5600', 'admin', 1, 1),
('5700', 'admin', 1, 1),
('5800', 'admin', 1, 1),
('5900', 'admin', 1, 1),
('6100', 'admin', 1, 1),
('6150', 'admin', 1, 1),
('6200', 'admin', 1, 1),
('6250', 'admin', 1, 1),
('6300', 'admin', 1, 1),
('6400', 'admin', 1, 1),
('6500', 'admin', 1, 1),
('6550', 'admin', 1, 1),
('6590', 'admin', 1, 1),
('6600', 'admin', 1, 1),
('6700', 'admin', 1, 1),
('6800', 'admin', 1, 1),
('6900', 'admin', 1, 1),
('7020', 'admin', 1, 1),
('7030', 'admin', 1, 1),
('7040', 'admin', 1, 1),
('7050', 'admin', 1, 1),
('7060', 'admin', 1, 1),
('7070', 'admin', 1, 1),
('7080', 'admin', 1, 1),
('7090', 'admin', 1, 1),
('7100', 'admin', 1, 1),
('7150', 'admin', 1, 1),
('7200', 'admin', 1, 1),
('7210', 'admin', 1, 1),
('7220', 'admin', 1, 1),
('7230', 'admin', 1, 1),
('7240', 'admin', 1, 1),
('7260', 'admin', 1, 1),
('7280', 'admin', 1, 1),
('7300', 'admin', 1, 1),
('7350', 'admin', 1, 1),
('7390', 'admin', 1, 1),
('7400', 'admin', 1, 1),
('7450', 'admin', 1, 1),
('7500', 'admin', 1, 1),
('7550', 'admin', 1, 1),
('7600', 'admin', 1, 1),
('7610', 'admin', 1, 1),
('7620', 'admin', 1, 1),
('7630', 'admin', 1, 1),
('7640', 'admin', 1, 1),
('7650', 'admin', 1, 1),
('7660', 'admin', 1, 1),
('7700', 'admin', 1, 1),
('7750', 'admin', 1, 1),
('7800', 'admin', 1, 1),
('7900', 'admin', 1, 1),
('8100', 'admin', 1, 1),
('8200', 'admin', 1, 1),
('8300', 'admin', 1, 1),
('8400', 'admin', 1, 1),
('8500', 'admin', 1, 1),
('8600', 'admin', 1, 1),
('8900', 'admin', 1, 1),
('9100', 'admin', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `gltrans`
--
CREATE TABLE `gltrans` (
`counterindex` int(11) NOT NULL,
`type` smallint(6) NOT NULL DEFAULT '0',
`typeno` bigint(16) NOT NULL DEFAULT '1',
`chequeno` int(11) NOT NULL DEFAULT '0',
`trandate` date NOT NULL DEFAULT '0000-00-00',
`periodno` smallint(6) NOT NULL DEFAULT '0',
`account` varchar(20) NOT NULL DEFAULT '0',
`narrative` varchar(200) NOT NULL DEFAULT '',
`amount` double NOT NULL DEFAULT '0',
`posted` tinyint(4) NOT NULL DEFAULT '0',
`jobref` varchar(20) NOT NULL DEFAULT '',
`tag` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `gltrans`
--
INSERT INTO `gltrans` (`counterindex`, `type`, `typeno`, `chequeno`, `trandate`, `periodno`, `account`, `narrative`, `amount`, `posted`, `jobref`, `tag`) VALUES
(1, 0, 7, 0, '2013-02-08', 15, '5500', 'CUTTING Change stock category', 0, 1, '', 0),
(2, 0, 7, 0, '2013-02-08', 15, '1460', 'CUTTING Change stock category', 0, 1, '', 0),
(3, 20, 37, 0, '2013-02-08', 15, '4600', 'CRUISE open item', 150.61669829222, 1, '', 0),
(4, 20, 37, 0, '2013-02-08', 15, '2100', 'CRUISE - Inv opninvoice GBP95.25 @ a rate of 0.6324', -150.61669829222, 1, '', 0),
(5, 10, 4, 0, '2013-02-11', 15, '5000', 'ANGRY - TAPE2 x 1 @ 2.5000', 2.5, 1, '', 0),
(6, 10, 4, 0, '2013-02-11', 15, '1460', 'ANGRY - TAPE2 x 1 @ 2.5000', -2.5, 1, '', 0),
(7, 10, 4, 0, '2013-02-11', 15, '4100', 'ANGRY - TAPE2 x 1 @ 15', -15, 1, '', 0),
(8, 10, 4, 0, '2013-02-11', 15, '1100', 'ANGRY', 16.5, 1, '', 0),
(9, 10, 4, 0, '2013-02-11', 15, '2300', 'ANGRY', -1.5, 1, '', 0),
(12, 25, 50, 0, '2013-01-06', 14, '1460', 'PO: 23 BINGO - DVD_ACTION - Action Series Bundle x 1 @ 16.22', 16.22, 1, '', 0),
(13, 25, 50, 0, '2013-01-06', 14, '2150', 'PO1360356432: 23 BINGO - DVD_ACTION - Action Series Bundle x 1 @ 16.22', -16.22, 1, '', 0),
(14, 25, 51, 0, '2013-02-09', 15, '1460', 'PO: 25 CRUISE - TAPE1 - DFR-12 DFR Tape per Keystone spec x 100 @ 10.00', 1000, 1, '', 0),
(15, 25, 51, 0, '2013-02-09', 15, '2150', 'PO1360356915: 25 CRUISE - TAPE1 - DFR-12 DFR Tape per Keystone spec x 100 @ 10.00', -1000, 1, '', 0),
(16, 25, 52, 0, '2013-02-09', 15, '1460', 'PO: 27 CRUISE - TAPE1 - DFR-12 - DFR Tape per Keystone spec x 10 @ 10.00', 100, 1, '', 0),
(17, 25, 52, 0, '2013-02-09', 15, '2150', 'PO1360357179: 27 CRUISE - TAPE1 - DFR-12 - DFR Tape per Keystone spec x 10 @ 10.00', -100, 1, '', 0),
(18, 35, 19, 0, '2013-02-09', 15, '5700', 'TAPE2 cost was 2.5000 changed to 2.5 x Quantity on hand of -1', 0, 1, '', 0),
(19, 35, 19, 0, '2013-02-09', 15, '1460', 'TAPE2 cost was 2.5000 changed to 2.5 x Quantity on hand of -1', 0, 1, '', 0),
(20, 10, 5, 0, '2013-02-11', 15, '5000', 'ANGRY - SELLTAPE x 100 @ 0.01', 1.0000000000000004, 1, '', 0),
(21, 10, 5, 0, '2013-02-11', 15, '1460', 'ANGRY - SELLTAPE x 100 @ 0.01', -1, 1, '', 0),
(22, 10, 5, 0, '2013-02-11', 15, '4100', 'ANGRY - SELLTAPE x 100 @ 0.5', -50, 1, '', 0),
(23, 10, 5, 0, '2013-02-11', 15, '1100', 'ANGRY', 56.18, 1, '', 0),
(24, 10, 5, 0, '2013-02-11', 15, '2300', 'ANGRY', -2.5, 1, '', 0),
(25, 10, 5, 0, '2013-02-11', 15, '2300', 'ANGRY', -3.68, 1, '', 0),
(26, 28, 13, 0, '2013-02-09', 15, '1440', '31 CUTTING x 2 @ 0.00', 0, 1, '', 0),
(27, 28, 13, 0, '2013-02-09', 15, '5500', '31 CUTTING x 2 @ 0.00', 0, 1, '', 0),
(28, 28, 14, 0, '2013-02-09', 15, '1440', '31 - TAPE2 Component: TAPE1 - 90 x 0.25 @ 10.00', 225, 1, '', 0),
(29, 28, 14, 0, '2013-02-09', 15, '1460', '31 - TAPE2 -> TAPE1 - 90 x 0.25 @ 10.00', -225, 1, '', 0),
(30, 26, 8, 0, '2013-02-09', 15, '1460', '31 TAPE2 - Tape 2 x 90 @ 2.50', 225, 1, '', 0),
(31, 26, 8, 0, '2013-02-09', 15, '1440', '31 TAPE2 - Tape 2 x 90 @ 2.50', -225, 1, '', 0),
(32, 35, 20, 0, '2013-04-25', 17, '5700', 'BREAD cost was 0.4118 changed to 0.5625 x Quantity on hand of -6', 0.9042, 1, '', 0),
(33, 35, 20, 0, '2013-04-25', 17, '1460', 'BREAD cost was 0.4118 changed to 0.5625 x Quantity on hand of -6', -0.9042, 1, '', 0),
(34, 35, 21, 0, '2013-04-25', 17, '5700', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(35, 35, 21, 0, '2013-04-25', 17, '1460', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(36, 35, 22, 0, '2013-04-25', 17, '5700', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(37, 35, 22, 0, '2013-04-25', 17, '1460', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(38, 35, 23, 0, '2013-04-25', 17, '5700', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(39, 35, 23, 0, '2013-04-25', 17, '1460', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(40, 35, 24, 0, '2013-04-25', 17, '5700', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(41, 35, 24, 0, '2013-04-25', 17, '1460', 'BREAD cost was 0.5625 changed to 0.5625 x Quantity on hand of -6', 0, 1, '', 0),
(42, 10, 6, 0, '2013-04-29', 17, '5000', 'DUMBLE - BREAD x 3 @ 0.5625', 1.69, 1, '', 0),
(43, 10, 6, 0, '2013-04-29', 17, '1460', 'DUMBLE - BREAD x 3 @ 0.5625', -1.69, 1, '', 0),
(44, 10, 6, 0, '2013-04-29', 17, '4100', 'DUMBLE - BREAD x 3 @ 1001.25', -4651.93, 1, '', 0),
(45, 10, 6, 0, '2013-04-29', 17, '1100', 'DUMBLE', 4651.93, 1, '', 0),
(46, 10, 7, 0, '2013-04-29', 17, '5000', 'DUMBLE - BREAD x 1 @ 0.5625', 0.56, 1, '', 0),
(47, 10, 7, 0, '2013-04-29', 17, '1460', 'DUMBLE - BREAD x 1 @ 0.5625', -0.56, 1, '', 0),
(48, 10, 7, 0, '2013-04-29', 17, '4100', 'DUMBLE - BREAD x 1 @ 5.9', -9.14, 1, '', 0),
(49, 10, 7, 0, '2013-04-29', 17, '4900', 'DUMBLE - BREAD @ 2.5%', 0.23, 1, '', 0),
(50, 10, 7, 0, '2013-04-29', 17, '1100', 'DUMBLE', 8.91, 1, '', 0),
(51, 11, 1, 0, '2013-05-02', 18, '5000', 'ANGRY - TAPE2 x 1 @ 2.5000', -2.5, 1, '', 0),
(52, 11, 1, 0, '2013-05-02', 18, '1460', 'ANGRY - TAPE2 x 1 @ 2.5000', 2.5, 1, '', 0),
(53, 11, 1, 0, '2013-05-02', 18, '4100', 'ANGRY - TAPE2 x 1 @ 15.00', 15, 1, '', 0),
(54, 11, 1, 0, '2013-05-02', 18, '1100', 'ANGRY', -16.5, 1, '', 0),
(55, 11, 1, 0, '2013-05-02', 18, '2300', 'ANGRY', 1.5, 1, '', 0),
(56, 11, 2, 0, '2013-05-02', 18, '5000', 'ANGRY - SELLTAPE x 100 @ 10', -999.995, 1, '', 0),
(57, 11, 2, 0, '2013-05-02', 18, '1460', 'ANGRY - SELLTAPE x 100 @ 10', 1000, 1, '', 0),
(58, 11, 2, 0, '2013-05-02', 18, '4100', 'ANGRY - SELLTAPE x 100 @ 0.50', 50, 1, '', 0),
(59, 11, 2, 0, '2013-05-02', 18, '1100', 'ANGRY', -56.18, 1, '', 0),
(60, 11, 2, 0, '2013-05-02', 18, '2300', 'ANGRY', 2.5, 1, '', 0),
(61, 11, 2, 0, '2013-05-02', 18, '2300', 'ANGRY', 3.675, 1, '', 0),
(62, 11, 3, 0, '2013-05-02', 18, '5000', 'ANGRY - BREAD x 2 @ 0.5625', -1.1249999999999996, 1, '', 0),
(63, 11, 3, 0, '2013-05-02', 18, '1460', 'ANGRY - BREAD x 2 @ 0.5625', 1.13, 1, '', 0),
(64, 11, 3, 0, '2013-05-02', 18, '4100', 'ANGRY - BREAD x 2 @ 5.00', 10, 1, '', 0),
(65, 11, 3, 0, '2013-05-02', 18, '1100', 'ANGRY', -11.24, 1, '', 0),
(66, 11, 3, 0, '2013-05-02', 18, '2300', 'ANGRY', 0.5, 1, '', 0),
(67, 11, 3, 0, '2013-05-02', 18, '2300', 'ANGRY', 0.735, 1, '', 0),
(68, 11, 4, 0, '2013-05-02', 18, '5000', 'ANGRY - SELLTAPE x 100 @ 10', -999.995, 1, '', 0),
(69, 11, 4, 0, '2013-05-02', 18, '1460', 'ANGRY - SELLTAPE x 100 @ 10', 1000, 1, '', 0),
(70, 11, 4, 0, '2013-05-02', 18, '4100', 'ANGRY - SELLTAPE x 100 @ 0.5000', 50, 1, '', 0),
(71, 11, 4, 0, '2013-05-02', 18, '1100', 'ANGRY', -56.18, 1, '', 0),
(72, 11, 4, 0, '2013-05-02', 18, '2300', 'ANGRY', 2.5, 1, '', 0),
(73, 11, 4, 0, '2013-05-02', 18, '2300', 'ANGRY', 3.675, 1, '', 0),
(74, 12, 5, 0, '2013-05-10', 18, '1090', '', -50.236109715664, 1, '', 0),
(75, 12, 5, 0, '2013-05-10', 18, '1030', '', 50.236109715664, 1, '', 0),
(76, 12, 12, 0, '2013-06-08', 19, '1030', '7 payment for order34', 8.659050435, 1, '', 0),
(77, 12, 12, 0, '2013-06-08', 19, '1100', '7 payment for order34', -8.659050435, 1, '', 0),
(78, 12, 13, 0, '2013-06-08', 19, '1030', '7 payment for order 35', 14.161998375, 1, '', 0),
(79, 12, 13, 0, '2013-06-08', 19, '1100', '7 payment for order 35', -14.161998375, 1, '', 0),
(80, 12, 14, 0, '2013-06-08', 19, '1040', '7 payment for order 36', 14.23081275, 1, '', 0),
(81, 12, 14, 0, '2013-06-08', 19, '1100', '7 payment for order 36', -14.23081275, 1, '', 0),
(83, 12, 16, 0, '2013-06-08', 19, '1100', '7 payment for order ', -14.161998375, 1, '', 0),
(84, 12, 17, 0, '2013-06-08', 19, '1030', '7 payment for order ', 14.161998375, 1, '', 0),
(85, 12, 17, 0, '2013-06-08', 19, '1100', '7 payment for order ', -14.161998375, 1, '', 0),
(86, 17, 28, 0, '2013-06-13', 19, '5700', 'HIT3043-5 x 6 @ 1235 ', -7410, 1, '', 0),
(87, 17, 28, 0, '2013-06-13', 19, '1460', 'HIT3043-5 x 6 @ 1235 ', 7410, 1, '', 0),
(88, 12, 18, 0, '2013-06-16', 19, '1030', '', 85.900025142937, 1, '', 0),
(89, 12, 18, 0, '2013-06-16', 19, '1100', '', -85.900025142937, 1, '', 0),
(90, 12, 18, 0, '2013-06-16', 19, '4200', '', -0.0000060910887835774, 1, '', 0),
(91, 12, 18, 0, '2013-06-16', 19, '1100', '', 0.0000060910887835774, 1, '', 0),
(92, 28, 15, 0, '2013-06-21', 19, '1440', '32 TAPE1 x 2 @ 10.00', 20, 1, '', 0),
(93, 28, 15, 0, '2013-06-21', 19, '1460', '32 TAPE1 x 2 @ 10.00', -20, 1, '', 0),
(94, 28, 16, 0, '2013-06-21', 19, '1440', '32 SALT x 1.5 @ 2.50', 3.75, 1, '', 0),
(95, 28, 16, 0, '2013-06-21', 19, '1460', '32 SALT x 1.5 @ 2.50', -3.75, 1, '', 0),
(96, 28, 17, 0, '2013-06-21', 19, '1440', '32 TAPE2 x 3.5 @ 2.50', 8.75, 1, '', 0),
(97, 28, 17, 0, '2013-06-21', 19, '1460', '32 TAPE2 x 3.5 @ 2.50', -8.75, 1, '', 0),
(98, 12, 19, 0, '2013-06-23', 19, '1030', '7 payment for order 41 Transaction ID: B254331D91384', 43.295252175, 1, '', 0),
(99, 12, 19, 0, '2013-06-23', 19, '1100', '7 payment for order 41 Transaction ID: B254331D91384', -43.295252175, 1, '', 0),
(100, 12, 20, 0, '2013-06-23', 19, '1030', '7 payment for order 42 Transaction ID: B254348421937', 5317.9749, 1, '', 0),
(101, 12, 20, 0, '2013-06-23', 19, '1100', '7 payment for order 42 Transaction ID: B254348421937', -5317.9749, 1, '', 0),
(102, 12, 21, 0, '2013-06-23', 19, '1040', '7 payment for order Transaction ID: ', 8.70112551, 1, '', 0),
(103, 12, 21, 0, '2013-06-23', 19, '1100', '7 payment for order Transaction ID: ', -8.70112551, 1, '', 0),
(104, 0, 8, 0, '2013-06-23', 19, '1010', 'PAYTSURCHARGE Change stock category', 0, 1, '', 0),
(105, 0, 8, 0, '2013-06-23', 19, '1460', 'PAYTSURCHARGE Change stock category', 0, 1, '', 0),
(106, 12, 1, 0, '2013-06-23', 19, '1040', '7 payment for order 1 Transaction ID: 7XT5929577922053V', 36.5935185, 1, '', 0),
(107, 12, 1, 0, '2013-06-23', 19, '1100', '7 payment for order 1 Transaction ID: 7XT5929577922053V', -36.5935185, 1, '', 0),
(108, 12, 1, 0, '2013-06-23', 19, '1030', '16 payment for order Transaction ID: ', 109.24970175, 1, '', 0),
(109, 12, 1, 0, '2013-06-23', 19, '1100', '16 payment for order Transaction ID: ', -109.24970175, 1, '', 0),
(110, 12, 2, 0, '2013-06-24', 19, '1030', '16 payment for order Transaction ID: ', 14.161998375, 1, '', 0),
(111, 12, 2, 0, '2013-06-24', 19, '1100', '16 payment for order Transaction ID: ', -14.161998375, 1, '', 0),
(112, 12, 3, 0, '2013-06-24', 19, '1030', '16 payment for order 4 Transaction ID: V78R4D18BB1E', 14.161998375, 1, '', 0),
(113, 12, 3, 0, '2013-06-24', 19, '1100', '16 payment for order 4 Transaction ID: V78R4D18BB1E', -14.161998375, 1, '', 0),
(114, 12, 4, 0, '2013-06-24', 19, '1030', '16 payment for order 5 Transaction ID: V18R4E55E804', 8.659050435, 1, '', 0),
(115, 12, 4, 0, '2013-06-24', 19, '1100', '16 payment for order 5 Transaction ID: V18R4E55E804', -8.659050435, 1, '', 0),
(116, 10, 1, 0, '2013-06-26', 19, '5000', '16 - DVD-DHWV x 9 @ 2.3200', 20.879999999999995, 1, '', 0),
(117, 10, 1, 0, '2013-06-26', 19, '1460', '16 - DVD-DHWV x 9 @ 2.3200', -20.88, 1, '', 0),
(118, 10, 1, 0, '2013-06-26', 19, '4100', '16 - DVD-DHWV x 9 @ 10.5', -94.5, 1, '', 0),
(119, 10, 1, 0, '2013-06-26', 19, '7230', '16 - PAYTSURCHARGE x 1 @ 2.7405', -2.74, 1, '', 0),
(120, 10, 1, 0, '2013-06-26', 19, '1100', '16', 109.25, 1, '', 0),
(121, 10, 1, 0, '2013-06-26', 19, '2300', '16', -4.86, 1, '', 0),
(122, 10, 1, 0, '2013-06-26', 19, '2300', '16', -7.15, 1, '', 0),
(123, 10, 2, 0, '2013-09-07', 22, '5000', '12 - BREAD x 2 @ 0.5625', 1.13, 1, '', 0),
(124, 10, 2, 0, '2013-09-07', 22, '1460', '12 - BREAD x 2 @ 0.5625', -1.13, 1, '', 0),
(125, 10, 2, 0, '2013-09-07', 22, '4100', '12 - BREAD x 2 @ 2.5', -5, 1, '', 0),
(126, 10, 2, 0, '2013-09-07', 22, '1100', '12', 5.62, 1, '', 0),
(127, 10, 2, 0, '2013-09-07', 22, '2300', '12', -0.25, 1, '', 0),
(128, 10, 2, 0, '2013-09-07', 22, '2300', '12', -0.37, 1, '', 0),
(129, 25, 53, 0, '2013-10-05', 23, '1', 'PO: 29 OTHER - - Some item x 1 @ 45.94', 45.938993017273, 1, '', 0),
(130, 25, 53, 0, '2013-10-05', 23, '2150', 'PO1380921154: 29 OTHER - - Some item x 1 @ 45.94', -45.938993017273, 1, '', 0),
(131, 20, 38, 0, '2013-10-05', 23, '2150', 'OTHER - GRN 4 - x 1 @ std cost of 45.938993017273', 45.938993017273106, 1, '', 0),
(132, 20, 38, 0, '2013-10-05', 23, '1', 'OTHER - GRN 4 - Some item x 1 x price var 4.59', 4.5938993017274, 1, '', 0),
(133, 20, 38, 0, '2013-10-05', 23, '2310', 'OTHER - Inv 145 Ontario PST 5.00% AUD2.75 @ exch rate 1.08840000', 2.52664461595, 1, '', 0),
(134, 20, 38, 0, '2013-10-05', 23, '2310', 'OTHER - Inv 145 Canadian GST 7.00% AUD4.0425 @ exch rate 1.08840000', 3.7141675854465, 1, '', 0),
(135, 20, 38, 0, '2013-10-05', 23, '2100', 'OTHER - Inv 145 AUD61.79 @ a rate of 1.08840000', -56.773704520397, 1, '', 0),
(136, 22, 9, 0, '2013-11-20', 24, '2100', 'OTHER-', 91.877986034546, 1, '', 0),
(137, 22, 9, 0, '2013-11-20', 24, '1030', 'OTHER-', -91.877986034546, 1, '', 0),
(138, 22, 10, 0, '2013-11-20', 24, '2100', 'OTHER-', 100, 1, '', 0),
(139, 22, 10, 0, '2013-11-20', 24, '1030', 'OTHER-', -100, 1, '', 0),
(140, 22, 11, 0, '2013-11-20', 24, '2100', 'OTHER-', 91.877986034546, 1, '', 0),
(141, 22, 11, 0, '2013-11-20', 24, '1030', 'OTHER-', -91.877986034546, 1, '', 0),
(142, 20, 39, 0, '2013-11-30', 24, '1460', 'BINGO - Average Cost Adj - DVD_ACTION x 1 x 52.35', 52.35, 1, '', 0),
(143, 20, 39, 0, '2013-11-30', 24, '2310', 'BINGO - Inv aA112 Australian GST 10.00% USD5.235 @ exch rate 1.00000000', 5.235, 1, '', 0),
(144, 20, 39, 0, '2013-11-30', 24, '2100', 'BINGO - Inv aA112 USD57.59 @ a rate of 1.00000000', -57.585, 1, '', 0),
(145, 25, 54, 0, '2014-01-13', 26, '1460', 'PO: 30 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 0.30', 30, 1, '', 0),
(146, 25, 54, 0, '2014-01-13', 26, '2150', 'PO1389596068: 30 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 0.30', -30, 1, '', 0),
(147, 20, 40, 0, '2014-01-13', 26, '1460', 'BINGO - Average Cost Adj - DVD-CASE x 100 x 0.5', 50, 1, '', 0),
(148, 20, 40, 0, '2014-01-13', 26, '2310', 'BINGO - Inv 2100 Australian GST 10.00% USD5 @ exch rate 1.00000000', 5, 1, '', 0),
(149, 20, 40, 0, '2014-01-13', 26, '2100', 'BINGO - Inv 2100 USD55.00 @ a rate of 1.00000000', -55, 1, '', 0),
(150, 25, 55, 0, '2014-01-13', 26, '1460', 'PO: 31 BINGO - DVD-CASE - webERP Demo DVD Case x 10 @ 0.80', 8, 1, '', 0),
(151, 25, 55, 0, '2014-01-13', 26, '2150', 'PO1389596314: 31 BINGO - DVD-CASE - webERP Demo DVD Case x 10 @ 0.80', -8, 1, '', 0),
(152, 20, 41, 0, '2014-01-13', 26, '1460', 'BINGO - Average Cost Adj - DVD-CASE x 110 x 0.1', 1, 1, '', 0),
(153, 20, 41, 0, '2014-01-13', 26, '2310', 'BINGO - Inv 1223 Australian GST 10.00% USD0.1 @ exch rate 1.00000000', 0.1, 1, '', 0),
(154, 20, 41, 0, '2014-01-13', 26, '2100', 'BINGO - Inv 1223 USD1.10 @ a rate of 1.00000000', -1.1, 1, '', 0),
(155, 25, 56, 0, '2014-01-13', 26, '1460', 'PO: 32 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 0.81', 80.91, 1, '', 0),
(156, 25, 56, 0, '2014-01-13', 26, '2150', 'PO1389596457: 32 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 0.81', -80.91, 1, '', 0),
(157, 20, 42, 0, '2014-01-13', 26, '1460', 'BINGO - Average Cost Adj - DVD-CASE x 210 x 0.31', 31, 1, '', 0),
(158, 20, 42, 0, '2014-01-13', 26, '2310', 'BINGO - Inv 23001 Australian GST 10.00% USD3.1 @ exch rate 1.00000000', 3.1, 1, '', 0),
(159, 20, 42, 0, '2014-01-13', 26, '2100', 'BINGO - Inv 23001 USD34.10 @ a rate of 1.00000000', -34.1, 1, '', 0),
(160, 35, 25, 0, '2014-01-14', 26, '5700', 'DVD-CASE cost was 0.9567 changed to 1 x Quantity on hand of 210', -9.093, 1, '', 0),
(161, 35, 25, 0, '2014-01-14', 26, '1460', 'DVD-CASE cost was 0.9567 changed to 1 x Quantity on hand of 210', 9.093, 1, '', 0),
(162, 35, 26, 0, '2014-01-14', 26, '5700', 'DVD_ACTION cost was 68.5700 changed to 22.02 x Quantity on hand of 1', 46.55, 1, '', 0),
(163, 35, 26, 0, '2014-01-14', 26, '1460', 'DVD_ACTION cost was 68.5700 changed to 22.02 x Quantity on hand of 1', -46.55, 1, '', 0),
(164, 25, 57, 0, '2014-01-14', 26, '1460', 'PO: 33 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 1.00', 100, 1, '', 0),
(165, 25, 57, 0, '2014-01-14', 26, '2150', 'PO1389681160: 33 BINGO - DVD-CASE - webERP Demo DVD Case x 100 @ 1.00', -100, 1, '', 0),
(166, 20, 43, 0, '2014-01-14', 26, '5000', 'BINGO - GRN 8 - DVD-CASE x 1 x price var of 1.5', 1.5, 1, '', 0),
(167, 20, 43, 0, '2014-01-14', 26, '2310', 'BINGO - Inv tedt555 Australian GST 10.00% USD0.15 @ exch rate 1.00000000', 0.15, 1, '', 0),
(168, 20, 43, 0, '2014-01-14', 26, '2100', 'BINGO - Inv tedt555 USD1.65 @ a rate of 1.00000000', -1.65, 1, '', 0),
(169, 20, 44, 0, '2014-01-13', 26, '5000', 'BINGO - GRN 8 - DVD-CASE x 1 x price var of 1.5', 1.5, 1, '', 0),
(170, 20, 44, 0, '2014-01-13', 26, '2310', 'BINGO - Inv 2133 Australian GST 10.00% USD0.15 @ exch rate 1.00000000', 0.15, 1, '', 0),
(171, 20, 44, 0, '2014-01-13', 26, '2100', 'BINGO - Inv 2133 USD1.65 @ a rate of 1.00000000', -1.65, 1, '', 0),
(172, 20, 45, 0, '2014-01-13', 26, '2150', 'BINGO - GRN 8 - DVD-CASE x 1 @ std cost of 1', 1, 1, '', 0),
(173, 20, 45, 0, '2014-01-13', 26, '5000', 'BINGO - GRN 8 - DVD-CASE x 1 x price var of 1', 1, 1, '', 0),
(174, 20, 45, 0, '2014-01-13', 26, '2310', 'BINGO - Inv 211 Australian GST 10.00% USD0.2 @ exch rate 1.00000000', 0.2, 1, '', 0),
(175, 20, 45, 0, '2014-01-13', 26, '2100', 'BINGO - Inv 211 USD2.20 @ a rate of 1.00000000', -2.2, 1, '', 0),
(176, 1, 5, 0, '2014-02-03', 27, '6600', 'Some other selling cost', 10.250000003856004, 1, '', 0),
(177, 1, 5, 0, '2014-02-03', 27, '7090', 'some benefit', 95.250000035814, 1, '', 0),
(178, 1, 5, 0, '2014-02-03', 27, '1030', 'Test narrative', -105.50000003967, 1, '', 0),
(179, 1, 6, 0, '2014-02-03', 27, '5600', 'fregt', 100, 1, '', 0),
(180, 1, 6, 0, '2014-02-03', 27, '1350', 'advanv', 25, 1, '', 0),
(181, 1, 6, 0, '2014-02-03', 27, '1060', '213 2221', -125, 1, '', 0),
(182, 1, 7, 0, '2014-07-05', 32, '1010', '', 10, 1, '', 0),
(183, 1, 7, 0, '2014-07-05', 32, '1060', '', -10, 1, '', 0),
(184, 25, 58, 0, '2014-07-26', 32, '5500', 'PO: 34 WHYNOT - LABOUR - Labour item - Freddie x 2 @ 75.00', 150, 1, '', 0),
(185, 25, 58, 0, '2014-07-26', 32, '2150', 'PO1406335331: 34 WHYNOT - LABOUR - Labour item - Freddie x 2 @ 75.00', -150, 1, '', 0),
(186, 25, 59, 0, '2015-12-20', 49, '1460', 'PO: 35 CRUISE - DVD-CASE - 2000 x DVD covers to something else x 2000 @ 1.00', 2000, 0, '', 0),
(187, 25, 59, 0, '2015-12-20', 49, '2150', 'PO1450567661: 35 CRUISE - DVD-CASE - 2000 x DVD covers to something else x 2000 @ 1.00', -2000, 0, '', 0),
(188, 25, 10, 0, '2015-12-20', 49, '1460', 'GRN Reversal for PO: 35 CRUISE - DVD-CASE-2000 x DVD covers to something else x 2000 @ 1.00', -2000, 0, '', 0),
(189, 25, 10, 0, '2015-12-20', 49, '2150', 'GRN Reversal PO: 35 CRUISE - DVD-CASE-2000 x DVD covers to something else x 2000 @ 1.00', 2000, 0, '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `grns`
--
CREATE TABLE `grns` (
`grnbatch` smallint(6) NOT NULL DEFAULT '0',
`grnno` int(11) NOT NULL,
`podetailitem` int(11) NOT NULL DEFAULT '0',
`itemcode` varchar(20) NOT NULL DEFAULT '',
`deliverydate` date NOT NULL DEFAULT '0000-00-00',
`itemdescription` varchar(100) NOT NULL DEFAULT '',
`qtyrecd` double NOT NULL DEFAULT '0',
`quantityinv` double NOT NULL DEFAULT '0',
`supplierid` varchar(10) NOT NULL DEFAULT '',
`stdcostunit` double NOT NULL DEFAULT '0',
`supplierref` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `grns`
--
INSERT INTO `grns` (`grnbatch`, `grnno`, `podetailitem`, `itemcode`, `deliverydate`, `itemdescription`, `qtyrecd`, `quantityinv`, `supplierid`, `stdcostunit`, `supplierref`) VALUES
(50, 1, 1, 'DVD_ACTION', '2013-01-06', 'Action Series Bundle', 1, 1, 'BINGO', 16.22, ''),
(51, 2, 3, 'TAPE1', '2013-02-09', 'DFR-12 DFR Tape per Keystone spec', 100, 0, 'CRUISE', 10, ''),
(52, 3, 5, 'TAPE1', '2013-02-09', 'DFR-12 - DFR Tape per Keystone spec', 10, 0, 'CRUISE', 10, ''),
(53, 4, 8, '', '2013-10-05', 'Some item', 1, 1, 'OTHER', 45.938993017273, ''),
(54, 5, 9, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', 100, 100, 'BINGO', 0.3, ''),
(55, 6, 10, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', 10, 10, 'BINGO', 0.8, ''),
(56, 7, 11, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', 100, 100, 'BINGO', 0.8091, ''),
(57, 8, 12, 'DVD-CASE', '2014-01-14', 'webERP Demo DVD Case', 100, 3, 'BINGO', 1, ''),
(58, 9, 13, 'LABOUR', '2014-07-26', 'Labour item - Freddie', 2, 0, 'WHYNOT', 75, '');
-- --------------------------------------------------------
--
-- Table structure for table `holdreasons`
--
CREATE TABLE `holdreasons` (
`reasoncode` smallint(6) NOT NULL DEFAULT '1',
`reasondescription` char(30) NOT NULL DEFAULT '',
`dissallowinvoices` tinyint(4) NOT NULL DEFAULT '-1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `holdreasons`
--
INSERT INTO `holdreasons` (`reasoncode`, `reasondescription`, `dissallowinvoices`) VALUES
(1, 'Good History', 0),
(20, 'Watch', 2),
(51, 'In liquidation', 1);
-- --------------------------------------------------------
--
-- Table structure for table `internalstockcatrole`
--
CREATE TABLE `internalstockcatrole` (
`categoryid` varchar(6) NOT NULL,
`secroleid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `internalstockcatrole`
--
INSERT INTO `internalstockcatrole` (`categoryid`, `secroleid`) VALUES
('AIRCON', 8),
('BAKE', 8),
('FOOD', 8);
-- --------------------------------------------------------
--
-- Table structure for table `labelfields`
--
CREATE TABLE `labelfields` (
`labelfieldid` int(11) NOT NULL,
`labelid` tinyint(4) NOT NULL,
`fieldvalue` varchar(20) NOT NULL,
`vpos` double NOT NULL DEFAULT '0',
`hpos` double NOT NULL DEFAULT '0',
`fontsize` tinyint(4) NOT NULL,
`barcode` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `labelfields`
--
INSERT INTO `labelfields` (`labelfieldid`, `labelid`, `fieldvalue`, `vpos`, `hpos`, `fontsize`, `barcode`) VALUES
(1, 1, 'itemcode', 10, 10, 10, 1),
(2, 1, 'itemcode', 20, 10, 10, 0),
(3, 1, 'itemdescription', 35, 10, 8, 0);
-- --------------------------------------------------------
--
-- Table structure for table `labels`
--
CREATE TABLE `labels` (
`labelid` tinyint(11) NOT NULL,
`description` varchar(50) NOT NULL,
`pagewidth` double NOT NULL DEFAULT '0',
`pageheight` double NOT NULL DEFAULT '0',
`height` double NOT NULL DEFAULT '0',
`width` double NOT NULL DEFAULT '0',
`topmargin` double NOT NULL DEFAULT '0',
`leftmargin` double NOT NULL DEFAULT '0',
`rowheight` double NOT NULL DEFAULT '0',
`columnwidth` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `labels`
--
INSERT INTO `labels` (`labelid`, `description`, `pagewidth`, `pageheight`, `height`, `width`, `topmargin`, `leftmargin`, `rowheight`, `columnwidth`) VALUES
(1, 'Test', 210, 297, 0, 0, 5, 10, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `lastcostrollup`
--
CREATE TABLE `lastcostrollup` (
`stockid` char(20) NOT NULL DEFAULT '',
`totalonhand` double NOT NULL DEFAULT '0',
`matcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`labcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`oheadcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`categoryid` char(6) NOT NULL DEFAULT '',
`stockact` varchar(20) NOT NULL DEFAULT '0',
`adjglact` varchar(20) NOT NULL DEFAULT '0',
`newmatcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`newlabcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`newoheadcost` decimal(20,4) NOT NULL DEFAULT '0.0000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `locations`
--
CREATE TABLE `locations` (
`loccode` varchar(5) NOT NULL DEFAULT '',
`locationname` varchar(50) 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 '',
`fax` varchar(30) NOT NULL DEFAULT '',
`email` varchar(55) NOT NULL DEFAULT '',
`contact` varchar(30) NOT NULL DEFAULT '',
`taxprovinceid` tinyint(4) NOT NULL DEFAULT '1',
`cashsalecustomer` varchar(10) DEFAULT '',
`managed` int(11) DEFAULT '0',
`cashsalebranch` varchar(10) DEFAULT '',
`internalrequest` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Allow (1) or not (0) internal request from this location',
`usedforwo` tinyint(4) NOT NULL DEFAULT '1',
`glaccountcode` varchar(20) NOT NULL DEFAULT '' COMMENT 'GL account of the location',
`allowinvoicing` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Allow invoicing of items at this location'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `locations`
--
INSERT INTO `locations` (`loccode`, `locationname`, `deladd1`, `deladd2`, `deladd3`, `deladd4`, `deladd5`, `deladd6`, `tel`, `fax`, `email`, `contact`, `taxprovinceid`, `cashsalecustomer`, `managed`, `cashsalebranch`, `internalrequest`, `usedforwo`, `glaccountcode`, `allowinvoicing`) VALUES
('AN', 'Anaheim', ' ', '', '', '', '', 'United States', '', '', '', 'Brett', 1, '', 0, '', 0, 1, '', 1),
('MEL', 'Melbourne', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 5678901', '+61 3 56789013', 'jacko@webdemo.com', 'Jack Roberts', 1, '', 0, '', 1, 1, '', 1),
('TOR', 'Toronto', 'Level 100 ', 'CN Tower', 'Toronto', '', '', '', '', '', '', 'Clive Contrary', 1, '', 1, '', 1, 1, '', 1);
-- --------------------------------------------------------
--
-- Table structure for table `locationusers`
--
CREATE TABLE `locationusers` (
`loccode` varchar(5) NOT NULL,
`userid` varchar(20) NOT NULL,
`canview` tinyint(4) NOT NULL DEFAULT '0',
`canupd` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `locationusers`
--
INSERT INTO `locationusers` (`loccode`, `userid`, `canview`, `canupd`) VALUES
('AN', 'admin', 1, 1),
('MEL', 'admin', 1, 1),
('MEL', 'WEB0000017', 1, 1),
('TOR', 'admin', 1, 1),
('TOR', 'WEB0000017', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `locstock`
--
CREATE TABLE `locstock` (
`loccode` varchar(5) NOT NULL DEFAULT '',
`stockid` varchar(20) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '0',
`reorderlevel` bigint(20) NOT NULL DEFAULT '0',
`bin` varchar(10) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `locstock`
--
INSERT INTO `locstock` (`loccode`, `stockid`, `quantity`, `reorderlevel`, `bin`) VALUES
('AN', 'BIGEARS12', 0, 0, ''),
('AN', 'BirthdayCakeConstruc', 0, 0, ''),
('AN', 'BREAD', 2, 0, ''),
('AN', 'CUTTING', 0, 0, ''),
('AN', 'DR_TUMMY', 0, 0, ''),
('AN', 'DVD-CASE', 0, 0, ''),
('AN', 'DVD-DHWV', 0, 0, ''),
('AN', 'DVD-LTWP', 0, 0, ''),
('AN', 'DVD-TOPGUN', 0, 0, ''),
('AN', 'DVD-UNSG', 0, 0, ''),
('AN', 'DVD-UNSG2', 0, 0, ''),
('AN', 'DVD_ACTION', 0, 0, ''),
('AN', 'FLOUR', 0, 0, ''),
('AN', 'FREIGHT', 0, 0, ''),
('AN', 'FROAYLANDO', 0, 0, ''),
('AN', 'FUJI990101', 0, 0, ''),
('AN', 'FUJI990102', 0, 0, ''),
('AN', 'FUJI9901ASS', 0, 0, ''),
('AN', 'HIT3042-4', 0, 0, ''),
('AN', 'HIT3043-5', 0, 0, ''),
('AN', 'LABOUR', 0, 0, ''),
('AN', 'PAYTSURCHARGE', 0, 0, ''),
('AN', 'SALT', -1.5, 0, ''),
('AN', 'SELLTAPE', 0, 0, ''),
('AN', 'SLICE', 0, 0, ''),
('AN', 'STROD34', 0, 0, ''),
('AN', 'TAPE1', -24.4, 0, ''),
('AN', 'TAPE2', 86.5, 0, ''),
('AN', 'Test123', 0, 0, ''),
('AN', 'TESTSERIALITEM', 0, 0, ''),
('AN', 'YEAST', 0, 0, ''),
('MEL', 'BIGEARS12', 0, 0, ''),
('MEL', 'BirthdayCakeConstruc', 0, 0, ''),
('MEL', 'BREAD', 0, 0, 'Y63'),
('MEL', 'CUTTING', 0, 0, ''),
('MEL', 'DR_TUMMY', 0, 0, ''),
('MEL', 'DVD-CASE', 310, 0, '4T2'),
('MEL', 'DVD-DHWV', 0, 0, ''),
('MEL', 'DVD-LTWP', 0, 0, ''),
('MEL', 'DVD-TOPGUN', 0, 0, ''),
('MEL', 'DVD-UNSG', 0, 0, ''),
('MEL', 'DVD-UNSG2', 0, 0, ''),
('MEL', 'DVD_ACTION', 1, 0, ''),
('MEL', 'FLOUR', 0, 0, '4D2'),
('MEL', 'FREIGHT', 0, 0, ''),
('MEL', 'FROAYLANDO', 0, 0, ''),
('MEL', 'FUJI990101', 0, 0, '3D2'),
('MEL', 'FUJI990102', 0, 0, '2D2'),
('MEL', 'FUJI9901ASS', 0, 0, ''),
('MEL', 'HIT3042-4', 0, 0, ''),
('MEL', 'HIT3043-5', 6, 0, ''),
('MEL', 'LABOUR', 2, 0, ''),
('MEL', 'PAYTSURCHARGE', 0, 0, ''),
('MEL', 'SALT', 0, 0, ''),
('MEL', 'SELLTAPE', 0, 0, ''),
('MEL', 'SLICE', 0, 0, ''),
('MEL', 'STROD34', 0, 0, ''),
('MEL', 'TAPE1', 110, 0, ''),
('MEL', 'TAPE2', 0, 0, ''),
('MEL', 'Test123', 0, 0, ''),
('MEL', 'TESTSERIALITEM', 0, 0, ''),
('MEL', 'YEAST', 0, 0, ''),
('TOR', 'BIGEARS12', 0, 0, ''),
('TOR', 'BirthdayCakeConstruc', 0, 0, ''),
('TOR', 'BREAD', -12, 0, 'Z41'),
('TOR', 'CUTTING', 0, 0, ''),
('TOR', 'DR_TUMMY', 0, 0, ''),
('TOR', 'DVD-CASE', 0, 0, '3G6'),
('TOR', 'DVD-DHWV', -9, 0, ''),
('TOR', 'DVD-LTWP', 0, 0, ''),
('TOR', 'DVD-TOPGUN', 0, 0, ''),
('TOR', 'DVD-UNSG', 0, 0, ''),
('TOR', 'DVD-UNSG2', 0, 0, ''),
('TOR', 'DVD_ACTION', 0, 0, ''),
('TOR', 'FLOUR', 0, 0, ''),
('TOR', 'FREIGHT', 0, 0, ''),
('TOR', 'FROAYLANDO', 0, 0, ''),
('TOR', 'FUJI990101', 0, 0, ''),
('TOR', 'FUJI990102', 0, 0, ''),
('TOR', 'FUJI9901ASS', 0, 0, ''),
('TOR', 'HIT3042-4', 0, 0, ''),
('TOR', 'HIT3043-5', 0, 0, ''),
('TOR', 'LABOUR', 0, 0, ''),
('TOR', 'PAYTSURCHARGE', 0, 0, ''),
('TOR', 'SALT', 0, 0, ''),
('TOR', 'SELLTAPE', 0, 0, ''),
('TOR', 'SLICE', 0, 0, ''),
('TOR', 'STROD34', 0, 0, ''),
('TOR', 'TAPE1', 0, 0, ''),
('TOR', 'TAPE2', 0, 0, ''),
('TOR', 'Test123', 0, 0, ''),
('TOR', 'TESTSERIALITEM', 0, 0, ''),
('TOR', 'YEAST', 0, 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `loctransfercancellations`
--
CREATE TABLE `loctransfercancellations` (
`reference` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL,
`cancelqty` double NOT NULL,
`canceldate` datetime NOT NULL,
`canceluserid` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `loctransfers`
--
CREATE TABLE `loctransfers` (
`reference` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`shipqty` double NOT NULL DEFAULT '0',
`recqty` double NOT NULL DEFAULT '0',
`shipdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`recdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`shiploc` varchar(7) NOT NULL DEFAULT '',
`recloc` varchar(7) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores Shipments To And From Locations';
-- --------------------------------------------------------
--
-- Table structure for table `mailgroupdetails`
--
CREATE TABLE `mailgroupdetails` (
`groupname` varchar(100) NOT NULL,
`userid` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mailgroups`
--
CREATE TABLE `mailgroups` (
`id` int(11) NOT NULL,
`groupname` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `mailgroups`
--
INSERT INTO `mailgroups` (`id`, `groupname`) VALUES
(1, 'ChkListingRecipients'),
(4, 'InventoryValuationRecipients'),
(3, 'OffersReceivedResultRecipients'),
(2, 'SalesAnalysisReportRecipients');
-- --------------------------------------------------------
--
-- Table structure for table `manufacturers`
--
CREATE TABLE `manufacturers` (
`manufacturers_id` int(11) NOT NULL,
`manufacturers_name` varchar(32) NOT NULL,
`manufacturers_url` varchar(50) NOT NULL DEFAULT '',
`manufacturers_image` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `manufacturers`
--
INSERT INTO `manufacturers` (`manufacturers_id`, `manufacturers_name`, `manufacturers_url`, `manufacturers_image`) VALUES
(1, 'Sony Entertainment', 'http://www.sony.com', 'companies/weberpdemo/part_pics/BRAND-3.jpg'),
(2, '20th Century Fox', 'http://www.foxmovies.com/', 'companies/weberpdemo/part_pics/BRAND-3.jpg'),
(3, 'Fujitsu', 'http://www.fujitsu.com', 'companies/weberpdemo/part_pics/BRAND-3.jpg'),
(4, 'Hitachi', 'http://www.hitachi.com', '');
-- --------------------------------------------------------
--
-- Table structure for table `mrpcalendar`
--
CREATE TABLE `mrpcalendar` (
`calendardate` date NOT NULL,
`daynumber` int(6) NOT NULL,
`manufacturingflag` smallint(6) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mrpdemands`
--
CREATE TABLE `mrpdemands` (
`demandid` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL DEFAULT '',
`mrpdemandtype` varchar(6) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '0',
`duedate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mrpdemandtypes`
--
CREATE TABLE `mrpdemandtypes` (
`mrpdemandtype` varchar(6) NOT NULL DEFAULT '',
`description` char(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `mrpdemandtypes`
--
INSERT INTO `mrpdemandtypes` (`mrpdemandtype`, `description`) VALUES
('FOR', 'Forecast');
-- --------------------------------------------------------
--
-- Table structure for table `mrpplannedorders`
--
CREATE TABLE `mrpplannedorders` (
`id` int(11) NOT NULL,
`part` char(20) DEFAULT NULL,
`duedate` date DEFAULT NULL,
`supplyquantity` double DEFAULT NULL,
`ordertype` varchar(6) DEFAULT NULL,
`orderno` int(11) DEFAULT NULL,
`mrpdate` date DEFAULT NULL,
`updateflag` smallint(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `mrpplannedorders`
--
INSERT INTO `mrpplannedorders` (`id`, `part`, `duedate`, `supplyquantity`, `ordertype`, `orderno`, `mrpdate`, `updateflag`) VALUES
(1, 'CUTTING', '2013-02-09', 5, 'WO', 31, '2013-02-09', 0),
(2, 'CUTTING', '2013-02-27', 25, 'WO', 30, '2013-02-27', 0),
(3, 'CUTTING', '2014-08-02', 2, 'SO', 8, '2014-08-02', 0),
(4, 'DVD-DHWV', '2013-06-20', 1, 'SO', 2, '2013-06-20', 0),
(5, 'DVD-DHWV', '2014-09-05', 9, 'REORD', 1, '2014-09-05', 0),
(6, 'DVD-LTWP', '2013-06-24', 1, 'SO', 5, '2013-06-24', 0),
(7, 'SALT', '2012-12-16', 0.05, 'WO', 28, '2012-12-16', 0),
(8, 'SALT', '2013-02-06', 0.25, 'WO', 29, '2013-02-06', 0),
(9, 'SALT', '2013-07-21', 2, 'WO', 32, '2013-07-21', 0),
(10, 'SALT', '2014-09-08', 1.5, 'REORD', 1, '2014-09-08', 0),
(11, 'YEAST', '2012-12-16', 0.2, 'WO', 28, '2012-12-16', 0),
(12, 'YEAST', '2013-02-06', 1, 'WO', 29, '2013-02-06', 0),
(13, 'DVD-TOPGUN', '2013-06-24', 1, 'SO', 3, '2013-06-24', 0),
(14, 'DVD-TOPGUN', '2013-06-24', 1, 'SO', 4, '2013-06-24', 0),
(15, 'PAYTSURCHARGE', '2013-06-24', 1, 'SO', 3, '2013-06-24', 0),
(16, 'PAYTSURCHARGE', '2013-06-24', 1, 'SO', 4, '2013-06-24', 0),
(17, 'PAYTSURCHARGE', '2013-06-24', 1, 'SO', 5, '2013-06-24', 0);
-- --------------------------------------------------------
--
-- Table structure for table `offers`
--
CREATE TABLE `offers` (
`offerid` int(11) NOT NULL,
`tenderid` int(11) NOT NULL DEFAULT '0',
`supplierid` varchar(10) NOT NULL DEFAULT '',
`stockid` varchar(20) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '0',
`uom` varchar(15) NOT NULL DEFAULT '',
`price` double NOT NULL DEFAULT '0',
`expirydate` date NOT NULL DEFAULT '0000-00-00',
`currcode` char(3) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `offers`
--
INSERT INTO `offers` (`offerid`, `tenderid`, `supplierid`, `stockid`, `quantity`, `uom`, `price`, `expirydate`, `currcode`) VALUES
(1, 0, 'BINGO', 'BREAD', 5, 'each', 0.95, '2011-10-24', 'USD');
-- --------------------------------------------------------
--
-- Table structure for table `orderdeliverydifferenceslog`
--
CREATE TABLE `orderdeliverydifferenceslog` (
`orderno` int(11) NOT NULL DEFAULT '0',
`invoiceno` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`quantitydiff` double NOT NULL DEFAULT '0',
`debtorno` varchar(10) NOT NULL DEFAULT '',
`branch` varchar(10) NOT NULL DEFAULT '',
`can_or_bo` char(3) NOT NULL DEFAULT 'CAN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `paymentmethods`
--
CREATE TABLE `paymentmethods` (
`paymentid` tinyint(4) NOT NULL,
`paymentname` varchar(15) NOT NULL DEFAULT '',
`paymenttype` int(11) NOT NULL DEFAULT '1',
`receipttype` int(11) NOT NULL DEFAULT '1',
`usepreprintedstationery` tinyint(4) NOT NULL DEFAULT '0',
`opencashdrawer` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `paymentmethods`
--
INSERT INTO `paymentmethods` (`paymentid`, `paymentname`, `paymenttype`, `receipttype`, `usepreprintedstationery`, `opencashdrawer`) VALUES
(1, 'Cheque', 1, 1, 1, 0),
(2, 'Cash', 1, 1, 0, 0),
(3, 'Direct Credit', 1, 1, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `paymentterms`
--
CREATE TABLE `paymentterms` (
`termsindicator` char(2) NOT NULL DEFAULT '',
`terms` char(40) NOT NULL DEFAULT '',
`daysbeforedue` smallint(6) NOT NULL DEFAULT '0',
`dayinfollowingmonth` smallint(6) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `paymentterms`
--
INSERT INTO `paymentterms` (`termsindicator`, `terms`, `daysbeforedue`, `dayinfollowingmonth`) VALUES
('20', 'Due 20th Of the Following Month', 0, 22),
('30', 'Due By End Of The Following Month', 0, 30),
('7', 'Payment due within 7 days', 7, 0),
('CA', 'Cash Only', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `pcashdetails`
--
CREATE TABLE `pcashdetails` (
`counterindex` int(20) NOT NULL,
`tabcode` varchar(20) NOT NULL,
`date` date NOT NULL,
`codeexpense` varchar(20) NOT NULL,
`amount` double NOT NULL,
`authorized` date NOT NULL COMMENT 'date cash assigment was revised and authorized by authorizer from tabs table',
`posted` tinyint(4) NOT NULL COMMENT 'has (or has not) been posted into gltrans',
`notes` text NOT NULL,
`receipt` text COMMENT 'filename or path to scanned receipt or code of receipt to find physical receipt if tax guys or auditors show up'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `pcexpenses`
--
CREATE TABLE `pcexpenses` (
`codeexpense` varchar(20) NOT NULL COMMENT 'code for the group',
`description` varchar(50) NOT NULL COMMENT 'text description, e.g. meals, train tickets, fuel, etc',
`glaccount` varchar(20) NOT NULL DEFAULT '0',
`tag` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `pctabexpenses`
--
CREATE TABLE `pctabexpenses` (
`typetabcode` varchar(20) NOT NULL,
`codeexpense` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `pctabs`
--
CREATE TABLE `pctabs` (
`tabcode` varchar(20) NOT NULL,
`usercode` varchar(20) NOT NULL COMMENT 'code of user employee from www_users',
`typetabcode` varchar(20) NOT NULL,
`currency` char(3) NOT NULL,
`tablimit` double NOT NULL,
`assigner` varchar(100) DEFAULT NULL,
`authorizer` varchar(100) DEFAULT NULL,
`glaccountassignment` varchar(20) NOT NULL DEFAULT '0',
`glaccountpcash` varchar(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pctabs`
--
INSERT INTO `pctabs` (`tabcode`, `usercode`, `typetabcode`, `currency`, `tablimit`, `assigner`, `authorizer`, `glaccountassignment`, `glaccountpcash`) VALUES
('test', 'admin', 'Default', 'AUD', 85, 'admin', 'admin', '1030', '7610');
-- --------------------------------------------------------
--
-- Table structure for table `pctypetabs`
--
CREATE TABLE `pctypetabs` (
`typetabcode` varchar(20) NOT NULL COMMENT 'code for the type of petty cash tab',
`typetabdescription` varchar(50) NOT NULL COMMENT 'text description, e.g. tab for CEO'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pctypetabs`
--
INSERT INTO `pctypetabs` (`typetabcode`, `typetabdescription`) VALUES
('Default', 'Default');
-- --------------------------------------------------------
--
-- Table structure for table `periods`
--
CREATE TABLE `periods` (
`periodno` smallint(6) NOT NULL DEFAULT '0',
`lastdate_in_period` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `periods`
--
INSERT INTO `periods` (`periodno`, `lastdate_in_period`) VALUES
(14, '2013-01-31'),
(15, '2013-02-28'),
(16, '2013-03-31'),
(17, '2013-04-30'),
(18, '2013-05-31'),
(19, '2013-06-30'),
(20, '2013-07-31'),
(21, '2013-08-31'),
(22, '2013-09-30'),
(23, '2013-10-31'),
(24, '2013-11-30'),
(25, '2013-12-31'),
(26, '2014-01-31'),
(27, '2014-02-28'),
(28, '2014-03-31'),
(29, '2014-04-30'),
(30, '2014-05-31'),
(31, '2014-06-30'),
(32, '2014-07-31'),
(33, '2014-08-31'),
(34, '2014-09-30'),
(35, '2014-10-31'),
(36, '2014-11-30'),
(37, '2014-12-31'),
(38, '2015-01-31'),
(39, '2015-02-28'),
(40, '2015-03-31'),
(41, '2015-04-30'),
(42, '2015-05-31'),
(43, '2015-06-30'),
(44, '2015-07-31'),
(45, '2015-08-31'),
(46, '2015-09-30'),
(47, '2015-10-31'),
(48, '2015-11-30'),
(49, '2015-12-31'),
(50, '2016-01-31');
-- --------------------------------------------------------
--
-- Table structure for table `pickinglistdetails`
--
CREATE TABLE `pickinglistdetails` (
`pickinglistno` int(11) NOT NULL DEFAULT '0',
`pickinglistlineno` int(11) NOT NULL DEFAULT '0',
`orderlineno` int(11) NOT NULL DEFAULT '0',
`qtyexpected` double NOT NULL DEFAULT '0',
`qtypicked` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `pickinglists`
--
CREATE TABLE `pickinglists` (
`pickinglistno` int(11) NOT NULL DEFAULT '0',
`orderno` int(11) NOT NULL DEFAULT '0',
`pickinglistdate` date NOT NULL DEFAULT '0000-00-00',
`dateprinted` date NOT NULL DEFAULT '0000-00-00',
`deliverynotedate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 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 DEFAULT '0000-00-00',
`enddate` date NOT NULL DEFAULT '9999-12-31'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `prices`
--
CREATE TABLE `prices` (
`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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `prices`
--
INSERT INTO `prices` (`stockid`, `typeabbrev`, `currabrev`, `debtorno`, `price`, `branchcode`, `startdate`, `enddate`) VALUES
('BIGEARS12', 'DE', 'AUD', '', '4428.0000', '', '1999-01-01', '0000-00-00'),
('BirthdayCakeConstruc', 'DE', 'AUD', '', '1476.0000', '', '1999-01-01', '0000-00-00'),
('BREAD', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('CUTTING', 'DE', 'USD', '', '50.0000', '', '2013-06-29', '0000-00-00'),
('DR_TUMMY', 'DE', 'AUD', '', '246.0000', '', '1999-01-01', '0000-00-00'),
('DVD-CASE', 'DE', 'AUD', '', '124.5000', '', '1999-01-01', '0000-00-00'),
('DVD-CASE', 'DE', 'GBP', 'DUMBLE', '52.6500', 'DUMBLE', '1999-01-01', '0000-00-00'),
('DVD-DHWV', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('DVD-DHWV', 'DE', 'USD', '', '10.5000', '', '2013-01-27', '0000-00-00'),
('DVD-LTWP', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('DVD-LTWP', 'DE', 'USD', '', '7.4900', '', '2013-04-27', '0000-00-00'),
('DVD-TOPGUN', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('DVD-TOPGUN', 'DE', 'USD', '', '12.2500', '', '2013-04-27', '0000-00-00'),
('DVD-UNSG', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('DVD-UNSG2', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('DVD_ACTION', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('FLOUR', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('FUJI990101', 'DE', 'AUD', '', '1353.0000', '', '1999-01-01', '0000-00-00'),
('FUJI990102', 'DE', 'AUD', '', '861.0000', '', '1999-01-01', '0000-00-00'),
('HIT3042-4', 'DE', 'AUD', '', '1107.0000', '', '1999-01-01', '0000-00-00'),
('HIT3043-5', 'DE', 'AUD', '', '1599.0000', '', '1999-01-01', '0000-00-00'),
('HIT3043-5', 'DE', 'USD', '', '2300.0000', '', '1999-01-01', '0000-00-00'),
('LABOUR', 'DE', 'USD', '', '150.0000', '', '2014-07-26', '0000-00-00'),
('SALT', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('SLICE', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00'),
('TAPE1', 'DE', 'USD', '', '17.5000', '', '2013-02-08', '0000-00-00'),
('YEAST', 'DE', 'AUD', '', '123.0000', '', '1999-01-01', '0000-00-00');
-- --------------------------------------------------------
--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `purchdata`
--
INSERT INTO `purchdata` (`supplierno`, `stockid`, `price`, `suppliersuom`, `conversionfactor`, `supplierdescription`, `leadtime`, `preferred`, `effectivefrom`, `suppliers_partno`, `minorderqty`) VALUES
('BINGO', 'DVD-CASE', '1000.5900', '10,000', 10000, 'Mother load of DVD cases', 1, 1, '2011-03-26', '', 1),
('BINGO', 'DVD-DHWV', '8.5000', '5 pack', 5, '5 Pack Die Hard With Vengence', 3, 1, '2012-03-01', 'DHWV-5', 1),
('BINGO', 'HIT3043-5', '1235.0000', '', 1, '', 5, 1, '2009-09-18', '', 1),
('CRUISE', 'DVD-CASE', '1151.2500', '2000 pack', 2000, '2000 x DVD covers', 50, 0, '2011-06-26', 'coverx2000', 1),
('CRUISE', 'DVD-UNSG2', '200.0000', '10 Pack', 10, '', 5, 1, '2009-09-18', '', 1),
('CRUISE', 'TAPE1', '2.5000', 'feet', 1, 'DFR Tape per Keystone spec', 20, 1, '2013-02-09', 'DFR-12', 10),
('GOTSTUFF', 'BREAD', '1.5800', '', 1, 'Loaf of bread', 1, 1, '2011-10-08', '', 5);
-- --------------------------------------------------------
--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `purchorderauth`
--
INSERT INTO `purchorderauth` (`userid`, `currabrev`, `cancreate`, `authlevel`, `offhold`) VALUES
('admin', 'AUD', 0, 50000, 0),
('admin', 'EUR', 0, 999999999, 0),
('admin', 'GBP', 0, 9999999, 0),
('admin', 'USD', 0, 9999999, 0);
-- --------------------------------------------------------
--
-- Table structure for table `purchorderdetails`
--
CREATE TABLE `purchorderdetails` (
`podetailitem` int(11) NOT NULL,
`orderno` int(11) NOT NULL DEFAULT '0',
`itemcode` varchar(20) NOT NULL DEFAULT '',
`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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `purchorderdetails`
--
INSERT INTO `purchorderdetails` (`podetailitem`, `orderno`, `itemcode`, `deliverydate`, `itemdescription`, `glcode`, `qtyinvoiced`, `unitprice`, `actprice`, `stdcostunit`, `quantityord`, `quantityrecd`, `shiptref`, `jobref`, `completed`, `suppliersunit`, `suppliers_partno`, `assetid`, `conversionfactor`) VALUES
(1, 23, 'DVD_ACTION', '2013-01-06', 'Action Series Bundle', '1460', 1, 50, 52.35, 16.22, 1, 1, 0, '0', 1, 'each', '', 0, 1),
(2, 24, 'DVD-CASE', '2013-02-10', ' Mother load of DVD cases', '1460', 0, 1000.59, 0, 0, 0, 0, 0, '', 1, '10,000', '', 0, 10000),
(3, 25, 'TAPE1', '2013-03-01', 'DFR-12 DFR Tape per Keystone spec', '1460', 0, 2.5, 0, 10, 100, 100, 0, '', 1, 'feet', 'DFR-12', 0, 1),
(4, 26, 'BREAD', '2013-02-10', ' Loaf of bread', '1460', 0, 1.58, 0, 0, 10, 0, 0, '', 1, '', '', 0, 1),
(5, 27, 'TAPE1', '2013-03-01', 'DFR-12 - DFR Tape per Keystone spec', '1460', 0, 2.5, 0, 10, 10, 10, 0, '0', 1, 'feet', 'DFR-12', 0, 1),
(6, 28, 'DVD-CASE', '2013-06-20', 'coverx2000 - 2000 x DVD covers', '1460', 0, 0.575625, 0, 0, 4000, 0, 0, '0', 0, '2000 pack', 'coverx2000', 0, 2000),
(7, 24, '', '2013-02-09', 'Some other thing', '7630', 0, 0.65, 0, 0, 25, 0, 0, '', 0, 'each', '', 0, 1),
(8, 29, '', '2013-10-05', 'Some item', '1', 1, 50, 55, 45.938993017273, 1, 1, 0, '', 0, 'each', '', 0, 1),
(9, 30, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', '1460', 100, 0.5, 0.5, 0.3, 100, 100, 0, '', 0, '10,000', '', 0, 1),
(10, 31, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', '1460', 10, 0.1, 0.1, 0.8, 10, 10, 0, '', 0, '10,000', '', 0, 1),
(11, 32, 'DVD-CASE', '2014-01-13', 'webERP Demo DVD Case', '1460', 100, 0.5, 0.31, 0.8091, 100, 100, 0, '', 0, '10,000', '', 0, 1),
(12, 33, 'DVD-CASE', '2014-01-14', 'webERP Demo DVD Case', '1460', 3, 1.5, 2, 1, 100, 100, 0, '', 0, '10,000', '', 0, 1),
(13, 34, 'LABOUR', '2014-07-26', 'Labour item - Freddie', '5500', 0, 5.9, 0, 75, 2, 2, 0, '0', 0, 'each', '', 0, 1),
(14, 35, 'DVD-CASE', '2016-02-08', '2000 x DVD covers to something else', '1460', 0, 0.575625, 0, 1, 2000, 0, 0, '0', 0, '2000 pack', 'coverx2000', 0, 2000);
-- --------------------------------------------------------
--
-- Table structure for table `purchorders`
--
CREATE TABLE `purchorders` (
`orderno` int(11) NOT NULL,
`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 ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `purchorders`
--
INSERT INTO `purchorders` (`orderno`, `supplierno`, `comments`, `orddate`, `rate`, `dateprinted`, `allowprint`, `initiator`, `requisitionno`, `intostocklocation`, `deladd1`, `deladd2`, `deladd3`, `deladd4`, `deladd5`, `deladd6`, `tel`, `suppdeladdress1`, `suppdeladdress2`, `suppdeladdress3`, `suppdeladdress4`, `suppdeladdress5`, `suppdeladdress6`, `suppliercontact`, `supptel`, `contact`, `version`, `revised`, `realorderno`, `deliveryby`, `deliverydate`, `status`, `stat_comment`, `paymentterms`, `port`) VALUES
(23, 'BINGO', '', '2013-01-06 00:00:00', 1, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '', '+61 3 56789012', '+61 3 56789012', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', 'Jack Roberts', '2.00', '2013-02-09', '', '1', '2013-01-06', 'Completed', '09/02/2013 - Order Completed on entry of GRN<br />09/02/2013 - Order modified by <a href="mailto:info@weberp.org">Demonstration user</a><br />', '30', ''),
(24, 'BINGO', '', '2013-02-09 00:00:00', 1, NULL, 1, 'Demonstration user', '', 'MEL', 'Melbourne', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '+61 3 56789012', '+61 3 56789012', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', '', '2.00', '2013-06-11', '', '1', '2013-02-09', 'Authorised', '11/06/2013 - Order modified by <a href="mailto:phil@logicworks.co.nz">Demonstration user</a><br />', '30', ''),
(25, 'CRUISE', '', '2013-02-09 00:00:00', 0.6324, NULL, 1, 'Demonstration user', '', 'MEL', 'Melbourne', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '+61 3 56789012', '+61 3 56789012', 'Box 2001', 'Ft Lauderdale, Florida', '', '', '', '', 'Barry Toad', '', '', '2.00', '2013-02-09', '', '1', '2013-02-09', 'Completed', '09/02/2013 - Order Completed on entry of GRN<br />09/02/2013 - Order modified by <a href="mailto:info@weberp.org">Demonstration user</a><br />', '30', ''),
(26, 'GOTSTUFF', NULL, '2013-02-09 00:00:00', 1, NULL, 0, 'Demonstration user', NULL, 'MEL', 'Melbourne', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', ' Australia', '+61 3 56789012', 'Test line 1', 'Test line 2', 'Test line 3', 'Test line 4 - editing', '', '', '', '', '', '1.00', '2013-02-09', '', '1', '2013-02-09', 'Cancelled', '28/05/2013 - Cancelled by <a href="mailto:phil@logicworks.co.nz">Demonstration user</a><br />28/05/2013 - Authorised by <a href="mailto:phil@logicworks.co.nz">Demonstration user</a><br />28/05/2013 - Order set to pending status by <a href="mailto:phil@logicworks.co.nz">Demonstration user</a><br />09/02/2013 - Authorised by <a href="mailto:info@weberp.org">Demonstration user</a><br />09/02/2013 - Order Created by <a href="mailto:info@weberp.org">Demonstration user</a> - Auto created from sales orders<br />', '20', ''),
(27, 'CRUISE', '', '2013-02-09 00:00:00', 0.6324, '2013-02-09 00:00:00', 0, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '', 'Australia', '+61 3 56789012', 'Box 2001', 'Ft Lauderdale, Florida', '', '', '', '', 'Barry Toad', '', 'Jack Roberts', '1.00', '2013-02-09', '', '1', '2013-02-09', 'Printed', '09/02/2013 - Printed by <a href="mailto:info@weberp.org">Demonstration user</a><br />09/02/2013 - Order Created and Authorised by <a href="mailto:info@weberp.org">Demonstration user</a><br /><br />', '30', ''),
(28, 'CRUISE', '', '2013-05-01 00:00:00', 0.6432, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '', 'Australia', '+61 3 56789012', 'Box 2001', 'Ft Lauderdale, Florida', '', '', '', '', 'French Froggie', '', 'Jack Roberts', '1.00', '2013-05-01', '', '1', '2013-05-01', 'Authorised', '01/05/2013 - Order Created and Authorised by <a href="mailto:phil@logicworks.co.nz">Demonstration user</a><br /><br />', '30', ''),
(29, 'OTHER', '', '2013-10-05 00:00:00', 1.0884, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '', 'Australia', '+61 3 56789012', 'Supplier', '', '', '', '', '', '', '', 'Jack Roberts', '1.00', '2013-10-05', '', '1', '2013-10-05', 'Completed', '05/10/2013 - Order Completed on entry of GRN<br />05/10/2013 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '20', ''),
(30, 'BINGO', '', '2014-01-13 00:00:00', 1, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 56789', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', 'Jack Roberts', '0.00', '2014-01-13', '', '', '2014-01-13', 'Completed', '13/01/2014 - Order Completed on entry of GRN<br />13/01/2014 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '30', ''),
(31, 'BINGO', '', '2014-01-13 00:00:00', 1, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 56789', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', 'Jack Roberts', '0.00', '2014-01-13', '', '', '2014-01-13', 'Completed', '13/01/2014 - Order Completed on entry of GRN<br />13/01/2014 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '30', ''),
(32, 'BINGO', '', '2014-01-13 00:00:00', 1, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 56789', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', 'Jack Roberts', '0.00', '2014-01-13', '', '', '2014-01-13', 'Completed', '13/01/2014 - Order Completed on entry of GRN<br />13/01/2014 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '30', ''),
(33, 'BINGO', '', '2014-01-14 00:00:00', 1, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 56789', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', '', '', 'Jack Roberts', '0.00', '2014-01-14', '', '', '2014-01-14', 'Completed', '14/01/2014 - Order Completed on entry of GRN<br />14/01/2014 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '30', ''),
(34, 'WHYNOT', '', '2014-07-26 00:00:00', 1.0884, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 5678901', 'Well I will ', 'If I', 'Want ', 'To', '', '', '', '12323', 'Jack Roberts', '1.00', '2014-07-26', '', '1', '2014-07-26', 'Completed', '26/07/2014 - Order Completed on entry of GRN<br />26/07/2014 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '20', ''),
(35, 'CRUISE', '', '2015-12-20 00:00:00', 0.6715, NULL, 1, 'admin', '', 'MEL', '1234 Collins Street', 'Melbourne', 'Victoria 2345', '', '2345', 'Australia', '+(61) (3) 5678901', 'Box 2001', 'Ft Lauderdale, Florida', '', '', '', '', 'Barry Toad', '', 'Jack Roberts', '1.00', '2015-12-20', '', '1', '2015-12-20', 'Printed', '20/12/2015 GRN Reversed for 2000 x DVD covers to something else by Demonstration user<br />20/12/2015 - Order Completed on entry of GRN<br />20/12/2015 - Order Created and Authorised by <a href="mailto:admin@weberp.org">Demonstration user</a><br /><br />', '30', '');
-- --------------------------------------------------------
--
-- Table structure for table `qasamples`
--
CREATE TABLE `qasamples` (
`sampleid` int(11) NOT NULL,
`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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `qatests`
--
CREATE TABLE `qatests` (
`testid` int(11) NOT NULL,
`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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `relateditems`
--
CREATE TABLE `relateditems` (
`stockid` varchar(20) CHARACTER SET utf8 NOT NULL,
`related` varchar(20) CHARACTER SET utf8 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `reportcolumns`
--
INSERT INTO `reportcolumns` (`reportid`, `colno`, `heading1`, `heading2`, `calculation`, `periodfrom`, `periodto`, `datatype`, `colnumerator`, `coldenominator`, `calcoperator`, `budgetoractual`, `valformat`, `constant`) VALUES
(1, 1, 'Value', '', 0, 0, 7, 'Net Value', 0, 0, '', 1, 'N', 0),
(1, 2, 'Gross', 'Profit', 0, 0, 14, 'Gross Profit', 0, 0, '', 1, 'N', 0),
(2, 1, 'Cost', 'Dec', 0, 1, 1, 'Cost', 0, 0, '', 1, 'N', 0),
(2, 2, 'Qty', 'Dec', 0, 1, 1, 'Quantity', 0, 0, '', 1, 'N', 0);
-- --------------------------------------------------------
--
-- Table structure for table `reportfields`
--
CREATE TABLE `reportfields` (
`id` int(8) NOT NULL,
`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
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `reportfields`
--
INSERT INTO `reportfields` (`id`, `reportid`, `entrytype`, `seqnum`, `fieldname`, `displaydesc`, `visible`, `columnbreak`, `params`) VALUES
(1803, 135, 'critlist', 1, 'prices.currabrev', 'Currency', '0', '0', '0'),
(1802, 135, 'fieldlist', 4, 'prices.currabrev', 'Currency', '1', '1', '0'),
(1801, 135, 'fieldlist', 3, 'prices.typeabbrev', 'Price List', '1', '1', '0'),
(1800, 135, 'fieldlist', 2, 'prices.price', 'Price', '1', '1', '0'),
(1799, 135, 'fieldlist', 1, 'stockmaster.stockid', 'Item', '1', '1', '0'),
(1797, 135, 'trunclong', 0, '', '', '1', '1', '0'),
(1798, 135, 'dateselect', 0, '', '', '1', '1', 'a'),
(1804, 135, 'sortlist', 1, 'stockmaster.stockid', 'Item', '0', '0', '1'),
(1805, 136, 'critlist', 1, 'stockmoves.stockid', 'Item', '0', '0', '0'),
(1806, 136, 'critlist', 2, 'stockmoves.debtorno', 'Customer', '0', '0', '0'),
(1807, 136, 'dateselect', 0, 'stockmoves.trandate', 'ab', '1', '1', 'a'),
(1808, 136, 'fieldlist', 1, 'stockmoves.stockid', 'Item', '1', '1', '0'),
(1809, 136, 'fieldlist', 2, 'debtorsmaster.name', 'Customer', '1', '1', '0'),
(1810, 136, 'fieldlist', 3, 'stockmoves.branchcode', 'branch', '1', '1', '0'),
(1811, 136, 'fieldlist', 4, 'systypes.typename', 'Type', '1', '1', '0'),
(1812, 136, 'fieldlist', 5, 'stockmoves.trandate', 'Date', '1', '1', '0'),
(1813, 136, 'fieldlist', 6, 'stockmoves.qty', 'Quantity', '1', '1', '1'),
(1814, 136, 'grouplist', 1, 'stockmoves.debtorno', 'Customer', '0', '0', '1'),
(1815, 136, 'grouplist', 2, 'stockmoves.stockid', 'Item', '0', '0', '1'),
(1816, 136, 'grouplist', 3, 'stockmoves.trandate', 'Date', '0', '0', '1'),
(1817, 136, 'sortlist', 1, 'stockmoves.stockid', 'Item', '0', '0', '1'),
(1818, 136, 'sortlist', 2, 'stockmoves.debtorno', 'Customer', '0', '0', '0'),
(1819, 136, 'sortlist', 3, 'stockmoves.trandate', 'trans date', '0', '0', '0'),
(1820, 136, 'trunclong', 0, '', '', '1', '1', '0'),
(1821, 137, 'critlist', 1, 'stockserialmoves.serialno', 'Serial No.', '0', '0', '1'),
(1822, 137, 'dateselect', 0, '', 'a', '1', '1', 'a'),
(1823, 137, 'fieldlist', 1, 'worequirements.wo', 'Work Order', '1', '1', '0'),
(1824, 137, 'fieldlist', 2, 'worequirements.parentstockid', 'Parent_Item', '1', '1', '0'),
(1825, 137, 'fieldlist', 3, 'worequirements.stockid', 'Item', '1', '1', '0'),
(1826, 137, 'fieldlist', 4, 'stockserialmoves.serialno', 'Serial_No.', '1', '1', '0'),
(1827, 137, 'fieldlist', 5, 'workorders.requiredby', 'Due_Date', '1', '1', '0'),
(1828, 137, 'sortlist', 1, 'worequirements.wo', 'Work Order', '0', '0', '1'),
(1829, 137, 'sortlist', 2, 'stockserialmoves.stockid', 'Item', '0', '0', '1'),
(1830, 137, 'trunclong', 0, '', '', '1', '1', '0'),
(1831, 138, 'critlist', 1, 'stockmoves.stockid', 'Item', '0', '0', '0'),
(1832, 138, 'critlist', 2, 'stockmoves.debtorno', 'Customer', '0', '0', '0'),
(1833, 138, 'critlist', 3, 'stockserialmoves.serialno', 'Serial Number', '0', '0', '0'),
(1834, 138, 'dateselect', 0, 'stockmoves.trandate', 'ab', '1', '1', 'a'),
(1835, 138, 'fieldlist', 1, 'stockmoves.stockid', 'Item', '1', '1', '0'),
(1836, 138, 'fieldlist', 2, 'debtorsmaster.name', 'Customer', '1', '1', '0'),
(1837, 138, 'fieldlist', 3, 'stockmoves.branchcode', 'branch', '1', '1', '0'),
(1838, 138, 'fieldlist', 4, 'systypes.typename', 'Type', '1', '1', '0'),
(1839, 138, 'fieldlist', 5, 'stockmoves.trandate', 'Date', '1', '1', '0'),
(1840, 138, 'fieldlist', 6, 'stockserialmoves.serialno', 'Serial Number', '1', '1', '0'),
(1841, 138, 'grouplist', 1, 'stockmoves.debtorno', 'Customer', '0', '0', '0'),
(1842, 138, 'grouplist', 2, 'stockmoves.stockid', 'Item', '0', '0', '0'),
(1843, 138, 'grouplist', 3, 'stockmoves.trandate', 'Date', '0', '0', '0'),
(1844, 138, 'sortlist', 1, 'stockmoves.stockid', 'Item', '0', '0', '1'),
(1845, 138, 'sortlist', 2, 'stockmoves.debtorno', 'Customer', '0', '0', '0'),
(1846, 138, 'sortlist', 3, 'stockmoves.trandate', 'trans date', '0', '0', '0'),
(1847, 138, 'sortlist', 4, 'stockserialmoves.serialno', 'Serial Number', '0', '0', '0'),
(1848, 138, 'trunclong', 0, '', '', '1', '1', '1'),
(1849, 139, 'critlist', 1, 'stockserialitems.serialno', 'Serial No.', '0', '0', '1'),
(1850, 139, 'dateselect', 0, '', 'a', '1', '1', 'a'),
(1851, 139, 'fieldlist', 1, 'stockmoves.trandate', 'date', '1', '1', '0'),
(1852, 139, 'fieldlist', 2, 'stockmoves.stkmoveno', 'move', '1', '1', '0'),
(1853, 139, 'fieldlist', 3, 'stockserialitems.stockid', 'item', '1', '1', '0'),
(1854, 139, 'fieldlist', 4, 'stockserialitems.serialno', 'Serial_No.', '1', '1', '0'),
(1855, 139, 'fieldlist', 5, 'worequirements.wo', 'Work_Order', '1', '1', '0'),
(1856, 139, 'sortlist', 1, 'stockmoves.stkmoveno', 'moves', '0', '0', '1'),
(1857, 139, 'trunclong', 0, '', '', '1', '1', '0'),
(1858, 140, 'critlist', 1, 'stockserialitems.serialno', 'Serial_No.', '0', '0', '1'),
(1859, 140, 'dateselect', 0, '', 'a', '1', '1', 'a'),
(1860, 140, 'fieldlist', 1, 'stockmoves.trandate', 'Date', '1', '1', '0'),
(1861, 140, 'fieldlist', 2, 'stockmoves.stkmoveno', 'seq.', '1', '1', '0'),
(1862, 140, 'fieldlist', 3, 'stockserialitems.serialno', 'Serial_No.', '1', '1', '0'),
(1863, 140, 'fieldlist', 4, 'stockserialitems.stockid', 'Ident', '1', '1', '0'),
(1864, 140, 'fieldlist', 5, 'worequirements.wo', 'Work_Order', '1', '1', '0'),
(1865, 140, 'fieldlist', 6, 'stockmoves.loccode', 'loc', '1', '1', '0'),
(1866, 140, 'fieldlist', 7, 'stockserialmoves.moveqty', 'change', '1', '1', '0'),
(1867, 140, 'fieldlist', 8, 'stockserialitems.quantity', 'onhand', '1', '1', '0'),
(1868, 140, 'sortlist', 1, 'stockmoves.stkmoveno', 'move', '0', '0', '1'),
(1869, 140, 'sortlist', 2, 'stockserialitems.serialno', 'Serial_No.', '0', '0', '1'),
(1870, 140, 'sortlist', 3, 'stockserialitems.stockid', 'Item', '0', '0', '1'),
(1871, 140, 'trunclong', 0, '', '', '1', '1', '0'),
(1872, 141, 'critlist', 1, 'workorders.closed', 'Closed', '0', '0', '2'),
(1873, 141, 'dateselect', 0, 'workorders.requiredby', 'abcdf', '1', '1', 'a'),
(1874, 141, 'fieldlist', 1, 'workorders.wo', 'Work Order', '1', '1', '0'),
(1875, 141, 'fieldlist', 2, 'workorders.loccode', 'Location', '1', '1', '0'),
(1876, 141, 'fieldlist', 3, 'woitems.stockid', 'part', '1', '1', '0'),
(1877, 141, 'fieldlist', 4, 'workorders.requiredby', 'delivery', '1', '1', '0'),
(1878, 141, 'fieldlist', 5, 'woitems.qtyreqd', 'required', '1', '1', '0'),
(1879, 141, 'fieldlist', 6, 'woitems.qtyrecd', 'produced', '1', '1', '0'),
(1880, 141, 'sortlist', 1, 'workorders.requiredby', 'Due Date', '0', '0', '1'),
(1881, 141, 'sortlist', 2, 'workorders.wo', 'Work Order', '0', '0', '1'),
(1882, 141, 'trunclong', 0, '', '', '1', '1', '0');
-- --------------------------------------------------------
--
-- Table structure for table `reportheaders`
--
CREATE TABLE `reportheaders` (
`reportid` smallint(6) NOT NULL,
`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 ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `reportheaders`
--
INSERT INTO `reportheaders` (`reportid`, `reportheading`, `groupbydata1`, `newpageafter1`, `lower1`, `upper1`, `groupbydata2`, `newpageafter2`, `lower2`, `upper2`, `groupbydata3`, `newpageafter3`, `lower3`, `upper3`, `groupbydata4`, `newpageafter4`, `upper4`, `lower4`) VALUES
(1, 'Test report', 'Sales Area', 0, '0', 'zzzzz', 'Customer Code', 0, '1', 'zzzzzzzzzz', 'Product Code', 0, '1', 'zzzzzzzzz', 'Not Used', 0, '', ''),
(2, 'Sales DVD-UNS', 'Product Code', 0, 'DVD-UN', 'DVD-UNZZZZ', 'Not Used', 0, '', '', 'Not Used', 0, '', '', 'Not Used', 0, '', '');
-- --------------------------------------------------------
--
-- 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` (`table1`, `table2`, `equation`) 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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
INSERT INTO `reportlinks` (`table1`, `table2`, `equation`) VALUES
('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');
-- --------------------------------------------------------
--
-- Table structure for table `reports`
--
CREATE TABLE `reports` (
`id` int(5) NOT NULL,
`reportname` varchar(30) NOT NULL DEFAULT '',
`reporttype` char(3) NOT NULL DEFAULT 'rpt',
`groupname` varchar(9) NOT NULL DEFAULT 'misc',
`defaultreport` enum('1','0') NOT NULL DEFAULT '0',
`papersize` varchar(15) NOT NULL DEFAULT 'A4,210,297',
`paperorientation` enum('P','L') NOT NULL DEFAULT 'P',
`margintop` int(3) NOT NULL DEFAULT '10',
`marginbottom` int(3) NOT NULL DEFAULT '10',
`marginleft` int(3) NOT NULL DEFAULT '10',
`marginright` int(3) NOT NULL DEFAULT '10',
`coynamefont` varchar(20) NOT NULL DEFAULT 'Helvetica',
`coynamefontsize` int(3) NOT NULL DEFAULT '12',
`coynamefontcolor` varchar(11) NOT NULL DEFAULT '0,0,0',
`coynamealign` enum('L','C','R') NOT NULL DEFAULT 'C',
`coynameshow` enum('1','0') NOT NULL DEFAULT '1',
`title1desc` varchar(50) NOT NULL DEFAULT '%reportname%',
`title1font` varchar(20) NOT NULL DEFAULT 'Helvetica',
`title1fontsize` int(3) NOT NULL DEFAULT '10',
`title1fontcolor` varchar(11) NOT NULL DEFAULT '0,0,0',
`title1fontalign` enum('L','C','R') NOT NULL DEFAULT 'C',
`title1show` enum('1','0') NOT NULL DEFAULT '1',
`title2desc` varchar(50) NOT NULL DEFAULT 'Report Generated %date%',
`title2font` varchar(20) NOT NULL DEFAULT 'Helvetica',
`title2fontsize` int(3) NOT NULL DEFAULT '10',
`title2fontcolor` varchar(11) NOT NULL DEFAULT '0,0,0',
`title2fontalign` enum('L','C','R') NOT NULL DEFAULT 'C',
`title2show` enum('1','0') NOT NULL DEFAULT '1',
`filterfont` varchar(10) NOT NULL DEFAULT 'Helvetica',
`filterfontsize` int(3) NOT NULL DEFAULT '8',
`filterfontcolor` varchar(11) NOT NULL DEFAULT '0,0,0',
`filterfontalign` enum('L','C','R') NOT NULL DEFAULT 'L',
`datafont` varchar(10) NOT NULL DEFAULT 'Helvetica',
`datafontsize` int(3) NOT NULL DEFAULT '10',
`datafontcolor` varchar(10) NOT NULL DEFAULT 'black',
`datafontalign` enum('L','C','R') NOT NULL DEFAULT 'L',
`totalsfont` varchar(10) NOT NULL DEFAULT 'Helvetica',
`totalsfontsize` int(3) NOT NULL DEFAULT '10',
`totalsfontcolor` varchar(11) NOT NULL DEFAULT '0,0,0',
`totalsfontalign` enum('L','C','R') NOT NULL DEFAULT 'L',
`col1width` int(3) NOT NULL DEFAULT '25',
`col2width` int(3) NOT NULL DEFAULT '25',
`col3width` int(3) NOT NULL DEFAULT '25',
`col4width` int(3) NOT NULL DEFAULT '25',
`col5width` int(3) NOT NULL DEFAULT '25',
`col6width` int(3) NOT NULL DEFAULT '25',
`col7width` int(3) NOT NULL DEFAULT '25',
`col8width` int(3) NOT NULL DEFAULT '25',
`col9width` int(3) NOT NULL DEFAULT '25',
`col10width` int(3) NOT NULL DEFAULT '25',
`col11width` int(3) NOT NULL DEFAULT '25',
`col12width` int(3) NOT NULL DEFAULT '25',
`col13width` int(3) NOT NULL DEFAULT '25',
`col14width` int(3) NOT NULL DEFAULT '25',
`col15width` int(3) NOT NULL DEFAULT '25',
`col16width` int(3) NOT NULL DEFAULT '25',
`col17width` int(3) NOT NULL DEFAULT '25',
`col18width` int(3) NOT NULL DEFAULT '25',
`col19width` int(3) NOT NULL DEFAULT '25',
`col20width` int(3) NOT NULL DEFAULT '25',
`table1` varchar(25) NOT NULL DEFAULT '',
`table2` varchar(25) DEFAULT NULL,
`table2criteria` varchar(75) DEFAULT NULL,
`table3` varchar(25) DEFAULT NULL,
`table3criteria` varchar(75) DEFAULT NULL,
`table4` varchar(25) DEFAULT NULL,
`table4criteria` varchar(75) DEFAULT NULL,
`table5` varchar(25) DEFAULT NULL,
`table5criteria` varchar(75) DEFAULT NULL,
`table6` varchar(25) DEFAULT NULL,
`table6criteria` varchar(75) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `reports`
--
INSERT INTO `reports` (`id`, `reportname`, `reporttype`, `groupname`, `defaultreport`, `papersize`, `paperorientation`, `margintop`, `marginbottom`, `marginleft`, `marginright`, `coynamefont`, `coynamefontsize`, `coynamefontcolor`, `coynamealign`, `coynameshow`, `title1desc`, `title1font`, `title1fontsize`, `title1fontcolor`, `title1fontalign`, `title1show`, `title2desc`, `title2font`, `title2fontsize`, `title2fontcolor`, `title2fontalign`, `title2show`, `filterfont`, `filterfontsize`, `filterfontcolor`, `filterfontalign`, `datafont`, `datafontsize`, `datafontcolor`, `datafontalign`, `totalsfont`, `totalsfontsize`, `totalsfontcolor`, `totalsfontalign`, `col1width`, `col2width`, `col3width`, `col4width`, `col5width`, `col6width`, `col7width`, `col8width`, `col9width`, `col10width`, `col11width`, `col12width`, `col13width`, `col14width`, `col15width`, `col16width`, `col17width`, `col18width`, `col19width`, `col20width`, `table1`, `table2`, `table2criteria`, `table3`, `table3criteria`, `table4`, `table4criteria`, `table5`, `table5criteria`, `table6`, `table6criteria`) VALUES
(135, 'Currency Price List', 'rpt', 'inv', '1', 'A4:210:297', 'P', 10, 10, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'stockmaster', 'prices', 'stockmaster.stockid=prices.stockid', '', '', '', '', '', '', '', ''),
(136, 'Inventory At Customer', 'rpt', 'inv', '1', 'Letter:216:282', 'P', 10, 15, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 50, 50, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'stockmoves', 'debtorsmaster', 'debtorsmaster.debtorno = stockmoves.debtorno', 'systypes', 'stockmoves.type = systypes.typeid', '', '', '', '', '', ''),
(137, 'Issued Stock', 'rpt', 'man', '1', 'Letter:216:282', 'P', 10, 10, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 15, 45, 45, 35, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'worequirements', 'stockserialmoves', 'worequirements.stockid = stockserialmoves.stockid', 'workorders', 'workorders.wo = worequirements.wo', '', '', '', '', '', ''),
(138, 'Serial Nos at customer', 'rpt', 'inv', '1', 'Letter:216:282', 'L', 10, 15, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 50, 40, 30, 30, 30, 40, 50, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'stockmoves', 'debtorsmaster', 'debtorsmaster.debtorno = stockmoves.debtorno', 'systypes', 'stockmoves.type = systypes.typeid', 'stockserialmoves', 'stockmoves.stkmoveno = stockserialmoves.stockmoveno', '', '', '', ''),
(139, 'Serial Numbers', 'rpt', 'man', '1', 'A3:297:420', 'P', 10, 10, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'stockserialitems', 'worequirements', 'worequirements.stockid = stockserialitems.stockid', 'stockserialmoves', 'stockserialmoves.stockid = worequirements.stockid', 'stockmoves', 'stockmoves.stkmoveno=stockserialmoves.stockmoveno', '', '', '', ''),
(140, 'Serial Numbers Issued', 'rpt', 'man', '1', 'Letter:216:282', 'P', 10, 10, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'worequirements', 'stockserialitems', 'worequirements.stockid = stockserialitems.stockid', 'stockserialmoves', 'stockserialmoves.serialno = stockserialitems.serialno', 'stockmoves', 'stockmoves.stkmoveno=stockserialmoves.stockmoveno', 'systypes', 'systypes.typeid = stockmoves.type', '', ''),
(141, 'Work Order Dump', 'rpt', 'man', '1', 'Letter:216:282', 'P', 10, 10, 10, 10, 'helvetica', 12, '0:0:0', 'C', '1', '%reportname%', 'helvetica', 10, '0:0:0', 'C', '1', 'Report Generated %date%', 'helvetica', 10, '0:0:0', 'C', '1', 'helvetica', 8, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 'helvetica', 10, '0:0:0', 'L', 25, 45, 45, 35, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 'workorders', 'woitems', 'workorders.wo = woitems.wo', '', '', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `salesanalysis`
--
CREATE TABLE `salesanalysis` (
`typeabbrev` char(2) NOT NULL DEFAULT '',
`periodno` smallint(6) NOT NULL DEFAULT '0',
`amt` double NOT NULL DEFAULT '0',
`cost` double NOT NULL DEFAULT '0',
`cust` varchar(10) NOT NULL DEFAULT '',
`custbranch` varchar(10) NOT NULL DEFAULT '',
`qty` double NOT NULL DEFAULT '0',
`disc` double NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`area` varchar(3) NOT NULL,
`budgetoractual` tinyint(1) NOT NULL DEFAULT '0',
`salesperson` varchar(4) NOT NULL DEFAULT '',
`stkcategory` varchar(6) NOT NULL DEFAULT '',
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salesanalysis`
--
INSERT INTO `salesanalysis` (`typeabbrev`, `periodno`, `amt`, `cost`, `cust`, `custbranch`, `qty`, `disc`, `stockid`, `area`, `budgetoractual`, `salesperson`, `stkcategory`, `id`) VALUES
('DE', 19, 94.5, 20.88, '16', '16', 9, 0, 'DVD-DHWV', 'TR', 1, 'ERI', 'DVD', 1),
('DE', 19, 2.74, 0, '16', '16', 1, 0, 'PAYTSURCHARGE', 'TR', 1, 'ERI', 'ZPAYT', 2),
('DE', 22, 5, 1.13, '12', '12', 2, 0, 'BREAD', 'TR', 1, 'ERI', 'FOOD', 3);
-- --------------------------------------------------------
--
-- Table structure for table `salescat`
--
CREATE TABLE `salescat` (
`salescatid` tinyint(4) NOT NULL,
`parentcatid` tinyint(4) DEFAULT NULL,
`salescatname` varchar(50) DEFAULT NULL,
`active` int(11) NOT NULL DEFAULT '1' COMMENT '1 if active 0 if inactive'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salescat`
--
INSERT INTO `salescat` (`salescatid`, `parentcatid`, `salescatname`, `active`) VALUES
(1, 0, 'DVD', 1),
(3, 1, 'Action', 1),
(4, 3, 'Gibson', 1),
(5, 3, 'Willis', 1),
(6, 3, 'Cruise', 1),
(7, 0, 'Air Conditioning', 1),
(8, 0, 'Test', 1);
-- --------------------------------------------------------
--
-- Table structure for table `salescatprod`
--
CREATE TABLE `salescatprod` (
`salescatid` tinyint(4) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`manufacturers_id` int(11) NOT NULL,
`featured` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salescatprod`
--
INSERT INTO `salescatprod` (`salescatid`, `stockid`, `manufacturers_id`, `featured`) VALUES
(1, 'DVD-DHWV', 2, 1),
(1, 'DVD-LTWP', 1, 0),
(1, 'DVD-TOPGUN', 1, 1),
(1, 'DVD-UNSG', 1, 0),
(4, 'DVD-LTWP', 1, 0),
(5, 'DVD-DHWV', 2, 1),
(6, 'DVD-TOPGUN', 2, 1),
(7, 'FUJI990101', 3, 0),
(7, 'FUJI9901ASS', 3, 0),
(7, 'HIT3042-4', 4, 0),
(7, 'HIT3043-5', 4, 0),
(8, 'CUTTING', 3, 0);
-- --------------------------------------------------------
--
-- Table structure for table `salescattranslations`
--
CREATE TABLE `salescattranslations` (
`salescatid` tinyint(4) NOT NULL DEFAULT '0',
`language_id` varchar(10) NOT NULL DEFAULT 'en_GB.utf8',
`salescattranslation` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `salesglpostings`
--
CREATE TABLE `salesglpostings` (
`id` int(11) NOT NULL,
`area` varchar(3) NOT NULL,
`stkcat` varchar(6) NOT NULL DEFAULT '',
`discountglcode` varchar(20) NOT NULL DEFAULT '0',
`salesglcode` varchar(20) NOT NULL DEFAULT '0',
`salestype` char(2) NOT NULL DEFAULT 'AN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salesglpostings`
--
INSERT INTO `salesglpostings` (`id`, `area`, `stkcat`, `discountglcode`, `salesglcode`, `salestype`) VALUES
(1, 'AN', 'ANY', '4900', '4100', 'AN'),
(2, 'AN', 'AIRCON', '5000', '4800', 'DE'),
(3, 'AN', 'ZPAYT', '7230', '7230', 'AN');
-- --------------------------------------------------------
--
-- Table structure for table `salesman`
--
CREATE TABLE `salesman` (
`salesmancode` varchar(4) NOT NULL DEFAULT '',
`salesmanname` char(30) NOT NULL DEFAULT '',
`smantel` char(20) NOT NULL DEFAULT '',
`smanfax` char(20) NOT NULL DEFAULT '',
`commissionrate1` double NOT NULL DEFAULT '0',
`breakpoint` decimal(10,0) NOT NULL DEFAULT '0',
`commissionrate2` double NOT NULL DEFAULT '0',
`current` tinyint(4) NOT NULL COMMENT 'Salesman current (1) or not (0)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salesman`
--
INSERT INTO `salesman` (`salesmancode`, `salesmanname`, `smantel`, `smanfax`, `commissionrate1`, `breakpoint`, `commissionrate2`, `current`) VALUES
('DE', 'Default Sales person', '', '', 0, '0', 0, 1),
('ERI', 'Eric Browlee', '', '', 0, '0', 0, 1),
('INT', 'Internet Shop', '', '', 0, '0', 0, 1),
('PHO', 'Phone Contact', '', '', 5.5, '10001', 2.95, 1);
-- --------------------------------------------------------
--
-- Table structure for table `salesorderdetails`
--
CREATE TABLE `salesorderdetails` (
`orderlineno` int(11) NOT NULL DEFAULT '0',
`orderno` int(11) NOT NULL DEFAULT '0',
`stkcode` varchar(20) NOT NULL DEFAULT '',
`qtyinvoiced` double NOT NULL DEFAULT '0',
`unitprice` double NOT NULL DEFAULT '0',
`quantity` double NOT NULL DEFAULT '0',
`estimate` tinyint(4) NOT NULL DEFAULT '0',
`discountpercent` double NOT NULL DEFAULT '0',
`actualdispatchdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`completed` tinyint(1) NOT NULL DEFAULT '0',
`narrative` text,
`itemdue` date DEFAULT NULL COMMENT 'Due date for line item. Some customers require \r\nacknowledgements with due dates by line item',
`poline` varchar(10) DEFAULT NULL COMMENT 'Some Customers require acknowledgements with a PO line number for each sales line'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salesorderdetails`
--
INSERT INTO `salesorderdetails` (`orderlineno`, `orderno`, `stkcode`, `qtyinvoiced`, `unitprice`, `quantity`, `estimate`, `discountpercent`, `actualdispatchdate`, `completed`, `narrative`, `itemdue`, `poline`) VALUES
(0, 1, 'DVD-DHWV', 9, 10.5, 9, 0, 0, '2013-06-26 00:00:00', 1, NULL, '2013-06-23', ''),
(0, 7, 'BREAD', 2, 2.5, 2, 0, 0, '2013-09-07 00:00:00', 1, '', '2013-09-06', ''),
(0, 8, 'CUTTING', 0, 50, 2, 0, 0, '0000-00-00 00:00:00', 0, '', '2014-08-02', '0'),
(1, 1, 'PAYTSURCHARGE', 1, 2.7405, 1, 0, 0, '2013-06-26 00:00:00', 1, NULL, '2013-06-23', ''),
(1, 8, 'DR_TUMMY', 0, 0, 1, 0, 0, '0000-00-00 00:00:00', 0, '', '2014-08-02', '0');
-- --------------------------------------------------------
--
-- Table structure for table `salesorders`
--
CREATE TABLE `salesorders` (
`orderno` 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(40) DEFAULT NULL,
`deliverto` varchar(40) NOT NULL DEFAULT '',
`deliverblind` tinyint(1) DEFAULT '1',
`freightcost` double NOT NULL DEFAULT '0',
`fromstkloc` varchar(5) NOT NULL DEFAULT '',
`deliverydate` date NOT NULL DEFAULT '0000-00-00',
`confirmeddate` date NOT NULL DEFAULT '0000-00-00',
`printedpackingslip` tinyint(4) NOT NULL DEFAULT '0',
`datepackingslipprinted` date NOT NULL DEFAULT '0000-00-00',
`quotation` tinyint(4) NOT NULL DEFAULT '0',
`quotedate` date NOT NULL DEFAULT '0000-00-00',
`poplaced` tinyint(4) NOT NULL DEFAULT '0',
`salesperson` varchar(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salesorders`
--
INSERT INTO `salesorders` (`orderno`, `debtorno`, `branchcode`, `customerref`, `buyername`, `comments`, `orddate`, `ordertype`, `shipvia`, `deladd1`, `deladd2`, `deladd3`, `deladd4`, `deladd5`, `deladd6`, `contactphone`, `contactemail`, `deliverto`, `deliverblind`, `freightcost`, `fromstkloc`, `deliverydate`, `confirmeddate`, `printedpackingslip`, `datepackingslipprinted`, `quotation`, `quotedate`, `poplaced`, `salesperson`) VALUES
(1, '16', '16', '', NULL, 0x20496e762031, '2013-06-23', 'DE', 1, '34 Marram Way', 'Peka Peka', 'RD1 Waiakane', '5134', '', 'New Zealand', '64275567890', 'phil@logicworks.co.nz', 'Phil Daintree', 1, 0, 'TOR', '2013-06-23', '2013-06-23', 0, '0000-00-00', 0, '2013-06-23', 0, 'ERI'),
(7, '12', '12', '', NULL, 0x20496e762032, '2013-09-06', 'DE', 1, '123 Alexander Road', 'Roundhay', 'Leeds', '3211', '', 'United Kingdom', '212234566', 'angus@angry.com', 'Angus Routledge & Co', 1, 0, 'TOR', '2013-09-07', '2013-09-07', 0, '0000-00-00', 0, '2013-09-07', 0, 'ERI'),
(8, '12', '12', '', NULL, '', '2014-08-02', 'DE', 1, '123 Alexander Road', 'Roundhay', 'Leeds', '3211', '', 'United Kingdom', '212234566', 'angus@angry.com', 'Angus Routledge & Co', 1, 0, 'TOR', '2014-08-04', '2014-08-04', 0, '0000-00-00', 0, '2014-08-04', 0, 'ERI'),
(10, 'WEB0000018', 'WEB0000018', '', NULL, '', '2014-08-31', 'DE', 1, '34 Marram Way', 'Peka Peka, RD1 Waikanae', '', 'Kapiti', '5134', 'New Zealand', '04 528 9514', 'phil@logicworks.co.nz', 'Phil Daintree', 1, 0, 'TOR', '2014-08-31', '2014-08-31', 0, '0000-00-00', 1, '2014-08-31', 0, 'ERI');
-- --------------------------------------------------------
--
-- Table structure for table `salestypes`
--
CREATE TABLE `salestypes` (
`typeabbrev` char(2) NOT NULL DEFAULT '',
`sales_type` varchar(40) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `salestypes`
--
INSERT INTO `salestypes` (`typeabbrev`, `sales_type`) VALUES
('DE', 'Default Price List');
-- --------------------------------------------------------
--
-- Table structure for table `sampleresults`
--
CREATE TABLE `sampleresults` (
`resultid` bigint(20) NOT NULL,
`sampleid` int(11) NOT NULL,
`testid` int(11) NOT NULL,
`defaultvalue` varchar(150) NOT NULL,
`targetvalue` varchar(30) NOT NULL,
`rangemin` float DEFAULT NULL,
`rangemax` float DEFAULT NULL,
`testvalue` varchar(30) NOT NULL DEFAULT '',
`testdate` date NOT NULL DEFAULT '0000-00-00',
`testedby` varchar(15) NOT NULL DEFAULT '',
`comments` varchar(255) NOT NULL DEFAULT '',
`isinspec` tinyint(4) NOT NULL DEFAULT '0',
`showoncert` tinyint(4) NOT NULL DEFAULT '1',
`showontestplan` tinyint(4) NOT NULL DEFAULT '1',
`manuallyadded` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `scripts`
--
CREATE TABLE `scripts` (
`script` varchar(78) NOT NULL DEFAULT '',
`pagesecurity` int(11) NOT NULL DEFAULT '1',
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `scripts`
--
INSERT INTO `scripts` (`script`, `pagesecurity`, `description`) VALUES
('AccountGroups.php', 10, 'Defines the groupings of general ledger accounts'),
('AccountSections.php', 10, 'Defines the sections in the general ledger reports'),
('AddCustomerContacts.php', 3, 'Adds customer contacts'),
('AddCustomerNotes.php', 3, 'Adds notes about customers'),
('AddCustomerTypeNotes.php', 3, ''),
('AgedControlledInventory.php', 11, 'Report of Controlled Items and their age'),
('AgedDebtors.php', 2, 'Lists customer account balances in detail or summary in selected currency'),
('AgedSuppliers.php', 2, 'Lists supplier account balances in detail or summary in selected currency'),
('AnalysisHorizontalIncome.php', 8, 'Shows the horizontal analysis of the statement of comprehensive income'),
('AnalysisHorizontalPosition.php', 8, 'Shows the horizontal analysis of the statement of financial position'),
('Areas.php', 3, 'Defines the sales areas - all customers must belong to a sales area for the purposes of sales analysis'),
('AuditTrail.php', 15, 'Shows the activity with SQL statements and who performed the changes'),
('AutomaticTranslationDescriptions.php', 15, 'Translates via Google Translator all empty translated descriptions'),
('BankAccounts.php', 10, 'Defines the general ledger code for bank accounts and specifies that bank transactions be created for these accounts for the purposes of reconciliation'),
('BankAccountUsers.php', 15, 'Maintains table bankaccountusers (Authorized users to work with a bank account in webERP)'),
('BankMatching.php', 7, 'Allows payments and receipts to be matched off against bank statements'),
('BankReconciliation.php', 7, 'Displays the bank reconciliation for a selected bank account'),
('BOMExtendedQty.php', 2, 'Shows the component requirements to make an item'),
('BOMIndented.php', 2, 'Shows the bill of material indented for each level'),
('BOMIndentedReverse.php', 2, ''),
('BOMInquiry.php', 2, 'Displays the bill of material with cost information'),
('BOMListing.php', 2, 'Lists the bills of material for a selected range of items'),
('BOMs.php', 9, 'Administers the bills of material for a selected item'),
('BOMs_SingleLevel.php', 2, 'Single Level BOM entry'),
('COGSGLPostings.php', 10, 'Defines the general ledger account to be used for cost of sales entries'),
('CollectiveWorkOrderCost.php', 2, 'Multiple work orders cost review'),
('CompanyPreferences.php', 10, 'Defines the settings applicable for the company, including name, address, tax authority reference, whether GL integration used etc.'),
('ConfirmDispatchControlled_Invoice.php', 2, 'Specifies the batch references/serial numbers of items dispatched that are being invoiced'),
('ConfirmDispatch_Invoice.php', 2, 'Creates sales invoices from entered sales orders based on the quantities dispatched that can be modified'),
('ContractBOM.php', 6, 'Creates the item requirements from stock for a contract as part of the contract cost build up'),
('ContractCosting.php', 6, 'Shows a contract cost - the components and other non-stock costs issued to the contract'),
('ContractOtherReqts.php', 4, 'Creates the other requirements for a contract cost build up'),
('Contracts.php', 6, 'Creates or modifies a customer contract costing'),
('CopyBOM.php', 9, 'Allows a bill of material to be copied between items'),
('CostUpdate', 10, 'NB Not a script but allows users to maintain item costs from withing StockCostUpdate.php'),
('CounterReturns.php', 5, 'Allows credits and refunds from the default Counter Sale account for an inventory location'),
('CounterSales.php', 1, 'Allows sales to be entered against a cash sale customer account defined in the users location record'),
('CreditItemsControlled.php', 3, 'Specifies the batch references/serial numbers of items being credited back into stock'),
('CreditStatus.php', 3, 'Defines the credit status records. Each customer account is given a credit status from this table. Some credit status records can prohibit invoicing and new orders being entered.'),
('Credit_Invoice.php', 3, 'Creates a credit note based on the details of an existing invoice'),
('Currencies.php', 9, 'Defines the currencies available. Each customer and supplier must be defined as transacting in one of the currencies defined here.'),
('CustEDISetup.php', 11, 'Allows the set up the customer specified EDI parameters for server, email or ftp.'),
('CustItem.php', 11, 'Customer Items'),
('CustLoginSetup.php', 15, ''),
('CustomerAccount.php', 1, 'Shows customer account/statement on screen rather than PDF'),
('CustomerAllocations.php', 3, 'Allows customer receipts and credit notes to be allocated to sales invoices'),
('CustomerBalancesMovement.php', 3, 'Allow customers to be listed in local currency with balances and activity over a date range'),
('CustomerBranches.php', 3, 'Defines the details of customer branches such as delivery address and contact details - also sales area, representative etc'),
('CustomerInquiry.php', 1, 'Shows the customers account transactions with balances outstanding, links available to drill down to invoice/credit note or email invoices/credit notes'),
('CustomerPurchases.php', 5, 'Shows the purchases a customer has made.'),
('CustomerReceipt.php', 3, 'Entry of both customer receipts against accounts receivable and also general ledger or nominal receipts'),
('Customers.php', 3, 'Defines the setup of a customer account, including payment terms, billing address, credit status, currency etc'),
('CustomerTransInquiry.php', 2, 'Lists in html the sequence of customer transactions, invoices, credit notes or receipts by a user entered date range'),
('CustomerTypes.php', 15, ''),
('CustWhereAlloc.php', 2, 'Shows to which invoices a receipt was allocated to'),
('DailyBankTransactions.php', 8, 'Allows you to view all bank transactions for a selected date range, and the inquiry can be filtered by matched or unmatched transactions, or all transactions can be chosen'),
('DailySalesInquiry.php', 2, 'Shows the daily sales with GP in a calendar format'),
('Dashboard.php', 1, 'Display outstanding debtors, creditors etc'),
('DebtorsAtPeriodEnd.php', 2, 'Shows the debtors control account as at a previous period end - based on system calendar monthly periods'),
('DeliveryDetails.php', 1, 'Used during order entry to allow the entry of delivery addresses other than the defaulted branch delivery address and information about carrier/shipping method etc'),
('Departments.php', 1, 'Create business departments'),
('DiscountCategories.php', 11, 'Defines the items belonging to a discount category. Discount Categories are used to allow discounts based on quantities across a range of producs'),
('DiscountMatrix.php', 11, 'Defines the rates of discount applicable to discount categories and the customer groupings to which the rates are to apply'),
('EDIMessageFormat.php', 10, 'Specifies the EDI message format used by a customer - administrator use only.'),
('EDIProcessOrders.php', 11, 'Processes incoming EDI orders into sales orders'),
('EDISendInvoices.php', 15, 'Processes invoiced EDI customer invoices into EDI messages and sends using the customers preferred method either ftp or email attachments.'),
('EmailConfirmation.php', 2, ''),
('EmailCustTrans.php', 2, 'Emails selected invoice or credit to the customer'),
('ExchangeRateTrend.php', 2, 'Shows the trend in exchange rates as retrieved from ECB'),
('Factors.php', 5, 'Defines supplier factor companies'),
('FixedAssetCategories.php', 11, 'Defines the various categories of fixed assets'),
('FixedAssetDepreciation.php', 10, 'Calculates and creates GL transactions to post depreciation for a period'),
('FixedAssetItems.php', 11, 'Allows fixed assets to be defined'),
('FixedAssetLocations.php', 11, 'Allows the locations of fixed assets to be defined'),
('FixedAssetRegister.php', 11, 'Produces a csv, html or pdf report of the fixed assets over a period showing period depreciation, additions and disposals'),
('FixedAssetTransfer.php', 11, 'Allows the fixed asset locations to be changed in bulk'),
('FormDesigner.php', 14, ''),
('FormMaker.php', 1, 'Allows running user defined Forms'),
('FreightCosts.php', 11, 'Defines the setup of the freight cost using different shipping methods to different destinations. The system can use this information to calculate applicable freight if the items are defined with the correct kgs and cubic volume'),
('FTP_RadioBeacon.php', 2, 'FTPs sales orders for dispatch to a radio beacon software enabled warehouse dispatching facility'),
('geocode.php', 3, ''),
('GeocodeSetup.php', 3, ''),
('geocode_genxml_customers.php', 3, ''),
('geocode_genxml_suppliers.php', 3, ''),
('geo_displaymap_customers.php', 3, ''),
('geo_displaymap_suppliers.php', 3, ''),
('GetStockImage.php', 1, ''),
('GLAccountCSV.php', 8, 'Produces a CSV of the GL transactions for a particular range of periods and GL account'),
('GLAccountInquiry.php', 8, 'Shows the general ledger transactions for a specified account over a specified range of periods'),
('GLAccountReport.php', 8, 'Produces a report of the GL transactions for a particular account'),
('GLAccounts.php', 10, 'Defines the general ledger accounts'),
('GLBalanceSheet.php', 8, 'Shows the balance sheet for the company as at a specified date'),
('GLBudgets.php', 10, 'Defines GL Budgets'),
('GLCashFlowsIndirect.php', 8, 'Shows a statement of cash flows for the period using the indirect method'),
('GLCashFlowsSetup.php', 8, 'Setups the statement of cash flows sections'),
('GLCodesInquiry.php', 8, 'Shows the list of general ledger codes defined with account names and groupings'),
('GLJournal.php', 10, 'Entry of general ledger journals, periods are calculated based on the date entered here'),
('GLJournalInquiry.php', 15, 'General Ledger Journal Inquiry'),
('GLProfit_Loss.php', 8, 'Shows the profit and loss of the company for the range of periods entered'),
('GLTagProfit_Loss.php', 8, ''),
('GLTags.php', 10, 'Allows GL tags to be defined'),
('GLTransInquiry.php', 8, 'Shows the general ledger journal created for the sub ledger transaction specified'),
('GLTrialBalance.php', 8, 'Shows the trial balance for the month and the for the period selected together with the budgeted trial balances'),
('GLTrialBalance_csv.php', 8, 'Produces a CSV of the Trial Balance for a particular period'),
('GoodsReceived.php', 11, 'Entry of items received against purchase orders'),
('GoodsReceivedControlled.php', 11, 'Entry of the serial numbers or batch references for controlled items received against purchase orders'),
('GoodsReceivedNotInvoiced.php', 2, 'Shows the list of goods received but not yet invoiced, both in supplier currency and home currency. Total in home curency should match the GL Account for Goods received not invoiced. Any discrepancy is due to multicurrency errors.'),
('HistoricalTestResults.php', 16, 'Historical Test Results'),
('ImportBankTrans.php', 11, 'Imports bank transactions'),
('ImportBankTransAnalysis.php', 11, 'Allows analysis of bank transactions being imported'),
('index.php', 1, 'The main menu from where all functions available to the user are accessed by clicking on the links'),
('InternalStockCategoriesByRole.php', 15, 'Maintains the stock categories to be used as internal for any user security role'),
('InternalStockRequest.php', 1, 'Create an internal stock request'),
('InternalStockRequestAuthorisation.php', 1, 'Authorise internal stock requests'),
('InternalStockRequestFulfill.php', 1, 'Fulfill an internal stock request'),
('InternalStockRequestInquiry.php', 1, 'Internal Stock Request inquiry'),
('InventoryPlanning.php', 2, 'Creates a pdf report showing the last 4 months use of items including as a component of assemblies together with stock quantity on hand, current demand for the item and current quantity on sales order.'),
('InventoryPlanningPrefSupplier.php', 2, 'Produces a report showing the inventory to be ordered by supplier'),
('InventoryPlanningPrefSupplier_CSV.php', 2, 'Inventory planning spreadsheet'),
('InventoryQuantities.php', 2, ''),
('InventoryValuation.php', 2, 'Creates a pdf report showing the value of stock at standard cost for a range of product categories selected'),
('Labels.php', 15, 'Produces item pricing labels in a pdf from a range of selected criteria'),
('Locations.php', 11, 'Defines the inventory stocking locations or warehouses'),
('LocationUsers.php', 15, 'Allows users that have permission to access a location to be defined'),
('Logout.php', 1, 'Shows when the user logs out of webERP'),
('MailingGroupMaintenance.php', 15, 'Mainting mailing lists for items to mail'),
('MailInventoryValuation.php', 1, 'Meant to be run as a scheduled process to email the stock valuation off to a specified person. Creates the same stock valuation report as InventoryValuation.php'),
('MailSalesReport_csv.php', 15, 'Mailing the sales report'),
('MaintenanceReminders.php', 1, 'Sends email reminders for scheduled asset maintenance tasks'),
('MaintenanceTasks.php', 1, 'Allows set up and edit of scheduled maintenance tasks'),
('MaintenanceUserSchedule.php', 1, 'List users or managers scheduled maintenance tasks and allow to be flagged as completed'),
('Manufacturers.php', 15, 'Maintain brands of sales products'),
('MaterialsNotUsed.php', 4, 'Lists the items from Raw Material Categories not used in any BOM (thus, not used at all)'),
('MRP.php', 9, ''),
('MRPCalendar.php', 9, ''),
('MRPCreateDemands.php', 9, ''),
('MRPDemands.php', 9, ''),
('MRPDemandTypes.php', 9, ''),
('MRPPlannedPurchaseOrders.php', 2, ''),
('MRPPlannedWorkOrders.php', 2, ''),
('MRPReport.php', 2, ''),
('MRPReschedules.php', 2, ''),
('MRPShortages.php', 2, ''),
('NoSalesItems.php', 2, 'Shows the No Selling (worst) items'),
('OffersReceived.php', 4, ''),
('OrderDetails.php', 1, 'Shows the detail of a sales order'),
('OrderEntryDiscountPricing', 13, 'Not a script but an authority level marker - required if the user is allowed to enter discounts and special pricing against a customer order'),
('OutstandingGRNs.php', 2, 'Creates a pdf showing all GRNs for which there has been no purchase invoice matched off against.'),
('PageSecurity.php', 15, ''),
('PaymentAllocations.php', 5, ''),
('PaymentMethods.php', 15, ''),
('Payments.php', 5, 'Entry of bank account payments either against an AP account or a general ledger payment - if the AP-GL link in company preferences is set'),
('PaymentTerms.php', 10, 'Defines the payment terms records, these can be expressed as either a number of days credit or a day in the following month. All customers and suppliers must have a corresponding payment term recorded against their account'),
('PcAnalysis.php', 15, 'Creates an Excel with details of PC expnese for 24 months'),
('PcAssignCashTabToTab.php', 12, 'Assign cash from one tab to another'),
('PcAssignCashToTab.php', 6, ''),
('PcAuthorizeExpenses.php', 6, ''),
('PcClaimExpensesFromTab.php', 6, ''),
('PcExpenses.php', 15, ''),
('PcExpensesTypeTab.php', 15, ''),
('PcReportTab.php', 6, ''),
('PcTabExpensesList.php', 15, 'Creates excel with all movements of tab between dates'),
('PcTabs.php', 15, ''),
('PcTypeTabs.php', 15, ''),
('PDFBankingSummary.php', 3, 'Creates a pdf showing the amounts entered as receipts on a specified date together with references for the purposes of banking'),
('PDFChequeListing.php', 3, 'Creates a pdf showing all payments that have been made from a specified bank account over a specified period. This can be emailed to an email account defined in config.php - ie a financial controller'),
('PDFCOA.php', 0, 'PDF of COA'),
('PDFCustomerList.php', 2, 'Creates a report of the customer and branch information held. This report has options to print only customer branches in a specified sales area and sales person. Additional option allows to list only those customers with activity either under or over a specified amount, since a specified date.'),
('PDFCustTransListing.php', 3, ''),
('PDFDeliveryDifferences.php', 3, 'Creates a pdf report listing the delivery differences from what the customer requested as recorded in the order entry. The report calculates a percentage of order fill based on the number of orders filled in full on time'),
('PDFDIFOT.php', 3, 'Produces a pdf showing the delivery in full on time performance'),
('PDFFGLabel.php', 11, 'Produces FG Labels'),
('PDFGLJournal.php', 15, 'General Ledger Journal Print'),
('PDFGLJournalCN.php', 1, 'Print GL Journal Chinese version'),
('PDFGrn.php', 2, 'Produces a GRN report on the receipt of stock'),
('PDFLowGP.php', 2, 'Creates a pdf report showing the low gross profit sales made in the selected date range. The percentage of gp deemed acceptable can also be entered'),
('PDFOrdersInvoiced.php', 3, 'Produces a pdf of orders invoiced based on selected criteria'),
('PDFOrderStatus.php', 3, 'Reports on sales order status by date range, by stock location and stock category - producing a pdf showing each line items and any quantites delivered'),
('PDFPeriodStockTransListing.php', 3, 'Allows stock transactions of a specific transaction type to be listed over a single day or period range'),
('PDFPickingList.php', 2, ''),
('PDFPriceList.php', 2, 'Creates a pdf of the price list applicable to a given sales type and customer. Also allows the listing of prices specific to a customer'),
('PDFPrintLabel.php', 10, ''),
('PDFProdSpec.php', 0, 'PDF OF Product Specification'),
('PDFQALabel.php', 2, 'Produces a QA label on receipt of stock'),
('PDFQuotation.php', 2, ''),
('PDFQuotationPortrait.php', 2, 'Portrait quotation'),
('PDFReceipt.php', 2, ''),
('PDFRemittanceAdvice.php', 2, ''),
('PDFSellThroughSupportClaim.php', 9, 'Reports the sell through support claims to be made against all suppliers for a given date range.'),
('PDFStockCheckComparison.php', 2, 'Creates a pdf comparing the quantites entered as counted at a given range of locations against the quantity stored as on hand as at the time a stock check was initiated.'),
('PDFStockLocTransfer.php', 1, 'Creates a stock location transfer docket for the selected location transfer reference number'),
('PDFStockNegatives.php', 1, 'Produces a pdf of the negative stocks by location'),
('PDFStockTransfer.php', 2, 'Produces a report for stock transfers'),
('PDFSuppTransListing.php', 3, ''),
('PDFTestPlan.php', 16, 'PDF of Test Plan'),
('PDFTopItems.php', 2, 'Produces a pdf report of the top items sold'),
('PDFWOPrint.php', 11, 'Produces W/O Paperwork'),
('PeriodsInquiry.php', 2, 'Shows a list of all the system defined periods'),
('POReport.php', 2, ''),
('PO_AuthorisationLevels.php', 15, ''),
('PO_AuthoriseMyOrders.php', 4, ''),
('PO_Header.php', 4, 'Entry of a purchase order header record - date, references buyer etc'),
('PO_Items.php', 4, 'Entry of a purchase order items - allows entry of items with lookup of currency cost from Purchasing Data previously entered also allows entry of nominal items against a general ledger code if the AP is integrated to the GL'),
('PO_OrderDetails.php', 2, 'Purchase order inquiry shows the quantity received and invoiced of purchase order items as well as the header information'),
('PO_PDFPurchOrder.php', 2, 'Creates a pdf of the selected purchase order for printing or email to one of the supplier contacts entered'),
('PO_SelectOSPurchOrder.php', 2, 'Shows the outstanding purchase orders for selecting with links to receive or modify the purchase order header and items'),
('PO_SelectPurchOrder.php', 2, 'Allows selection of any purchase order with links to the inquiry'),
('PriceMatrix.php', 11, 'Mantain stock prices according to quantity break and sales types'),
('Prices.php', 9, 'Entry of prices for a selected item also allows selection of sales type and currency for the price'),
('PricesBasedOnMarkUp.php', 11, ''),
('PricesByCost.php', 11, 'Allows prices to be updated based on cost'),
('Prices_Customer.php', 11, 'Entry of prices for a selected item and selected customer/branch. The currency and sales type is defaulted from the customer''s record'),
('PrintCheque.php', 5, ''),
('PrintCustOrder.php', 2, 'Creates a pdf of the dispatch note - by default this is expected to be on two part pre-printed stationery to allow pickers to note discrepancies for the confirmer to update the dispatch at the time of invoicing'),
('PrintCustOrder_generic.php', 2, 'Creates two copies of a laser printed dispatch note - both copies need to be written on by the pickers with any discrepancies to advise customer of any shortfall and on the office copy to ensure the correct quantites are invoiced'),
('PrintCustStatements.php', 2, 'Creates a pdf for the customer statements in the selected range'),
('PrintCustTrans.php', 1, 'Creates either a html invoice or credit note or a pdf. A range of invoices or credit notes can be selected also.'),
('PrintCustTransPortrait.php', 1, ''),
('PrintSalesOrder_generic.php', 2, ''),
('PrintWOItemSlip.php', 4, 'PDF WO Item production Slip '),
('ProductSpecs.php', 16, 'Product Specification Maintenance'),
('PurchaseByPrefSupplier.php', 2, 'Purchase ordering by preferred supplier'),
('PurchData.php', 4, 'Entry of supplier purchasing data, the suppliers part reference and the suppliers currency cost of the item'),
('QATests.php', 16, 'Quality Test Maintenance'),
('RecurringSalesOrders.php', 1, ''),
('RecurringSalesOrdersProcess.php', 1, 'Process Recurring Sales Orders'),
('RelatedItemsUpdate.php', 2, 'Maintains Related Items'),
('ReorderLevel.php', 2, 'Allows reorder levels of inventory to be updated'),
('ReorderLevelLocation.php', 2, ''),
('ReportCreator.php', 13, 'Report Writer and Form Creator script that creates templates for user defined reports and forms'),
('ReportMaker.php', 1, 'Produces reports from the report writer templates created'),
('reportwriter/admin/ReportCreator.php', 15, 'Report Writer'),
('ReprintGRN.php', 11, 'Allows selection of a goods received batch for reprinting the goods received note given a purchase order number'),
('ReverseGRN.php', 11, 'Reverses the entry of goods received - creating stock movements back out and necessary general ledger journals to effect the reversal'),
('RevisionTranslations.php', 15, 'Human revision for automatic descriptions translations'),
('SalesAnalReptCols.php', 2, 'Entry of the definition of a sales analysis report''s columns.'),
('SalesAnalRepts.php', 2, 'Entry of the definition of a sales analysis report headers'),
('SalesAnalysis_UserDefined.php', 2, 'Creates a pdf of a selected user defined sales analysis report'),
('SalesByTypePeriodInquiry.php', 2, 'Shows sales for a selected date range by sales type/price list'),
('SalesCategories.php', 11, ''),
('SalesCategoryDescriptions.php', 15, 'Maintain translations for sales categories'),
('SalesCategoryPeriodInquiry.php', 2, 'Shows sales for a selected date range by stock category'),
('SalesGLPostings.php', 10, 'Defines the general ledger accounts used to post sales to based on product categories and sales areas'),
('SalesGraph.php', 6, ''),
('SalesInquiry.php', 2, ''),
('SalesPeople.php', 3, 'Defines the sales people of the business'),
('SalesTopCustomersInquiry.php', 1, 'Shows the top customers'),
('SalesTopItemsInquiry.php', 2, 'Shows the top item sales for a selected date range'),
('SalesTypes.php', 15, 'Defines the sales types - prices are held against sales types they can be considered price lists. Sales analysis records are held by sales type too.'),
('SecurityTokens.php', 15, 'Administration of security tokens'),
('SelectAsset.php', 2, 'Allows a fixed asset to be selected for modification or viewing'),
('SelectCompletedOrder.php', 1, 'Allows the selection of completed sales orders for inquiries - choices to select by item code or customer'),
('SelectContract.php', 6, 'Allows a contract costing to be selected for modification or viewing'),
('SelectCreditItems.php', 3, 'Entry of credit notes from scratch, selecting the items in either quick entry mode or searching for them manually'),
('SelectCustomer.php', 2, 'Selection of customer - from where all customer related maintenance, transactions and inquiries start'),
('SelectGLAccount.php', 8, 'Selection of general ledger account from where all general ledger account maintenance, or inquiries are initiated'),
('SelectOrderItems.php', 1, 'Entry of sales order items with both quick entry and part search functions'),
('SelectProduct.php', 2, 'Selection of items. All item maintenance, transactions and inquiries start with this script'),
('SelectQASamples.php', 16, 'Select QA Samples'),
('SelectRecurringSalesOrder.php', 2, ''),
('SelectSalesOrder.php', 2, 'Selects a sales order irrespective of completed or not for inquiries'),
('SelectSupplier.php', 2, 'Selects a supplier. A supplier is required to be selected before any AP transactions and before any maintenance or inquiry of the supplier'),
('SelectWorkOrder.php', 2, ''),
('SellThroughSupport.php', 9, 'Defines the items, period and quantum of support for which supplier has agreed to provide.'),
('ShipmentCosting.php', 11, 'Shows the costing of a shipment with all the items invoice values and any shipment costs apportioned. Updating the shipment has an option to update standard costs of all items on the shipment and create any general ledger variance journals'),
('Shipments.php', 11, 'Entry of shipments from outstanding purchase orders for a selected supplier - changes in the delivery date will cascade into the different purchase orders on the shipment'),
('Shippers.php', 15, 'Defines the shipping methods available. Each customer branch has a default shipping method associated with it which must match a record from this table'),
('ShiptsList.php', 2, 'Shows a list of all the open shipments for a selected supplier. Linked from POItems.php'),
('Shipt_Select.php', 11, 'Selection of a shipment for displaying and modification or updating'),
('ShopParameters.php', 15, 'Maintain web-store configuration and set up'),
('SMTPServer.php', 15, ''),
('SpecialOrder.php', 4, 'Allows for a sales order to be created and an indent order to be created on a supplier for a one off item that may never be purchased again. A dummy part is created based on the description and cost details given.'),
('StockAdjustments.php', 11, 'Entry of quantity corrections to stocks in a selected location.'),
('StockAdjustmentsControlled.php', 11, 'Entry of batch references or serial numbers on controlled stock items being adjusted'),
('StockCategories.php', 11, 'Defines the stock categories. All items must refer to one of these categories. The category record also allows the specification of the general ledger codes where stock items are to be posted - the balance sheet account and the profit and loss effect of any adjustments and the profit and loss effect of any price variances'),
('StockCategorySalesInquiry.php', 2, 'Sales inquiry by stock category showing top items'),
('StockCheck.php', 2, 'Allows creation of a stock check file - copying the current quantites in stock for later comparison to the entered counts. Also produces a pdf for the count sheets.'),
('StockClone.php', 11, 'Script to copy a stock item and associated properties, image, price, purchase and cost data'),
('StockCostUpdate.php', 9, 'Allows update of the standard cost of items producing general ledger journals if the company preferences stock GL interface is active'),
('StockCounts.php', 2, 'Allows entry of stock counts'),
('StockDispatch.php', 2, ''),
('StockLocMovements.php', 2, 'Inquiry shows the Movements of all stock items for a specified location'),
('StockLocStatus.php', 2, 'Shows the stock on hand together with outstanding sales orders and outstanding purchase orders by stock location for all items in the selected stock category'),
('StockLocTransfer.php', 11, 'Entry of a bulk stock location transfer for many parts from one location to another.'),
('StockLocTransferReceive.php', 11, 'Effects the transfer and creates the stock movements for a bulk stock location transfer initiated from StockLocTransfer.php'),
('StockMovements.php', 2, 'Shows a list of all the stock movements for a selected item and stock location including the price at which they were sold in local currency and the price at which they were purchased for in local currency'),
('StockQties_csv.php', 5, 'Makes a comma separated values (CSV)file of the stock item codes and quantities'),
('StockQuantityByDate.php', 2, 'Shows the stock on hand for each item at a selected location and stock category as at a specified date'),
('StockReorderLevel.php', 4, 'Entry and review of the re-order level of items by stocking location'),
('Stocks.php', 11, 'Defines an item - maintenance and addition of new parts'),
('StockSerialItemResearch.php', 3, ''),
('StockSerialItems.php', 2, 'Shows a list of the serial numbers or the batch references and quantities of controlled items. This inquiry is linked from the stock status inquiry'),
('StockStatus.php', 2, 'Shows the stock on hand together with outstanding sales orders and outstanding purchase orders by stock location for a selected part. Has a link to show the serial numbers in stock at the location selected if the item is controlled'),
('StockTransferControlled.php', 11, 'Entry of serial numbers/batch references for controlled items being received on a stock transfer. The script is used by both bulk transfers and point to point transfers'),
('StockTransfers.php', 11, 'Entry of point to point stock location transfers of a single part'),
('StockUsage.php', 2, 'Inquiry showing the quantity of stock used by period calculated from the sum of the stock movements over that period - by item and stock location. Also available over all locations'),
('StockUsageGraph.php', 2, ''),
('SuppContractChgs.php', 5, ''),
('SuppCreditGRNs.php', 5, 'Entry of a supplier credit notes (debit notes) against existing GRN which have already been matched in full or in part'),
('SuppFixedAssetChgs.php', 5, ''),
('SuppInvGRNs.php', 5, 'Entry of supplier invoices against goods received'),
('SupplierAllocations.php', 5, 'Entry of allocations of supplier payments and credit notes to invoices'),
('SupplierBalsAtPeriodEnd.php', 2, ''),
('SupplierContacts.php', 5, 'Entry of supplier contacts and contact details including email addresses'),
('SupplierCredit.php', 5, 'Entry of supplier credit notes (debit notes)'),
('SupplierInquiry.php', 2, 'Inquiry showing invoices, credit notes and payments made to suppliers together with the amounts outstanding'),
('SupplierInvoice.php', 5, 'Entry of supplier invoices'),
('SupplierPriceList.php', 4, 'Maintain Supplier Price Lists'),
('Suppliers.php', 5, 'Entry of new suppliers and maintenance of existing suppliers'),
('SupplierTenderCreate.php', 4, 'Create or Edit tenders'),
('SupplierTenders.php', 9, ''),
('SupplierTransInquiry.php', 2, ''),
('SupplierTypes.php', 4, ''),
('SuppLoginSetup.php', 15, ''),
('SuppPaymentRun.php', 5, 'Automatic creation of payment records based on calculated amounts due from AP invoices entered'),
('SuppPriceList.php', 2, ''),
('SuppShiptChgs.php', 5, 'Entry of supplier invoices against shipments as charges against a shipment'),
('SuppTransGLAnalysis.php', 5, 'Entry of supplier invoices against general ledger codes'),
('SuppWhereAlloc.php', 3, 'Suppliers Where allocated'),
('SystemParameters.php', 15, ''),
('Tax.php', 2, 'Creates a report of the ad-valoerm tax - GST/VAT - for the period selected from accounts payable and accounts receivable data'),
('TaxAuthorities.php', 15, 'Entry of tax authorities - the state intitutions that charge tax'),
('TaxAuthorityRates.php', 11, 'Entry of the rates of tax applicable to the tax authority depending on the item tax level'),
('TaxCategories.php', 15, 'Allows for categories of items to be defined that might have different tax rates applied to them'),
('TaxGroups.php', 15, 'Allows for taxes to be grouped together where multiple taxes might apply on sale or purchase of items'),
('TaxProvinces.php', 15, 'Allows for inventory locations to be defined so that tax applicable from sales in different provinces can be dealt with'),
('TestPlanResults.php', 16, 'Test Plan Results Entry'),
('TopItems.php', 2, 'Shows the top selling items'),
('UnitsOfMeasure.php', 15, 'Allows for units of measure to be defined'),
('UpgradeDatabase.php', 15, 'Allows for the database to be automatically upgraded based on currently recorded DBUpgradeNumber config option'),
('UserBankAccounts.php', 15, 'Maintains table bankaccountusers (Authorized users to work with a bank account in webERP)'),
('UserGLAccounts.php', 15, 'Maintenance of GL Accounts allowed for a user'),
('UserLocations.php', 15, 'Location User Maintenance'),
('UserSettings.php', 1, 'Allows the user to change system wide defaults for the theme - appearance, the number of records to show in searches and the language to display messages in'),
('WhereUsedInquiry.php', 2, 'Inquiry showing where an item is used ie all the parents where the item is a component of'),
('WOCanBeProducedNow.php', 4, 'List of WO items that can be produced with available stock in location'),
('WorkCentres.php', 9, 'Defines the various centres of work within a manufacturing company. Also the overhead and labour rates applicable to the work centre and its standard capacity'),
('WorkOrderCosting.php', 11, ''),
('WorkOrderEntry.php', 10, 'Entry of new work orders'),
('WorkOrderIssue.php', 11, 'Issue of materials to a work order'),
('WorkOrderReceive.php', 11, 'Allows for receiving of works orders'),
('WorkOrderStatus.php', 11, 'Shows the status of works orders'),
('WOSerialNos.php', 10, ''),
('WWW_Access.php', 15, ''),
('WWW_Users.php', 15, 'Entry of users and security settings of users'),
('Z_BottomUpCosts.php', 15, ''),
('Z_ChangeBranchCode.php', 15, 'Utility to change the branch code of a customer that cascades the change through all the necessary tables'),
('Z_ChangeCustomerCode.php', 15, 'Utility to change a customer code that cascades the change through all the necessary tables'),
('Z_ChangeGLAccountCode.php', 15, 'Script to change a GL account code accross all tables necessary'),
('Z_ChangeLocationCode.php', 15, 'Change a locations code and in all tables where the old code was used to the new code'),
('Z_ChangeStockCategory.php', 15, ''),
('Z_ChangeStockCode.php', 15, 'Utility to change an item code that cascades the change through all the necessary tables'),
('Z_ChangeSupplierCode.php', 15, 'Script to change a supplier code accross all tables necessary'),
('Z_CheckAllocationsFrom.php', 15, ''),
('Z_CheckAllocs.php', 2, ''),
('Z_CheckDebtorsControl.php', 15, 'Inquiry that shows the total local currency (functional currency) balance of all customer accounts to reconcile with the general ledger debtors account'),
('Z_CheckGLTransBalance.php', 15, 'Checks all GL transactions balance and reports problem ones'),
('Z_CreateChartDetails.php', 9, 'Utility page to create chart detail records for all general ledger accounts and periods created - needs expert assistance in use'),
('Z_CreateCompany.php', 15, 'Utility to insert company number 1 if not already there - actually only company 1 is used - the system is not multi-company'),
('Z_CreateCompanyTemplateFile.php', 15, ''),
('Z_CurrencyDebtorsBalances.php', 15, 'Inquiry that shows the total foreign currency together with the total local currency (functional currency) balances of all customer accounts to reconcile with the general ledger debtors account'),
('Z_CurrencySuppliersBalances.php', 15, 'Inquiry that shows the total foreign currency amounts and also the local currency (functional currency) balances of all supplier accounts to reconcile with the general ledger creditors account'),
('Z_DataExport.php', 15, ''),
('Z_DeleteCreditNote.php', 15, 'Utility to reverse a customer credit note - a desperate measure that should not be used except in extreme circumstances'),
('Z_DeleteInvoice.php', 15, 'Utility to reverse a customer invoice - a desperate measure that should not be used except in extreme circumstances'),
('Z_DeleteOldPrices.php', 15, 'Deletes all old prices'),
('Z_DeleteSalesTransActions.php', 15, 'Utility to delete all sales transactions, sales analysis the lot! Extreme care required!!!'),
('Z_DescribeTable.php', 11, ''),
('Z_ImportChartOfAccounts.php', 11, ''),
('Z_ImportDebtors.php', 15, 'Import debtors by csv file'),
('Z_ImportFixedAssets.php', 15, 'Allow fixed assets to be imported from a csv'),
('Z_ImportGLAccountGroups.php', 11, ''),
('Z_ImportGLAccountSections.php', 11, ''),
('Z_ImportGLTransactions.php', 15, 'Import General Ledger Transactions'),
('Z_ImportPartCodes.php', 11, 'Allows inventory items to be imported from a csv'),
('Z_ImportPriceList.php', 15, 'Loads a new price list from a csv file'),
('Z_ImportStocks.php', 15, ''),
('Z_index.php', 15, 'Utility menu page'),
('Z_ItemsWithoutPicture.php', 15, 'Shows the list of curent items without picture in webERP'),
('Z_MakeLocUsers.php', 15, 'Create User Location records'),
('Z_MakeNewCompany.php', 15, ''),
('Z_MakeStockLocns.php', 15, 'Utility to make LocStock records for all items and locations if not already set up.'),
('Z_poAddLanguage.php', 15, 'Allows a new language po file to be created'),
('Z_poAdmin.php', 15, 'Allows for a gettext language po file to be administered'),
('Z_poEditLangHeader.php', 15, ''),
('Z_poEditLangModule.php', 15, ''),
('Z_poEditLangRemaining.php', 15, ''),
('Z_poRebuildDefault.php', 15, ''),
('Z_PriceChanges.php', 15, 'Utility to make bulk pricing alterations to selected sales type price lists or selected customer prices only'),
('Z_ReApplyCostToSA.php', 15, 'Utility to allow the sales analysis table to be updated with the latest cost information - the sales analysis takes the cost at the time the sale was made to reconcile with the enteries made in the gl.'),
('Z_RePostGLFromPeriod.php', 15, 'Utility to repost all general ledger transaction commencing from a specified period. This can take some time in busy environments. Normally GL transactions are posted automatically each time a trial balance or profit and loss account is run'),
('Z_ReverseSuppPaymentRun.php', 15, 'Utility to reverse an entire Supplier payment run'),
('Z_SalesIntegrityCheck.php', 15, ''),
('Z_UpdateChartDetailsBFwd.php', 15, 'Utility to recalculate the ChartDetails table B/Fwd balances - extreme care!!'),
('Z_UpdateItemCosts.php', 15, 'Use CSV of item codes and costs to update webERP item costs'),
('Z_UpdateSalesAnalysisWithLatestCustomerData.php', 15, 'Updates the salesanalysis table with the latest data from the customer debtorsmaster salestype and custbranch sales area and sales person irrespective of the sales type, area, salesperson at the time when the sale was made'),
('Z_Upgrade3.10.php', 15, ''),
('Z_Upgrade_3.01-3.02.php', 15, ''),
('Z_Upgrade_3.04-3.05.php', 15, ''),
('Z_Upgrade_3.05-3.06.php', 15, ''),
('Z_Upgrade_3.07-3.08.php', 15, ''),
('Z_Upgrade_3.08-3.09.php', 15, ''),
('Z_Upgrade_3.09-3.10.php', 15, ''),
('Z_Upgrade_3.10-3.11.php', 15, ''),
('Z_Upgrade_3.11-4.00.php', 15, ''),
('Z_UploadForm.php', 15, 'Utility to upload a file to a remote server'),
('Z_UploadResult.php', 15, 'Utility to upload a file to a remote server');
-- --------------------------------------------------------
--
-- Table structure for table `securitygroups`
--
CREATE TABLE `securitygroups` (
`secroleid` int(11) NOT NULL DEFAULT '0',
`tokenid` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `securitygroups`
--
INSERT INTO `securitygroups` (`secroleid`, `tokenid`) VALUES
(1, 0),
(1, 1),
(1, 2),
(1, 5),
(2, 0),
(2, 1),
(2, 2),
(2, 11),
(3, 0),
(3, 1),
(3, 2),
(3, 3),
(3, 4),
(3, 5),
(3, 11),
(4, 0),
(4, 1),
(4, 2),
(4, 5),
(5, 0),
(5, 1),
(5, 2),
(5, 3),
(5, 11),
(6, 0),
(6, 1),
(6, 2),
(6, 3),
(6, 4),
(6, 5),
(6, 6),
(6, 7),
(6, 8),
(6, 9),
(6, 10),
(6, 11),
(7, 0),
(7, 1),
(8, 0),
(8, 1),
(8, 2),
(8, 3),
(8, 4),
(8, 5),
(8, 6),
(8, 7),
(8, 8),
(8, 9),
(8, 10),
(8, 11),
(8, 12),
(8, 13),
(8, 14),
(8, 15),
(8, 16),
(9, 0),
(9, 9);
-- --------------------------------------------------------
--
-- Table structure for table `securityroles`
--
CREATE TABLE `securityroles` (
`secroleid` int(11) NOT NULL,
`secrolename` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `securityroles`
--
INSERT INTO `securityroles` (`secroleid`, `secrolename`) VALUES
(1, 'Inquiries/Order Entry'),
(2, 'Manufac/Stock Admin'),
(3, 'Purchasing Officer'),
(4, 'AP Clerk'),
(5, 'AR Clerk'),
(6, 'Accountant'),
(7, 'Customer Log On Only'),
(8, 'System Administrator'),
(9, 'Supplier Log On Only');
-- --------------------------------------------------------
--
-- Table structure for table `securitytokens`
--
CREATE TABLE `securitytokens` (
`tokenid` int(11) NOT NULL DEFAULT '0',
`tokenname` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `securitytokens`
--
INSERT INTO `securitytokens` (`tokenid`, `tokenname`) VALUES
(0, 'Main Index Page'),
(1, 'Order Entry/Inquiries customer access only'),
(2, 'Basic Reports and Inquiries with selection options'),
(3, 'Credit notes and AR management'),
(4, 'Purchasing data/PO Entry/Reorder Levels'),
(5, 'Accounts Payable'),
(6, 'Petty Cash'),
(7, 'Bank Reconciliations'),
(8, 'General ledger reports/inquiries'),
(9, 'Supplier centre - Supplier access only'),
(10, 'General Ledger Maintenance, stock valuation & Configuration'),
(11, 'Inventory Management and Pricing'),
(12, 'Prices Security'),
(13, 'Customer services Price modifications'),
(14, 'Unknown'),
(15, 'User Management and System Administration'),
(16, 'QA'),
(18, 'Cost authority'),
(19, 'Internal stock request fully access authority');
-- --------------------------------------------------------
--
-- Table structure for table `sellthroughsupport`
--
CREATE TABLE `sellthroughsupport` (
`id` int(11) NOT NULL,
`supplierno` varchar(10) NOT NULL,
`debtorno` varchar(10) NOT NULL DEFAULT '',
`categoryid` char(6) NOT NULL DEFAULT '',
`stockid` varchar(20) NOT NULL DEFAULT '',
`narrative` varchar(20) NOT NULL DEFAULT '',
`rebatepercent` double NOT NULL DEFAULT '0',
`rebateamount` double NOT NULL DEFAULT '0',
`effectivefrom` date NOT NULL,
`effectiveto` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sellthroughsupport`
--
INSERT INTO `sellthroughsupport` (`id`, `supplierno`, `debtorno`, `categoryid`, `stockid`, `narrative`, `rebatepercent`, `rebateamount`, `effectivefrom`, `effectiveto`) VALUES
(2, 'CRUISE', '', 'DVD', '', '', 0, 2.55, '2013-01-23', '2013-03-31'),
(3, 'CRUISE', 'QUARTER', '', 'DVD-UNSG2', '', 0.1, 0, '2013-01-26', '2013-01-31'),
(4, 'GOTSTUFF', '', '', 'BREAD', '', 0.025, 0, '2013-03-01', '2013-06-01');
-- --------------------------------------------------------
--
-- Table structure for table `shipmentcharges`
--
CREATE TABLE `shipmentcharges` (
`shiptchgid` int(11) NOT NULL,
`shiptref` int(11) NOT NULL DEFAULT '0',
`transtype` smallint(6) NOT NULL DEFAULT '0',
`transno` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`value` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `shipments`
--
CREATE TABLE `shipments` (
`shiptref` int(11) NOT NULL DEFAULT '0',
`voyageref` varchar(20) NOT NULL DEFAULT '0',
`vessel` varchar(50) NOT NULL DEFAULT '',
`eta` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`accumvalue` double NOT NULL DEFAULT '0',
`supplierid` varchar(10) NOT NULL DEFAULT '',
`closed` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `shipments`
--
INSERT INTO `shipments` (`shiptref`, `voyageref`, `vessel`, `eta`, `accumvalue`, `supplierid`, `closed`) VALUES
(27, 'ass ', 'asssa ', '2012-01-05 00:00:00', 0, 'WHYNOT', 0),
(28, 'test', 'test', '2012-01-05 00:00:00', 0, 'WHYNOT', 0);
-- --------------------------------------------------------
--
-- Table structure for table `shippers`
--
CREATE TABLE `shippers` (
`shipper_id` int(11) NOT NULL,
`shippername` char(40) NOT NULL DEFAULT '',
`mincharge` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `shippers`
--
INSERT INTO `shippers` (`shipper_id`, `shippername`, `mincharge`) VALUES
(1, 'DHL', 0),
(8, 'UPS', 0),
(10, 'Not Specified', 0);
-- --------------------------------------------------------
--
-- Table structure for table `stockcategory`
--
CREATE TABLE `stockcategory` (
`categoryid` char(6) NOT NULL DEFAULT '',
`categorydescription` char(20) NOT NULL DEFAULT '',
`stocktype` char(1) NOT NULL DEFAULT 'F',
`stockact` varchar(20) NOT NULL DEFAULT '0',
`adjglact` varchar(20) NOT NULL DEFAULT '0',
`issueglact` varchar(20) NOT NULL DEFAULT '0',
`purchpricevaract` varchar(20) NOT NULL DEFAULT '80000',
`materialuseagevarac` varchar(20) NOT NULL DEFAULT '80000',
`wipact` varchar(20) NOT NULL DEFAULT '0',
`defaulttaxcatid` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockcategory`
--
INSERT INTO `stockcategory` (`categoryid`, `categorydescription`, `stocktype`, `stockact`, `adjglact`, `issueglact`, `purchpricevaract`, `materialuseagevarac`, `wipact`, `defaulttaxcatid`) VALUES
('AIRCON', 'Air Conditioning', 'F', '1460', '5700', '5700', '5200', '5100', '1440', 1),
('BAKE', 'Baking Ingredients', 'F', '1460', '5700', '5700', '5200', '5000', '1440', 1),
('DVD', 'DVDs', 'F', '1460', '5700', '5700', '5000', '5200', '1440', 1),
('FOOD', 'Food', 'F', '1460', '5700', '5700', '5200', '5000', '1440', 1),
('TAPE', 'Tape', 'F', '1460', '5700', '5700', '5800', '5800', '1440', 1),
('ZFR', 'Freight', 'D', '1460', '5600', '5600', '5600', '5600', '1440', 1),
('ZLAB', 'Labour', 'L', '5500', '5700', '5700', '5900', '5500', '1440', 1),
('ZPAYT', 'Payment Surcharge', 'F', '1010', '1', '1', '1', '1', '1010', 1);
-- --------------------------------------------------------
--
-- Table structure for table `stockcatproperties`
--
CREATE TABLE `stockcatproperties` (
`stkcatpropid` int(11) NOT NULL,
`categoryid` char(6) NOT NULL,
`label` text NOT NULL,
`controltype` tinyint(4) NOT NULL DEFAULT '0',
`defaultvalue` varchar(100) NOT NULL DEFAULT '''''',
`maximumvalue` double NOT NULL DEFAULT '999999999',
`reqatsalesorder` tinyint(4) NOT NULL DEFAULT '0',
`minimumvalue` double NOT NULL DEFAULT '-999999999',
`numericvalue` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockcatproperties`
--
INSERT INTO `stockcatproperties` (`stkcatpropid`, `categoryid`, `label`, `controltype`, `defaultvalue`, `maximumvalue`, `reqatsalesorder`, `minimumvalue`, `numericvalue`) VALUES
(1, 'AIRCON', 'kw heating', 0, '', 999999999, 0, -999999999, 0),
(2, 'AIRCON', 'kw cooling', 0, '', 999999999, 0, -999999999, 0),
(3, 'AIRCON', 'inverter', 2, '', 999999999, 0, -999999999, 0),
(4, 'DVD', 'Genre', 1, 'Action,Thriller,Comedy,Romance,Kids,Adult', 999999999, 0, -999999999, 0);
-- --------------------------------------------------------
--
-- Table structure for table `stockcheckfreeze`
--
CREATE TABLE `stockcheckfreeze` (
`stockid` varchar(20) NOT NULL DEFAULT '',
`loccode` varchar(5) NOT NULL DEFAULT '',
`qoh` double NOT NULL DEFAULT '0',
`stockcheckdate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockcheckfreeze`
--
INSERT INTO `stockcheckfreeze` (`stockid`, `loccode`, `qoh`, `stockcheckdate`) VALUES
('BIGEARS12', 'MEL', 0, '2013-12-03'),
('BirthdayCakeConstruc', 'MEL', 0, '2013-12-03'),
('BREAD', 'MEL', 0, '2013-12-03'),
('DR_TUMMY', 'MEL', 0, '2013-12-03'),
('DVD-CASE', 'MEL', 0, '2013-12-03'),
('DVD-DHWV', 'MEL', 0, '2013-12-03'),
('DVD-LTWP', 'MEL', 0, '2013-12-03'),
('DVD-TOPGUN', 'MEL', 0, '2013-12-03'),
('DVD-UNSG', 'MEL', 0, '2013-12-03'),
('DVD-UNSG2', 'MEL', 0, '2013-12-03'),
('FLOUR', 'MEL', 0, '2013-12-03'),
('FROAYLANDO', 'MEL', 0, '2013-12-03'),
('FUJI990101', 'MEL', 0, '2013-12-03'),
('FUJI990102', 'MEL', 0, '2013-12-03'),
('HIT3042-4', 'MEL', 0, '2013-12-03'),
('HIT3043-5', 'MEL', 6, '2013-12-03'),
('SALT', 'MEL', 0, '2013-12-03'),
('STROD34', 'MEL', 0, '2013-12-03'),
('TAPE1', 'MEL', 110, '2013-12-03'),
('TAPE2', 'MEL', 0, '2013-12-03'),
('Test123', 'MEL', 0, '2013-12-03'),
('TESTSERIALITEM', 'MEL', 0, '2013-12-03'),
('YEAST', 'MEL', 0, '2013-12-03');
-- --------------------------------------------------------
--
-- Table structure for table `stockcounts`
--
CREATE TABLE `stockcounts` (
`id` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL DEFAULT '',
`loccode` varchar(5) NOT NULL DEFAULT '',
`qtycounted` double NOT NULL DEFAULT '0',
`reference` varchar(20) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockcounts`
--
INSERT INTO `stockcounts` (`id`, `stockid`, `loccode`, `qtycounted`, `reference`) VALUES
(1, 'TAPE1', 'MEL', 103, 'phil 2a'),
(2, 'TAPE2', 'MEL', 16.3, 'pajjs 38891'),
(4, 'DVD-CASE', 'AN', 2, ''),
(5, 'DVD-TOPGUN', 'AN', 1, '');
-- --------------------------------------------------------
--
-- Table structure for table `stockdescriptiontranslations`
--
CREATE TABLE `stockdescriptiontranslations` (
`stockid` varchar(20) NOT NULL DEFAULT '',
`language_id` varchar(10) NOT NULL DEFAULT 'en_GB.utf8',
`descriptiontranslation` varchar(50) DEFAULT NULL COMMENT 'Item''s short description',
`longdescriptiontranslation` text COMMENT 'Item''s long description',
`needsrevision` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockdescriptiontranslations`
--
INSERT INTO `stockdescriptiontranslations` (`stockid`, `language_id`, `descriptiontranslation`, `longdescriptiontranslation`, `needsrevision`) VALUES
('DVD-DHWV', 'fr_FR.utf8', '', NULL, 0),
('DVD-LTWP', 'fr_FR.utf8', '', NULL, 0),
('DVD-TOPGUN', 'fr_FR.utf8', '', NULL, 0),
('DVD-UNSG', 'fr_FR.utf8', '', NULL, 0),
('HIT3042-4', 'fr_FR.utf8', '', NULL, 0),
('HIT3043-5', 'fr_FR.utf8', '', NULL, 0),
('PAYTSURCHARGE', 'de_DE.utf8', '', NULL, 0),
('PAYTSURCHARGE', 'fr_FR.utf8', '', NULL, 0),
('PAYTSURCHARGE', 'it_IT.utf8', '', NULL, 0),
('STROD34', 'de_DE.utf8', '', NULL, 0),
('STROD34', 'fr_FR.utf8', '', NULL, 0),
('STROD34', 'it_IT.utf8', '', NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `stockitemproperties`
--
CREATE TABLE `stockitemproperties` (
`stockid` varchar(20) NOT NULL,
`stkcatpropid` int(11) NOT NULL,
`value` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockitemproperties`
--
INSERT INTO `stockitemproperties` (`stockid`, `stkcatpropid`, `value`) VALUES
('HIT3042-4', 1, ''),
('HIT3042-4', 2, ''),
('HIT3043-5', 1, ''),
('HIT3043-5', 2, ''),
('HIT3042-4', 3, '0'),
('HIT3043-5', 3, '0'),
('DVD-CASE', 4, 'Action'),
('DVD-DHWV', 4, 'Action'),
('DVD-LTWP', 4, 'Action'),
('DVD-TOPGUN', 4, 'Action'),
('DVD-UNSG', 4, 'Action'),
('DVD_ACTION', 4, 'Action');
-- --------------------------------------------------------
--
-- Table structure for table `stockmaster`
--
CREATE TABLE `stockmaster` (
`stockid` varchar(20) NOT NULL DEFAULT '',
`categoryid` varchar(6) NOT NULL DEFAULT '',
`description` varchar(50) NOT NULL DEFAULT '',
`longdescription` text NOT NULL,
`units` varchar(20) NOT NULL DEFAULT 'each',
`mbflag` char(1) NOT NULL DEFAULT 'B',
`actualcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`lastcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`materialcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`labourcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`overheadcost` decimal(20,4) NOT NULL DEFAULT '0.0000',
`lowestlevel` smallint(6) NOT NULL DEFAULT '0',
`discontinued` tinyint(4) NOT NULL DEFAULT '0',
`controlled` tinyint(4) NOT NULL DEFAULT '0',
`eoq` double NOT NULL DEFAULT '0',
`volume` decimal(20,4) NOT NULL DEFAULT '0.0000',
`grossweight` decimal(20,4) NOT NULL DEFAULT '0.0000',
`barcode` varchar(50) NOT NULL DEFAULT '',
`discountcategory` char(2) NOT NULL DEFAULT '',
`taxcatid` tinyint(4) NOT NULL DEFAULT '1',
`serialised` tinyint(4) NOT NULL DEFAULT '0',
`appendfile` varchar(40) NOT NULL DEFAULT 'none',
`perishable` tinyint(1) NOT NULL DEFAULT '0',
`decimalplaces` tinyint(4) NOT NULL DEFAULT '0',
`pansize` double NOT NULL DEFAULT '0',
`shrinkfactor` double NOT NULL DEFAULT '0',
`nextserialno` bigint(20) NOT NULL DEFAULT '0',
`netweight` decimal(20,4) NOT NULL DEFAULT '0.0000',
`lastcostupdate` date NOT NULL DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockmaster`
--
INSERT INTO `stockmaster` (`stockid`, `categoryid`, `description`, `longdescription`, `units`, `mbflag`, `actualcost`, `lastcost`, `materialcost`, `labourcost`, `overheadcost`, `lowestlevel`, `discontinued`, `controlled`, `eoq`, `volume`, `grossweight`, `barcode`, `discountcategory`, `taxcatid`, `serialised`, `appendfile`, `perishable`, `decimalplaces`, `pansize`, `shrinkfactor`, `nextserialno`, `netweight`, `lastcostupdate`) VALUES
('BIGEARS12', 'DVD', 'Big Ears and Noddy episodes on DVD', 'Big Ears and Noddy episodes on DVD', 'each', 'M', '0.0000', '3490.0000', '1.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('BirthdayCakeConstruc', 'BAKE', '12 foot birthday cake for wrestling tournament', '12 foot birthday cake for wrestling tournament', 'each', 'M', '0.0000', '0.0000', '12.9525', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('BREAD', 'FOOD', 'Bread', 'Bread', 'each', 'M', '0.0000', '0.5625', '0.5625', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('CUTTING', 'ZLAB', 'Cutting Labor', 'Cutting Labor', 'hours', 'D', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DR_TUMMY', 'FOOD', 'Gastric exquisite diarrhea', 'Gastric exquisite diarrhea', 'each', 'M', '0.0000', '0.0000', '116.2250', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD-CASE', 'DVD', 'webERP Demo DVD Case', 'webERP Demo DVD Case', 'each', 'B', '0.0000', '0.9567', '1.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', 'DE', 1, 0, '0', 0, 0, 0, 0, 0, '0.0000', '2014-01-14'),
('DVD-DHWV', 'DVD', 'Die Hard With A Vengeance Linked', 'Regional Code: 2 (Japan, Europe, Middle East, South Africa). <br />Languages: English, Deutsch. <br />Subtitles: English, Deutsch, Spanish. <br />Audio: Dolby Surround 5.1. <br />Picture Format: 16:9 Wide-Screen. <br />Length: (approx) 122 minutes. <br />Other: Interactive Menus, Chapter Selection, Subtitles (more languages).', 'each', 'B', '0.0000', '5.5000', '2.3200', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '7.0000', '', '', 1, 0, '0', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD-LTWP', 'DVD', 'Lethal Weapon Linked', 'Regional Code: 2 (Japan, Europe, Middle East, South Africa).\r\n<br />\r\nLanguages: English, Deutsch.\r\n<br />\r\nSubtitles: English, Deutsch, Spanish.\r\n<br />\r\nAudio: Dolby Surround 5.1.\r\n<br />\r\nPicture Format: 16:9 Wide-Screen.\r\n<br />\r\nLength: (approx) 100 minutes.\r\n<br />\r\nOther: Interactive Menus, Chapter Selection, Subtitles (more languages).', 'each', 'B', '0.0000', '2.6600', '2.7000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '7.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD-TOPGUN', 'DVD', 'Top Gun DVD', 'Top Gun DVD', 'each', 'B', '0.0000', '0.0000', '6.5000', '0.0000', '0.0000', 0, 0, 1, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD-UNSG', 'DVD', 'Under Siege Linked', 'Regional Code: 2 (Japan, Europe, Middle East, South Africa). <br />Languages: English, Deutsch. <br />Subtitles: English, Deutsch, Spanish. <br />Audio: Dolby Surround 5.1. <br />Picture Format: 16:9 Wide-Screen. <br />Length: (approx) 98 minutes. <br />Other: Interactive Menus, Chapter Selection, Subtitles (more languages).', 'each', 'B', '0.0000', '5.0000', '8.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '7.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD-UNSG2', 'DVD', 'Under Siege 2 - Dark Territory', 'Regional Code: 2 (Japan, Europe, Middle East, South Africa).\r<br />\nLanguages: English, Deutsch.\r<br />\nSubtitles: English, Deutsch, Spanish.\r<br />\nAudio: Dolby Surround 5.1.\r<br />\nPicture Format: 16:9 Wide-Screen.\r<br />\nLength: (approx) 98 minutes.\r<br />\nOther: Interactive Menus, Chapter Selection, Subtitles (more languages).', 'each', 'B', '0.0000', '0.0000', '5.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '7.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('DVD_ACTION', 'DVD', 'Action Series Bundle', 'Under Seige I and Under Seige II\r\n', 'each', 'A', '0.0000', '16.2200', '22.0200', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('FLOUR', 'AIRCON', 'High Grade Flour', 'High Grade Flour', 'kgs', 'B', '0.0000', '0.0000', '3.8900', '0.0000', '0.0000', 0, 0, 1, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 1, 0, 0, 0, '0.0000', '0000-00-00'),
('FREIGHT', 'ZFR', 'Freight', 'Freight', 'each', 'D', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, '0', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('FROAYLANDO', 'FOOD', 'Fried Orange Yoke Flan D''Or', 'Fried Orange Yoke Flan D''Or', 'each', 'M', '0.0000', '0.0000', '34.2618', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('FUJI990101', 'AIRCON', 'Fujitsu 990101 Split type Indoor Unit 3.5kw', 'Fujitsu 990101 Split type Indoor Unit 3.5kw Heat Pump with mounting screws and isolating switch', 'each', 'B', '0.0000', '1015.6105', '102564.1026', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 4, 0, 0, 0, '0.0000', '0000-00-00'),
('FUJI990102', 'AIRCON', 'Fujitsu 990102 split type A/C Outdoor unit 3.5kw', 'Fujitsu 990102 split type A/C Outdoor unit 3.5kw with 5m piping & insulation', 'each', 'B', '0.0000', '0.0000', '633.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('FUJI9901ASS', 'AIRCON', 'Fujitsu 990101 Split type A/C 3.5kw complete', 'Fujitsu 990101 Split type A/C 3.5kw complete with indoor and outdoor units 5m pipe and insulation isolating switch. 5 year warranty', 'each', 'A', '0.0000', '0.0000', '138461.5385', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('HIT3042-4', 'AIRCON', 'Hitachi Aircond Rev Cycle Split Type 6.5kw Indoor', 'Hitachi Aircond Rev Cycle Split Type 6.5kw Indoor Unit - wall hung complete with brackets and screws. 220V-240V AC\r\n5 year guaranttee', 'each', 'M', '0.0000', '0.0000', '853.0000', '0.0000', '0.0000', 0, 0, 1, 5, '0.4000', '7.8000', '', '', 1, 1, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('HIT3043-5', 'AIRCON', 'Hitachi Aircond Rev Cycle Split Type 6.5kw Outdoor', 'Hitachi Aircond Rev Cycle Split Type 6.5kw Outdoor unit - including 5m piping for fitting to HIT3042-4 indoor unit\r\n5 year guaranttee', 'each', 'B', '0.0000', '0.0000', '1235.0000', '0.0000', '0.0000', 0, 0, 1, 5, '0.8500', '16.0000', '', '', 1, 1, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('LABOUR', 'ZLAB', 'Labour item - Freddie', 'Labour item - Freddie', 'each', 'D', '0.0000', '0.0000', '75.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '2014-07-26'),
('PAYTSURCHARGE', 'ZPAYT', 'Payment Surcharges', 'Payment Surcharges', 'each', 'D', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('SALT', 'BAKE', 'Salt', 'Salt', 'kgs', 'B', '0.0000', '1.2000', '2.5000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 3, 0, 0, 0, '0.0000', '0000-00-00'),
('SELLTAPE', 'TAPE', 'Selling units of tape', 'Selling units of tape', 'each', 'A', '0.0000', '0.0000', '0.0100', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('SLICE', 'FOOD', 'Slice Of Bread', 'Slice Of Bread', 'each', 'A', '0.0000', '0.0000', '0.0563', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, '0', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('STROD34', 'TAPE', 'Stainless 3/4" Rod', 'Stainless 3/4" Rod', 'each', 'B', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('TAPE1', 'TAPE', 'Log of tape', 'Log of tape', 'feet', 'B', '0.0000', '0.0000', '10.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 2, 0, 0, 0, '0.0000', '2013-02-08'),
('TAPE2', 'TAPE', 'Tape 2', 'Tape 2', 'feet', 'M', '0.0000', '0.0000', '2.5000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0100', '0.1000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('Test123', 'TAPE', 'Testing manufact tape', 'Testing manufact tape', 'each', 'M', '0.0000', '0.0000', '45.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('TESTSERIALITEM', 'TAPE', 'TEst Serial Item', 'Test Serial Item', 'each', 'B', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', 0, 0, 1, 0, '0.0000', '0.0000', '', '', 1, 0, 'none', 0, 0, 0, 0, 0, '0.0000', '0000-00-00'),
('YEAST', 'BAKE', 'Yeast', 'Yeast', 'kgs', 'B', '0.0000', '3.8500', '5.0000', '0.0000', '0.0000', 0, 0, 0, 0, '0.0000', '0.0000', '', '', 1, 0, '0', 0, 3, 0, 0, 0, '0.0000', '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `stockmoves`
--
CREATE TABLE `stockmoves` (
`stkmoveno` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL DEFAULT '',
`type` smallint(6) NOT NULL DEFAULT '0',
`transno` int(11) NOT NULL DEFAULT '0',
`loccode` varchar(5) NOT NULL DEFAULT '',
`trandate` date NOT NULL DEFAULT '0000-00-00',
`userid` varchar(20) NOT NULL,
`debtorno` varchar(10) NOT NULL DEFAULT '',
`branchcode` varchar(10) NOT NULL DEFAULT '',
`price` decimal(21,5) NOT NULL DEFAULT '0.00000',
`prd` smallint(6) NOT NULL DEFAULT '0',
`reference` varchar(100) NOT NULL DEFAULT '',
`qty` double NOT NULL DEFAULT '1',
`discountpercent` double NOT NULL DEFAULT '0',
`standardcost` double NOT NULL DEFAULT '0',
`show_on_inv_crds` tinyint(4) NOT NULL DEFAULT '1',
`newqoh` double NOT NULL DEFAULT '0',
`hidemovt` tinyint(4) NOT NULL DEFAULT '0',
`narrative` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockmoves`
--
INSERT INTO `stockmoves` (`stkmoveno`, `stockid`, `type`, `transno`, `loccode`, `trandate`, `userid`, `debtorno`, `branchcode`, `price`, `prd`, `reference`, `qty`, `discountpercent`, `standardcost`, `show_on_inv_crds`, `newqoh`, `hidemovt`, `narrative`) VALUES
(4, 'DVD_ACTION', 25, 49, 'MEL', '2013-01-06', '', '', '', '0.00000', 14, 'BINGO (Binary Green Ocean Inc) - 23', 1, 0, 16.22, 1, 1, 0, NULL),
(5, 'DVD_ACTION', 25, 1, 'MEL', '2013-01-06', '', '', '', '0.00000', 14, 'Reversal - BINGO - 23', -1, 0, 16.22, 1, 0, 0, NULL),
(7, 'DVD_ACTION', 25, 50, 'MEL', '2013-01-06', '', '', '', '52.35000', 14, 'BINGO (Binary Green Ocean Inc) - 23', 1, 0, 16.22, 1, 1, 0, NULL),
(8, 'TAPE1', 25, 51, 'MEL', '2013-02-09', '', '', '', '3.95320', 15, 'CRUISE (Cruise Company Inc) - 25', 100, 0, 10, 1, 100, 0, NULL),
(9, 'TAPE1', 25, 52, 'MEL', '2013-02-09', '', '', '', '3.95320', 15, 'CRUISE (Cruise Company Inc) - 27', 10, 0, 10, 1, 110, 0, NULL),
(12, 'CUTTING', 28, 13, 'AN', '2013-02-09', '', '', '', '0.00000', 15, '31', -2, 0, 0, 1, 0, 0, NULL),
(13, 'TAPE1', 28, 14, 'AN', '2013-02-09', '', '', '', '10.00000', 15, '31', -22.5, 0, 10, 1, -22.5, 0, NULL),
(14, 'TAPE2', 26, 8, 'AN', '2013-02-09', '', '', '', '2.50000', 15, '31', 90, 0, 2.5, 1, 90, 0, NULL),
(23, 'HIT3043-5', 17, 28, 'MEL', '2013-06-13', '', '', '', '0.00000', 19, '', 6, 0, 0, 1, 6, 0, NULL),
(24, 'TAPE1', 28, 15, 'AN', '2013-06-21', '', '', '', '10.00000', 19, '32', -2, 0, 10, 1, -24.4, 0, NULL),
(25, 'SALT', 28, 16, 'AN', '2013-06-21', '', '', '', '2.50000', 19, '32', -1.5, 0, 2.5, 1, -1.5, 0, NULL),
(26, 'TAPE2', 28, 17, 'AN', '2013-06-21', '', '', '', '2.50000', 19, '32', -3.5, 0, 2.5, 1, 86.5, 0, NULL),
(27, 'DVD-DHWV', 10, 1, 'TOR', '2013-06-26', '', '16', '16', '10.50000', 19, '1', -9, 0, 2.32, 1, -9, 0, ''),
(28, 'PAYTSURCHARGE', 10, 1, 'TOR', '2013-06-26', '', '16', '16', '2.74000', 19, '1', -1, 0, 0, 1, 0, 0, ''),
(29, 'BREAD', 10, 2, 'TOR', '2013-09-07', '', '12', '12', '2.50000', 22, '7', -2, 0, 0.5625, 1, -12, 0, ''),
(30, 'DVD-CASE', 25, 54, 'MEL', '2014-01-13', '', '', '', '0.50000', 26, 'BINGO (Binary Green Ocean Inc) - 30', 100, 0, 0.3, 1, 100, 0, NULL),
(31, 'DVD-CASE', 25, 55, 'MEL', '2014-01-13', '', '', '', '0.10000', 26, 'BINGO (Binary Green Ocean Inc) - 31', 10, 0, 0.8, 1, 110, 0, NULL),
(32, 'DVD-CASE', 25, 56, 'MEL', '2014-01-13', '', '', '', '0.31000', 26, 'BINGO (Binary Green Ocean Inc) - 32', 100, 0, 0.8091, 1, 210, 0, NULL),
(33, 'DVD-CASE', 25, 57, 'MEL', '2014-01-14', '', '', '', '2.00000', 26, 'BINGO (Binary Green Ocean Inc) - 33', 100, 0, 1, 1, 310, 0, NULL),
(34, 'LABOUR', 25, 58, 'MEL', '2014-07-26', '', '', '', '5.42080', 32, 'WHYNOT (Why not add a new supplier) - 34', 2, 0, 75, 1, 2, 0, NULL),
(35, 'DVD-CASE', 25, 59, 'MEL', '2015-12-20', 'admin', '', '', '0.85722', 49, 'CRUISE (Cruise Company Inc) - 35', 2000, 0, 1, 1, 2310, 0, NULL),
(36, 'DVD-CASE', 25, 10, 'MEL', '2015-12-20', 'admin', '', '', '0.00000', 49, 'Reversal - CRUISE - 35', -2000, 0, 1, 1, 310, 0, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `stockmovestaxes`
--
CREATE TABLE `stockmovestaxes` (
`stkmoveno` int(11) NOT NULL DEFAULT '0',
`taxauthid` tinyint(4) NOT NULL DEFAULT '0',
`taxrate` double NOT NULL DEFAULT '0',
`taxontax` tinyint(4) NOT NULL DEFAULT '0',
`taxcalculationorder` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockmovestaxes`
--
INSERT INTO `stockmovestaxes` (`stkmoveno`, `taxauthid`, `taxrate`, `taxontax`, `taxcalculationorder`) VALUES
(27, 11, 0.07, 1, 2),
(27, 12, 0.05, 0, 1),
(28, 11, 0.07, 1, 2),
(28, 12, 0.05, 0, 1),
(29, 11, 0.07, 1, 2),
(29, 12, 0.05, 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `stockrequest`
--
CREATE TABLE `stockrequest` (
`dispatchid` int(11) NOT NULL,
`loccode` varchar(5) NOT NULL DEFAULT '',
`departmentid` int(11) NOT NULL DEFAULT '0',
`despatchdate` date NOT NULL DEFAULT '0000-00-00',
`authorised` tinyint(4) NOT NULL DEFAULT '0',
`closed` tinyint(4) NOT NULL DEFAULT '0',
`narrative` text NOT NULL,
`initiator` varchar(20) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockrequest`
--
INSERT INTO `stockrequest` (`dispatchid`, `loccode`, `departmentid`, `despatchdate`, `authorised`, `closed`, `narrative`, `initiator`) VALUES
(1, 'MEL', 1, '2012-09-19', 0, 0, '', ''),
(2, 'MEL', 2, '2014-02-08', 1, 0, '', '');
-- --------------------------------------------------------
--
-- Table structure for table `stockrequestitems`
--
CREATE TABLE `stockrequestitems` (
`dispatchitemsid` int(11) NOT NULL DEFAULT '0',
`dispatchid` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`quantity` double NOT NULL DEFAULT '0',
`qtydelivered` double NOT NULL DEFAULT '0',
`decimalplaces` int(11) NOT NULL DEFAULT '0',
`uom` varchar(20) NOT NULL DEFAULT '',
`completed` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockrequestitems`
--
INSERT INTO `stockrequestitems` (`dispatchitemsid`, `dispatchid`, `stockid`, `quantity`, `qtydelivered`, `decimalplaces`, `uom`, `completed`) VALUES
(0, 1, 'FLOUR', 2, 0, 1, 'kgs', 0),
(0, 2, 'BREAD', 2, 0, 0, 'each', 1),
(1, 2, 'FUJI990101', 1, 0, 4, 'each', 1),
(2, 2, 'HIT3043-5', 1, 0, 0, 'each', 1);
-- --------------------------------------------------------
--
-- Table structure for table `stockserialitems`
--
CREATE TABLE `stockserialitems` (
`stockid` varchar(20) NOT NULL DEFAULT '',
`loccode` varchar(5) NOT NULL DEFAULT '',
`serialno` varchar(30) NOT NULL DEFAULT '',
`expirationdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`quantity` double NOT NULL DEFAULT '0',
`qualitytext` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stockserialitems`
--
INSERT INTO `stockserialitems` (`stockid`, `loccode`, `serialno`, `expirationdate`, `quantity`, `qualitytext`) VALUES
('HIT3043-5', 'MEL', '5430', '2000-00-00 00:00:00', 1, ''),
('HIT3043-5', 'MEL', '5439', '2000-00-00 00:00:00', 1, ''),
('HIT3043-5', 'MEL', '5441', '2000-00-00 00:00:00', 1, ''),
('HIT3043-5', 'MEL', '5442', '2000-00-00 00:00:00', 1, ''),
('HIT3043-5', 'MEL', '5443', '2000-00-00 00:00:00', 1, ''),
('HIT3043-5', 'MEL', '5449', '2000-00-00 00:00:00', 1, '');
-- --------------------------------------------------------
--
-- Table structure for table `stockserialmoves`
--
CREATE TABLE `stockserialmoves` (
`stkitmmoveno` int(11) NOT NULL,
`stockmoveno` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`serialno` varchar(30) NOT NULL DEFAULT '',
`moveqty` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `suppallocs`
--
CREATE TABLE `suppallocs` (
`id` int(11) NOT NULL,
`amt` double NOT NULL DEFAULT '0',
`datealloc` date NOT NULL DEFAULT '0000-00-00',
`transid_allocfrom` int(11) NOT NULL DEFAULT '0',
`transid_allocto` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `suppallocs`
--
INSERT INTO `suppallocs` (`id`, `amt`, `datealloc`, `transid_allocfrom`, `transid_allocto`) VALUES
(1, 10, '2012-12-16', 2, 1),
(2, 100, '2012-12-16', 4, 3),
(3, 100, '2012-12-16', 6, 5);
-- --------------------------------------------------------
--
-- Table structure for table `suppinvstogrn`
--
CREATE TABLE `suppinvstogrn` (
`suppinv` int(11) NOT NULL,
`grnno` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `suppliercontacts`
--
CREATE TABLE `suppliercontacts` (
`supplierid` varchar(10) NOT NULL DEFAULT '',
`contact` varchar(30) NOT NULL DEFAULT '',
`position` varchar(30) NOT NULL DEFAULT '',
`tel` varchar(30) NOT NULL DEFAULT '',
`fax` varchar(30) NOT NULL DEFAULT '',
`mobile` varchar(30) NOT NULL DEFAULT '',
`email` varchar(55) NOT NULL DEFAULT '',
`ordercontact` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `suppliercontacts`
--
INSERT INTO `suppliercontacts` (`supplierid`, `contact`, `position`, `tel`, `fax`, `mobile`, `email`, `ordercontact`) VALUES
('CRUISE', 'Barry Toad', 'Slips', '92827', '0204389', '', '', 0),
('CRUISE', 'French Froggie', 'Silly mid on', '0291991119', '1002991', 'p2038888qp', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `supplierdiscounts`
--
CREATE TABLE `supplierdiscounts` (
`id` int(11) NOT NULL,
`supplierno` varchar(10) NOT NULL,
`stockid` varchar(20) NOT NULL,
`discountnarrative` varchar(20) NOT NULL,
`discountpercent` double NOT NULL,
`discountamount` double NOT NULL,
`effectivefrom` date NOT NULL,
`effectiveto` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `supplierdiscounts`
--
INSERT INTO `supplierdiscounts` (`id`, `supplierno`, `stockid`, `discountnarrative`, `discountpercent`, `discountamount`, `effectivefrom`, `effectiveto`) VALUES
(1, 'BINGO', 'DVD-CASE', 'Marketing support', 0.05, 0, '2013-01-12', '2013-03-31'),
(5, 'BINGO', 'DVD-CASE', 'End of Season Suppor', 0, 10, '2013-01-01', '2013-03-31'),
(6, 'BINGO', 'DVD-CASE', 'Some promo', 0.0225, 0, '2013-04-01', '2013-05-24');
-- --------------------------------------------------------
--
-- Table structure for table `suppliers`
--
CREATE TABLE `suppliers` (
`supplierid` varchar(10) NOT NULL DEFAULT '',
`suppname` varchar(40) NOT NULL DEFAULT '',
`address1` varchar(40) NOT NULL DEFAULT '',
`address2` varchar(40) NOT NULL DEFAULT '',
`address3` varchar(40) NOT NULL DEFAULT '',
`address4` varchar(50) NOT NULL DEFAULT '',
`address5` varchar(20) NOT NULL DEFAULT '',
`address6` varchar(40) NOT NULL DEFAULT '',
`supptype` tinyint(4) NOT NULL DEFAULT '1',
`lat` float(10,6) NOT NULL DEFAULT '0.000000',
`lng` float(10,6) NOT NULL DEFAULT '0.000000',
`currcode` char(3) NOT NULL DEFAULT '',
`suppliersince` date NOT NULL DEFAULT '0000-00-00',
`paymentterms` char(2) NOT NULL DEFAULT '',
`lastpaid` double NOT NULL DEFAULT '0',
`lastpaiddate` datetime DEFAULT NULL,
`bankact` varchar(30) NOT NULL DEFAULT '',
`bankref` varchar(12) NOT NULL DEFAULT '',
`bankpartics` varchar(12) NOT NULL DEFAULT '',
`remittance` tinyint(4) NOT NULL DEFAULT '1',
`taxgroupid` tinyint(4) NOT NULL DEFAULT '1',
`factorcompanyid` int(11) NOT NULL DEFAULT '1',
`taxref` varchar(20) NOT NULL DEFAULT '',
`phn` varchar(50) NOT NULL DEFAULT '',
`port` varchar(200) NOT NULL DEFAULT '',
`email` varchar(55) DEFAULT NULL,
`fax` varchar(25) DEFAULT NULL,
`telephone` varchar(25) DEFAULT NULL,
`url` varchar(50) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `suppliers`
--
INSERT INTO `suppliers` (`supplierid`, `suppname`, `address1`, `address2`, `address3`, `address4`, `address5`, `address6`, `supptype`, `lat`, `lng`, `currcode`, `suppliersince`, `paymentterms`, `lastpaid`, `lastpaiddate`, `bankact`, `bankref`, `bankpartics`, `remittance`, `taxgroupid`, `factorcompanyid`, `taxref`, `phn`, `port`, `email`, `fax`, `telephone`, `url`) VALUES
('BINGO', 'Binary Green Ocean Inc', 'Box 3499', 'Gardenier', 'San Fransisco', 'California 54424', '', 'US', 1, 0.000000, 0.000000, 'USD', '2003-03-01', '30', 1000.52, '2011-11-19 00:00:00', '', '0', '', 0, 1, 0, '', '', '', '', '', '', ''),
('CAMPBELL', 'Campbell Roberts Inc', 'Box 9882', 'Ottowa Rise', '', '', '', '', 1, 0.000000, 0.000000, 'USD', '2005-06-23', '30', 0, NULL, '', '0', '', 0, 2, 0, '', '', '', NULL, NULL, NULL, ''),
('CRUISE', 'Cruise Company Inc', 'Box 2001', 'Ft Lauderdale, Florida', '', '', '', '', 1, 0.000000, 0.000000, 'GBP', '2005-06-23', '30', 100, '2012-12-16 00:00:00', '123456789012345678901234567890', '0', '', 0, 3, 0, '', '', '', NULL, NULL, NULL, ''),
('GOTSTUFF', 'We Got the Stuff Inc', 'Test line 1', 'Test line 2', 'Test line 3', 'Test line 4 - editing', '', '', 1, 0.000000, 0.000000, 'USD', '2005-10-29', '20', 0, NULL, '', 'ok then', 'tell me abou', 0, 1, 0, '', '', '', NULL, NULL, NULL, ''),
('OTHER', 'Another ', 'Supplier', '', '', '', '', '', 2, 0.000000, 0.000000, 'AUD', '2011-04-01', '20', 100, '2013-11-20 00:00:00', '', '0', '', 0, 2, 0, '', '', '', '', '', '', ''),
('REGNEW', 'Reg Newall Inc', 'P O 5432', 'Wichita', 'Wyoming', '', '', '', 1, 0.000000, 0.000000, 'USD', '2005-04-30', '30', 0, NULL, '', '0', '', 0, 1, 0, '', '', '', NULL, NULL, NULL, ''),
('WHYNOT', 'Why not add a new supplier', 'Well I will ', 'If I', 'Want ', 'To', '', '', 1, 0.000000, 0.000000, 'AUD', '2011-04-01', '20', 0, NULL, '', '0', '', 0, 1, 0, '', '', '', '', '', '12323', '');
-- --------------------------------------------------------
--
-- Table structure for table `suppliertype`
--
CREATE TABLE `suppliertype` (
`typeid` tinyint(4) NOT NULL,
`typename` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `suppliertype`
--
INSERT INTO `suppliertype` (`typeid`, `typename`) VALUES
(1, 'Default'),
(2, 'Others');
-- --------------------------------------------------------
--
-- Table structure for table `supptrans`
--
CREATE TABLE `supptrans` (
`transno` int(11) NOT NULL DEFAULT '0',
`type` smallint(6) NOT NULL DEFAULT '0',
`supplierno` varchar(10) NOT NULL DEFAULT '',
`suppreference` varchar(20) NOT NULL DEFAULT '',
`trandate` date NOT NULL DEFAULT '0000-00-00',
`duedate` date NOT NULL DEFAULT '0000-00-00',
`inputdate` datetime NOT NULL,
`settled` tinyint(4) NOT NULL DEFAULT '0',
`rate` double NOT NULL DEFAULT '1',
`ovamount` double NOT NULL DEFAULT '0',
`ovgst` double NOT NULL DEFAULT '0',
`diffonexch` double NOT NULL DEFAULT '0',
`alloc` double NOT NULL DEFAULT '0',
`transtext` text,
`hold` tinyint(4) NOT NULL DEFAULT '0',
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `supptrans`
--
INSERT INTO `supptrans` (`transno`, `type`, `supplierno`, `suppreference`, `trandate`, `duedate`, `inputdate`, `settled`, `rate`, `ovamount`, `ovgst`, `diffonexch`, `alloc`, `transtext`, `hold`, `id`) VALUES
(34, 20, 'CRUISE', '123', '2013-01-15', '2013-01-31', '2012-12-16 00:00:00', 1, 0.6185, 10, 0, 0, 10, '', 0, 1),
(6, 22, 'CRUISE', 'Cash', '2013-01-01', '0000-00-00', '2012-12-16 09:17:20', 1, 0.6185, -10, 0, 0, -10, '', 0, 2),
(35, 20, 'CRUISE', '234', '2013-01-15', '2013-01-31', '2012-12-16 00:00:00', 1, 0.6185, 100, 0, 0, 100, '', 0, 3),
(7, 22, 'CRUISE', 'Cash', '2013-01-16', '0000-00-00', '2012-12-16 09:20:11', 1, 0.6185, -100, 0, 0, -100, '', 0, 4),
(36, 20, 'CRUISE', '345', '2013-01-16', '2013-01-31', '2012-12-16 00:00:00', 1, 0.6185, 100, 0, 9.0667303671351, 100, '', 0, 5),
(8, 22, 'CRUISE', 'Cash', '2013-01-31', '0000-00-00', '2012-12-16 09:22:34', 1, 0.58565765, -100, 0, -9.0667303671351, -100, '', 0, 6),
(37, 20, 'CRUISE', 'opninvoice', '2013-02-08', '2013-03-31', '2013-02-09 00:00:00', 0, 0.6324, 95.25, 0, 0, 0, '', 0, 7),
(38, 20, 'OTHER', '145', '2013-10-05', '2013-11-22', '2013-10-05 00:00:00', 0, 1.0884, 55, 6.7925, 0, 0, '', 0, 8),
(9, 22, 'OTHER', 'Cash', '2013-11-20', '0000-00-00', '2013-11-20 19:57:09', 0, 1.0884, -100, 0, 0, 0, '', 0, 9),
(10, 22, 'OTHER', 'Cash', '2013-11-20', '0000-00-00', '2013-11-20 19:59:10', 0, 1, -100, 0, 0, 0, '', 0, 10),
(11, 22, 'OTHER', 'Cash', '2013-11-20', '0000-00-00', '2013-11-20 20:22:30', 0, 1.0884, -100, 0, 0, 0, '', 0, 11),
(39, 20, 'BINGO', 'aA112', '2013-11-30', '2013-12-31', '2013-12-01 00:00:00', 0, 1, 52.35, 5.235, 0, 0, '', 0, 12),
(40, 20, 'BINGO', '2100', '2014-01-13', '2014-02-28', '2014-01-13 00:00:00', 0, 1, 50, 5, 0, 0, '', 0, 13),
(41, 20, 'BINGO', '1223', '2014-01-13', '2014-02-28', '2014-01-13 00:00:00', 0, 1, 1, 0.1, 0, 0, '', 0, 14),
(42, 20, 'BINGO', '23001', '2014-01-13', '2014-02-28', '2014-01-13 00:00:00', 0, 1, 31, 3.1, 0, 0, '', 0, 15),
(43, 20, 'BINGO', 'tedt555', '2014-01-14', '2014-02-28', '2014-01-14 00:00:00', 0, 1, 1.5, 0.15, 0, 0, '', 0, 16),
(44, 20, 'BINGO', '2133', '2014-01-13', '2014-02-28', '2014-01-14 00:00:00', 0, 1, 1.5, 0.15, 0, 0, '', 0, 17),
(45, 20, 'BINGO', '211', '2014-01-13', '2014-02-28', '2014-01-14 00:00:00', 0, 1, 2, 0.2, 0, 0, '', 0, 18);
-- --------------------------------------------------------
--
-- Table structure for table `supptranstaxes`
--
CREATE TABLE `supptranstaxes` (
`supptransid` int(11) NOT NULL DEFAULT '0',
`taxauthid` tinyint(4) NOT NULL DEFAULT '0',
`taxamount` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `supptranstaxes`
--
INSERT INTO `supptranstaxes` (`supptransid`, `taxauthid`, `taxamount`) VALUES
(1, 13, 0),
(3, 13, 0),
(5, 13, 0),
(7, 13, 0),
(8, 11, 4.0425),
(8, 12, 2.75),
(12, 1, 5.235),
(13, 1, 5),
(14, 1, 0.1),
(15, 1, 3.1),
(16, 1, 0.15),
(17, 1, 0.15),
(18, 1, 0.2);
-- --------------------------------------------------------
--
-- Table structure for table `systypes`
--
CREATE TABLE `systypes` (
`typeid` smallint(6) NOT NULL DEFAULT '0',
`typename` char(50) NOT NULL DEFAULT '',
`typeno` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `systypes`
--
INSERT INTO `systypes` (`typeid`, `typename`, `typeno`) VALUES
(0, 'Journal - GL', 8),
(1, 'Payment - GL', 7),
(2, 'Receipt - GL', 1),
(3, 'Standing Journal', 0),
(10, 'Sales Invoice', 2),
(11, 'Credit Note', 0),
(12, 'Receipt', 4),
(15, 'Journal - Debtors', 0),
(16, 'Location Transfer', 27),
(17, 'Stock Adjustment', 28),
(18, 'Purchase Order', 35),
(19, 'Picking List', 0),
(20, 'Purchase Invoice', 45),
(21, 'Debit Note', 8),
(22, 'Creditors Payment', 11),
(23, 'Creditors Journal', 0),
(25, 'Purchase Order Delivery', 59),
(26, 'Work Order Receipt', 8),
(28, 'Work Order Issue', 17),
(29, 'Work Order Variance', 1),
(30, 'Sales Order', 10),
(31, 'Shipment Close', 28),
(32, 'Contract Close', 6),
(35, 'Cost Update', 26),
(36, 'Exchange Difference', 1),
(37, 'Tenders', 0),
(38, 'Stock Requests', 2),
(40, 'Work Order', 36),
(41, 'Asset Addition', 1),
(42, 'Asset Category Change', 1),
(43, 'Delete w/down asset', 1),
(44, 'Depreciation', 1),
(49, 'Import Fixed Assets', 1),
(50, 'Opening Balance', 0),
(500, 'Auto Debtor Number', 19),
(600, 'Auto Supplier Number', 0);
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE `tags` (
`tagref` tinyint(4) NOT NULL,
`tagdescription` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tags`
--
INSERT INTO `tags` (`tagref`, `tagdescription`) VALUES
(1, 'Sales'),
(2, 'Marketing'),
(3, 'Manufacturing'),
(4, 'Administration');
-- --------------------------------------------------------
--
-- Table structure for table `taxauthorities`
--
CREATE TABLE `taxauthorities` (
`taxid` tinyint(4) NOT NULL,
`description` varchar(20) NOT NULL DEFAULT '',
`taxglcode` varchar(20) NOT NULL DEFAULT '0',
`purchtaxglaccount` varchar(20) NOT NULL DEFAULT '0',
`bank` varchar(50) NOT NULL DEFAULT '',
`bankacctype` varchar(20) NOT NULL DEFAULT '',
`bankacc` varchar(50) NOT NULL DEFAULT '',
`bankswift` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxauthorities`
--
INSERT INTO `taxauthorities` (`taxid`, `description`, `taxglcode`, `purchtaxglaccount`, `bank`, `bankacctype`, `bankacc`, `bankswift`) VALUES
(1, 'Australian GST', '2300', '2310', '', '', '', ''),
(5, 'Sales Tax', '2300', '2310', '', '', '', ''),
(11, 'Canadian GST', '2300', '2310', '', '', '', ''),
(12, 'Ontario PST', '2300', '2310', '', '', '', ''),
(13, 'UK VAT', '2300', '2310', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `taxauthrates`
--
CREATE TABLE `taxauthrates` (
`taxauthority` tinyint(4) NOT NULL DEFAULT '1',
`dispatchtaxprovince` tinyint(4) NOT NULL DEFAULT '1',
`taxcatid` tinyint(4) NOT NULL DEFAULT '0',
`taxrate` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxauthrates`
--
INSERT INTO `taxauthrates` (`taxauthority`, `dispatchtaxprovince`, `taxcatid`, `taxrate`) VALUES
(1, 1, 1, 0.1),
(1, 1, 2, 0),
(1, 1, 5, 0),
(5, 1, 1, 0.2),
(5, 1, 2, 0.35),
(5, 1, 5, 0),
(11, 1, 1, 0.07),
(11, 1, 2, 0.12),
(11, 1, 5, 0.07),
(12, 1, 1, 0.05),
(12, 1, 2, 0.075),
(12, 1, 5, 0),
(13, 1, 1, 0),
(13, 1, 2, 0),
(13, 1, 5, 0);
-- --------------------------------------------------------
--
-- Table structure for table `taxcategories`
--
CREATE TABLE `taxcategories` (
`taxcatid` tinyint(4) NOT NULL,
`taxcatname` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxcategories`
--
INSERT INTO `taxcategories` (`taxcatid`, `taxcatname`) VALUES
(1, 'Taxable supply'),
(2, 'Luxury Items'),
(4, 'Exempt'),
(5, 'Freight');
-- --------------------------------------------------------
--
-- Table structure for table `taxgroups`
--
CREATE TABLE `taxgroups` (
`taxgroupid` tinyint(4) NOT NULL,
`taxgroupdescription` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxgroups`
--
INSERT INTO `taxgroups` (`taxgroupid`, `taxgroupdescription`) VALUES
(1, 'Default'),
(2, 'Ontario'),
(3, 'UK Inland Revenue');
-- --------------------------------------------------------
--
-- Table structure for table `taxgrouptaxes`
--
CREATE TABLE `taxgrouptaxes` (
`taxgroupid` tinyint(4) NOT NULL DEFAULT '0',
`taxauthid` tinyint(4) NOT NULL DEFAULT '0',
`calculationorder` tinyint(4) NOT NULL DEFAULT '0',
`taxontax` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxgrouptaxes`
--
INSERT INTO `taxgrouptaxes` (`taxgroupid`, `taxauthid`, `calculationorder`, `taxontax`) VALUES
(1, 1, 1, 0),
(2, 11, 2, 1),
(2, 12, 1, 0),
(3, 13, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `taxprovinces`
--
CREATE TABLE `taxprovinces` (
`taxprovinceid` tinyint(4) NOT NULL,
`taxprovincename` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taxprovinces`
--
INSERT INTO `taxprovinces` (`taxprovinceid`, `taxprovincename`) VALUES
(1, 'Default Tax province');
-- --------------------------------------------------------
--
-- Table structure for table `tenderitems`
--
CREATE TABLE `tenderitems` (
`tenderid` int(11) NOT NULL DEFAULT '0',
`stockid` varchar(20) NOT NULL DEFAULT '',
`quantity` varchar(40) NOT NULL DEFAULT '',
`units` varchar(20) NOT NULL DEFAULT 'each'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tenders`
--
CREATE TABLE `tenders` (
`tenderid` int(11) NOT NULL DEFAULT '0',
`location` varchar(5) NOT NULL DEFAULT '',
`address1` varchar(40) NOT NULL DEFAULT '',
`address2` varchar(40) NOT NULL DEFAULT '',
`address3` varchar(40) NOT NULL DEFAULT '',
`address4` varchar(40) NOT NULL DEFAULT '',
`address5` varchar(20) NOT NULL DEFAULT '',
`address6` varchar(15) NOT NULL DEFAULT '',
`telephone` varchar(25) NOT NULL DEFAULT '',
`closed` int(2) NOT NULL DEFAULT '0',
`requiredbydate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tendersuppliers`
--
CREATE TABLE `tendersuppliers` (
`tenderid` int(11) NOT NULL DEFAULT '0',
`supplierid` varchar(10) NOT NULL DEFAULT '',
`email` varchar(40) NOT NULL DEFAULT '',
`responded` int(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `unitsofmeasure`
--
CREATE TABLE `unitsofmeasure` (
`unitid` tinyint(4) NOT NULL,
`unitname` varchar(15) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `unitsofmeasure`
--
INSERT INTO `unitsofmeasure` (`unitid`, `unitname`) VALUES
(1, 'each'),
(2, 'meters'),
(3, 'kgs'),
(4, 'litres'),
(5, 'length'),
(6, 'hours'),
(7, 'feet');
-- --------------------------------------------------------
--
-- Table structure for table `woitems`
--
CREATE TABLE `woitems` (
`wo` int(11) NOT NULL,
`stockid` char(20) NOT NULL DEFAULT '',
`qtyreqd` double NOT NULL DEFAULT '1',
`qtyrecd` double NOT NULL DEFAULT '0',
`stdcost` double NOT NULL,
`nextlotsnref` varchar(20) DEFAULT '',
`comments` longblob
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `woitems`
--
INSERT INTO `woitems` (`wo`, `stockid`, `qtyreqd`, `qtyrecd`, `stdcost`, `nextlotsnref`, `comments`) VALUES
(28, 'BREAD', 2, 0, 0.5625, '', NULL),
(29, 'BREAD', 10, 0, 0.5625, '', NULL),
(30, 'TAPE2', 50, 0, 2.5, '', NULL),
(31, 'TAPE2', 100, 90, 2.5, '', NULL),
(32, 'Test123', 1, 0, 396.9, '', NULL),
(34, 'DR_TUMMY', 1, 0, 0, '', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `worequirements`
--
CREATE TABLE `worequirements` (
`wo` int(11) NOT NULL,
`parentstockid` varchar(20) NOT NULL,
`stockid` varchar(20) NOT NULL,
`qtypu` double NOT NULL DEFAULT '1',
`stdcost` double NOT NULL DEFAULT '0',
`autoissue` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `worequirements`
--
INSERT INTO `worequirements` (`wo`, `parentstockid`, `stockid`, `qtypu`, `stdcost`, `autoissue`) VALUES
(28, 'BREAD', 'SALT', 0.025, 2.5, 1),
(28, 'BREAD', 'YEAST', 0.1, 5, 0),
(29, 'BREAD', 'SALT', 0.025, 2.5, 1),
(29, 'BREAD', 'YEAST', 0.1, 5, 0),
(30, 'TAPE2', 'CUTTING', 0.5, 0, 0),
(30, 'TAPE2', 'TAPE1', 0.25, 10, 1),
(31, 'TAPE2', 'CUTTING', 0.5, 0, 0),
(31, 'TAPE2', 'TAPE1', 0.25, 10, 1),
(32, 'Test123', 'SALT', 2, 2.5, 0),
(32, 'Test123', 'TAPE1', 3, 10, 0),
(32, 'Test123', 'TAPE2', 4, 2.5, 0);
-- --------------------------------------------------------
--
-- Table structure for table `workcentres`
--
CREATE TABLE `workcentres` (
`code` char(5) NOT NULL DEFAULT '',
`location` char(5) NOT NULL DEFAULT '',
`description` char(20) NOT NULL DEFAULT '',
`capacity` double NOT NULL DEFAULT '1',
`overheadperhour` decimal(10,0) NOT NULL DEFAULT '0',
`overheadrecoveryact` varchar(20) NOT NULL DEFAULT '0',
`setuphrs` decimal(10,0) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `workcentres`
--
INSERT INTO `workcentres` (`code`, `location`, `description`, `capacity`, `overheadperhour`, `overheadrecoveryact`, `setuphrs`) VALUES
('ASS', 'TOR', 'Assembly', 1, '50', '4600', '0'),
('MEL', 'MEL', 'Default for MEL', 1, '0', '1', '0');
-- --------------------------------------------------------
--
-- Table structure for table `workorders`
--
CREATE TABLE `workorders` (
`wo` int(11) NOT NULL,
`loccode` char(5) NOT NULL DEFAULT '',
`requiredby` date NOT NULL DEFAULT '0000-00-00',
`startdate` date NOT NULL DEFAULT '0000-00-00',
`costissued` double NOT NULL DEFAULT '0',
`closed` tinyint(4) NOT NULL DEFAULT '0',
`closecomments` longblob,
`reference` varchar(40) NOT NULL DEFAULT '',
`remark` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `workorders`
--
INSERT INTO `workorders` (`wo`, `loccode`, `requiredby`, `startdate`, `costissued`, `closed`, `closecomments`, `reference`, `remark`) VALUES
(28, 'MEL', '2012-12-16', '2012-12-16', 0, 0, NULL, '', NULL),
(29, 'MEL', '2013-02-06', '2013-02-06', 0, 0, NULL, '', NULL),
(30, 'AN', '2013-02-27', '2013-02-08', 0, 0, NULL, '', NULL),
(31, 'AN', '2013-02-09', '2013-02-09', 225, 0, NULL, '', NULL),
(32, 'TOR', '2013-07-21', '2013-06-21', 32.5, 0, NULL, '', NULL),
(33, 'MEL', '2014-08-02', '2014-08-02', 0, 0, NULL, '', NULL),
(34, 'MEL', '2014-08-02', '2014-08-02', 0, 0, NULL, '', NULL),
(35, 'MEL', '2014-08-30', '2014-08-30', 0, 0, NULL, '', NULL),
(36, 'MEL', '2014-08-30', '2014-08-30', 0, 0, NULL, '', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `woserialnos`
--
CREATE TABLE `woserialnos` (
`wo` int(11) NOT NULL,
`stockid` varchar(20) NOT NULL,
`serialno` varchar(30) NOT NULL,
`quantity` double NOT NULL DEFAULT '1',
`qualitytext` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `www_users`
--
CREATE TABLE `www_users` (
`userid` varchar(20) NOT NULL DEFAULT '',
`password` text NOT NULL,
`realname` varchar(35) NOT NULL DEFAULT '',
`customerid` varchar(10) NOT NULL DEFAULT '',
`supplierid` varchar(10) NOT NULL DEFAULT '',
`salesman` char(3) NOT NULL,
`phone` varchar(30) NOT NULL DEFAULT '',
`email` varchar(55) DEFAULT NULL,
`defaultlocation` varchar(5) NOT NULL DEFAULT '',
`fullaccess` int(11) NOT NULL DEFAULT '1',
`cancreatetender` tinyint(1) NOT NULL DEFAULT '0',
`lastvisitdate` datetime DEFAULT NULL,
`branchcode` varchar(10) NOT NULL DEFAULT '',
`pagesize` varchar(20) NOT NULL DEFAULT 'A4',
`modulesallowed` varchar(25) NOT NULL,
`showdashboard` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Display dashboard after login',
`blocked` tinyint(4) NOT NULL DEFAULT '0',
`displayrecordsmax` int(11) NOT NULL DEFAULT '0',
`theme` varchar(30) NOT NULL DEFAULT 'fresh',
`language` varchar(10) NOT NULL DEFAULT 'en_GB.utf8',
`pdflanguage` tinyint(1) NOT NULL DEFAULT '0',
`department` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `www_users`
--
INSERT INTO `www_users` (`userid`, `password`, `realname`, `customerid`, `supplierid`, `salesman`, `phone`, `email`, `defaultlocation`, `fullaccess`, `cancreatetender`, `lastvisitdate`, `branchcode`, `pagesize`, `modulesallowed`, `showdashboard`, `blocked`, `displayrecordsmax`, `theme`, `language`, `pdflanguage`, `department`) VALUES
('admin', '$2y$10$vvuUPBxr8eB.jNqsvryHQuyvlCkU2UFjiNobIjS88TW29ZISilDk.', 'Demonstration user', '', '', '', '', 'istore@iiita.ac.in', 'MEL', 8, 1, '2016-11-27 15:11:18', '', 'A4', '1,1,1,1,1,1,1,1,1,1,1,', 0, 0, 50, 'xenos', 'en_GB.utf8', 0, 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accountgroups`
--
ALTER TABLE `accountgroups`
ADD PRIMARY KEY (`groupname`),
ADD KEY `SequenceInTB` (`sequenceintb`),
ADD KEY `sectioninaccounts` (`sectioninaccounts`),
ADD KEY `parentgroupname` (`parentgroupname`);
--
-- Indexes for table `accountsection`
--
ALTER TABLE `accountsection`
ADD PRIMARY KEY (`sectionid`);
--
-- Indexes for table `areas`
--
ALTER TABLE `areas`
ADD PRIMARY KEY (`areacode`);
--
-- Indexes for table `assetmanager`
--
ALTER TABLE `assetmanager`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `audittrail`
--
ALTER TABLE `audittrail`
ADD KEY `UserID` (`userid`),
ADD KEY `transactiondate` (`transactiondate`),
ADD KEY `transactiondate_2` (`transactiondate`),
ADD KEY `transactiondate_3` (`transactiondate`);
--
-- Indexes for table `bankaccounts`
--
ALTER TABLE `bankaccounts`
ADD PRIMARY KEY (`accountcode`),
ADD KEY `currcode` (`currcode`),
ADD KEY `BankAccountName` (`bankaccountname`),
ADD KEY `BankAccountNumber` (`bankaccountnumber`);
--
-- Indexes for table `banktrans`
--
ALTER TABLE `banktrans`
ADD PRIMARY KEY (`banktransid`),
ADD KEY `BankAct` (`bankact`,`ref`),
ADD KEY `TransDate` (`transdate`),
ADD KEY `TransType` (`banktranstype`),
ADD KEY `Type` (`type`,`transno`),
ADD KEY `CurrCode` (`currcode`),
ADD KEY `ref` (`ref`);
--
-- Indexes for table `bom`
--
ALTER TABLE `bom`
ADD PRIMARY KEY (`parent`,`component`,`workcentreadded`,`loccode`),
ADD KEY `Component` (`component`),
ADD KEY `EffectiveAfter` (`effectiveafter`),
ADD KEY `EffectiveTo` (`effectiveto`),
ADD KEY `LocCode` (`loccode`),
ADD KEY `Parent` (`parent`,`effectiveafter`,`effectiveto`,`loccode`),
ADD KEY `Parent_2` (`parent`),
ADD KEY `WorkCentreAdded` (`workcentreadded`);
--
-- Indexes for table `chartdetails`
--
ALTER TABLE `chartdetails`
ADD PRIMARY KEY (`accountcode`,`period`),
ADD KEY `Period` (`period`);
--
-- Indexes for table `chartmaster`
--
ALTER TABLE `chartmaster`
ADD PRIMARY KEY (`accountcode`),
ADD KEY `AccountName` (`accountname`),
ADD KEY `Group_` (`group_`);
--
-- Indexes for table `cogsglpostings`
--
ALTER TABLE `cogsglpostings`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `Area_StkCat` (`area`,`stkcat`,`salestype`),
ADD KEY `Area` (`area`),
ADD KEY `StkCat` (`stkcat`),
ADD KEY `GLCode` (`glcode`),
ADD KEY `SalesType` (`salestype`);
--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
ADD PRIMARY KEY (`coycode`);
--
-- Indexes for table `config`
--
ALTER TABLE `config`
ADD PRIMARY KEY (`confname`);
--
-- Indexes for table `contractbom`
--
ALTER TABLE `contractbom`
ADD PRIMARY KEY (`contractref`,`stockid`,`workcentreadded`),
ADD KEY `Stockid` (`stockid`),
ADD KEY `ContractRef` (`contractref`),
ADD KEY `WorkCentreAdded` (`workcentreadded`);
--
-- Indexes for table `contractcharges`
--
ALTER TABLE `contractcharges`
ADD PRIMARY KEY (`id`),
ADD KEY `contractref` (`contractref`,`transtype`,`transno`),
ADD KEY `contractcharges_ibfk_2` (`transtype`);
--
-- Indexes for table `contractreqts`
--
ALTER TABLE `contractreqts`
ADD PRIMARY KEY (`contractreqid`),
ADD KEY `ContractRef` (`contractref`);
--
-- Indexes for table `contracts`
--
ALTER TABLE `contracts`
ADD PRIMARY KEY (`contractref`),
ADD KEY `OrderNo` (`orderno`),
ADD KEY `CategoryID` (`categoryid`),
ADD KEY `Status` (`status`),
ADD KEY `WO` (`wo`),
ADD KEY `loccode` (`loccode`),
ADD KEY `DebtorNo` (`debtorno`,`branchcode`);
--
-- Indexes for table `currencies`
--
ALTER TABLE `currencies`
ADD PRIMARY KEY (`currabrev`),
ADD KEY `Country` (`country`);
--
-- Indexes for table `custallocns`
--
ALTER TABLE `custallocns`
ADD PRIMARY KEY (`id`),
ADD KEY `DateAlloc` (`datealloc`),
ADD KEY `TransID_AllocFrom` (`transid_allocfrom`),
ADD KEY `TransID_AllocTo` (`transid_allocto`);
--
-- Indexes for table `custbranch`
--
ALTER TABLE `custbranch`
ADD PRIMARY KEY (`branchcode`,`debtorno`),
ADD KEY `BrName` (`brname`),
ADD KEY `DebtorNo` (`debtorno`),
ADD KEY `Salesman` (`salesman`),
ADD KEY `Area` (`area`),
ADD KEY `DefaultLocation` (`defaultlocation`),
ADD KEY `DefaultShipVia` (`defaultshipvia`),
ADD KEY `taxgroupid` (`taxgroupid`);
--
-- Indexes for table `custcontacts`
--
ALTER TABLE `custcontacts`
ADD PRIMARY KEY (`contid`);
--
-- Indexes for table `custitem`
--
ALTER TABLE `custitem`
ADD PRIMARY KEY (`debtorno`,`stockid`),
ADD KEY `StockID` (`stockid`),
ADD KEY `Debtorno` (`debtorno`);
--
-- Indexes for table `custnotes`
--
ALTER TABLE `custnotes`
ADD PRIMARY KEY (`noteid`);
--
-- Indexes for table `debtorsmaster`
--
ALTER TABLE `debtorsmaster`
ADD PRIMARY KEY (`debtorno`),
ADD KEY `Currency` (`currcode`),
ADD KEY `HoldReason` (`holdreason`),
ADD KEY `Name` (`name`),
ADD KEY `PaymentTerms` (`paymentterms`),
ADD KEY `SalesType` (`salestype`),
ADD KEY `EDIInvoices` (`ediinvoices`),
ADD KEY `EDIOrders` (`ediorders`),
ADD KEY `debtorsmaster_ibfk_5` (`typeid`);
--
-- Indexes for table `debtortrans`
--
ALTER TABLE `debtortrans`
ADD PRIMARY KEY (`id`),
ADD KEY `DebtorNo` (`debtorno`,`branchcode`),
ADD KEY `Order_` (`order_`),
ADD KEY `Prd` (`prd`),
ADD KEY `Tpe` (`tpe`),
ADD KEY `Type` (`type`),
ADD KEY `Settled` (`settled`),
ADD KEY `TranDate` (`trandate`),
ADD KEY `TransNo` (`transno`),
ADD KEY `Type_2` (`type`,`transno`),
ADD KEY `EDISent` (`edisent`),
ADD KEY `salesperson` (`salesperson`);
--
-- Indexes for table `debtortranstaxes`
--
ALTER TABLE `debtortranstaxes`
ADD PRIMARY KEY (`debtortransid`,`taxauthid`),
ADD KEY `taxauthid` (`taxauthid`);
--
-- Indexes for table `debtortype`
--
ALTER TABLE `debtortype`
ADD PRIMARY KEY (`typeid`);
--
-- Indexes for table `debtortypenotes`
--
ALTER TABLE `debtortypenotes`
ADD PRIMARY KEY (`noteid`);
--
-- Indexes for table `deliverynotes`
--
ALTER TABLE `deliverynotes`
ADD PRIMARY KEY (`deliverynotenumber`,`deliverynotelineno`),
ADD KEY `deliverynotes_ibfk_2` (`salesorderno`,`salesorderlineno`);
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`departmentid`);
--
-- Indexes for table `discountmatrix`
--
ALTER TABLE `discountmatrix`
ADD PRIMARY KEY (`salestype`,`discountcategory`,`quantitybreak`),
ADD KEY `QuantityBreak` (`quantitybreak`),
ADD KEY `DiscountCategory` (`discountcategory`),
ADD KEY `SalesType` (`salestype`);
--
-- Indexes for table `ediitemmapping`
--
ALTER TABLE `ediitemmapping`
ADD PRIMARY KEY (`supporcust`,`partnercode`,`stockid`),
ADD KEY `PartnerCode` (`partnercode`),
ADD KEY `StockID` (`stockid`),
ADD KEY `PartnerStockID` (`partnerstockid`),
ADD KEY `SuppOrCust` (`supporcust`);
--
-- Indexes for table `edimessageformat`
--
ALTER TABLE `edimessageformat`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `PartnerCode` (`partnercode`,`messagetype`,`sequenceno`),
ADD KEY `Section` (`section`);
--
-- Indexes for table `edi_orders_segs`
--
ALTER TABLE `edi_orders_segs`
ADD PRIMARY KEY (`id`),
ADD KEY `SegTag` (`segtag`),
ADD KEY `SegNo` (`seggroup`);
--
-- Indexes for table `edi_orders_seg_groups`
--
ALTER TABLE `edi_orders_seg_groups`
ADD PRIMARY KEY (`seggroupno`);
--
-- Indexes for table `emailsettings`
--
ALTER TABLE `emailsettings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `factorcompanies`
--
ALTER TABLE `factorcompanies`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `factor_name` (`coyname`);
--
-- Indexes for table `fixedassetcategories`
--
ALTER TABLE `fixedassetcategories`
ADD PRIMARY KEY (`categoryid`);
--
-- Indexes for table `fixedassetlocations`
--
ALTER TABLE `fixedassetlocations`
ADD PRIMARY KEY (`locationid`);
--
-- Indexes for table `fixedassets`
--
ALTER TABLE `fixedassets`
ADD PRIMARY KEY (`assetid`);
--
-- Indexes for table `fixedassettasks`
--
ALTER TABLE `fixedassettasks`
ADD PRIMARY KEY (`taskid`),
ADD KEY `assetid` (`assetid`),
ADD KEY `userresponsible` (`userresponsible`);
--
-- Indexes for table `fixedassettrans`
--
ALTER TABLE `fixedassettrans`
ADD PRIMARY KEY (`id`),
ADD KEY `assetid` (`assetid`,`transtype`,`transno`),
ADD KEY `inputdate` (`inputdate`),
ADD KEY `transdate` (`transdate`);
--
-- Indexes for table `freightcosts`
--
ALTER TABLE `freightcosts`
ADD PRIMARY KEY (`shipcostfromid`),
ADD KEY `Destination` (`destination`),
ADD KEY `LocationFrom` (`locationfrom`),
ADD KEY `ShipperID` (`shipperid`),
ADD KEY `Destination_2` (`destination`,`locationfrom`,`shipperid`);
--
-- Indexes for table `geocode_param`
--
ALTER TABLE `geocode_param`
ADD PRIMARY KEY (`geocodeid`);
--
-- Indexes for table `glaccountusers`
--
ALTER TABLE `glaccountusers`
ADD UNIQUE KEY `useraccount` (`userid`,`accountcode`),
ADD UNIQUE KEY `accountuser` (`accountcode`,`userid`);
--
-- Indexes for table `gltrans`
--
ALTER TABLE `gltrans`
ADD PRIMARY KEY (`counterindex`),
ADD KEY `Account` (`account`),
ADD KEY `ChequeNo` (`chequeno`),
ADD KEY `PeriodNo` (`periodno`),
ADD KEY `Posted` (`posted`),
ADD KEY `TranDate` (`trandate`),
ADD KEY `TypeNo` (`typeno`),
ADD KEY `Type_and_Number` (`type`,`typeno`),
ADD KEY `JobRef` (`jobref`),
ADD KEY `tag` (`tag`);
--
-- Indexes for table `grns`
--
ALTER TABLE `grns`
ADD PRIMARY KEY (`grnno`),
ADD KEY `DeliveryDate` (`deliverydate`),
ADD KEY `ItemCode` (`itemcode`),
ADD KEY `PODetailItem` (`podetailitem`),
ADD KEY `SupplierID` (`supplierid`);
--
-- Indexes for table `holdreasons`
--
ALTER TABLE `holdreasons`
ADD PRIMARY KEY (`reasoncode`),
ADD KEY `ReasonDescription` (`reasondescription`);
--
-- Indexes for table `internalstockcatrole`
--
ALTER TABLE `internalstockcatrole`
ADD PRIMARY KEY (`categoryid`,`secroleid`),
ADD KEY `internalstockcatrole_ibfk_1` (`categoryid`),
ADD KEY `internalstockcatrole_ibfk_2` (`secroleid`);
--
-- Indexes for table `labelfields`
--
ALTER TABLE `labelfields`
ADD PRIMARY KEY (`labelfieldid`),
ADD KEY `labelid` (`labelid`),
ADD KEY `vpos` (`vpos`);
--
-- Indexes for table `labels`
--
ALTER TABLE `labels`
ADD PRIMARY KEY (`labelid`);
--
-- Indexes for table `locations`
--
ALTER TABLE `locations`
ADD PRIMARY KEY (`loccode`),
ADD UNIQUE KEY `locationname` (`locationname`),
ADD KEY `taxprovinceid` (`taxprovinceid`);
--
-- Indexes for table `locationusers`
--
ALTER TABLE `locationusers`
ADD PRIMARY KEY (`loccode`,`userid`),
ADD KEY `UserId` (`userid`);
--
-- Indexes for table `locstock`
--
ALTER TABLE `locstock`
ADD PRIMARY KEY (`loccode`,`stockid`),
ADD KEY `StockID` (`stockid`),
ADD KEY `bin` (`bin`);
--
-- Indexes for table `loctransfercancellations`
--
ALTER TABLE `loctransfercancellations`
ADD KEY `Index1` (`reference`,`stockid`),
ADD KEY `Index2` (`canceldate`,`reference`,`stockid`),
ADD KEY `refstockid` (`reference`,`stockid`),
ADD KEY `cancelrefstockid` (`canceldate`,`reference`,`stockid`);
--
-- Indexes for table `loctransfers`
--
ALTER TABLE `loctransfers`
ADD KEY `Reference` (`reference`,`stockid`),
ADD KEY `ShipLoc` (`shiploc`),
ADD KEY `RecLoc` (`recloc`),
ADD KEY `StockID` (`stockid`);
--
-- Indexes for table `mailgroupdetails`
--
ALTER TABLE `mailgroupdetails`
ADD KEY `userid` (`userid`),
ADD KEY `groupname` (`groupname`);
--
-- Indexes for table `mailgroups`
--
ALTER TABLE `mailgroups`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `groupname` (`groupname`);
--
-- Indexes for table `manufacturers`
--
ALTER TABLE `manufacturers`
ADD PRIMARY KEY (`manufacturers_id`),
ADD KEY `manufacturers_name` (`manufacturers_name`);
--
-- Indexes for table `mrpcalendar`
--
ALTER TABLE `mrpcalendar`
ADD PRIMARY KEY (`calendardate`),
ADD KEY `daynumber` (`daynumber`);
--
-- Indexes for table `mrpdemands`
--
ALTER TABLE `mrpdemands`
ADD PRIMARY KEY (`demandid`),
ADD KEY `StockID` (`stockid`),
ADD KEY `mrpdemands_ibfk_1` (`mrpdemandtype`);
--
-- Indexes for table `mrpdemandtypes`
--
ALTER TABLE `mrpdemandtypes`
ADD PRIMARY KEY (`mrpdemandtype`);
--
-- Indexes for table `mrpplannedorders`
--
ALTER TABLE `mrpplannedorders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `offers`
--
ALTER TABLE `offers`
ADD PRIMARY KEY (`offerid`),
ADD KEY `offers_ibfk_1` (`supplierid`),
ADD KEY `offers_ibfk_2` (`stockid`);
--
-- Indexes for table `orderdeliverydifferenceslog`
--
ALTER TABLE `orderdeliverydifferenceslog`
ADD KEY `StockID` (`stockid`),
ADD KEY `DebtorNo` (`debtorno`,`branch`),
ADD KEY `Can_or_BO` (`can_or_bo`),
ADD KEY `OrderNo` (`orderno`);
--
-- Indexes for table `paymentmethods`
--
ALTER TABLE `paymentmethods`
ADD PRIMARY KEY (`paymentid`);
--
-- Indexes for table `paymentterms`
--
ALTER TABLE `paymentterms`
ADD PRIMARY KEY (`termsindicator`),
ADD KEY `DaysBeforeDue` (`daysbeforedue`),
ADD KEY `DayInFollowingMonth` (`dayinfollowingmonth`);
--
-- Indexes for table `pcashdetails`
--
ALTER TABLE `pcashdetails`
ADD PRIMARY KEY (`counterindex`);
--
-- Indexes for table `pcexpenses`
--
ALTER TABLE `pcexpenses`
ADD PRIMARY KEY (`codeexpense`),
ADD KEY `glaccount` (`glaccount`);
--
-- Indexes for table `pctabexpenses`
--
ALTER TABLE `pctabexpenses`
ADD KEY `typetabcode` (`typetabcode`),
ADD KEY `codeexpense` (`codeexpense`);
--
-- Indexes for table `pctabs`
--
ALTER TABLE `pctabs`
ADD PRIMARY KEY (`tabcode`),
ADD KEY `usercode` (`usercode`),
ADD KEY `typetabcode` (`typetabcode`),
ADD KEY `currency` (`currency`),
ADD KEY `authorizer` (`authorizer`),
ADD KEY `glaccountassignment` (`glaccountassignment`);
--
-- Indexes for table `pctypetabs`
--
ALTER TABLE `pctypetabs`
ADD PRIMARY KEY (`typetabcode`);
--
-- Indexes for table `periods`
--
ALTER TABLE `periods`
ADD PRIMARY KEY (`periodno`),
ADD KEY `LastDate_in_Period` (`lastdate_in_period`);
--
-- Indexes for table `pickinglistdetails`
--
ALTER TABLE `pickinglistdetails`
ADD PRIMARY KEY (`pickinglistno`,`pickinglistlineno`);
--
-- Indexes for table `pickinglists`
--
ALTER TABLE `pickinglists`
ADD PRIMARY KEY (`pickinglistno`),
ADD KEY `pickinglists_ibfk_1` (`orderno`);
--
-- Indexes for table `pricematrix`
--
ALTER TABLE `pricematrix`
ADD PRIMARY KEY (`salestype`,`stockid`,`currabrev`,`quantitybreak`,`startdate`,`enddate`),
ADD KEY `SalesType` (`salestype`),
ADD KEY `currabrev` (`currabrev`),
ADD KEY `stockid` (`stockid`);
--
-- Indexes for table `prices`
--
ALTER TABLE `prices`
ADD PRIMARY KEY (`stockid`,`typeabbrev`,`currabrev`,`debtorno`,`branchcode`,`startdate`,`enddate`),
ADD KEY `CurrAbrev` (`currabrev`),
ADD KEY `DebtorNo` (`debtorno`),
ADD KEY `StockID` (`stockid`),
ADD KEY `TypeAbbrev` (`typeabbrev`);
--
-- Indexes for table `prodspecs`
--
ALTER TABLE `prodspecs`
ADD PRIMARY KEY (`keyval`,`testid`),
ADD KEY `testid` (`testid`);
--
-- Indexes for table `purchdata`
--
ALTER TABLE `purchdata`
ADD PRIMARY KEY (`supplierno`,`stockid`,`effectivefrom`),
ADD KEY `StockID` (`stockid`),
ADD KEY `SupplierNo` (`supplierno`),
ADD KEY `Preferred` (`preferred`);
--
-- Indexes for table `purchorderauth`
--
ALTER TABLE `purchorderauth`
ADD PRIMARY KEY (`userid`,`currabrev`);
--
-- Indexes for table `purchorderdetails`
--
ALTER TABLE `purchorderdetails`
ADD PRIMARY KEY (`podetailitem`),
ADD KEY `DeliveryDate` (`deliverydate`),
ADD KEY `GLCode` (`glcode`),
ADD KEY `ItemCode` (`itemcode`),
ADD KEY `JobRef` (`jobref`),
ADD KEY `OrderNo` (`orderno`),
ADD KEY `ShiptRef` (`shiptref`),
ADD KEY `Completed` (`completed`);
--
-- Indexes for table `purchorders`
--
ALTER TABLE `purchorders`
ADD PRIMARY KEY (`orderno`),
ADD KEY `OrdDate` (`orddate`),
ADD KEY `SupplierNo` (`supplierno`),
ADD KEY `IntoStockLocation` (`intostocklocation`),
ADD KEY `AllowPrintPO` (`allowprint`);
--
-- Indexes for table `qasamples`
--
ALTER TABLE `qasamples`
ADD PRIMARY KEY (`sampleid`),
ADD KEY `prodspeckey` (`prodspeckey`,`lotkey`);
--
-- Indexes for table `qatests`
--
ALTER TABLE `qatests`
ADD PRIMARY KEY (`testid`),
ADD KEY `name` (`name`),
ADD KEY `groupname` (`groupby`,`name`);
--
-- Indexes for table `recurringsalesorders`
--
ALTER TABLE `recurringsalesorders`
ADD PRIMARY KEY (`recurrorderno`),
ADD KEY `debtorno` (`debtorno`),
ADD KEY `orddate` (`orddate`),
ADD KEY `ordertype` (`ordertype`),
ADD KEY `locationindex` (`fromstkloc`),
ADD KEY `branchcode` (`branchcode`,`debtorno`);
--
-- Indexes for table `recurrsalesorderdetails`
--
ALTER TABLE `recurrsalesorderdetails`
ADD KEY `orderno` (`recurrorderno`),
ADD KEY `stkcode` (`stkcode`);
--
-- Indexes for table `relateditems`
--
ALTER TABLE `relateditems`
ADD PRIMARY KEY (`stockid`,`related`),
ADD UNIQUE KEY `Related` (`related`,`stockid`);
--
-- Indexes for table `reportcolumns`
--
ALTER TABLE `reportcolumns`
ADD PRIMARY KEY (`reportid`,`colno`);
--
-- Indexes for table `reportfields`
--
ALTER TABLE `reportfields`
ADD PRIMARY KEY (`id`),
ADD KEY `reportid` (`reportid`);
--
-- Indexes for table `reportheaders`
--
ALTER TABLE `reportheaders`
ADD PRIMARY KEY (`reportid`),
ADD KEY `ReportHeading` (`reportheading`);
--
-- Indexes for table `reports`
--
ALTER TABLE `reports`
ADD PRIMARY KEY (`id`),
ADD KEY `name` (`reportname`,`groupname`);
--
-- Indexes for table `salesanalysis`
--
ALTER TABLE `salesanalysis`
ADD PRIMARY KEY (`id`),
ADD KEY `CustBranch` (`custbranch`),
ADD KEY `Cust` (`cust`),
ADD KEY `PeriodNo` (`periodno`),
ADD KEY `StkCategory` (`stkcategory`),
ADD KEY `StockID` (`stockid`),
ADD KEY `TypeAbbrev` (`typeabbrev`),
ADD KEY `Area` (`area`),
ADD KEY `BudgetOrActual` (`budgetoractual`),
ADD KEY `Salesperson` (`salesperson`);
--
-- Indexes for table `salescat`
--
ALTER TABLE `salescat`
ADD PRIMARY KEY (`salescatid`);
--
-- Indexes for table `salescatprod`
--
ALTER TABLE `salescatprod`
ADD PRIMARY KEY (`salescatid`,`stockid`),
ADD KEY `salescatid` (`salescatid`),
ADD KEY `stockid` (`stockid`),
ADD KEY `manufacturer_id` (`manufacturers_id`);
--
-- Indexes for table `salescattranslations`
--
ALTER TABLE `salescattranslations`
ADD PRIMARY KEY (`salescatid`,`language_id`);
--
-- Indexes for table `salesglpostings`
--
ALTER TABLE `salesglpostings`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `Area_StkCat` (`area`,`stkcat`,`salestype`),
ADD KEY `Area` (`area`),
ADD KEY `StkCat` (`stkcat`),
ADD KEY `SalesType` (`salestype`);
--
-- Indexes for table `salesman`
--
ALTER TABLE `salesman`
ADD PRIMARY KEY (`salesmancode`);
--
-- Indexes for table `salesorderdetails`
--
ALTER TABLE `salesorderdetails`
ADD PRIMARY KEY (`orderlineno`,`orderno`),
ADD KEY `OrderNo` (`orderno`),
ADD KEY `StkCode` (`stkcode`),
ADD KEY `Completed` (`completed`);
--
-- Indexes for table `salesorders`
--
ALTER TABLE `salesorders`
ADD PRIMARY KEY (`orderno`),
ADD KEY `DebtorNo` (`debtorno`),
ADD KEY `OrdDate` (`orddate`),
ADD KEY `OrderType` (`ordertype`),
ADD KEY `LocationIndex` (`fromstkloc`),
ADD KEY `BranchCode` (`branchcode`,`debtorno`),
ADD KEY `ShipVia` (`shipvia`),
ADD KEY `quotation` (`quotation`),
ADD KEY `poplaced` (`poplaced`),
ADD KEY `salesperson` (`salesperson`);
--
-- Indexes for table `salestypes`
--
ALTER TABLE `salestypes`
ADD PRIMARY KEY (`typeabbrev`),
ADD KEY `Sales_Type` (`sales_type`);
--
-- Indexes for table `sampleresults`
--
ALTER TABLE `sampleresults`
ADD PRIMARY KEY (`resultid`),
ADD KEY `sampleid` (`sampleid`),
ADD KEY `testid` (`testid`);
--
-- Indexes for table `scripts`
--
ALTER TABLE `scripts`
ADD PRIMARY KEY (`script`);
--
-- Indexes for table `securitygroups`
--
ALTER TABLE `securitygroups`
ADD PRIMARY KEY (`secroleid`,`tokenid`),
ADD KEY `secroleid` (`secroleid`),
ADD KEY `tokenid` (`tokenid`);
--
-- Indexes for table `securityroles`
--
ALTER TABLE `securityroles`
ADD PRIMARY KEY (`secroleid`);
--
-- Indexes for table `securitytokens`
--
ALTER TABLE `securitytokens`
ADD PRIMARY KEY (`tokenid`);
--
-- Indexes for table `sellthroughsupport`
--
ALTER TABLE `sellthroughsupport`
ADD PRIMARY KEY (`id`),
ADD KEY `supplierno` (`supplierno`),
ADD KEY `debtorno` (`debtorno`),
ADD KEY `effectivefrom` (`effectivefrom`),
ADD KEY `effectiveto` (`effectiveto`),
ADD KEY `stockid` (`stockid`),
ADD KEY `categoryid` (`categoryid`);
--
-- Indexes for table `shipmentcharges`
--
ALTER TABLE `shipmentcharges`
ADD PRIMARY KEY (`shiptchgid`),
ADD KEY `TransType` (`transtype`,`transno`),
ADD KEY `ShiptRef` (`shiptref`),
ADD KEY `StockID` (`stockid`),
ADD KEY `TransType_2` (`transtype`);
--
-- Indexes for table `shipments`
--
ALTER TABLE `shipments`
ADD PRIMARY KEY (`shiptref`),
ADD KEY `ETA` (`eta`),
ADD KEY `SupplierID` (`supplierid`),
ADD KEY `ShipperRef` (`voyageref`),
ADD KEY `Vessel` (`vessel`);
--
-- Indexes for table `shippers`
--
ALTER TABLE `shippers`
ADD PRIMARY KEY (`shipper_id`);
--
-- Indexes for table `stockcategory`
--
ALTER TABLE `stockcategory`
ADD PRIMARY KEY (`categoryid`),
ADD KEY `CategoryDescription` (`categorydescription`),
ADD KEY `StockType` (`stocktype`);
--
-- Indexes for table `stockcatproperties`
--
ALTER TABLE `stockcatproperties`
ADD PRIMARY KEY (`stkcatpropid`),
ADD KEY `categoryid` (`categoryid`);
--
-- Indexes for table `stockcheckfreeze`
--
ALTER TABLE `stockcheckfreeze`
ADD PRIMARY KEY (`stockid`,`loccode`),
ADD KEY `LocCode` (`loccode`);
--
-- Indexes for table `stockcounts`
--
ALTER TABLE `stockcounts`
ADD PRIMARY KEY (`id`),
ADD KEY `StockID` (`stockid`),
ADD KEY `LocCode` (`loccode`);
--
-- Indexes for table `stockdescriptiontranslations`
--
ALTER TABLE `stockdescriptiontranslations`
ADD PRIMARY KEY (`stockid`,`language_id`);
--
-- Indexes for table `stockitemproperties`
--
ALTER TABLE `stockitemproperties`
ADD PRIMARY KEY (`stockid`,`stkcatpropid`),
ADD KEY `stockid` (`stockid`),
ADD KEY `value` (`value`),
ADD KEY `stkcatpropid` (`stkcatpropid`);
--
-- Indexes for table `stockmaster`
--
ALTER TABLE `stockmaster`
ADD PRIMARY KEY (`stockid`),
ADD KEY `CategoryID` (`categoryid`),
ADD KEY `Description` (`description`),
ADD KEY `MBflag` (`mbflag`),
ADD KEY `StockID` (`stockid`,`categoryid`),
ADD KEY `Controlled` (`controlled`),
ADD KEY `DiscountCategory` (`discountcategory`),
ADD KEY `taxcatid` (`taxcatid`);
--
-- Indexes for table `stockmoves`
--
ALTER TABLE `stockmoves`
ADD PRIMARY KEY (`stkmoveno`),
ADD KEY `DebtorNo` (`debtorno`),
ADD KEY `LocCode` (`loccode`),
ADD KEY `Prd` (`prd`),
ADD KEY `StockID_2` (`stockid`),
ADD KEY `TranDate` (`trandate`),
ADD KEY `TransNo` (`transno`),
ADD KEY `Type` (`type`),
ADD KEY `Show_On_Inv_Crds` (`show_on_inv_crds`),
ADD KEY `Hide` (`hidemovt`),
ADD KEY `reference` (`reference`);
--
-- Indexes for table `stockmovestaxes`
--
ALTER TABLE `stockmovestaxes`
ADD PRIMARY KEY (`stkmoveno`,`taxauthid`),
ADD KEY `taxauthid` (`taxauthid`),
ADD KEY `calculationorder` (`taxcalculationorder`);
--
-- Indexes for table `stockrequest`
--
ALTER TABLE `stockrequest`
ADD PRIMARY KEY (`dispatchid`),
ADD KEY `loccode` (`loccode`),
ADD KEY `departmentid` (`departmentid`);
--
-- Indexes for table `stockrequestitems`
--
ALTER TABLE `stockrequestitems`
ADD PRIMARY KEY (`dispatchitemsid`,`dispatchid`),
ADD KEY `dispatchid` (`dispatchid`),
ADD KEY `stockid` (`stockid`);
--
-- Indexes for table `stockserialitems`
--
ALTER TABLE `stockserialitems`
ADD PRIMARY KEY (`stockid`,`serialno`,`loccode`),
ADD KEY `StockID` (`stockid`),
ADD KEY `LocCode` (`loccode`),
ADD KEY `serialno` (`serialno`);
--
-- Indexes for table `stockserialmoves`
--
ALTER TABLE `stockserialmoves`
ADD PRIMARY KEY (`stkitmmoveno`),
ADD KEY `StockMoveNo` (`stockmoveno`),
ADD KEY `StockID_SN` (`stockid`,`serialno`),
ADD KEY `serialno` (`serialno`);
--
-- Indexes for table `suppallocs`
--
ALTER TABLE `suppallocs`
ADD PRIMARY KEY (`id`),
ADD KEY `TransID_AllocFrom` (`transid_allocfrom`),
ADD KEY `TransID_AllocTo` (`transid_allocto`),
ADD KEY `DateAlloc` (`datealloc`);
--
-- Indexes for table `suppinvstogrn`
--
ALTER TABLE `suppinvstogrn`
ADD PRIMARY KEY (`suppinv`,`grnno`),
ADD KEY `suppinvstogrn_ibfk_1` (`grnno`);
--
-- Indexes for table `suppliercontacts`
--
ALTER TABLE `suppliercontacts`
ADD PRIMARY KEY (`supplierid`,`contact`),
ADD KEY `Contact` (`contact`),
ADD KEY `SupplierID` (`supplierid`);
--
-- Indexes for table `supplierdiscounts`
--
ALTER TABLE `supplierdiscounts`
ADD PRIMARY KEY (`id`),
ADD KEY `supplierno` (`supplierno`),
ADD KEY `effectivefrom` (`effectivefrom`),
ADD KEY `effectiveto` (`effectiveto`),
ADD KEY `stockid` (`stockid`);
--
-- Indexes for table `suppliers`
--
ALTER TABLE `suppliers`
ADD PRIMARY KEY (`supplierid`),
ADD KEY `CurrCode` (`currcode`),
ADD KEY `PaymentTerms` (`paymentterms`),
ADD KEY `SuppName` (`suppname`),
ADD KEY `taxgroupid` (`taxgroupid`);
--
-- Indexes for table `suppliertype`
--
ALTER TABLE `suppliertype`
ADD PRIMARY KEY (`typeid`);
--
-- Indexes for table `supptrans`
--
ALTER TABLE `supptrans`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `TypeTransNo` (`transno`,`type`),
ADD KEY `DueDate` (`duedate`),
ADD KEY `Hold` (`hold`),
ADD KEY `SupplierNo` (`supplierno`),
ADD KEY `Settled` (`settled`),
ADD KEY `SupplierNo_2` (`supplierno`,`suppreference`),
ADD KEY `SuppReference` (`suppreference`),
ADD KEY `TranDate` (`trandate`),
ADD KEY `TransNo` (`transno`),
ADD KEY `Type` (`type`);
--
-- Indexes for table `supptranstaxes`
--
ALTER TABLE `supptranstaxes`
ADD PRIMARY KEY (`supptransid`,`taxauthid`),
ADD KEY `taxauthid` (`taxauthid`);
--
-- Indexes for table `systypes`
--
ALTER TABLE `systypes`
ADD PRIMARY KEY (`typeid`),
ADD KEY `TypeNo` (`typeno`);
--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`tagref`);
--
-- Indexes for table `taxauthorities`
--
ALTER TABLE `taxauthorities`
ADD PRIMARY KEY (`taxid`),
ADD KEY `TaxGLCode` (`taxglcode`),
ADD KEY `PurchTaxGLAccount` (`purchtaxglaccount`);
--
-- Indexes for table `taxauthrates`
--
ALTER TABLE `taxauthrates`
ADD PRIMARY KEY (`taxauthority`,`dispatchtaxprovince`,`taxcatid`),
ADD KEY `TaxAuthority` (`taxauthority`),
ADD KEY `dispatchtaxprovince` (`dispatchtaxprovince`),
ADD KEY `taxcatid` (`taxcatid`);
--
-- Indexes for table `taxcategories`
--
ALTER TABLE `taxcategories`
ADD PRIMARY KEY (`taxcatid`);
--
-- Indexes for table `taxgroups`
--
ALTER TABLE `taxgroups`
ADD PRIMARY KEY (`taxgroupid`);
--
-- Indexes for table `taxgrouptaxes`
--
ALTER TABLE `taxgrouptaxes`
ADD PRIMARY KEY (`taxgroupid`,`taxauthid`),
ADD KEY `taxgroupid` (`taxgroupid`),
ADD KEY `taxauthid` (`taxauthid`);
--
-- Indexes for table `taxprovinces`
--
ALTER TABLE `taxprovinces`
ADD PRIMARY KEY (`taxprovinceid`);
--
-- Indexes for table `tenderitems`
--
ALTER TABLE `tenderitems`
ADD PRIMARY KEY (`tenderid`,`stockid`);
--
-- Indexes for table `tenders`
--
ALTER TABLE `tenders`
ADD PRIMARY KEY (`tenderid`);
--
-- Indexes for table `tendersuppliers`
--
ALTER TABLE `tendersuppliers`
ADD PRIMARY KEY (`tenderid`,`supplierid`);
--
-- Indexes for table `unitsofmeasure`
--
ALTER TABLE `unitsofmeasure`
ADD PRIMARY KEY (`unitid`);
--
-- Indexes for table `woitems`
--
ALTER TABLE `woitems`
ADD PRIMARY KEY (`wo`,`stockid`),
ADD KEY `stockid` (`stockid`);
--
-- Indexes for table `worequirements`
--
ALTER TABLE `worequirements`
ADD PRIMARY KEY (`wo`,`parentstockid`,`stockid`),
ADD KEY `stockid` (`stockid`),
ADD KEY `worequirements_ibfk_3` (`parentstockid`);
--
-- Indexes for table `workcentres`
--
ALTER TABLE `workcentres`
ADD PRIMARY KEY (`code`),
ADD KEY `Description` (`description`),
ADD KEY `Location` (`location`);
--
-- Indexes for table `workorders`
--
ALTER TABLE `workorders`
ADD PRIMARY KEY (`wo`),
ADD KEY `LocCode` (`loccode`),
ADD KEY `StartDate` (`startdate`),
ADD KEY `RequiredBy` (`requiredby`);
--
-- Indexes for table `woserialnos`
--
ALTER TABLE `woserialnos`
ADD PRIMARY KEY (`wo`,`stockid`,`serialno`);
--
-- Indexes for table `www_users`
--
ALTER TABLE `www_users`
ADD PRIMARY KEY (`userid`),
ADD KEY `CustomerID` (`customerid`),
ADD KEY `DefaultLocation` (`defaultlocation`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `assetmanager`
--
ALTER TABLE `assetmanager`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `banktrans`
--
ALTER TABLE `banktrans`
MODIFY `banktransid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `cogsglpostings`
--
ALTER TABLE `cogsglpostings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `contractcharges`
--
ALTER TABLE `contractcharges`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contractreqts`
--
ALTER TABLE `contractreqts`
MODIFY `contractreqid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `custallocns`
--
ALTER TABLE `custallocns`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `custcontacts`
--
ALTER TABLE `custcontacts`
MODIFY `contid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `custnotes`
--
ALTER TABLE `custnotes`
MODIFY `noteid` tinyint(4) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `debtortrans`
--
ALTER TABLE `debtortrans`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `debtortype`
--
ALTER TABLE `debtortype`
MODIFY `typeid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `debtortypenotes`
--
ALTER TABLE `debtortypenotes`
MODIFY `noteid` tinyint(4) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `departmentid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `edimessageformat`
--
ALTER TABLE `edimessageformat`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `edi_orders_segs`
--
ALTER TABLE `edi_orders_segs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;
--
-- AUTO_INCREMENT for table `emailsettings`
--
ALTER TABLE `emailsettings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `factorcompanies`
--
ALTER TABLE `factorcompanies`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fixedassets`
--
ALTER TABLE `fixedassets`
MODIFY `assetid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `fixedassettasks`
--
ALTER TABLE `fixedassettasks`
MODIFY `taskid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fixedassettrans`
--
ALTER TABLE `fixedassettrans`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `freightcosts`
--
ALTER TABLE `freightcosts`
MODIFY `shipcostfromid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `geocode_param`
--
ALTER TABLE `geocode_param`
MODIFY `geocodeid` tinyint(4) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gltrans`
--
ALTER TABLE `gltrans`
MODIFY `counterindex` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=190;
--
-- AUTO_INCREMENT for table `grns`
--
ALTER TABLE `grns`
MODIFY `grnno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `labelfields`
--
ALTER TABLE `labelfields`
MODIFY `labelfieldid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `labels`
--
ALTER TABLE `labels`
MODIFY `labelid` tinyint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `mailgroups`
--
ALTER TABLE `mailgroups`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `manufacturers`
--
ALTER TABLE `manufacturers`
MODIFY `manufacturers_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mrpdemands`
--
ALTER TABLE `mrpdemands`
MODIFY `demandid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mrpplannedorders`
--
ALTER TABLE `mrpplannedorders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `offers`
--
ALTER TABLE `offers`
MODIFY `offerid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `paymentmethods`
--
ALTER TABLE `paymentmethods`
MODIFY `paymentid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `pcashdetails`
--
ALTER TABLE `pcashdetails`
MODIFY `counterindex` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `purchorderdetails`
--
ALTER TABLE `purchorderdetails`
MODIFY `podetailitem` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `purchorders`
--
ALTER TABLE `purchorders`
MODIFY `orderno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `qasamples`
--
ALTER TABLE `qasamples`
MODIFY `sampleid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qatests`
--
ALTER TABLE `qatests`
MODIFY `testid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `recurringsalesorders`
--
ALTER TABLE `recurringsalesorders`
MODIFY `recurrorderno` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `reportfields`
--
ALTER TABLE `reportfields`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1883;
--
-- AUTO_INCREMENT for table `reportheaders`
--
ALTER TABLE `reportheaders`
MODIFY `reportid` smallint(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `reports`
--
ALTER TABLE `reports`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=142;
--
-- AUTO_INCREMENT for table `salesanalysis`
--
ALTER TABLE `salesanalysis`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `salescat`
--
ALTER TABLE `salescat`
MODIFY `salescatid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `salesglpostings`
--
ALTER TABLE `salesglpostings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sampleresults`
--
ALTER TABLE `sampleresults`
MODIFY `resultid` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `securityroles`
--
ALTER TABLE `securityroles`
MODIFY `secroleid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `sellthroughsupport`
--
ALTER TABLE `sellthroughsupport`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shipmentcharges`
--
ALTER TABLE `shipmentcharges`
MODIFY `shiptchgid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shippers`
--
ALTER TABLE `shippers`
MODIFY `shipper_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `stockcatproperties`
--
ALTER TABLE `stockcatproperties`
MODIFY `stkcatpropid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `stockcounts`
--
ALTER TABLE `stockcounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `stockmoves`
--
ALTER TABLE `stockmoves`
MODIFY `stkmoveno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `stockrequest`
--
ALTER TABLE `stockrequest`
MODIFY `dispatchid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `stockserialmoves`
--
ALTER TABLE `stockserialmoves`
MODIFY `stkitmmoveno` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `suppallocs`
--
ALTER TABLE `suppallocs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `supplierdiscounts`
--
ALTER TABLE `supplierdiscounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `suppliertype`
--
ALTER TABLE `suppliertype`
MODIFY `typeid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `supptrans`
--
ALTER TABLE `supptrans`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
MODIFY `tagref` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `taxauthorities`
--
ALTER TABLE `taxauthorities`
MODIFY `taxid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `taxcategories`
--
ALTER TABLE `taxcategories`
MODIFY `taxcatid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `taxgroups`
--
ALTER TABLE `taxgroups`
MODIFY `taxgroupid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `taxprovinces`
--
ALTER TABLE `taxprovinces`
MODIFY `taxprovinceid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `unitsofmeasure`
--
ALTER TABLE `unitsofmeasure`
MODIFY `unitid` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `accountgroups`
--
ALTER TABLE `accountgroups`
ADD CONSTRAINT `accountgroups_ibfk_1` FOREIGN KEY (`sectioninaccounts`) REFERENCES `accountsection` (`sectionid`);
--
-- Constraints for table `audittrail`
--
ALTER TABLE `audittrail`
ADD CONSTRAINT `audittrail_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`);
--
-- Constraints for table `bankaccounts`
--
ALTER TABLE `bankaccounts`
ADD CONSTRAINT `bankaccounts_ibfk_1` FOREIGN KEY (`accountcode`) REFERENCES `chartmaster` (`accountcode`);
--
-- Constraints for table `banktrans`
--
ALTER TABLE `banktrans`
ADD CONSTRAINT `banktrans_ibfk_1` FOREIGN KEY (`type`) REFERENCES `systypes` (`typeid`),
ADD CONSTRAINT `banktrans_ibfk_2` FOREIGN KEY (`bankact`) REFERENCES `bankaccounts` (`accountcode`);
--
-- Constraints for table `bom`
--
ALTER TABLE `bom`
ADD CONSTRAINT `bom_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `bom_ibfk_2` FOREIGN KEY (`component`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `bom_ibfk_3` FOREIGN KEY (`workcentreadded`) REFERENCES `workcentres` (`code`),
ADD CONSTRAINT `bom_ibfk_4` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `chartdetails`
--
ALTER TABLE `chartdetails`
ADD CONSTRAINT `chartdetails_ibfk_1` FOREIGN KEY (`accountcode`) REFERENCES `chartmaster` (`accountcode`),
ADD CONSTRAINT `chartdetails_ibfk_2` FOREIGN KEY (`period`) REFERENCES `periods` (`periodno`);
--
-- Constraints for table `chartmaster`
--
ALTER TABLE `chartmaster`
ADD CONSTRAINT `chartmaster_ibfk_1` FOREIGN KEY (`group_`) REFERENCES `accountgroups` (`groupname`);
--
-- Constraints for table `contractbom`
--
ALTER TABLE `contractbom`
ADD CONSTRAINT `contractbom_ibfk_1` FOREIGN KEY (`workcentreadded`) REFERENCES `workcentres` (`code`),
ADD CONSTRAINT `contractbom_ibfk_3` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `contractcharges`
--
ALTER TABLE `contractcharges`
ADD CONSTRAINT `contractcharges_ibfk_1` FOREIGN KEY (`contractref`) REFERENCES `contracts` (`contractref`),
ADD CONSTRAINT `contractcharges_ibfk_2` FOREIGN KEY (`transtype`) REFERENCES `systypes` (`typeid`);
--
-- Constraints for table `contractreqts`
--
ALTER TABLE `contractreqts`
ADD CONSTRAINT `contractreqts_ibfk_1` FOREIGN KEY (`contractref`) REFERENCES `contracts` (`contractref`);
--
-- Constraints for table `contracts`
--
ALTER TABLE `contracts`
ADD CONSTRAINT `contracts_ibfk_1` FOREIGN KEY (`debtorno`,`branchcode`) REFERENCES `custbranch` (`debtorno`, `branchcode`),
ADD CONSTRAINT `contracts_ibfk_2` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`),
ADD CONSTRAINT `contracts_ibfk_3` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `custallocns`
--
ALTER TABLE `custallocns`
ADD CONSTRAINT `custallocns_ibfk_1` FOREIGN KEY (`transid_allocfrom`) REFERENCES `debtortrans` (`id`),
ADD CONSTRAINT `custallocns_ibfk_2` FOREIGN KEY (`transid_allocto`) REFERENCES `debtortrans` (`id`);
--
-- Constraints for table `custbranch`
--
ALTER TABLE `custbranch`
ADD CONSTRAINT `custbranch_ibfk_1` FOREIGN KEY (`debtorno`) REFERENCES `debtorsmaster` (`debtorno`),
ADD CONSTRAINT `custbranch_ibfk_2` FOREIGN KEY (`area`) REFERENCES `areas` (`areacode`),
ADD CONSTRAINT `custbranch_ibfk_3` FOREIGN KEY (`salesman`) REFERENCES `salesman` (`salesmancode`),
ADD CONSTRAINT `custbranch_ibfk_4` FOREIGN KEY (`defaultlocation`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `custbranch_ibfk_6` FOREIGN KEY (`defaultshipvia`) REFERENCES `shippers` (`shipper_id`),
ADD CONSTRAINT `custbranch_ibfk_7` FOREIGN KEY (`taxgroupid`) REFERENCES `taxgroups` (`taxgroupid`);
--
-- Constraints for table `custitem`
--
ALTER TABLE `custitem`
ADD CONSTRAINT ` custitem _ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT ` custitem _ibfk_2` FOREIGN KEY (`debtorno`) REFERENCES `debtorsmaster` (`debtorno`);
--
-- Constraints for table `debtorsmaster`
--
ALTER TABLE `debtorsmaster`
ADD CONSTRAINT `debtorsmaster_ibfk_1` FOREIGN KEY (`holdreason`) REFERENCES `holdreasons` (`reasoncode`),
ADD CONSTRAINT `debtorsmaster_ibfk_2` FOREIGN KEY (`currcode`) REFERENCES `currencies` (`currabrev`),
ADD CONSTRAINT `debtorsmaster_ibfk_3` FOREIGN KEY (`paymentterms`) REFERENCES `paymentterms` (`termsindicator`),
ADD CONSTRAINT `debtorsmaster_ibfk_4` FOREIGN KEY (`salestype`) REFERENCES `salestypes` (`typeabbrev`),
ADD CONSTRAINT `debtorsmaster_ibfk_5` FOREIGN KEY (`typeid`) REFERENCES `debtortype` (`typeid`);
--
-- Constraints for table `debtortrans`
--
ALTER TABLE `debtortrans`
ADD CONSTRAINT `debtortrans_ibfk_2` FOREIGN KEY (`type`) REFERENCES `systypes` (`typeid`),
ADD CONSTRAINT `debtortrans_ibfk_3` FOREIGN KEY (`prd`) REFERENCES `periods` (`periodno`);
--
-- Constraints for table `debtortranstaxes`
--
ALTER TABLE `debtortranstaxes`
ADD CONSTRAINT `debtortranstaxes_ibfk_1` FOREIGN KEY (`taxauthid`) REFERENCES `taxauthorities` (`taxid`),
ADD CONSTRAINT `debtortranstaxes_ibfk_2` FOREIGN KEY (`debtortransid`) REFERENCES `debtortrans` (`id`);
--
-- Constraints for table `deliverynotes`
--
ALTER TABLE `deliverynotes`
ADD CONSTRAINT `deliverynotes_ibfk_1` FOREIGN KEY (`salesorderno`) REFERENCES `salesorders` (`orderno`),
ADD CONSTRAINT `deliverynotes_ibfk_2` FOREIGN KEY (`salesorderno`,`salesorderlineno`) REFERENCES `salesorderdetails` (`orderno`, `orderlineno`);
--
-- Constraints for table `discountmatrix`
--
ALTER TABLE `discountmatrix`
ADD CONSTRAINT `discountmatrix_ibfk_1` FOREIGN KEY (`salestype`) REFERENCES `salestypes` (`typeabbrev`);
--
-- Constraints for table `freightcosts`
--
ALTER TABLE `freightcosts`
ADD CONSTRAINT `freightcosts_ibfk_1` FOREIGN KEY (`locationfrom`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `freightcosts_ibfk_2` FOREIGN KEY (`shipperid`) REFERENCES `shippers` (`shipper_id`);
--
-- Constraints for table `gltrans`
--
ALTER TABLE `gltrans`
ADD CONSTRAINT `gltrans_ibfk_1` FOREIGN KEY (`account`) REFERENCES `chartmaster` (`accountcode`),
ADD CONSTRAINT `gltrans_ibfk_2` FOREIGN KEY (`type`) REFERENCES `systypes` (`typeid`),
ADD CONSTRAINT `gltrans_ibfk_3` FOREIGN KEY (`periodno`) REFERENCES `periods` (`periodno`);
--
-- Constraints for table `grns`
--
ALTER TABLE `grns`
ADD CONSTRAINT `grns_ibfk_1` FOREIGN KEY (`supplierid`) REFERENCES `suppliers` (`supplierid`),
ADD CONSTRAINT `grns_ibfk_2` FOREIGN KEY (`podetailitem`) REFERENCES `purchorderdetails` (`podetailitem`);
--
-- Constraints for table `internalstockcatrole`
--
ALTER TABLE `internalstockcatrole`
ADD CONSTRAINT `internalstockcatrole_ibfk_1` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`),
ADD CONSTRAINT `internalstockcatrole_ibfk_2` FOREIGN KEY (`secroleid`) REFERENCES `securityroles` (`secroleid`),
ADD CONSTRAINT `internalstockcatrole_ibfk_3` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`),
ADD CONSTRAINT `internalstockcatrole_ibfk_4` FOREIGN KEY (`secroleid`) REFERENCES `securityroles` (`secroleid`);
--
-- Constraints for table `locations`
--
ALTER TABLE `locations`
ADD CONSTRAINT `locations_ibfk_1` FOREIGN KEY (`taxprovinceid`) REFERENCES `taxprovinces` (`taxprovinceid`);
--
-- Constraints for table `locstock`
--
ALTER TABLE `locstock`
ADD CONSTRAINT `locstock_ibfk_1` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `locstock_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `loctransfers`
--
ALTER TABLE `loctransfers`
ADD CONSTRAINT `loctransfers_ibfk_1` FOREIGN KEY (`shiploc`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `loctransfers_ibfk_2` FOREIGN KEY (`recloc`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `loctransfers_ibfk_3` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `mailgroupdetails`
--
ALTER TABLE `mailgroupdetails`
ADD CONSTRAINT `mailgroupdetails_ibfk_1` FOREIGN KEY (`groupname`) REFERENCES `mailgroups` (`groupname`),
ADD CONSTRAINT `mailgroupdetails_ibfk_2` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`);
--
-- Constraints for table `mrpdemands`
--
ALTER TABLE `mrpdemands`
ADD CONSTRAINT `mrpdemands_ibfk_1` FOREIGN KEY (`mrpdemandtype`) REFERENCES `mrpdemandtypes` (`mrpdemandtype`),
ADD CONSTRAINT `mrpdemands_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `offers`
--
ALTER TABLE `offers`
ADD CONSTRAINT `offers_ibfk_1` FOREIGN KEY (`supplierid`) REFERENCES `suppliers` (`supplierid`),
ADD CONSTRAINT `offers_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `orderdeliverydifferenceslog`
--
ALTER TABLE `orderdeliverydifferenceslog`
ADD CONSTRAINT `orderdeliverydifferenceslog_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `orderdeliverydifferenceslog_ibfk_2` FOREIGN KEY (`debtorno`,`branch`) REFERENCES `custbranch` (`debtorno`, `branchcode`),
ADD CONSTRAINT `orderdeliverydifferenceslog_ibfk_3` FOREIGN KEY (`orderno`) REFERENCES `salesorders` (`orderno`);
--
-- Constraints for table `pcexpenses`
--
ALTER TABLE `pcexpenses`
ADD CONSTRAINT `pcexpenses_ibfk_1` FOREIGN KEY (`glaccount`) REFERENCES `chartmaster` (`accountcode`);
--
-- Constraints for table `pctabexpenses`
--
ALTER TABLE `pctabexpenses`
ADD CONSTRAINT `pctabexpenses_ibfk_1` FOREIGN KEY (`typetabcode`) REFERENCES `pctypetabs` (`typetabcode`),
ADD CONSTRAINT `pctabexpenses_ibfk_2` FOREIGN KEY (`codeexpense`) REFERENCES `pcexpenses` (`codeexpense`);
--
-- Constraints for table `pctabs`
--
ALTER TABLE `pctabs`
ADD CONSTRAINT `pctabs_ibfk_1` FOREIGN KEY (`usercode`) REFERENCES `www_users` (`userid`),
ADD CONSTRAINT `pctabs_ibfk_2` FOREIGN KEY (`typetabcode`) REFERENCES `pctypetabs` (`typetabcode`),
ADD CONSTRAINT `pctabs_ibfk_3` FOREIGN KEY (`currency`) REFERENCES `currencies` (`currabrev`),
ADD CONSTRAINT `pctabs_ibfk_5` FOREIGN KEY (`glaccountassignment`) REFERENCES `chartmaster` (`accountcode`);
--
-- Constraints for table `pickinglistdetails`
--
ALTER TABLE `pickinglistdetails`
ADD CONSTRAINT `pickinglistdetails_ibfk_1` FOREIGN KEY (`pickinglistno`) REFERENCES `pickinglists` (`pickinglistno`);
--
-- Constraints for table `pickinglists`
--
ALTER TABLE `pickinglists`
ADD CONSTRAINT `pickinglists_ibfk_1` FOREIGN KEY (`orderno`) REFERENCES `salesorders` (`orderno`);
--
-- Constraints for table `prices`
--
ALTER TABLE `prices`
ADD CONSTRAINT `prices_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `prices_ibfk_2` FOREIGN KEY (`currabrev`) REFERENCES `currencies` (`currabrev`),
ADD CONSTRAINT `prices_ibfk_3` FOREIGN KEY (`typeabbrev`) REFERENCES `salestypes` (`typeabbrev`);
--
-- Constraints for table `prodspecs`
--
ALTER TABLE `prodspecs`
ADD CONSTRAINT `prodspecs_ibfk_1` FOREIGN KEY (`testid`) REFERENCES `qatests` (`testid`);
--
-- Constraints for table `purchdata`
--
ALTER TABLE `purchdata`
ADD CONSTRAINT `purchdata_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `purchdata_ibfk_2` FOREIGN KEY (`supplierno`) REFERENCES `suppliers` (`supplierid`);
--
-- Constraints for table `purchorderdetails`
--
ALTER TABLE `purchorderdetails`
ADD CONSTRAINT `purchorderdetails_ibfk_1` FOREIGN KEY (`orderno`) REFERENCES `purchorders` (`orderno`);
--
-- Constraints for table `purchorders`
--
ALTER TABLE `purchorders`
ADD CONSTRAINT `purchorders_ibfk_1` FOREIGN KEY (`supplierno`) REFERENCES `suppliers` (`supplierid`),
ADD CONSTRAINT `purchorders_ibfk_2` FOREIGN KEY (`intostocklocation`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `qasamples`
--
ALTER TABLE `qasamples`
ADD CONSTRAINT `qasamples_ibfk_1` FOREIGN KEY (`prodspeckey`) REFERENCES `prodspecs` (`keyval`);
--
-- Constraints for table `recurringsalesorders`
--
ALTER TABLE `recurringsalesorders`
ADD CONSTRAINT `recurringsalesorders_ibfk_1` FOREIGN KEY (`branchcode`,`debtorno`) REFERENCES `custbranch` (`branchcode`, `debtorno`);
--
-- Constraints for table `recurrsalesorderdetails`
--
ALTER TABLE `recurrsalesorderdetails`
ADD CONSTRAINT `recurrsalesorderdetails_ibfk_1` FOREIGN KEY (`recurrorderno`) REFERENCES `recurringsalesorders` (`recurrorderno`),
ADD CONSTRAINT `recurrsalesorderdetails_ibfk_2` FOREIGN KEY (`stkcode`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `reportcolumns`
--
ALTER TABLE `reportcolumns`
ADD CONSTRAINT `reportcolumns_ibfk_1` FOREIGN KEY (`reportid`) REFERENCES `reportheaders` (`reportid`);
--
-- Constraints for table `salesanalysis`
--
ALTER TABLE `salesanalysis`
ADD CONSTRAINT `salesanalysis_ibfk_1` FOREIGN KEY (`periodno`) REFERENCES `periods` (`periodno`);
--
-- Constraints for table `salescatprod`
--
ALTER TABLE `salescatprod`
ADD CONSTRAINT `salescatprod_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `salescatprod_ibfk_2` FOREIGN KEY (`salescatid`) REFERENCES `salescat` (`salescatid`);
--
-- Constraints for table `salesorderdetails`
--
ALTER TABLE `salesorderdetails`
ADD CONSTRAINT `salesorderdetails_ibfk_1` FOREIGN KEY (`orderno`) REFERENCES `salesorders` (`orderno`),
ADD CONSTRAINT `salesorderdetails_ibfk_2` FOREIGN KEY (`stkcode`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `salesorders`
--
ALTER TABLE `salesorders`
ADD CONSTRAINT `salesorders_ibfk_1` FOREIGN KEY (`branchcode`,`debtorno`) REFERENCES `custbranch` (`branchcode`, `debtorno`),
ADD CONSTRAINT `salesorders_ibfk_2` FOREIGN KEY (`shipvia`) REFERENCES `shippers` (`shipper_id`),
ADD CONSTRAINT `salesorders_ibfk_3` FOREIGN KEY (`fromstkloc`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `sampleresults`
--
ALTER TABLE `sampleresults`
ADD CONSTRAINT `sampleresults_ibfk_1` FOREIGN KEY (`testid`) REFERENCES `qatests` (`testid`);
--
-- Constraints for table `securitygroups`
--
ALTER TABLE `securitygroups`
ADD CONSTRAINT `securitygroups_secroleid_fk` FOREIGN KEY (`secroleid`) REFERENCES `securityroles` (`secroleid`),
ADD CONSTRAINT `securitygroups_tokenid_fk` FOREIGN KEY (`tokenid`) REFERENCES `securitytokens` (`tokenid`);
--
-- Constraints for table `shipmentcharges`
--
ALTER TABLE `shipmentcharges`
ADD CONSTRAINT `shipmentcharges_ibfk_1` FOREIGN KEY (`shiptref`) REFERENCES `shipments` (`shiptref`),
ADD CONSTRAINT `shipmentcharges_ibfk_2` FOREIGN KEY (`transtype`) REFERENCES `systypes` (`typeid`);
--
-- Constraints for table `shipments`
--
ALTER TABLE `shipments`
ADD CONSTRAINT `shipments_ibfk_1` FOREIGN KEY (`supplierid`) REFERENCES `suppliers` (`supplierid`);
--
-- Constraints for table `stockcatproperties`
--
ALTER TABLE `stockcatproperties`
ADD CONSTRAINT `stockcatproperties_ibfk_1` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`);
--
-- Constraints for table `stockcheckfreeze`
--
ALTER TABLE `stockcheckfreeze`
ADD CONSTRAINT `stockcheckfreeze_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockcheckfreeze_ibfk_2` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `stockcounts`
--
ALTER TABLE `stockcounts`
ADD CONSTRAINT `stockcounts_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockcounts_ibfk_2` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `stockitemproperties`
--
ALTER TABLE `stockitemproperties`
ADD CONSTRAINT `stockitemproperties_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockitemproperties_ibfk_2` FOREIGN KEY (`stkcatpropid`) REFERENCES `stockcatproperties` (`stkcatpropid`),
ADD CONSTRAINT `stockitemproperties_ibfk_3` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockitemproperties_ibfk_4` FOREIGN KEY (`stkcatpropid`) REFERENCES `stockcatproperties` (`stkcatpropid`),
ADD CONSTRAINT `stockitemproperties_ibfk_5` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockitemproperties_ibfk_6` FOREIGN KEY (`stkcatpropid`) REFERENCES `stockcatproperties` (`stkcatpropid`);
--
-- Constraints for table `stockmaster`
--
ALTER TABLE `stockmaster`
ADD CONSTRAINT `stockmaster_ibfk_1` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`),
ADD CONSTRAINT `stockmaster_ibfk_2` FOREIGN KEY (`taxcatid`) REFERENCES `taxcategories` (`taxcatid`);
--
-- Constraints for table `stockmoves`
--
ALTER TABLE `stockmoves`
ADD CONSTRAINT `stockmoves_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockmoves_ibfk_2` FOREIGN KEY (`type`) REFERENCES `systypes` (`typeid`),
ADD CONSTRAINT `stockmoves_ibfk_3` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `stockmoves_ibfk_4` FOREIGN KEY (`prd`) REFERENCES `periods` (`periodno`);
--
-- Constraints for table `stockmovestaxes`
--
ALTER TABLE `stockmovestaxes`
ADD CONSTRAINT `stockmovestaxes_ibfk_1` FOREIGN KEY (`taxauthid`) REFERENCES `taxauthorities` (`taxid`),
ADD CONSTRAINT `stockmovestaxes_ibfk_2` FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`),
ADD CONSTRAINT `stockmovestaxes_ibfk_3` FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`),
ADD CONSTRAINT `stockmovestaxes_ibfk_4` FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`);
--
-- Constraints for table `stockrequest`
--
ALTER TABLE `stockrequest`
ADD CONSTRAINT `stockrequest_ibfk_1` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`),
ADD CONSTRAINT `stockrequest_ibfk_2` FOREIGN KEY (`departmentid`) REFERENCES `departments` (`departmentid`);
--
-- Constraints for table `stockrequestitems`
--
ALTER TABLE `stockrequestitems`
ADD CONSTRAINT `stockrequestitems_ibfk_1` FOREIGN KEY (`dispatchid`) REFERENCES `stockrequest` (`dispatchid`),
ADD CONSTRAINT `stockrequestitems_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockrequestitems_ibfk_3` FOREIGN KEY (`dispatchid`) REFERENCES `stockrequest` (`dispatchid`),
ADD CONSTRAINT `stockrequestitems_ibfk_4` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`);
--
-- Constraints for table `stockserialitems`
--
ALTER TABLE `stockserialitems`
ADD CONSTRAINT `stockserialitems_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `stockserialitems_ibfk_2` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `stockserialmoves`
--
ALTER TABLE `stockserialmoves`
ADD CONSTRAINT `stockserialmoves_ibfk_1` FOREIGN KEY (`stockmoveno`) REFERENCES `stockmoves` (`stkmoveno`),
ADD CONSTRAINT `stockserialmoves_ibfk_2` FOREIGN KEY (`stockid`,`serialno`) REFERENCES `stockserialitems` (`stockid`, `serialno`);
--
-- Constraints for table `suppallocs`
--
ALTER TABLE `suppallocs`
ADD CONSTRAINT `suppallocs_ibfk_1` FOREIGN KEY (`transid_allocfrom`) REFERENCES `supptrans` (`id`),
ADD CONSTRAINT `suppallocs_ibfk_2` FOREIGN KEY (`transid_allocto`) REFERENCES `supptrans` (`id`);
--
-- Constraints for table `suppinvstogrn`
--
ALTER TABLE `suppinvstogrn`
ADD CONSTRAINT `suppinvstogrn_ibfk_1` FOREIGN KEY (`grnno`) REFERENCES `grns` (`grnno`);
--
-- Constraints for table `suppliercontacts`
--
ALTER TABLE `suppliercontacts`
ADD CONSTRAINT `suppliercontacts_ibfk_1` FOREIGN KEY (`supplierid`) REFERENCES `suppliers` (`supplierid`);
--
-- Constraints for table `suppliers`
--
ALTER TABLE `suppliers`
ADD CONSTRAINT `suppliers_ibfk_1` FOREIGN KEY (`currcode`) REFERENCES `currencies` (`currabrev`),
ADD CONSTRAINT `suppliers_ibfk_2` FOREIGN KEY (`paymentterms`) REFERENCES `paymentterms` (`termsindicator`),
ADD CONSTRAINT `suppliers_ibfk_3` FOREIGN KEY (`taxgroupid`) REFERENCES `taxgroups` (`taxgroupid`);
--
-- Constraints for table `supptrans`
--
ALTER TABLE `supptrans`
ADD CONSTRAINT `supptrans_ibfk_1` FOREIGN KEY (`type`) REFERENCES `systypes` (`typeid`),
ADD CONSTRAINT `supptrans_ibfk_2` FOREIGN KEY (`supplierno`) REFERENCES `suppliers` (`supplierid`);
--
-- Constraints for table `supptranstaxes`
--
ALTER TABLE `supptranstaxes`
ADD CONSTRAINT `supptranstaxes_ibfk_1` FOREIGN KEY (`taxauthid`) REFERENCES `taxauthorities` (`taxid`),
ADD CONSTRAINT `supptranstaxes_ibfk_2` FOREIGN KEY (`supptransid`) REFERENCES `supptrans` (`id`);
--
-- Constraints for table `taxauthorities`
--
ALTER TABLE `taxauthorities`
ADD CONSTRAINT `taxauthorities_ibfk_1` FOREIGN KEY (`taxglcode`) REFERENCES `chartmaster` (`accountcode`),
ADD CONSTRAINT `taxauthorities_ibfk_2` FOREIGN KEY (`purchtaxglaccount`) REFERENCES `chartmaster` (`accountcode`);
--
-- Constraints for table `taxauthrates`
--
ALTER TABLE `taxauthrates`
ADD CONSTRAINT `taxauthrates_ibfk_1` FOREIGN KEY (`taxauthority`) REFERENCES `taxauthorities` (`taxid`),
ADD CONSTRAINT `taxauthrates_ibfk_2` FOREIGN KEY (`taxcatid`) REFERENCES `taxcategories` (`taxcatid`),
ADD CONSTRAINT `taxauthrates_ibfk_3` FOREIGN KEY (`dispatchtaxprovince`) REFERENCES `taxprovinces` (`taxprovinceid`);
--
-- Constraints for table `taxgrouptaxes`
--
ALTER TABLE `taxgrouptaxes`
ADD CONSTRAINT `taxgrouptaxes_ibfk_1` FOREIGN KEY (`taxgroupid`) REFERENCES `taxgroups` (`taxgroupid`),
ADD CONSTRAINT `taxgrouptaxes_ibfk_2` FOREIGN KEY (`taxauthid`) REFERENCES `taxauthorities` (`taxid`);
--
-- Constraints for table `woitems`
--
ALTER TABLE `woitems`
ADD CONSTRAINT `woitems_ibfk_1` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `woitems_ibfk_2` FOREIGN KEY (`wo`) REFERENCES `workorders` (`wo`);
--
-- Constraints for table `worequirements`
--
ALTER TABLE `worequirements`
ADD CONSTRAINT `worequirements_ibfk_1` FOREIGN KEY (`wo`) REFERENCES `workorders` (`wo`),
ADD CONSTRAINT `worequirements_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`),
ADD CONSTRAINT `worequirements_ibfk_3` FOREIGN KEY (`wo`,`parentstockid`) REFERENCES `woitems` (`wo`, `stockid`);
--
-- Constraints for table `workcentres`
--
ALTER TABLE `workcentres`
ADD CONSTRAINT `workcentres_ibfk_1` FOREIGN KEY (`location`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `workorders`
--
ALTER TABLE `workorders`
ADD CONSTRAINT `worksorders_ibfk_1` FOREIGN KEY (`loccode`) REFERENCES `locations` (`loccode`);
--
-- Constraints for table `www_users`
--
ALTER TABLE `www_users`
ADD CONSTRAINT `www_users_ibfk_1` FOREIGN KEY (`defaultlocation`) REFERENCES `locations` (`loccode`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;