HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/downloads/surinder/jms/jms_demo_master_schema5.sql
-- MySQL dump 10.13  Distrib 5.1.63, for Win64 (unknown)
--
-- Host: localhost    Database: jms_demo_master
-- ------------------------------------------------------
-- Server version	5.1.63-community-log

/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `audit`
--

DROP TABLE IF EXISTS `audit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `audit` (
  `AuditID` int(11) NOT NULL AUTO_INCREMENT,
  `UserID` int(11) NOT NULL,
  `UserName` varchar(40) DEFAULT NULL,
  `AppVersion` varchar(15) NOT NULL DEFAULT '',
  `LogOn` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `LogOff` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ComputerName` varchar(30) DEFAULT NULL,
  `IPAddress` varchar(15) DEFAULT NULL,
  `LocaleID` int(11) NOT NULL,
  `OSVersion` varchar(100) NOT NULL DEFAULT '',
  `TotalMemoryMB` int(11) NOT NULL DEFAULT '0',
  `FreeMemoryMB` int(11) NOT NULL DEFAULT '0',
  `DiskSpaceMB` int(11) DEFAULT NULL,
  `DesktopWidth` int(11) NOT NULL DEFAULT '0',
  `DesktopHeight` int(11) NOT NULL DEFAULT '0',
  `DesktopBPP` int(11) NOT NULL,
  `LocksReleased` int(11) DEFAULT '0',
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`AuditID`)
) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `audit`
--

LOCK TABLES `audit` WRITE;
/*!40000 ALTER TABLE `audit` DISABLE KEYS */;
INSERT INTO `audit` VALUES (1,5,'Super','4.02.12.4219','2013-07-10 17:19:30','0000-00-00 00:00:00','SURINDER-WIN7PC','10.255.0.25',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2302,33999,1920,1200,32,0,'2013-07-10 16:19:30'),(2,5,'Super','4.02.12.4219','2013-07-10 17:31:03','2013-07-10 17:31:11','SURINDER-WIN7PC','10.255.0.25',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2187,33998,1920,1200,32,0,'2013-07-10 16:31:03'),(3,5,'Super','4.02.12.4219','2013-07-10 17:57:13','2013-07-10 17:58:25','SURINDER-WIN7PC','10.255.0.25',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2188,33998,1920,1200,32,0,'2013-07-10 16:57:13'),(4,5,'Super','4.02.12.4219','2013-07-12 18:17:32','2013-07-12 18:17:42','SURINDER-WIN7PC','10.255.0.25',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2386,32523,1920,1200,32,0,'2013-07-12 17:17:32'),(5,5,'Super','4.02.12.4219','2013-07-12 18:20:11','2013-07-12 18:20:30','SURINDER-WIN7PC','10.255.0.25',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2367,32523,1920,1200,32,0,'2013-07-12 17:20:11'),(6,5,'Super','4.02.12.4219','2013-08-07 11:01:43','2013-08-07 11:02:49','SURINDER-WIN7PC','10.255.0.28',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,1903,34312,1920,1200,32,0,'2013-08-07 10:01:43'),(7,1,'Demo','4.02.13.4220','2013-08-20 18:32:58','2013-08-20 18:33:24','SURINDER-WIN7PC','',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,1235,31093,1920,1200,32,0,'2013-08-20 17:32:58'),(8,1,'Demo','4.02.13.4220','2013-08-20 18:34:24','2013-08-20 18:46:58','SURINDER-WIN7PC','10.0.0.54',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,1238,31093,1920,1200,32,0,'2013-08-20 17:34:24'),(9,1,'Demo','4.02.13.4220','2013-08-21 09:59:34','2013-08-21 09:59:38','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,3521,31211,1920,1200,32,0,'2013-08-21 08:59:34'),(10,1,'Demo','4.02.13.4220','2013-08-21 10:00:59','2013-08-21 10:03:01','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,3367,30908,1920,1200,32,0,'2013-08-21 09:00:59'),(11,1,'Demo','4.02.13.4220','2013-08-21 10:03:21','2013-08-21 10:06:13','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,3340,30907,1920,1200,32,0,'2013-08-21 09:03:21'),(12,1,'Demo','4.02.13.4220','2013-08-21 12:36:20','2013-08-21 12:38:59','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2374,30908,1920,1200,32,0,'2013-08-21 11:36:20'),(13,1,'Demo','4.02.13.4220','2013-08-21 12:44:35','0000-00-00 00:00:00','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2384,30906,1920,1200,32,0,'2013-08-21 11:44:35'),(14,1,'Demo','4.02.13.4220','2013-08-21 12:53:39','2013-08-21 14:13:14','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2371,30906,1920,1200,32,1,'2013-08-21 11:53:39'),(15,1,'Demo','4.02.13.4220','2013-08-21 14:14:18','2013-08-21 14:14:44','SURINDER-WIN7PC','',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2271,30904,1920,1200,32,0,'2013-08-21 13:14:18'),(16,1,'Demo','4.02.13.4220','2013-08-21 14:41:24','2013-08-21 14:42:14','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2204,30903,1920,1200,32,0,'2013-08-21 13:41:24'),(17,1,'Demo','4.02.13.4220','2013-08-21 15:06:39','2013-08-21 15:07:43','SURINDER-WIN7PC','10.0.0.53',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,2178,30901,1920,1200,32,0,'2013-08-21 14:06:39'),(18,1,'Demo','4.02.13.4220','2013-08-23 15:39:20','2013-08-23 15:56:27','SURINDER-WIN7PC','',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,857,29297,1920,1200,32,0,'2013-08-23 14:39:20'),(19,1,'Demo','4.02.13.4220','2013-08-29 15:53:00','2013-08-29 15:54:04','SURINDER-WIN7PC','',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,935,30048,1920,1200,32,0,'2013-08-29 14:53:00'),(20,1,'Demo','4.02.13.4220','2013-08-29 15:55:47','2013-08-29 15:56:37','SURINDER-WIN7PC','10.255.0.41',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,969,30047,1920,1200,32,0,'2013-08-29 14:55:47'),(21,1,'Demo','4.02.15.4222','2014-01-16 16:01:05','2014-01-16 16:39:19','SURINDER-WIN7PC','',2057,'Windows 7 (Win64) 6.1.7601 (Service Pack 1)',4095,1418,15792,1920,1200,32,0,'2014-01-16 16:01:05'),(22,1,'Demo','4.02.17.4224','2016-03-18 11:41:32','2016-03-18 11:41:42','SURINDER','10.255.0.32',2057,'Windows XP Professional (Win32) 5.1.2600 (Service Pack 3)',2047,1417,9049,1920,1200,32,0,'2016-03-18 11:41:32');
/*!40000 ALTER TABLE `audit` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `auto_logoff_history`
--

DROP TABLE IF EXISTS `auto_logoff_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auto_logoff_history` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `AuditID` int(11) DEFAULT NULL,
  `UserID` int(11) DEFAULT NULL,
  `UserName` varchar(40) DEFAULT NULL,
  `ComputerName` varchar(30) DEFAULT NULL,
  `DateTimeLogoff` datetime DEFAULT NULL,
  `IdleMins` int(11) NOT NULL,
  `Success` tinyint(1) DEFAULT NULL,
  `Info` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `auto_logoff_history`
--

LOCK TABLES `auto_logoff_history` WRITE;
/*!40000 ALTER TABLE `auto_logoff_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `auto_logoff_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `branches`
--

DROP TABLE IF EXISTS `branches`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `branches` (
  `BranchID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchPrefix` varchar(3) NOT NULL DEFAULT '',
  `BranchName` varchar(30) NOT NULL DEFAULT '',
  `CompanyName` varchar(50) DEFAULT NULL,
  `Address1` varchar(50) DEFAULT NULL,
  `Address2` varchar(50) DEFAULT NULL,
  `Address3` varchar(50) DEFAULT NULL,
  `Address4` varchar(50) DEFAULT NULL,
  `Address5` varchar(50) DEFAULT NULL,
  `Postcode` varchar(8) DEFAULT NULL,
  `CountryID` int(11) DEFAULT NULL,
  `Tel` varchar(50) DEFAULT NULL,
  `Fax` varchar(50) DEFAULT NULL,
  `SalesEmail` varchar(200) DEFAULT NULL,
  `PurchasesEmail` varchar(200) DEFAULT NULL,
  `AccountsEmail` varchar(200) DEFAULT NULL,
  `BCCEmail` varchar(200) DEFAULT NULL,
  `FromEmail` varchar(200) DEFAULT NULL,
  `VATNo` varchar(12) DEFAULT NULL,
  `VATRate` decimal(4,2) NOT NULL DEFAULT '0.00',
  `ChasingDays` smallint(6) NOT NULL DEFAULT '2',
  `InvoiceCopies` smallint(6) NOT NULL DEFAULT '2',
  `NextInvoiceNo` int(11) DEFAULT NULL,
  `NextOrderNo` int(11) DEFAULT NULL,
  `AccountsCurrencyCode` varchar(3) DEFAULT NULL,
  `AccountsOffice` tinyint(1) DEFAULT '0',
  `LanguageID` int(11) DEFAULT NULL,
  `TimeZone` varchar(10) DEFAULT NULL,
  `InternalStockSupplierID` int(11) DEFAULT NULL,
  `DefaultPaymentDays` smallint(6) DEFAULT NULL,
  `BankName` varchar(200) DEFAULT NULL,
  `BankAddress` mediumtext,
  `BankTel` varchar(50) DEFAULT NULL,
  `BankFax` varchar(50) DEFAULT NULL,
  `BankEmail` varchar(100) DEFAULT NULL,
  `BankAccountName` varchar(200) DEFAULT NULL,
  `BankAccountNo` varchar(200) DEFAULT NULL,
  `BankNIB` varchar(200) DEFAULT NULL,
  `BankSwift` varchar(200) DEFAULT NULL,
  `BankIBAN` varchar(200) DEFAULT NULL,
  `BankVATNumber` varchar(200) DEFAULT NULL,
  `BankSortCode` varchar(50) DEFAULT NULL,
  `LocationNominalCode` char(2) DEFAULT NULL,
  `BusinessTypeNominalCode` char(2) DEFAULT NULL,
  `DeliveryJobTypeNominalCode` char(2) DEFAULT NULL,
  `SalesNominalCode` char(4) DEFAULT NULL,
  `RechargePurchaseNominalCode` char(4) DEFAULT NULL,
  `OrderDepartmentNominalCode` char(2) DEFAULT NULL,
  `OrderNominalCode` char(4) DEFAULT NULL,
  `CustomerAccountNo` varchar(20) DEFAULT NULL,
  `CheckAccountNumbers` tinyint(1) DEFAULT '0',
  `MaterialThreshold` decimal(11,2) DEFAULT '10.00',
  `MaterialBelowThresholdSellFactor` decimal(11,2) DEFAULT '1.40',
  `MaterialAboveThresholdSellFactor` decimal(11,2) DEFAULT '1.30',
  PRIMARY KEY (`BranchID`),
  UNIQUE KEY `idxBranchPrefix` (`BranchPrefix`),
  UNIQUE KEY `idxBranchName` (`BranchName`),
  KEY `idxLanguageID` (`LanguageID`),
  KEY `idxCountryID` (`CountryID`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `branches`
--

LOCK TABLES `branches` WRITE;
/*!40000 ALTER TABLE `branches` DISABLE KEYS */;
INSERT INTO `branches` VALUES (1,'DEM','Demo','IT Partnership','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336400','01789 336400','helpme@itpartnership.com',NULL,NULL,'','jms@itpartnership.com','GB123456789','20.00',2,1,10011,2030,'GBP',1,1,NULL,NULL,30,'',NULL,'','','','','','','','','','','01','01','04','0001','0002','03','0002','12345678',0,'10.00','1.40','1.30');
/*!40000 ALTER TABLE `branches` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `business_types`
--

DROP TABLE IF EXISTS `business_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `business_types` (
  `BusinessTypeID` int(11) NOT NULL AUTO_INCREMENT,
  `BusinessTypeName` varchar(50) NOT NULL DEFAULT '',
  `BusinessTypeNominalCode` char(2) NOT NULL DEFAULT '',
  PRIMARY KEY (`BusinessTypeID`),
  UNIQUE KEY `idxBusinessTypeNominalCode` (`BusinessTypeNominalCode`),
  UNIQUE KEY `idxBusinessTypeName` (`BusinessTypeName`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `business_types`
--

LOCK TABLES `business_types` WRITE;
/*!40000 ALTER TABLE `business_types` DISABLE KEYS */;
INSERT INTO `business_types` VALUES (1,'Local Branch Business','01'),(2,'Web Based Business','02'),(3,'International Business','03'),(4,'Group Spares Supply','04');
/*!40000 ALTER TABLE `business_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
  `CategoryID` int(11) NOT NULL AUTO_INCREMENT,
  `CategoryName` varchar(20) NOT NULL DEFAULT '',
  `PublishToWeb` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`CategoryID`),
  UNIQUE KEY `idxCategoryName` (`CategoryName`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `categories`
--

LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` VALUES (0,'UNKNOWN',1),(1,'A/D Converter',1),(2,'AC Drive',1),(3,'AC Servo Drive',1),(4,'Actuator',1),(5,'Amplifier',1),(6,'Appliance Tester',1),(7,'ASCII Terminal',1),(8,'Atomizer',1),(9,'Audio Amplifier',1),(10,'AV',1),(11,'Inverter',1),(12,'RC Glider',1),(13,'Monitor',1),(14,'PC',1),(15,'PC Monitor',1),(16,'Test with new catego',1);
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `countries`
--

DROP TABLE IF EXISTS `countries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `countries` (
  `CountryID` int(11) NOT NULL AUTO_INCREMENT,
  `CountryName` varchar(100) DEFAULT NULL,
  `AgentID` int(11) DEFAULT NULL,
  `LanguageID` int(11) DEFAULT '1',
  `FlagImage` varchar(50) DEFAULT NULL,
  `ShortName` varchar(50) DEFAULT NULL,
  `ContinentID` int(11) DEFAULT '1',
  `Supported` tinyint(1) DEFAULT '0',
  `GeoIPCountryCode` char(2) DEFAULT NULL,
  `BranchID` int(11) DEFAULT NULL,
  `CurrencyCode` varchar(3) DEFAULT NULL,
  `OldEquipmentDiscount` decimal(11,2) NOT NULL DEFAULT '0.00',
  `NewEquipmentDiscount` decimal(11,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`CountryID`),
  KEY `idxContinentID` (`ContinentID`),
  KEY `idxLanguageID` (`LanguageID`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=267 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `countries`
--

LOCK TABLES `countries` WRITE;
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
INSERT INTO `countries` VALUES (1,'Afganistan',0,1,NULL,'',7,0,NULL,NULL,'CAD','0.00','0.00'),(2,'Albania',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(3,'Algeria',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(4,'American Samoa',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(5,'Andorra',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(6,'Angola',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(7,'Anguilla',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(8,'Antarctica',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(9,'Antigua and Barbuda',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(10,'Arctic Ocean',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(11,'Argentina',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(12,'Armenia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(13,'Aruba',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(14,'Ashmore and Cartier Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(15,'Australia',NULL,1,NULL,NULL,9,1,NULL,NULL,'AUD','0.00','0.00'),(16,'Austria',NULL,2,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(17,'Azerbaijan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(18,'Bahamas (The)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(19,'Bahrain',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(20,'Baker Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(21,'Bangladesh',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(22,'Barbados',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(23,'Bassas da India',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(24,'Belarus',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(25,'Belgium',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(26,'Belize',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(27,'Benin',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(28,'Bermuda',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(29,'Bhutan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(30,'Bolivia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(31,'Bosnia and Herzegovina',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(32,'Botswana',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(33,'Bouvet Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(34,'Brazil',NULL,8,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(35,'British Indian Ocean Territory',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(36,'British Virgin Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(37,'Brunei',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(38,'Bulgaria',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(39,'Burkina Faso',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(40,'Burma',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(41,'Burundi',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(42,'Cambodia',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(43,'Cameroon',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(44,'Canada',NULL,1,NULL,NULL,3,1,NULL,NULL,NULL,'0.00','0.00'),(45,'Cape Verde',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(46,'Cayman Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(47,'Central African Republic',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(48,'Chad',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(49,'Chile',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(50,'China',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(51,'Christmas Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(52,'Clipperton Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(53,'Cocos (Keeling) Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(54,'Colombia',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(55,'Comoros',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(56,'Congo (Democratic Republic of the)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(57,'Congo (Republic of the)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(58,'Cook Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(59,'Coral Sea Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(60,'Costa Rica',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(61,'Cote d\'Ivoire',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(62,'Croatia',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(63,'Cuba',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(64,'Cyprus',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(65,'Czech Republic',0,11,NULL,'',2,1,NULL,NULL,NULL,'0.00','0.00'),(66,'Denmark',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(67,'Djibouti',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(68,'Dominica',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(69,'Dominican Republic',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(70,'East Timor',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(71,'Ecuador',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(72,'Egypt',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(73,'El Salvador',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(74,'Equatorial Guinea',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(75,'Eritrea',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(76,'Estonia',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(77,'Ethiopia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(78,'Europa Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(79,'Falkland Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(80,'Faroe Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(81,'Fiji',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(82,'Finland',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(83,'France',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(84,'French Guiana',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(85,'French Polynesia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(86,'French Southern and Antarctic Lands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(87,'Gabon',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(88,'Gambia (The)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(89,'Gaza Strip',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(90,'Georgia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(91,'Germany',0,1,NULL,'',1,1,NULL,NULL,NULL,'0.00','0.00'),(92,'Ghana',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(93,'Gibraltar',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(94,'Glorioso Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(95,'Greece',NULL,1,NULL,NULL,2,1,NULL,NULL,'GBP','0.00','0.00'),(96,'Greenland',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(97,'Grenada',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(98,'Guadeloupe',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(99,'Guam',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(100,'Guatemala',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(101,'Guernsey',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(102,'Guinea',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(103,'Guinea-Bissau',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(104,'Guyana',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(105,'Haiti',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(106,'Heard Island and McDonald Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(107,'Vatican City',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(108,'Honduras',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(109,'Hong Kong',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(110,'Howland Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(111,'Hungary',0,13,NULL,'',2,1,NULL,NULL,NULL,'0.00','0.00'),(112,'Iceland',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(113,'India',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(114,'Indonesia',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(115,'Iran',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(116,'Iraq',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(117,'Ireland',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(118,'Israel',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(119,'Italy',NULL,9,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(120,'Jamaica',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(121,'Jan Mayen',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(122,'Japan',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(123,'Jarvis Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(124,'Jersey',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(125,'Johnston Atoll',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(126,'Jordan',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(127,'Juan de Nova Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(128,'Kazakhstan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(129,'Kenya',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(130,'Kingman Reef',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(131,'Kiribati',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(132,'Korea (North)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(133,'South Korea',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(134,'Kuwait',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(135,'Kyrgyzstan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(136,'Laos',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(137,'Latvia',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(138,'Lebanon',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(139,'Lesotho',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(140,'Liberia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(141,'Libya',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(142,'Liechtenstein',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(143,'Lithuania',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(144,'Luxembourg',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(145,'Macau',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(146,'Macedonia (The Former Yugoslav Republic of)',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(147,'Madagascar',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(148,'Malawi',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(149,'Malaysia',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(150,'Maldives',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(151,'Mali',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(152,'Malta',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(153,'Mann (Isle of)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(154,'Marshall Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(155,'Martinique',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(156,'Mauritania',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(157,'Mauritius',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(158,'Mayotte',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(159,'Mexico',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(160,'Micronesia (Federated States of)',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(161,'Midway Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(162,'Moldova',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(163,'Monaco',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(164,'Mongolia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(165,'Montserrat',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(166,'Morocco',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(167,'Mozambique',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(168,'Namibia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(169,'Nauru',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(170,'Navassa Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(171,'Nepal',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(172,'Netherlands',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(173,'Netherlands Antilles',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(174,'New Caledonia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(175,'New Zealand',NULL,1,NULL,NULL,9,1,NULL,NULL,NULL,'0.00','0.00'),(176,'Nicaragua',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(177,'Niger',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(178,'Nigeria',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(179,'Niue',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(180,'Norfolk Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(181,'Northern Mariana Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(182,'Norway',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(183,'Oman',0,1,NULL,'',6,1,NULL,NULL,NULL,'0.00','0.00'),(184,'Pakistan',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(185,'Palau',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(186,'Palmyra Atoll',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(187,'Panama',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(188,'Papua New Guinea',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(189,'Paracel Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(190,'Paraguay',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(191,'Peru',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(192,'Philippines',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(193,'Pitcairn Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(194,'Poland',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(195,'Portugal',0,8,NULL,'',1,1,NULL,NULL,NULL,'0.00','0.00'),(196,'Puerto Rico',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(197,'Qatar',0,1,NULL,'',6,1,NULL,NULL,NULL,'0.00','0.00'),(198,'Reunion',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(199,'Romania',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(200,'Russia',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(201,'Rwanda',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(202,'Saint Helena',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(203,'Saint Kitts and Nevis',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(204,'Saint Lucia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(205,'Saint Pierre and Miquelon',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(206,'Saint Vincent and the Grenadines',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(207,'Samoa',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(208,'San Marino',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(209,'Sao Tome and Principe',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(210,'Saudi Arabia',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(211,'Senegal',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(212,'Serbia & Montenegro',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(213,'Seychelles',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(214,'Sierra Leone',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(215,'Singapore',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(216,'Slovakia',0,12,NULL,'',2,1,NULL,NULL,NULL,'0.00','0.00'),(217,'Slovenia',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(218,'Solomon Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(219,'Somalia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(220,'South Africa',NULL,1,NULL,NULL,5,1,NULL,NULL,NULL,'0.00','0.00'),(221,'South Georgia and the South Sandwich Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(222,'Southern Ocean',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(223,'Spain',0,1,NULL,'',1,1,NULL,NULL,NULL,'0.00','0.00'),(224,'Spratly Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(225,'Sri Lanka',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(226,'Sudan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(227,'Suriname',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(228,'Svalbard',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(229,'Swaziland',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(230,'Sweden',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(231,'Switzerland',NULL,1,NULL,NULL,1,1,NULL,NULL,NULL,'0.00','0.00'),(232,'Syria',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(233,'Tajikistan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(234,'Tanzania',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(235,'Thailand',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(236,'Togo',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(237,'Tokelau',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(238,'Tonga',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(239,'Trinidad and Tobago',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(240,'Tromelin Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(241,'Tunisia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(242,'Turkey',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(243,'Turkmenistan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(244,'Turks and Caicos Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(245,'Tuvalu',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(246,'Uganda',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(247,'Ukraine',NULL,1,NULL,NULL,2,1,NULL,NULL,NULL,'0.00','0.00'),(248,'United Arab Emirates',0,1,NULL,'UAE',6,1,NULL,NULL,NULL,'0.00','0.00'),(249,'United Kingdom',NULL,1,NULL,'UK: Mids & North',1,1,'GB',1,'GBP','0.00','0.00'),(250,'United States of America',NULL,1,NULL,'USA',3,1,NULL,NULL,'USD','0.00','0.00'),(251,'Uruguay',NULL,1,NULL,NULL,4,1,NULL,NULL,NULL,'0.00','0.00'),(252,'Uzbekistan',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(253,'Vanuatu',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(254,'Venezuela',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(255,'Vietnam',NULL,1,NULL,NULL,8,1,NULL,NULL,NULL,'0.00','0.00'),(256,'Virgin Islands',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(257,'Wake Island',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(258,'Wallis and Futuna',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(259,'West Bank',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(260,'Western Sahara',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(261,'Yemen',NULL,1,NULL,NULL,6,1,NULL,NULL,NULL,'0.00','0.00'),(262,'Zambia',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(263,'Zimbabwe',NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,'0.00','0.00'),(264,'Taiwan',NULL,1,NULL,NULL,7,1,NULL,NULL,NULL,'0.00','0.00'),(265,'UK: Wales & South East',NULL,1,NULL,'UK: Wales & SE',1,1,NULL,1,'GBP','0.00','0.00'),(266,'UK: Northern Ireland',NULL,1,NULL,'UK: NI',1,1,NULL,1,'GBP','0.00','0.00');
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `currencies`
--

DROP TABLE IF EXISTS `currencies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `currencies` (
  `CurrencyCode` varchar(3) NOT NULL DEFAULT '',
  `CurrencyName` varchar(30) NOT NULL DEFAULT '',
  `CurrencySymbol` varchar(3) DEFAULT NULL,
  `ExchangeRate` double NOT NULL,
  PRIMARY KEY (`CurrencyCode`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `currencies`
--

LOCK TABLES `currencies` WRITE;
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
INSERT INTO `currencies` VALUES ('AUD','Australian Dollars','$',1.58),('CAD','Canadian Dollars','$',1.61),('EUR','Euros','€',1.15),('GBP','Pounds Sterling','£',1),('USD','US Dollars','$',1.55);
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_account_numbers`
--

DROP TABLE IF EXISTS `customer_account_numbers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_account_numbers` (
  `CustomerID` int(11) NOT NULL,
  `CurrencyCode` varchar(3) NOT NULL DEFAULT '',
  `AccountNo` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`CustomerID`,`CurrencyCode`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_account_numbers`
--

LOCK TABLES `customer_account_numbers` WRITE;
/*!40000 ALTER TABLE `customer_account_numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_account_numbers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_contacts`
--

DROP TABLE IF EXISTS `customer_contacts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_contacts` (
  `ContactID` int(11) NOT NULL AUTO_INCREMENT,
  `CustomerID` int(11) NOT NULL,
  `Title` varchar(4) DEFAULT NULL,
  `FirstName` varchar(15) DEFAULT NULL,
  `Surname` varchar(20) DEFAULT NULL,
  `JobTitle` varchar(30) DEFAULT NULL,
  `Tel` varchar(20) DEFAULT NULL,
  `TelExtension` varchar(10) DEFAULT NULL,
  `Mobile` varchar(20) DEFAULT NULL,
  `Fax` varchar(15) DEFAULT NULL,
  `Notes` mediumtext,
  `Email` varchar(100) DEFAULT NULL,
  `Active` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`ContactID`),
  KEY `idxSurname` (`Surname`),
  KEY `idxCustomerID` (`CustomerID`)
) ENGINE=MyISAM AUTO_INCREMENT=5020 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_contacts`
--

LOCK TABLES `customer_contacts` WRITE;
/*!40000 ALTER TABLE `customer_contacts` DISABLE KEYS */;
INSERT INTO `customer_contacts` VALUES (1001,5000,'Mr','Neil','Stainton','Manager','01789 336400',NULL,NULL,NULL,NULL,'neil@itpartnership.com',1),(1002,5000,'Mr','Surinder','Singh','Programmer','01789 336400',NULL,NULL,'',NULL,'surinder@itpartnership.com;surinder@ssbsoft.co.uk',1),(5002,5001,'Mr','Neil','Stainton','Manager','01789 336166',NULL,NULL,NULL,NULL,'sales@hyperflight.co.uk',1),(5003,5002,'Mr','David','Cameron','Prime Minister',NULL,NULL,NULL,NULL,NULL,NULL,1),(5004,5003,'Mr','Bill','Gates','Chairman','0844 800 2400',NULL,NULL,NULL,NULL,'bill.gates@microsoft.com;',1),(5005,5003,'Mr','Steve','Ballmer','CEO','0844 800 2400',NULL,NULL,NULL,NULL,'steve.ballmer@microsoft.com',1),(5006,5004,'Mr','Steve','Jobs','CEO','(877) 412-7753',NULL,NULL,NULL,NULL,'steve.jobs@apple.com',1),(5007,5005,NULL,'Anders','Hejlsber','Programmer','1.877.783.5332',NULL,NULL,NULL,NULL,'anders.hejlsber@embarcadero.com',1),(5008,5006,'Mr','Gordon','Moore','Retired',NULL,NULL,NULL,NULL,NULL,'gordon.moore@intel.com',1),(5009,5006,'Mr','Robert','Noyce','RIP',NULL,NULL,NULL,NULL,NULL,'robert.noyce@intel.com',1),(5010,5007,'Mr','Jerry','Sanders','CEO','01276 803100',NULL,NULL,NULL,NULL,'jerry.sanders@amd.com',1),(5011,5007,'Mr','Jack','Gifford','CEO','01276 803100',NULL,NULL,NULL,NULL,'jack.giffford@amd.com',1),(5012,5007,'Mr','Edwin','Turney','RIP','01276 803100',NULL,NULL,NULL,NULL,'edwin.turney@amd.com',1),(5013,5008,'Mr','John','Acrobat','Reader','01628 590 000',NULL,NULL,NULL,NULL,'john.acrobat@adobe.com',1),(5014,5008,'Miss','Jane','Photoshop','Designer','01628 590 000',NULL,NULL,NULL,NULL,'jane.photoshop@adobe.com',1),(5015,5009,'Mr','Larry','Page','Computer Scientist',NULL,NULL,NULL,NULL,NULL,'larry.page@google.com',1),(5016,5009,'Mr','Sergey','Brin','Internet Entrepreneur',NULL,NULL,NULL,NULL,NULL,'sergey.brin@google.com',1),(5017,5010,'Mr','Stefan','Quandt','Engineer/Owner',NULL,NULL,NULL,NULL,NULL,'stefan.quandt@bmw.de',1),(5018,5010,'Miss','Johanna','Quandt','Owner',NULL,NULL,NULL,NULL,NULL,'johanna.quandt@bmw.de',1),(5019,5010,'Mrs','Susanne','Klatten','Owner',NULL,NULL,NULL,NULL,NULL,'susanne.klatten@bmw.de',1);
/*!40000 ALTER TABLE `customer_contacts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_discounts`
--

DROP TABLE IF EXISTS `customer_discounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_discounts` (
  `CustomerID` int(11) NOT NULL,
  `JobTypeID` smallint(6) NOT NULL,
  `DiscountRate` decimal(5,2) DEFAULT NULL,
  PRIMARY KEY (`CustomerID`,`JobTypeID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_discounts`
--

LOCK TABLES `customer_discounts` WRITE;
/*!40000 ALTER TABLE `customer_discounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_discounts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_sales_info`
--

DROP TABLE IF EXISTS `customer_sales_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_sales_info` (
  `CustomerID` int(11) NOT NULL,
  `DateEntered` date NOT NULL,
  `Notes` mediumtext,
  `FollowupDate` date DEFAULT NULL,
  `FollowupDoneDate` date DEFAULT NULL,
  `FollowupByID` int(11) DEFAULT NULL,
  PRIMARY KEY (`CustomerID`,`DateEntered`),
  KEY `idxFollowupByID` (`FollowupByID`),
  KEY `idxFollowupDate` (`FollowupDate`),
  KEY `idxFollowupDoneDate` (`FollowupDoneDate`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_sales_info`
--

LOCK TABLES `customer_sales_info` WRITE;
/*!40000 ALTER TABLE `customer_sales_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_sales_info` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_site_survey`
--

DROP TABLE IF EXISTS `customer_site_survey`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_site_survey` (
  `CustomerSiteSurveyID` int(11) NOT NULL AUTO_INCREMENT,
  `CustomerID` int(11) NOT NULL,
  `CategoryID` int(11) NOT NULL,
  `ManufacturerID` int(11) NOT NULL,
  `Notes` text,
  PRIMARY KEY (`CustomerSiteSurveyID`),
  KEY `idxCustomerID` (`CustomerID`),
  KEY `idxCategoryID` (`CategoryID`),
  KEY `idxManufacturerID` (`ManufacturerID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_site_survey`
--

LOCK TABLES `customer_site_survey` WRITE;
/*!40000 ALTER TABLE `customer_site_survey` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_site_survey` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_types`
--

DROP TABLE IF EXISTS `customer_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_types` (
  `TypeID` varchar(1) NOT NULL DEFAULT '',
  `Type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`TypeID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_types`
--

LOCK TABLES `customer_types` WRITE;
/*!40000 ALTER TABLE `customer_types` DISABLE KEYS */;
INSERT INTO `customer_types` VALUES ('C','Customer'),('P','Prospect'),('S','Special');
/*!40000 ALTER TABLE `customer_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customers`
--

DROP TABLE IF EXISTS `customers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customers` (
  `CustomerID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `CustomerName` varchar(60) DEFAULT NULL,
  `DeliveryAddr1` varchar(50) DEFAULT NULL,
  `DeliveryAddr2` varchar(50) DEFAULT NULL,
  `DeliveryAddr3` varchar(50) DEFAULT NULL,
  `DeliveryAddr4` varchar(50) DEFAULT NULL,
  `DeliveryAddr5` varchar(50) DEFAULT NULL,
  `DeliveryPostcode` varchar(8) DEFAULT NULL,
  `DeliveryCountryID` int(11) NOT NULL,
  `DeliveryTel` varchar(50) DEFAULT NULL,
  `DeliveryFax` varchar(50) DEFAULT NULL,
  `Email` varchar(100) DEFAULT NULL,
  `InvoiceCustomerName` varchar(60) DEFAULT NULL,
  `InvoiceAddr1` varchar(50) DEFAULT NULL,
  `InvoiceAddr2` varchar(50) DEFAULT NULL,
  `InvoiceAddr3` varchar(50) DEFAULT NULL,
  `InvoiceAddr4` varchar(50) DEFAULT NULL,
  `InvoiceAddr5` varchar(50) DEFAULT NULL,
  `InvoicePostcode` varchar(8) DEFAULT NULL,
  `InvoiceCountryID` int(11) NOT NULL,
  `InvoiceTel` varchar(50) DEFAULT NULL,
  `InvoiceFax` varchar(50) DEFAULT NULL,
  `CustomerType` varchar(1) DEFAULT NULL,
  `GroupID` int(11) DEFAULT NULL,
  `SalesAreaID` int(11) DEFAULT NULL,
  `Stopped` tinyint(1) DEFAULT '0',
  `DoNotUse` tinyint(1) DEFAULT '0',
  `NewCustomer` tinyint(1) DEFAULT '0',
  `QuoteRequired` tinyint(1) DEFAULT '1',
  `EngineerReportRequired` tinyint(1) DEFAULT '0',
  `OrderNoRequired` tinyint(1) DEFAULT '0',
  `BlanketOrderNo` varchar(35) DEFAULT NULL,
  `AccountNo` varchar(20) DEFAULT NULL,
  `Area` varchar(20) DEFAULT NULL,
  `SpecialPricingInfo` mediumtext,
  `SpecialInfo` mediumtext,
  `DeliveryInstructions` mediumtext,
  `VATRate` decimal(4,2) DEFAULT NULL,
  `VATIDNumber` varchar(30) DEFAULT NULL,
  `VATIDNumber2` varchar(30) DEFAULT NULL,
  `QuoteCurrencyCode` varchar(3) DEFAULT NULL,
  `InvoiceCurrencyCode` varchar(3) DEFAULT NULL,
  `LanguageID` int(11) DEFAULT NULL,
  `OldCustomerID` varchar(10) DEFAULT NULL,
  `IndustryTypeID` int(11) DEFAULT NULL COMMENT 'For CRM system',
  `CustomerClassID` int(11) DEFAULT '3' COMMENT 'For CRM system',
  `NextCallDateTime` datetime DEFAULT NULL COMMENT 'For CRM system',
  `NewCustomerPackSent` tinyint(1) DEFAULT '0' COMMENT 'For CRM system',
  `InfoPackSent` tinyint(1) DEFAULT '0' COMMENT 'For CRM system',
  `ContractStatusID` int(11) DEFAULT NULL COMMENT 'For CRM system',
  `ContractStatusChangeDateTime` datetime DEFAULT NULL COMMENT 'For CRM system',
  `ContractStatusChangeUserID` tinyint(1) DEFAULT NULL COMMENT 'For CRM system',
  `CustomerInfo` mediumtext COMMENT 'For CRM system',
  `HasAccount` tinyint(1) DEFAULT '0',
  `PaymentDays` smallint(6) DEFAULT NULL,
  `PaymentTermsText` mediumtext,
  `CollectionWaiting` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`CustomerID`),
  KEY `idxSalesAreaCustomer` (`SalesAreaID`,`CustomerName`),
  KEY `idxCustomerName` (`CustomerName`),
  KEY `idxArea` (`Area`),
  KEY `idxGroupID` (`GroupID`),
  KEY `idxSalesAreaID` (`SalesAreaID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxOldCustomerID` (`OldCustomerID`),
  KEY `idxNextCallDateTime` (`NextCallDateTime`),
  KEY `idxNewCustomerPackSent` (`NewCustomerPackSent`),
  KEY `idxInfoPackSent` (`InfoPackSent`),
  KEY `idxIndustryTypeID` (`IndustryTypeID`),
  KEY `idxTypeAreaCustomer` (`CustomerType`,`SalesAreaID`,`CustomerName`),
  KEY `idxCustomerTypeName` (`CustomerType`,`CustomerName`),
  KEY `idxLanguageID` (`LanguageID`),
  KEY `idxDeliveryCountryID` (`DeliveryCountryID`),
  KEY `idxInvoiceCountryID` (`InvoiceCountryID`)
) ENGINE=MyISAM AUTO_INCREMENT=5011 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customers`
--

LOCK TABLES `customers` WRITE;
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
INSERT INTO `customers` VALUES (5000,1,'IT Partnership','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336400','','helpme@itpartnership.com','IT Partnership','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336400',NULL,'C',1,1,0,0,0,1,0,0,NULL,'10005000','Warwickshire',NULL,NULL,NULL,'17.50',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5001,1,'Hyperflight','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336166','01789 336166',NULL,'Hyperflight','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336166','01789 336166','C',1,1,0,0,0,1,0,0,NULL,'SL100','Warwickshire',NULL,NULL,NULL,'20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5002,1,'Prime Minister','10 Downing Street','London','','','','SW1A 2AA',249,'','020 7925 0918',NULL,'Prime Minister','10 Downing Street','London',NULL,NULL,NULL,'SW1A 2AA',249,NULL,'020 7925 0918','S',1,7,0,0,0,0,0,0,NULL,'10005002','London',NULL,NULL,NULL,'20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5003,1,'Microsoft Limited','Microsoft Campus','Thames Valley Park','Reading','Berkshire','','RG6 1WG',249,'0844 800 2400','0870 60 20 100',NULL,'Microsoft Limited','Microsoft Campus','Thames Valley Park','Reading','Berkshire',NULL,'RG6 1WG',249,'0844 800 2400','0870 60 20 100','C',2,2,0,0,0,1,0,0,NULL,'10005003','Berkshire',NULL,NULL,'Just testing','20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5004,1,'Apple','1 Infinite Loop','Cupertino','','','','CA 95014',250,'(877) 412-7753','',NULL,'Apple','1 Infinite Loop','Cupertino',NULL,NULL,NULL,'CA 95014',250,'(877) 412-7753',NULL,'C',3,8,0,0,0,1,0,0,NULL,'10005004','US',NULL,NULL,NULL,'20.00',NULL,NULL,'USD','USD',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5005,1,'Embarcadero Technologies','100 California Street, 12th Floor','San Francisco','','','','CA 94111',250,'415.834.3131','',NULL,'Embarcadero Technologies','100 California Street, 12th Floor','San Francisco',NULL,NULL,NULL,'CA 94111',250,'415.834.3131',NULL,'C',3,8,0,0,0,1,0,0,NULL,'10005005','US',NULL,NULL,NULL,'20.00',NULL,NULL,'USD','USD',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5006,1,'Intel Corporation','Unit 2B, Elstree Business Centre','Elstree Way','Borehamwood','Hertfordshire','','WD6 1RX',249,'','',NULL,'Intel Corporation','Unit 2B, Elstree Business Centre','Elstree Way','Borehamwood','Hertfordshire',NULL,'WD6 1RX',249,NULL,NULL,'C',1,2,0,0,0,1,0,0,NULL,'10005006','Hertfordshire',NULL,NULL,NULL,'20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5007,1,'AMD UK Ltd','The Coliseum','Riverside Way','Watchmoor Park','Camberley','Surrey','GU15 3YL',249,'01276 803100','01276 684127',NULL,'AMD UK Ltd','The Coliseum','Riverside Way','Watchmoor Park','Camberley','Surrey','GU15 3YL',249,'01276 803100','01276 684127','C',2,7,0,0,0,1,0,0,NULL,'10005007','Surrey',NULL,NULL,NULL,'20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5008,1,'Adobe Systems Europe Ltd','Market House','34-38 Market Street','Maidenhead','Berkshire','','SL6 8AD',249,'01628 590 000','01628 590 100',NULL,'Adobe Systems Europe Ltd','Market House','34-38 Market Street','Maidenhead','Berkshire',NULL,'SL6 8AD',249,'01628 590 000','01628 590 100','P',1,4,0,0,0,1,0,0,NULL,'10005008',NULL,NULL,NULL,NULL,'20.00',NULL,NULL,'GBP','GBP',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5009,1,'Google','Googleplex','1600 Amphitheatre Parkway','Mountain View','','','CA 94043',250,'','',NULL,'Google','Googleplex','1600 Amphitheatre Parkway','Mountain View',NULL,NULL,'CA 94043',250,NULL,NULL,'C',3,8,0,0,0,1,0,0,NULL,'10005009','US',NULL,NULL,NULL,'20.00',NULL,NULL,'CAD','CAD',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0),(5010,1,'BMW','BMW Complex','Petuelring 130','Milbertshofen-Am Hart','Munich','Bavaria','80788',91,'','',NULL,'BMW','BMW Complex','Petuelring 130','Milbertshofen-Am Hart','Munich','Bavaria','80788',91,NULL,NULL,'C',1,8,0,0,0,1,0,0,NULL,'10005010','Europe',NULL,NULL,NULL,'20.00',NULL,NULL,'EUR','EUR',1,NULL,NULL,3,NULL,0,0,NULL,NULL,NULL,NULL,0,30,NULL,0);
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_manifests`
--

DROP TABLE IF EXISTS `delivery_manifests`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_manifests` (
  `ManifestID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `DateTimeCreated` datetime NOT NULL,
  `CreatedByID` int(11) NOT NULL,
  `Description` varchar(255) DEFAULT NULL,
  `ExternalCourier` tinyint(1) NOT NULL DEFAULT '0',
  `CourierName` varchar(50) DEFAULT NULL,
  `TrackingNo` varchar(50) DEFAULT NULL,
  `TrackingURL` varchar(255) DEFAULT NULL,
  `Completed` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ManifestID`),
  KEY `idxCompleted` (`Completed`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxCreatedByID` (`CreatedByID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_manifests`
--

LOCK TABLES `delivery_manifests` WRITE;
/*!40000 ALTER TABLE `delivery_manifests` DISABLE KEYS */;
INSERT INTO `delivery_manifests` VALUES (1,1,'2012-02-10 16:19:48',1,NULL,0,NULL,NULL,NULL,0),(3,1,'2012-02-13 09:38:50',5,NULL,0,NULL,NULL,NULL,0),(4,1,'2012-05-30 11:56:13',1,NULL,1,NULL,NULL,NULL,0);
/*!40000 ALTER TABLE `delivery_manifests` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `departments`
--

DROP TABLE IF EXISTS `departments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `departments` (
  `DepartmentID` int(11) NOT NULL AUTO_INCREMENT,
  `DepartmentName` varchar(50) NOT NULL DEFAULT '',
  `DepartmentNominalCode` char(2) NOT NULL DEFAULT '',
  `SalesLedger` tinyint(1) NOT NULL DEFAULT '0',
  `PurchaseLedger` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`DepartmentID`),
  UNIQUE KEY `idxDepartmentNominalCode` (`DepartmentNominalCode`),
  UNIQUE KEY `idxDepartmentName` (`DepartmentName`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `departments`
--

LOCK TABLES `departments` WRITE;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
INSERT INTO `departments` VALUES (1,'Sales Team Costs','01',0,1),(2,'Customer Service Team Costs','02',0,1),(3,'Workshop Costs','03',0,1),(4,'Logistics Costs','04',1,1),(5,'Overheads','05',0,1);
/*!40000 ALTER TABLE `departments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `equipment`
--

DROP TABLE IF EXISTS `equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equipment` (
  `EquipmentID` int(11) NOT NULL AUTO_INCREMENT,
  `CategoryID` int(11) NOT NULL,
  `ManufacturerID` int(11) NOT NULL,
  `ModelNumber` varchar(100) DEFAULT NULL COMMENT 'SS,23/4/08 Resized from 35 to 100 as requested by Lektronix',
  `Description` varchar(255) DEFAULT NULL COMMENT 'SS,23/4/08 Resized from 50 to 255 as requested by Lektronix',
  `Active` tinyint(1) NOT NULL DEFAULT '1',
  `Notes` mediumtext,
  `ExportToPriceList` tinyint(1) NOT NULL DEFAULT '1',
  `OurBoughtInPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT 'SS,23/4/08 New field requested by Lektronix',
  `OurNewEquipSellPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT 'SS,23/4/08 New field requested by Lektronix',
  `OurRefurbPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT 'SS,23/4/08 Renamed from SellPrice as requested by Lektronix',
  `OurRepairPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT 'SS,23/4/08 Renamed from RepairPrice as requested by Lektronix',
  `OurServiceExPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT 'SS,23/4/08 Renamed from ServiceExPrice as requested by Lektronix',
  `OEMListPrice` decimal(11,2) NOT NULL DEFAULT '0.00',
  `OEMRepairPrice` decimal(11,2) NOT NULL DEFAULT '0.00',
  `OEMServiceExPrice` decimal(11,2) NOT NULL DEFAULT '0.00',
  `NetWeight` decimal(8,2) NOT NULL DEFAULT '0.00',
  `GrossWeight` decimal(8,2) NOT NULL DEFAULT '0.00',
  `CountryOfOrigin` varchar(200) DEFAULT NULL,
  `CommodityCode` varchar(200) DEFAULT NULL,
  `ModelNoAlphanumeric` varchar(35) DEFAULT NULL,
  `ModelNoNumeric` varchar(35) DEFAULT NULL,
  `BranchID` int(11) DEFAULT NULL,
  `OldEquipmentID` int(11) DEFAULT NULL,
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `LastUpdatedUserID` int(11) DEFAULT NULL,
  `PickOfTheWeek` tinyint(1) DEFAULT '0',
  `NewItem` tinyint(1) DEFAULT '0',
  `ClearanceStock` tinyint(1) DEFAULT '0',
  `SpecialOffer` tinyint(1) DEFAULT '0',
  `PublishToWebsite` tinyint(1) DEFAULT '1' COMMENT 'Added by JMS. SS,14/2/08 added to ITP version.',
  `StockLevel` int(12) DEFAULT NULL COMMENT 'Added by JMS. SS,14/2/08 added to ITP version.',
  `RefurbAvailable` tinyint(1) DEFAULT '1' COMMENT 'New field requested by Lektronix',
  `ServiceExAvailable` tinyint(1) DEFAULT '1' COMMENT 'New field requested by Lektronix',
  `RepairAvailable` tinyint(1) DEFAULT '1' COMMENT 'New field requested by Lektronix',
  `NewAvailable` tinyint(1) DEFAULT '1' COMMENT 'New field requested by Lektronix',
  `Condition5` tinyint(1) DEFAULT '0' COMMENT 'New field requested by Lektronix',
  `ViewCount` int(11) DEFAULT '0' COMMENT 'SS,23/4/08 New field requested by Lektronix',
  `AlternateCategoryID` int(11) DEFAULT NULL COMMENT 'SS,23/4/08 New field requested by Lektronix',
  `PreferredSupplierID` int(11) DEFAULT NULL COMMENT 'SS,23/4/08 New field requested by Lektronix',
  PRIMARY KEY (`EquipmentID`),
  KEY `idxCategoryID` (`CategoryID`),
  KEY `idxManufacturerID` (`ManufacturerID`),
  KEY `idxModelNumber` (`ModelNumber`),
  KEY `idxDescription` (`Description`),
  KEY `idxModelNoAlphanumeric` (`ModelNoAlphanumeric`),
  KEY `idxModelNoNumeric` (`ModelNoNumeric`),
  KEY `idxLastUpdatedUserID` (`LastUpdatedUserID`),
  KEY `idxAlternateCategoryID` (`AlternateCategoryID`),
  KEY `idxPreferredSupplierID` (`PreferredSupplierID`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `equipment`
--

LOCK TABLES `equipment` WRITE;
/*!40000 ALTER TABLE `equipment` DISABLE KEYS */;
INSERT INTO `equipment` VALUES (0,0,0,'UNKNOWN','UNKNOWN',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,NULL,0,0,0,0,0,0,NULL,NULL),(1,9,11,'QS606','Power Amplifier',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'QS606','606',1,NULL,'2011-11-28 19:45:26',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(3,10,2,'PP123','800W PSU',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'PP123','123',1,NULL,'2011-12-16 08:25:01',5,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(4,5,18,'kW','kW Limited Edition Power Amplifier',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'kW','',1,NULL,'2011-12-16 08:28:01',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(5,11,12,'6SE6510-2BB11-2AA0','Micromaster 410 inverter\r\n',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'6SE65102BB112AA0','6651021120',1,NULL,'2012-02-09 17:53:37',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(15,0,0,'Test','Test desc',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Test','',1,NULL,'2012-03-29 12:38:24',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(16,16,12,'Test 123','Test with new category',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Test123','123',1,NULL,'2012-03-29 12:41:55',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(6,3,13,'ASDA-A2-U','Delta ASDA-A2 Servo Drive',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'ASDAA2U','2',1,NULL,'2012-02-09 18:38:20',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(11,11,19,'171','INVERTER',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'171','171',1,NULL,'2012-02-17 08:35:33',5,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(7,12,14,'Blaster 3 DLG','RC Glider Blaster 3 DLG',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Blaster3DLG','3',1,NULL,'2012-02-09 18:42:06',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(12,2,6,'Add new test','just testing',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Addnewtest','',1,NULL,'2012-03-28 18:56:14',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(13,4,7,'Add new test','Just testing',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Addnewtest','',1,NULL,'2012-03-28 18:57:31',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(8,15,15,'LED 27\"','LED Cinema Display (27\" flat panel) 2560-by-1440 resolution',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'LED27','27',1,NULL,'2012-02-10 13:37:27',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(14,3,5,'add new test','just testing',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'addnewtest','',1,NULL,'2012-03-28 19:01:49',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(9,14,16,'Vostro 460 MT abcdef','Vostro Desktop 460 MT',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Vostro460MTabcdef','460',1,NULL,'2012-02-10 14:04:40',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(10,15,17,'HZ281HPB','28\" True HD Widescreen LCD Monitor',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'HZ281HPB','281',1,NULL,'2012-02-10 14:22:13',4,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(17,5,20,'Test manu','Description test with new manufacturer',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'Testmanu','',1,NULL,'2012-03-29 12:42:56',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(18,0,0,'74LS1234','op amp',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'74LS1234','741234',1,NULL,'2012-03-30 10:15:53',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL),(19,9,21,'DX101','100W Audio Amp',1,NULL,1,'0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00',NULL,NULL,'DX101','101',1,NULL,'2012-03-30 10:40:16',1,0,0,0,0,1,NULL,1,1,1,1,0,0,NULL,NULL);
/*!40000 ALTER TABLE `equipment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `equipment_photos`
--

DROP TABLE IF EXISTS `equipment_photos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equipment_photos` (
  `EquipmentPhotoID` int(11) NOT NULL AUTO_INCREMENT,
  `EquipmentID` int(11) DEFAULT NULL,
  `Name` varchar(80) DEFAULT NULL,
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  `Photo` longblob,
  PRIMARY KEY (`EquipmentPhotoID`),
  KEY `idxEquipmentID` (`EquipmentID`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `equipment_photos`
--

LOCK TABLES `equipment_photos` WRITE;
/*!40000 ALTER TABLE `equipment_photos` DISABLE KEYS */;
INSERT INTO `equipment_photos` VALUES (1,5,'CD431891-63',0,'���\0JFIF\0\0\"�\0\0��\0C\0	\Z!\Z\"$\"$��\0C��\0�\"\0��\0\0\0\0\0\0\0\0\0\0\0\0\0\0��\0\0\0\0\0\0\0\0\0\0\0\0��\0\0\0\0�@@D\0@\0�*��RQ@@\0\0D@AD@AD\nG0eC%��yh��jդ�Z-���	\0Q\0\0\0\0\0ʈW69Z�\Z�\nX��2�MSX��.Ʃb�t���\0\0�8��G:�2lp�҉l�Ke�r�!)9�P�y}[y\0\0\0P3c�γ�\ZsZ�fp�j\\k�U,�.�~YFЏ%7�\nY�e��� \0\0\ncǒgP�J8x�V�T�\"�VKK�J�,Q��:�ѳ=R2�\\�\0����Z�\0� �ʢ��IVr�(�}Lsr�geC9R2�\\�\0\0\0����i�1�b[Tl)0�ӗ�M�)�ʑ�^��������yLЍ9�t2�vZ6eŲ�ꊮp$�-�z�۲�����7�\0\0�sxe\0\Z���ȯQ)%�uiEW?+E��6�ϊSQ#,��AF�No,dt�A�ql�\\F�+�X�eQŠ�]�g\\l�mS͈�S�5D(Ǟ�Y�b�����6�HD\'X��I,I\"�b��2ѱym�[&��qZj/k>���f��Y�XR{-���0�XXR!�l�22s>ZC�E��Ӫ	�I���4�\r�s����H��\Z����.jBJ]-� H^1e�X+�k�ƅ�Q��k�=�gG��ic�11:�rR��\0]��K(�9�j��˅��\"�#�bk�v��-�W�礚r�28}J�$�\"H(�+��s1\\u0��_..�[D��\Z��iX���VfY�4�2�@UTUr$�5*����-�U�eh�[K��!,4��{ZÏ\ZΛH��%]��I9�Ѯ�e��]b���e6���ΪYXDeDiKpԉ��H\r]綬8��\")�\r�DB�\"�0����ΪY��	L4e�iŒjx\Zz�sXq�9�R\"\n \0�\0\0(��)\\Ֆ�N������Z%\n~m�g��ŏΛ` �mz~e���_:���E~^��2¹/’J❖\"u��\\�].�1d��=yďΒ�I�J��⿮v	n-/6fy��=��R��V\nK*���\n�]��նE�jzV�/�䖐X�� �*DYs�cֺ[����p�\"/�yv�L���F���,�1��%)@@��(�\0dYW���WAw#T��f�^��8���R� �H�D\0ie\\fYnV\"-�Hލr�Ti$��O�qc��R��RAD\n\n �BP�q�e�Z�@荈ϲ�I�z�L�G��M�!�Q\0AhQ@A �UQ�BT\",Κ6�Ԩ����3�-�6�\0��JPD\0\0�•�#�-��2e��Ig�t�,x�t����h)a)@A@\0W����Bܷ׫�r�ijћcS�w�H�l�\nH-D@�Z!)@@Dt�ë>��a�Az�6�Ė�.m�OD�q#Ŧ�VȀ��\0� ���.ː�|����f�E�-�OB�qcŦ�D�����AD	S��!�e�Ti9�/V��cK\0�m��=3�/4��+l%DQ\0���I(H��zT#,��	�c��f����ďΒ�)�D\0DBP(JTK+	\Z\\]	zt�2�,�Z��g<Zi @�� \0\0\0�J�b�)^ŋ�~^�.��,�Z���ď�I@J ��J ��`S5,���mte���Hl��z�/�6�\0\Z (�\0 P,%��0β�@��\rz�Ueq.Vu=�q#ų�,E$A�\0@$R��r�`З}%�%��+z���8q��[5\0�� \0�\n\0 U�%2ܭ\"Kk�.�LF�$��}�4c�3jV��Z��A\0@\0�BUBB�Tq}oK��Y	������(�Y���\"���	\0 \n43*CJYEZjV�b��.䒍YI2�����(���APl� \0\0v<՚�g�IT�qt\r��0q>m�N�k�?��8p�B\r\0\0A�Z��t6�ڴ!4X[��^X�Z\Z��L��9���UȀp�p��D���(��a���V�&��F�c\r=NצP���Z���b\"9tIk�YbBQ�8h�:��f��e�Me���8����L��[H*��cW!\nh��fYN�4h�Hy$XY���d�yo�����5����a�!�gU�JOG*r�h�jP�SS6\n�1+U�����(��;^��HpثkF�RE��ŦUO���B\n���ͫY6Y .K1|��T�]v��%S����.�`��\0C(�QB4�Ի��fZՑe�Ey1u{�:-�*AD��\"i�vp��5�ܹD��D�@h��ږ�d٥,`J_;95�:]%D\">}���qnXRҼ,��U)�tT*-p�h�C��Cs�� \0\n!�y�F�Y[#F�C�X}���qfR��Lf���t�mɀ\0\"0e�2J�	U%,�I<�EH���y�\\��V��ˎ��͉[]ݞ����(�\0\0(�h�3�62̲�V[���s5V��l�dYG6侓��j\0\0\0(�\0����\0Dg�a�.i�e�5::\0�X@\0@@\0@A@D\0\0\0AD@\0A@��\03\0\0\0\0\0\0435 !12#$@D\"0ACEB%P��\0\0�	q�\ZlJ<��s��X�����l�݆��b�JL���E�ӧ�A�Aw��V�#�9�����ؼ\n<J�.�Y�͐I�ck�Zb�)���jIO���ʼnj�������i���E-�R�|z+�	4U]wHɆ����M\r�Q���C�Xɟ���V�2&űyTpi21�,�0R��ܙ�~d�\"R��G6QjgNo�Y�_���&���4�AQ�Tl��3��5�-Z��HNG�7nר7/��/&�$Ӽl5F@�,�m\n�F�Ke�n�*�\\x��q���c-9;���)�\'�1\'g�~	K|G���c�1d�іyd=kP.(�*i�;��6_-I��!g]���\\w�p�PZAY,���\"�K,�a� �+���mǧ_��IP��.L�^h&�S����X�œM��stҒ�ƚh�9I`� hrW}������.��^e�L%�bЁ۱߈��4~c٤V��9����z^K>�\rڂ�͵��\0��\0��v���䌈�6v?,���:n�+�C-�#��*��Xȏ��ö��smmǧW��r�ᑵC�c�8��[-��WK@-ƻ�\rƘ�^)\'}��v®s����(�$�-��\0�:}k+#L���gd�GhO&�VR�Ƙt7�w��E0��dy�|��+��Z�x]���pT��-��|���q�eU\0F��;M���E&�2\\0a����/���Q&��B�N2�g�l�\0;�ö��:�֧L��?��x!4�&)e�Ρ��|�Z�fpq��/ӵT��B $���M2v�uɾZ�Ĵ�DƂ(L��\'�s\rD�m�5��S�m)t���1\\SQ�L���tT�P�4�T>�г��Q��3I0�W�eIݚ%,�Dv5e��`O��ͣN��na�1R�f��siK���,RS���Z�C0�iI4�c\\eƍ}1.�T�ՀX��V�}{,�;�0��c�$��fZn�n���H�(L���\0b�j��B��\\ۻJ=>��R��H_�3���5�4�&��i��ʵJ����ƵƘ�K(�Y��(�M��7�M�\'n��\'5��v�~�z�zJ���/	��ݭۚy�;X�I��Rňq���#�F\r��C��y��6��QrW�^���E�X�I������Zɟ�\"�+�ݐ��;5�u>j��>��Fy&����r���\r�[���񸋻W�wfgz�����r�&\\0cR�G��z�����ݛv��\0[�Z(��>�˷�e�)1�N>d_�W˻6�E�|�\\?a�c�\'�J�M]���~o�]�r5<O�Fb@s�4���l��X���nc�}�o\\����Z=:\'����[����x�@���n�����k/��qd}^��o��A�c�kK�@�\0X�Β�\0Ú�\\8ж]��ĝ�_�c�o�b-�t�b1�ש�n�~H2�Ͽ���+�V9ҿ���jZ�>�n�Y��\08_*��9��Cv޵�@��|��Z�2��c�+��s��D:l��O�\r�*��W9��պ]M��:W�GϾ�>�L>p7���ǻeG���q\r�~�Oz�ޓ���1^.�^�$7kۊ������Sެs���E���Z*O��J~\\{���]����0�g�9�~���wKó7���^a�a{a��6�t�\'�,w���vø��;?�=�z�=�¶������o�9�~�\rʹ/�\0Ӌ�ɹ4�pc�,+l�o/��XN�c�\'� �^�Gբ�Rn#o�ܨ�K\n�:�������[��q{�U��������+��u�m��^�c�\'� ���;b�l_ݫ���[��m�I��9��/|�ޓ���93���\'���H�+\rڛ���xzf�X�I�H76��o�Ն�὏�r����KoL�7��?i_qo-A��qt���ڐ��*btۛ��z^�X�It�g_q{�R�M��չp�U���bp�����zM��*>�e_q{�N�g�c��r�m����V�X�3зʥ�(7��_������p�m�����.��������rb�NC>ටݏ�Wwiǔ�-ʩ���\0*�.���U������G�>�w��-xs�G��m�Tۧ�^���0��Z�n%�����k\0r@0P��1����6�\08�*�ݙI��ˇ�a���n�X���`E^�9	�����K�k��ˊ	�_���nj.}��8�c̏ղ��Q�2�ys�_���b\Z��f�H�<�3��&�U�a���@��*�N̴�p&d��f�Z�4��_=l��y(w8�7��\Zj\nbaQnUH�w�=��}\r�f!~�5,\n��J�8\raw��y��1O+�蹇Ϯ�sW�QWg�|^.\0���֓n�t��q�|9L�z�/t;��rM�������HG�j�>9j9�Ϗq���v�<�⌫M��t2R�h��)ԏ��ɔ�:c\0!�tM�Ǒ�\0����r��ۍ�a�gV�vb�u����g�铩+H�9!9�Y�*i���UO..\Z�_�K^O�#�쇖{�w|;�#��J��UޫQ��<����:�HC^3g~.qϗ�7ĭ��VK%dY��\Z\"&����NT��M}�\r�V�;FTDx^�ņFvD����o�xqh�bP�c��n�<b\\g\\vV\r���,RH��\'����3�-��-�~jöqDr�`ч��7��\Z%��)��Q���ع��8J+p��n����\"*4�Y���	�(�[d�L)��;3�R�*>u�sh��S,Unb��Up��\\���Y��a�F[^�\'(��c�R4�V���ѰYG,�0�;�����j�����/mι���oȌ�����,+;��p���Z�õ�K��I��\"�18Q=�m���q��jBӜ3 yv�c��ɦ��く���Z��H��m3r�ifN�f�\'Uy�NS;334���0�i~�H��rޓ��F��!��	�΢���汏�<�b<rk��<L�˂bqA4\n����x\0�\'ۜq�I�Q�M�a�)>��\rϛ��)p{�N�� �[�8 �����\0&\0\0\0\0\0\0\0\0\0@\00P 1A!Q`��\0?ͣ�����B=K�0b�Bd���D��(�`�F�`�E����bRx�0h/��)QV�\n,j�ͪzfD�{�h��~��|�p�}7�,hnF�GƦ��s�H��ͭ N�3�)���	����wfN\'��.�,��\n0����f���h��h0�\n\Z�\'��j/\Z�����š�q�٠���58\"԰-K��p�\nj\Z����ºW��3FB����O���²Ւ±Wk���\0&\0\0\0\0\0\0\0\0\0\00@A 1P!Q2a��\0?�\Z�t�ӯd�7#�ɨ�]:t��y��Mry�ݞzS�Jy��f�9�x�zBzC��_�F�T�`�d*l?��կ��H#O݈��<t��4��>��^�5�|#�k��\'0\rz}X�Ј�r���/��h6	3Sb�D玔�\"���,,�(mJ\nR��yB�ԡ&P�貅\r��(Pڙ�F(mL�YB��Ɋ\nS ���2�(mL†��9��3j,�(˔9�͔9��\\Ǧ��(,,�+�B�B����%<�ɮ�=\0M��(7�l �բt���,�2��ɠ;�œ&L���m����2dƭ�\0��\0B\0	\0\0\0\0!qr\"1A���2Qa�� #3@bs���0BR4���$Cc�PS���\0\0?�Cll�����8oiS��L�1�7z�^�`}�e>#\\Gz��F(����\n�[|P�Z���u-��>���i6+q^ӣ��pt%�_qܿiſ�W�a���o�\0��w|Ib$�cC>*��`}Ű�ēݳ�3�����\n!��Jz�i�n�k�3q!{*@�{jKql֍5���-\ZL�!h�C�5�GqŠ���¤�+���n��4f���\rz�]���ɑ0z!�gK�JF�ȴYt™s��{R�c�Of��.q���C&�t�]��]�+/\0�®Rk �C���W����Әsڄ1����u��o+�?�x~!�z�$�JN��ez�\0��ѥF�\Zs<LZ�.�!^�;�Mh����X�Ҹ�(�.��i�g�#A��ޯ\"�ƃ���Mf:Њ�t�ө�ň]oiZ��F���\ZӞ� 7�+�.����?s�\"�vZZ1&���R��E�h���oj�1]v�l�H�����+�fӴ�`���\'�g_SU��q�௅�^�Y\\��%u\"0Š��!��]Z+��{�z�Q�k��nf)�,\'�z�\nf����3@�je-=�S��\0��м3 EᴫMm�v����*6/�kv��zq5H.W7��&Z��8���6�E_�z�Go�k���b��-!u`�,E}&���#qa^՛̕�B]�Y\"PЈ���\\$�oO�Tl�_�w�e��t��j�k��� �k�Σe��+��\rph�nW�n��R�a]�\0T\\]>Ʌ2$ԮL��T�Tl�_�ѷ��ޑ\'P(��M=���n�)\rEv-e�ȶ#ZN�����#ʦ~m�Dʣg�P�S��Ak]h�s������.YZ��Ck���9\\f�z���{�8��In<�o��T,\n��F?���Jd��Tr��]-���O��W��{(.W�⯣En��3T�&G����nZ=��z+R�Z����+.�m�]%!�ҙԌMsu��yT�ͦ�X)Q3�(9�F�g��;U���[9��7nD>�1�ZT(��Gb��z�O-��Ɔ��-(0��?I/�z��hR��i0ܺ����#qW��+.�ý]�]a�_��A�u�����M��j��Qr���%8��Q�7~���h�{܀�L�T���-\ZdV�5�Oi�_�;d�1aۤ�\Z�kq[�CJ��?��nZ4��Z=�Ӡ��Ii�^��Zki\r���(��*�P_�Zt����,V��7=��By;�A��774pw*������(��%8��xN��s�j���`�轜�%]�\r��8b���X�^5ɫF��hS��h�!�Fv\n}~Y�b�_�]�1z�k�*�\\�탹�%��ҡ=�M]44::{�(٤;•۔7��(��L�x���Sp�j��Q2��,��a��ۗjԮЯhV���-&<+��-P���ٸ�_y�ZqWR��k�����}��tP�u�Sk���)NWGa�#�C�T�\0YR����?[uE�r��3?����s5C���J�\0\"��UH�S��Ws��^�q\n�L*�2���V��N�u%���]�{6�\n�	W�x_���˔�M*6!P�\n>Q�A�5��s5C���W�,�F^u�~��@�j�KZ��{G}Qd��)7\\����g�a��$�|Ur���樿1*�����\n���B�8���ܬ�dvk]b��dg��<�Ԋv+uc�|Uwy*vj��n<�fꇁQ2��sP��5R0�=�Ի�S�T�\0�lJz�Ⴍ4K����R��9|�?5Dμ\'�P�\06��`���B��5Gß�M�K£�T,�J�6Z�sGʨ{�����\0\'5;x��2�|��u!�\0��%4�5�}Y?Z�zK�^��eBfs�Bˤ��$5��K���&ˎ��*�G*���P��ʑ��f�\0�8U3\Z��S�_���񪑗�\0�1��Փj͐�N\Z�@��J�jPE�چg0��4�D��m��2� � �roHe��Ҙ�����c���[qP�b9TV���\0�8j�~��GS7�?�Nj�o\Z��;�+��\0��0.VAA��7w�t�f*�V�ZTl�J�;��O`�B̷53\Z�`����P>cx�H��{Y���c�T���f)����Q���Yy*�j�gGƦo�	�/5�7�Q�4�|�G�g�Q�~���e�\0���{��Sw������ƪF_ub��pG\"���P��T�EĎj��0��M�T,���G75�7�T����G���\\�J��T��J�c�\Z���^i�/5�7�T�����\'��w�*6R�`�T,�q�P��/4����>ک}�`�HNO��J&>J��֪~>j����CT<��׏�����F_u&��!��QK{|�\"���8�#��P��\'4���o�U#/��L�o0�{!�(���\"��樿�B85o53\'4���~l�>_uܨ���O�~J&>J��Ro�A��F����y��y�/5\n�}�r�f�O�~I�V����#w��Z�0�Sƭ�e朼|�-�*���w*6o$�/�~I��?%F���A�\0�A����^#Sr�N^>j�R2������\n[,I��*(���N��P1�G)�W��ܼӐ�̨[�UH�Gx���Go���T�|��lG)�V�Sr�nC?2�o�U#/��P�)ò������T��\\U�hG)�V�Sr���ʅ���F_uܨټ��_�~o%D;���To͡��[�C*8�)����eT��b��{�7���N�y*>Q�q*���Sơ��ܫxM ��eB��U ��p[Ӱ�=ʍ��=ݰ��rT|���r�_�B85MC\"�xC?2�~l�?�we��_��[\"Bu�;�����J#�h��������?�Q��f57 [�nneB��T��J~��[�1T��D2�Ò��\n��2�g����C1�ex♛�B��THz�4�Z���v-�Z��~�C;����&����Q3�*@�!��<o������C1�exL��W������J G��%����k��[���u�)�i&�>>I�\0-?8Tg�\rj���U����^#ʡ�!�qL��~l������*oJ����t�-� ,��\0����u�RS�z�\0�YT3`�.!�b\\$F\\5ޟ��d�rS=i�mk^��^�+�V�xZ�m\n���Nk��P0b���%P�\06��\Z�G�C(C0L����38����IhҜGz�@|����J$D�u�Q(�xO��\r���J��ܯ����ь���6����g�+1h�ئ�eݶT���]6�tV��k���T\n�8\r��z�x\'b8*8�&*\\�>�P6��9��<���31��]��t]����M?ѧ�OS��G�n��]FlA��_E�$�P�2$}�Z\'��#��)�\Z��m�Ԍ3��[��=�Htn�ݞ���+�79������Gv�Q>XT��ʠa�aΣ��e	��	�h���:Ǭk�vX��b�v��4����K�t��`���S���HDն�$6�hF�7�ވ�G����0��\n�\Z֧U���t��!���(�`��8���E�aR��8�-���3S{�5�L���$�Zkp��cA���\Z;�/�ԃ\Z���\'{aڴ)�[V�hnw�غ��ߵ�V����m�^�\0/A����DNGR��8�Bf��I������ʢ�_ͦ�xUl4Z;}*<^�ZJ��6m�kg��4���K���+����#�z��&�`,�l޵�^к�6S�})��ஆ�vJ���ܓ�?z�{��EŪ��Qws�\nM����>\rֵ�湲 ȯTt���B��X�?�׭t7��Ztfxb&�dgO������d��XGĴ�5ہ^�7%qp�/W��S�N�B�$�U�b���U��j��7rNh��J\r�T\\B��]���w\\ݥ��@:R;A�u�+�O��dA6�.S���v��\r��1�:`J�mW�2�ł/�ݩ���\\w�bMLR��\Z\'�l�DE�\Z5�k捦G���m�hk�N�s�����\0E@m�+�(\'�ij~nJ\r�TA��\n��Qws�F�LAo� �m\rh�?@:3L���1�šH���6J�P��$C[H��.|F�[b���$ޖ�gU��(qZ6肈.�q ��C��Z�z���On�.���kM{[9�V����Y#m�nۡ���I�чq3�!Zk�œͺӰN��6]`�������ڛ\Z8�-`% $��$o#�6h�\0Ӂ>´�׫��;؎��~1G��\0��4���b�[Ѕ��t�\'F:Z��t���\\�����M=���v����Q�\'0�`	�ӽ��mQ\\��:hO�=V���iģ���3�^�\'���-*,-�HɎd�\0����Di�Z�n�IH6�:+̻/R��4�(]$0����\0@�l\'k[/�?��\0(\0\0\0\0\0\0\0\0!1AQaq���� ��0��\0\0?!�\0Lk�p��S���	�BK��S��li��\n�F��<�^�\0�4�ؒ͠WlDM�2P�0�%v˥��b6;��}�jh�XL<.��j(*�;N�U�n(�����I�_�S\'�q.d����Ȉ�ʦ�y&}�㑘�������3+\n]H��lML�bBux�h6ɧ��ML�G�墪��d�ӳ�v��As	���&�ũ#�2x>O誦F3l,�0�5+�S��LF�k/�%��5��7*�S^�^��V����l�vD��+⻢SD�\n!��&Y50�ߗ�:R���WOȕ��0���\Z)�ޜ���.��e&�h�/H�M��f\\�!e �JgbE����j��h|*���3�m��=_���:�O��S��Biݒ���$e[d�r�<��E�m�-\n�I�����:�(����\n��]\0��$b���*��t�Š��%Z�C5:�\Z���6e(Oa3G�(.\"k�,��g��i�N����hsS\r���ƙN���(��2��-`���.Üw���\\��Ҹ7wK�$����,;�q�V\n>]:��vV[\"\0��z��A�(]��\'\riBޤ<��.H ���{3C����n\"�D�$�&{TQj�$�p\r�KTl4j%�7)GA@�O-��~	AOc����DElH�3�� �±7\'3j�qo{�#��r=���nm�\Z��Ǎ7re,�J_1�b\"�\\��=��\"Q�j�^C�9�c��� K&�R�K�:BwJ�~�9�B�m�r̺�!BBB;7声����GOͳ�7.G��A53�+2�\0��ь*��2�4)ŒYbM��l��O$$�%D�!\\�!!��DM���}���X;�\r:��7�g�M$j�&?D�����$\r�\Z`��k#lNg����Se�t��M��%tՖ.��$@�Y�X��rH�U��v:\n��C�x��8��������8��6��()��y�c]ٹj&��dh�\'�Ĕ� �ADy����qr\Z:��#�h#:^[�&.\\�eKVƖs����r:X�5?YG��k��s��`�g!F�9�3��}�7%�)A�}H�\Z{*���|��������M��SVT>ĉR�r7����_Cy�	Ǒ[�!=��l�4|I�.��&��~:��(I���#p|�۠�/�&z���|�dA�ѮV:*�GVNCo�M�cސ���?��-�����H��憬&g��l׀���\"U��VI2�C0�1\'�\\6J�n�o)�%\r��	u�5Y���2��<�S�^f���#RWqs�G���@��w�qQ��ƟV�Kߗ���f]�6e-��`�s&��(Ӥ���R���\'C�|��\"��Vo1�6O��H�o�;�t|�qaُ\ZQ2������j�\r#��q9�Ԉ׀�|���|���$\r֯�dp���M+Ԥy��W�P�%�ݏ V/w��ä�ש��,{5Z5��l��W�A%�eȨ����� �_1�}���;��mxcڍ75a!�Zq/]�q7����	m�qE�H:�Aal�숒��׸�ftD��m�Q(�\'\n����\\��d.��>Ksx��R�M�e��^�t{=֑�o�yӒ�|�F3PG�\"ܪ��qu��mW��֖���~=S��@���rIQ#x���RQ�\'�m�Ek�C��E7\Z9�s�>�N���G��v��IV\"r8��iHӆ�+�wx�Ɠ�|��>��ʈq�������\nW|��J�E�D��1���9�|#�\"�_�4��W�]\r�&z�N�{9���$��1�Ӯ�M)�:��.O�V���5�YY$TGQH)�W�HȰ�E��.67��E��1�~��7\n5��\Z��p>���+������bzN�=>���Kn����aє0��h��?�5��?�EԄ���D	l=*�\\��TRDX*�����脐���=�\0�l��gG`��\Z�B�HU�,��t2v��ܻN\Z+Q�S-��&�ȋk��訦^��շZ������(�*rb\"v�j����G�V�}��6Q�=/hi���ƴ�(<����΃C�)F�f�T%/)��Z\nj&��Y!�᫪����I�b�܋-B��byM��\n�\n�.<=��\n�	���|~��2�_�C�nPz&\n��\ZvO(v�����%�{j(U�U�\'�����^&*4M�,%���3��U�<A��D�g��\\Z������ֽ���ӫrX䴓/*v�\0G��m+�濪.6��;�4����o��[��wp�od:�si�D���i��*�m��)��`��*&�	\\i�k\"�&1���QiHY�:��Q,(���6�J�\"n	D��-���}�.)��gΈ���a�����H\Z\"�2S#��2^�u]n�c�<dS��&=Zi�`�M?�_��qG�١�~���?:]�*��({�P�й%�T�+��c��+JW�U)Ð;lyJ�E���>�L��^���To�y?��\n��Vk�=v�=�(c���h̕��t�|�*w�=��\0Ak���������\Zj-\n6$+�#�F�C��WI�ܳъN�`Z=882�=A?N�7��)&�-!n��{=�E�b��s:\"�8��4�8��uӑ�\Z=\'EDr��.qՐ|�;^�h�U�	�Kx��-JZs\Z6d]���_�Q8\r��Gu�Ŋ&�����qC�M�A�L��`T0;���@Vʅ(�A��\rY*|�	�\0ҭ?���{\r�;�엑���;�姡���ڱA�eD!���h�ruK�(�Y+�l.�V{gn���Y�y	;G�;(4`yLh�f4�v>�Jі �\\�M�79~�z��J���	�Q�=��-��U����\'���FH�cӞ�4�\"���$����� =>#��%r�ҠH�L<�n<_(���\'��:���6壹�Tf�uƕ1��Gn:��O���m���s\Z��I_��򄧛�O�ɧb��_[FdF4�]qhթwy�B�%b��:��V	O?��+����W%�5�Qg����� ���#T:�L���m~��n�M���)��|���OU��=�E���<O(O���OC��]��Oჩ�v,N�9��d��|�PK1�l����:��Eza�=�P/�eK���{&���d�7ZRt|5\\N��!�Tӆ��6��Ɓ�*�u��|\"2�C-�#4��E&�)�b��|�eX�$|Ǡw�Oc�L���V�tuZ@���i�߃��Z�y90��|�<QҮ˺*�;\'���N��Q�}�wO�N���ij�*^��##W�fj�y~�a[�7>��:\\�<�4ϡ�xnG�.?ID��p��\"�Mf�<χȵdcN�t���G�JL�Z��E����C�Q�z\n���#z�g�c�yb�UT\\嵂Ë�:�p����|�A%�E\'���cUeH���&$�_�s\r��&sS�\"/Zj,�-��#=Q��Xܗ��^��wj�&��s�*zm�&��V�9\ri��et��\\���z_�)֯�\"8I���`���YU*W���v[~�>C�	�?-/v�*�����?��æ��o�J�h�M�_��:fȜ�Q&V�H�k��ţ��*��H��\Z�?AP�۲��w�#�~�I@ZM��C�K!��G\"L72�؇�\nz8���,�&e��� �j�Esxё�چ�t�1j@��eǺ�s�	��ҝu�\0�@*iI_��g\Z�,�;��y	�嬙GdM��Ҏ�μȌȊfWF��F�;މ�!&7���8�����\nE�\\����u1ABR�b�b��)��BH�-Q]Dݏ�b��hh\ZW�aF��ڼK�uD�n���YH�腪��cU�>:�90V{����{��߼���O�I#�Z����Vp�\0}�a��E8�F;��Pa�&O�5�P��0���	C�E�z�����SgT����v沕(hM���U:\\�B�‰��-��ޜ�ݜ��Ch�d��D������R�lC�X��ߠQ�TK�%)0�v_3�>D�R�@F,*���(=$T���:��G�VA7D^�2��ثh}�HD�M�5`�5GeG�D3�K����r�2��&eh���l���6�Y\ra��L��Λ����낺��A��$�)z,�a�\n�·�kѸ�CϬu!���[�h��E_cȁ��z�)�h|��i��FD�r��.PCR�9^|�V<q.	�����֟�i\nN�̈́K \\�FPOM$�\r.\'!:��T\Z?�:��$=ԥ�!�St�^cä�%;/��?�����~�S���]��GÆ�ik�?��c�u$���ND�M��N�)�1ߢ�a���C��A��*%�1�crXiI��l�\'��=���Z.�`�sR��Jm �H�_(GM$�����k�/�_�LJ\\x2-���\'��m�Iz��m�,�T�1}[���8�9�4d�lE!�,n�sT\"��0��|&^ L���G��K�S�/вM�?�:!Fs��M�G�?I���N�j!�����c�P�ҡ���f|}BI�D%�E%R������^���?M�閲&.�\0��R�e����B�rAm�a��2y\\ t�*���E�<�\Z	:�<�D���0�ڪ`����T�g����\0�	����&i1\r�	��X�D�ځDT�oṈr��>1^ �xP��q�$�ݗ!w^A�|@��K���]	���	��ev��B�M3%q7�K%J�����I�=K@OqN�(�X™�O�6*��C� 9J]���ʨӚ$$�\'��E�?$�#G�p	K����|NO�Y��[��H�\'�K\"��$�\\R��̦>�\"r}I9R�!~ �QBK�H�]�1������RM\"?y\'���l���U�5\Z	sG_�_Dn%����\0�hb0�j�э7�KԐ�;���;SV�W��-��x�I\'H�M0��|˦��᳙����лPk�-*���T��6/uÏ��vd�Q�X73i��۟�SY(IY�\'�Az���u-ۛ�ƭN~I��)��he��\'_��W�����Ȩ��T��d�س�o,Ici��Z�\nL-��#��0��$\\d��\0\n�&5��,�zIe�!%��4�cv)I\"���_$+V�c��%���s�O��m�-����PJ_�!�1\'е��U�g�c.P7�qy���\ZI�I�\Z�\0�?c�V�߃��FcW����\0\0\0\0\0\0�I\0I$�$I$�	H �(y�D��A �I$�IF\Z,x��ѓ�I �r���(K\'��	$����r�����I -���C��.��|�t�m�I$�B{��\0_�,:��6�O��`�2�\\�$�9M��$(�T���*��H\0D)�d���u⫢�Ј��yj�>�;E������dԖ�Tf����	�\'��H�[�>446E��Eq���0�.�qE��� D1@c�/!6�9 �:@�F/k����I�PE��~z�y�p�Jz��k4�*-�i�8��@몮w����\"i��*�-z�l��7��L�G��f�v�x4Э_���&��9�yi�}��[�U˫�N�G���ʊ��XE���Eղ{��!��6��J�J���Ri0\rd`����@��7�W���$�m�L�����ﻫ��ʮ8\"q[����7�\"���]��r��%�w�����\0�\0�h�k�o�\r�\0�Sj��O�����o����] �ԣ��\";gS�o��+�6�_*׳���}a`��Ĭ6��\0�7�_�E�[��a<i-��ͤ*���!�3��%���=8z��p,m�נ����@:Pv�*�X�Q��5GEV�(Sg�K��\0�>�U�DH�	5$\0f�\03޶Ls�_VlN�\'�/�,�ҧ�$�(��e��ُe�\n�Z�&۰�$=h��J�5L��I ���\'��\n�J�\0:��sQL�o6II ����zפ�H$�\0�I=M�d�	$@ �\0$�\0\0	\0\0A��\0$\0\0\0\0\0\0\0\01A !Q0@aPq����\0?�*�\n�Qe���(��+�Rl�i��c��:����3,V����.��\n������KҬ��M�T\\�Ĩ���F�B_e���R)�A��>I[.�,�l���(K��,�����e�lb�k��ٞk����Y��K�Ř�w�&���Ł�Uʒ�ą�p���8�Zc*;(���z8C��+\'�������u��a�c�C||z��}!C��c��i\n.�sQ����E�����-�,�2Ύ�E�*(�QJ���,N�1���\Z��e����|7��R��d8k�/�Vt1>�)r�2|,�=��S�]�����t5�����O8�|EE��V5Ѕ��\"�Wh�=<��&\\�4x-���2��Vh%�3�I���\0D��h�b���f�\0^��\0�Z���$�]Xӫ*Y�\\7G�C�����˿taF��t\"a_����iv\Z�(m6�X�b�w^�pĺ��m�^_ʼn�ܱ�&�p�b�\Z[B]������xn\\<Ì����No��l����#!��|�FlѴzxn\\8x���ܹp��\r�pp�˓�\\��4Tipp�FS�Y�\'�p�3F���>-�Y�E��K��f���Y|W\n1�df���&�����\'���bɣg���G��2�\\Y\\n/��͚6����FE�8�k�����c˝J�…(C�6j,�\\lyC0����!�Y5�R�c��,���\nVF,�6zy.�FQ_�b�œFз����FP�O�<�(b6n0���bɒE��Y�6�ф,�~\Z��no�y.6n0���_7Ơ��3f����q��ф,�&�3f��L�qyDa��_{;A\r�4m���y�%bˋ�e���,�&��;��f�%`HhqE)��Ye�FlF���l�a8����L�T�bɡ]ϧ��6#	��������9C4l�<\r����0,N�tXʔQ���f�9;q�ó%~����ѱ[�h؏%�?��Z(:e!.��N�E�v7�J�(��,���b�\n,�\rW�+E1��â��CEGjp��6��6�B��GgqgB�n؆!�\n�hZ-Gqe�����6X���\\�:��O��\0$\0\0\0\0\0\0\0\0\0 1A!0Q@aqP�����\0?��\0���ڊE�؞���/�Z\'CTV[��G��Ԫ��z!�>���(��L�Q�(�\Z���O�&���Tx��B���CQe�h$~�(�ԏ�S+;\"��l[.��tΦ��(�qQbB��_��C�hh�-\"��|Kx�O�n(P�(��1�<�0�vЏ\"�b=-�Ye�𳐡�D�m!���4%�#£�[-���-�y�\Z=�T2��\n5��OV{,u�`�bԱ��\"�e����EƄ�(He���\n�\nP�g!�	�x4�RS==?�_�������~�1s��P�e��\n\\(�S+�W袔���P��L�8��驢��΋e���ʖQ�*T9\Z�\n�\0PԻJ���B��!/����B�#p��^�.�`����}b������w�V=8��s�GE��k�Y�O��E�t���t���Ըp�ǚ��5bƲ�O���[i5�\0��}��[�b/�����p���\Z	�.,M����E*�KPǨ?T���r�-1�[�`���qct\\1�S�uc��E��R�E�:Y���1GNP�T-\Z6�0Y^7�����m\Z�Vynt:�y�i��m\ZCɳӇ�����R��i��sX�T\n����]-�С�k57�qgz�lZ:�3��-NƐ�XpX\"�4kxtZ���7�#���M�h�ӎ1\r��:o\Z,ѩz��x����xШ�.P��\\��Sӌc�ho\ZgQY1bZ��:��b�c���7�\'�â�1BѠ�o\Z�5������X�h��x�B�⊒����b�L�h!���\"�<��I?�7�J8q�s=A�cb�%�Zeښ��(��L��E��xYY��l��q�pZ�=	�cC�\\��BشuGpZ�)����Hh$=Ah{�hZͥ�&��R(��Se,���	�Y1hZ����BV=��XR)��\r!�b�����f�ǥ����A�_��YrƝ��t�;�f�X�\r�X�1T�n-�6p��<8-��J�+҇)a��,h�-�:p��+��t6*��}:Ye�Y-\r�87�\Z�<�u	\"�{{)��Xl�����GK8��\Z���/�	��64QL��˱Kv8C�+2��?U\r\\=�[S�,m�A@�w{�\r�����ѕ/�P�l�xR������6X��\nL�P���1[�E\nF�AP�bJ���R,jЄ�6�ɤSi�ĘW��\0��\0&\0\0\0\0\0\0\0!1AQaq����������\0\0?{g%�|N(�V�L�3��q�^���\Z��#S}��~�xIZl���j�qW]2�8r��\Z�������n�3�c�f��	u�?�1��@w�PK�K�o��/Q�^�L\r�=8�|3/�/mG�p�L]a�&�A�~IMjxs\\�4���!@T�V�D��@z�o��-�j��ZU!K�^��* �-�-z째$�xb[�Q%�w����˖�#U��z�M�(pB`i�V�KVp�B�+R����+��0��PzX�p�݈P�]~X\"w���_��*[\n^��a�Vs�T~��ۨӗP��c��ݵ(-�q{p��5���cJt����%�^e����.40|�IG5E�vy�Dt��SWp*{������ȑb���B�m�/)J+�|�&�ܔ�91���J�p��j3�ЮE�׸��X�c�`�b�>���t��Yag���f��ed���X�چ�.!�E��w����6\rJ�qx#�=&š��vCQ1Ҝj����.)���~�X�;��w�9��!`�\"���Q��<LϘu���o�_4���,]B�Uq�� 	���ν�Ҁ�4J�	���\0{$p9j�\0����`n�q궊@�;T���>���ႂ�\0�`�\r��A�̎|\nM������%���ŶU@>��!p�������\0Z���E*`+�]���Jx�Q�alK��,�,\rm-o�&ʧu)x1(�u���T1 Y�G�QM[�u\0[��8\n��{�V@�J�[�\'�x��W���s��`�s�|cך�8�V�^���pV�q�E�N�k�9�c��f��n�?ݞm���W�}�V����p%�\0f��]9���B�훪��}@�\np��r���{��3v��[��UJS�0�)�9�Y�Q�u4V�c�nj.��S�9>�v@v�x��\0BU!�F�X�胂��Wg�C��n�YmP)*��J U/���3�{��Ty(���e�a^�\ZT)q[�����ߐ�FM�vڵVƪ�A�gÌ����&�m��ɝR岢��\r[	��O6�q�U`0q��|�lS4I�*+%N�2�sL������܃�1[�� 4E��#��6\0}b�2*���~c��h̺�Ua*E��~DM�C.4{\"�c�)�\ZU�@�����~�C���r�}��Q<���\n!ޯpb��@��\r�N1��-0�&�I�4����1\nq[Pk>�`�k!ׯ̘�f `�o�|��T�]b^0D�p��x&B);���E`�®��R\0��ķ�����C��AKAjG-���8������TF�r�� ���`ض�5R�P�矉`4X⡧�%��`aG��?�����xt�\'ܭ֢C�\\�(-\nW��p���6D��$��oN�\0�,˹���?�ze�s��^\n̬��,�ё��.U������u�<˭|C�H���xè\Z]�ДA�\'6K����N̚־�� �X�Q�X�M1:?��pƥ<���CQFԯm�Hd\0�u�`�A�1��Lq�J�4���P#�4�}K��qx\Z��c2d�=�J�WĤE��ל�M���w0m\n�E�b��7��\ri��h~�se��^@\r,����Yq�]�~�-�7��b��9.L� ���ĥ1E�3!P��E�c?x>�C�V�G�0���r�\0���H�s(�Z��0���*da���3�O�i�7�Q����U��gj�:�K_3sq��N���8�KX�]D}�c�\\uW�vj_���t|gi׊3z$~#��k?k+�h��\0�TpU2�(��Ȧ��kG\r�P!@`��8\r0&/})��|ִAdW���Q��m}�blԵ(6�#�|�_�\Z=\"*�iD�S1�:�d�y�d��i]��iH��\0p�\Z]��9���r�6Q�~D�2^<�=?��j4�qQV������2�P�^���ecr�X�WX�-��ٴÒ~(�������(�S�X��a�iX|1Ĭ\0��ru�)B�,��M���&�����N�*+�_ܳ8,�\r͔�*��C�0�j�S���֬��@X<�W�����M����h\0v?0�\n >\r\ZW�~���F��l�.�F�7�?�B�������7�B�P�i���aq�.�*��D����{��IC�5�h��ޚ���\\XJi�� 8��h��(/\'�Je�\0%�\r|�\0%�t,�½7X�wS�j��!*%@��Q�l�|H��O��V�\0�(K�tH_6��Q�ʛ�u寵f{��H��7Y\'�%#܈��u@�.%���<e�i복kBU�RU� \\I\Z�Ɓ29+��u5u�������Q*��bV����@G\\�wԥTc�)��i�\0&^�C�A��[K��`pv克N�L��ҍ�Cf)@��k��v�Ìr�p>�E����/��7F�\n��J�9��!\rY.��7��.�%{�*��/\r�u��鋣�!y��^�X���84�hd�?P�GT;��P�p�Y��M|���w�W[	B��\Z1�Z�U!�b�0��\\�z}���bz�y�ӆ��\"�[�[�*	K���&��5��U+��({�1X����@{�����ʢ-�\0�F�9�ҁ,�E���J0A��Ń-�QK��ſ�Q%k����ס3?*Jj���\\`�k�LB�󀷕b`CG���x��\0-����d3�8,�B:/PVG%ג��/���x̹��(r���F����##�ͥX�K��*}�9�m�Q\'�;�1P���2��7��-ٯ�e�1��l�E����^>®\nrU;|3�\\�&^�V�i\0���Z�<S��>�8Cti��������\0-~�%�8����>�%6jח�Z��4wO���S.5����DSc�3F�Y��n�V��[6s֡�:���Y�(Y��gf�\0�;9��3\n�D�gsi���b*)\Z� ��EX�c��\\�灌��b�&Y�����u}3����o+�[�H�\Z��c�\"�Y\",���AHH�h\0(�%�ִK���\nf��,�K%\n�Mp�A�|����S�����Y����P�N��������\Z슜̎��\'�J�G3J�jp㈫�<B�B�m�\\�S%%�R�}XI�v�S�q�\0��A��h:|F�����y��(�`���Xz����Cv��σ�̻v�����J�37��y��?3pR�\Z-&��\0m��\Z�\\{��[&ѯbo\Z�k2(��:3��)�WW���w�Eo?x��\r�&�)A\ZȞ���\n��6����G,F�m�o�R\nh8��%Q@��L�Q�<M���5�$А��GՖc!3�CF+���!�D��kڡ�\"�6%(�Y�XS�2\'����b��4���);�u�0�͙��\\k`;\n�0U�3���������f]���X�\0SѤg0U�}DB�6s-�ZE�1Դ��)Ⱦ�rՑ\"*W[���7w���G<�fj�����hȦWR�f���\\�6J�P*9)u�\n����Э{�r�4ݯ�@I�b?���b�!�78����\nă\0��cY��\0���oXdW��\n��E�i�k��\0�Wq]����3bR��0�D1NH�l�E\'6^�t!�-W��-�C�Km��	�8�\"t�%د-T�U�����\n�X��oD�B#�]c�R8���pd9pD�zǀo�\"��ů�����u�+7d)�t��`XP�㙚��[י]A*��Cn%��y=�4��T�(N��W���PbQ���ˉj��R���pBU�׈M-�9�R��\Z	;9h𻸪}�-1CMR:�4vQɤ�q�Tb���9�\'cq�l��Cd:fZ]5uУ���[9�^#�d�+O0m+�c�Tq*�=(�����[�#+Ѫ��]|�V@:�KgYeZ�؊�v���\\zd�8��_ts�V&�s̵Uz&@�z�\0�*<��B�}%ۍK�%�fl��\"Ƅ�R��Bˆ���������D��c�EzQ���2%k��߉C�\\�hj��nX���}��������;c�_�Ţ�-&�N�ʸh�8�+}�la�v�Ő8H\0����<��Z��\Z ���a�(q�#q���E�Ͽ�sE���Vw.�a�U�qPp��P�]�%�ƃ4�E9��i�\0��+�9e,^�4�i�\\\"*���x	��n���2��\0���Z;�ghչX�~!I��~���5�!J��ėv�{pp�&�Mq�p�J�%��$%7,=F��i��xc��2��6�u���U:j̤\\b~j�(�^͓e�M�a�FZ8%�Ne�8�7�3Jʵ��;Apy8�����oD4L2�\r������񻂃d�/쉦�c�x���$e&󢼣�P��gI^�k~%0q\\ʬ�����\r�L�C:�4m���sD��ͫ��B�-T2FR��|�.�x\0�v�r��x��8��v�����k�@R�ܜ�^��6}��av\"Z�[:����ZL�}�P���)�r��|�e�Կ���0;��)�7N�+o���z�0�������E�k���7��i]���3mu�Ү�.aS�0ߨ\Z���\0>A���kG?�t�\0)��Ƭ�s�&�Jy\n��%/�qp�酡J�\ZE�,YO�c���m^�\\V^�M�� �e��d���\rP.�	�E�~��u�j=���t�@�����FsΌ[Z۸XPfdQ�:\'�c|@�\Z�H2-�DԹ��.	^TIQ,�nq�8�T�i�0��IQ{3\0e\"X��?$l@�X�a�f\"Ȝ%�]–&\"a�8���ɍwܼ��R�r�K����	A���u��m�M`3�+�[l�u�E��.��RߣQ_�&V�d7�U�hm1�\\Z�	��G�\\��=�/\0���gp�,\r���� �%��\0D���J{��Oi�xJ�l��x�Ҥ��n���k�|@���\0R��Pm��_G2��宫R��_Y;�����\Zw�����U~\n�`Z�bLQ:Xh������OӍ���_���1�-�t�0*3�����V�/\"��]�/��\Z�x�ha *����P��XcD�J�\\,x���\nS��0�hE�T���\n�B�h�U���Qn|��e�띃�s�SK;��&�����f(rF�-�u�K�IPj��LF�Ѽ�KTHJ�_���B\'�$�P�%�7o�\\����b�}%1��UaW�0DL��}`i��d5��F\r�i�-���L�bk� .%*��վ�$pJ�]Q}ŧ��u�$T�[	V����f�@v	���-0�\"��m��Ej\Z^+�sD±�E����+p����2�o(\\7ϼ�\r^��z�X�[n*/P3eWQ�O�\Z��\0�E�L�.]R�Q�_2�6��T�O��V�*\\M`��{����W����\0��:�;Nn�4Ox��o\n��%�\0$b��+�tH�:�4�z�����d�.ǩm��Wg+�Vq�2��J|/pV ]�U5x�]��4ס��5�y��V�%oTZf<��jk_��)[�x�l���y�=˾n�*d����SY�\'|`���RD�W��k4\Z���B�&���?� $J���*�.�x�sY�6J�w�G����vU�-�E�Y�&47(Li�!V:;�Vm�U7-Ù��&�?�\'��iM2�	J���%�ZNq�9}�Y\r��{��eQ=�q-<��ImLXt�i�3��N�<D.��PQ~cUZ�,��3���ޑȭ:&�xH��mF��8�j��`����jh��%�\\&i�.�4��l��m��¿�t]�K��,AOS-����x!>�.A�3��A6��*��2���z���iPi�\Z3����PhTc$+�5��QO�ำxA\ri��K��0��@p:��!iYc>b][�P�m�65�`eŬ����%��G��RR��B�-�L��J@>:13����_�Q`]�i�ܷ��C�\\�€�K:��ԃ@-Z�x��\r��1)�qj��H���z�)��^�r)���Y���]�lzM�0�9�եUj5V9%��\r��-Jo��\0�0ŀ~���O������W�k���rZ%��|<&,vj:�\r	Z����X6l�$��[���\\e�2K`6x�=���m�/��zM�j]Xz�	���q������!@�ņH-�d+,@���f��]`��*	]95*�w�J\\7�[�1\n��\rR�KRQPf`��d��\0�ۿhF�b���Xc$�� ����-�����6�jS�\'�XE�,i���Lx� ö,=)���WPvTm�0�=b�}Y�DŎ���Q(���!c�ܩw�̧P\0�ܱ[������ ��qD1Q�U�(V5�p�(#e=���\Z�+�eU�3pV�w=V�ʜ�vw�Jp�wNCG��(\\K�\0���������IT��r�OiM�9����&=`�D�b\"�<x�ri�`\r��T_�f��0D��2!�5����^|C�x�k�{��c��g��-.=��Y�0v@���1]�|[fAFq\\n�񥵀�\0К[j\nM�	�].{IY欅M��	g�ȵ��Q��5��k�-Qt�����G��,��.י��1X�\ZWĦ����!O���q��� l��aW�2�X|� \r�9�\0����^}\"6�+3�7���t��]��6.����YTo�TGy���K�Ab\r:�B9�\0�ض{Q��N�4�#�(��\0�*��j[_\rԨ\Z�X\"4��q������b\"���ԺRc����[�/q���l��=eyѝpd�f��W�K�v�ӯ��&�P���\0	^&������h�#	U��X� �<Vp�%��<��,��=IJb��+;鑫\n�/�����\"�	ڮ����WkWCX��*nTt:[8`\\�\Z��^��&=��\Z�9IN��g�e`�7ޮ\Z	^ږ\0�.U~%\"�E�Յ�1G�.�>c���*�D�WR5@A� D��nR��*ų��m�-�O9�Y���1�qPf�ڮjn2���LB��s�E��ӑ��ֈK�[|.A��(F��k�G��i�U�X�_�_�@�f�S\\�Ѥ���Q�{���_	�$��mh��(��U�%��ə^%�E@,�3�<��)���\0�;ʊW�2Z�dĹ�X�	a�H��Jd�6�`���M!�*P��į(8\n;�X�D�O� X���؆ڀsm�Y���.��)����ߌH?0f8�n�\Z#*���J��c�6�¦ohU�� ���\rsK�E����#�B�kᾀ!�g\Z�/�8Ȼt:%��\"�\Z��.р4Z2�[�ev���;�a jtqQ�g9�͢�{`��	�P�u}q�X��i��3�E�%�b���Xe@q��·Ode�q�B\0�$A�ò\'�a�M5/�J�)�\n��v��]I���6�r�p�!o5oĹ%��5�ݬA�oX`_�\0JG�\nB��C�z��<�F�UqI��s<�6~<��\\^�7/��UIX9�KG�GPP�����A2�\\��<`�Y@β���c�Wx��n���B_\"3�\\���8D����FaKZ���(���2���i����6-m�3IT�땛��#2vL;���?�>/+Q�(|��a����	.��	A�bأH��\\l����pz�G&@@&.�w�^��tn`�ڂ��|�E(�g_嘿3�y�P���g��e��!��W�^�mL]�;�+|]`pb��㫂0�bM�wT��i�l�J��j�k���Rk��59 !d`��e����b�R��2؜92�V�Zm�n�/���V1�\0�Bz ���dJs����wuY���%��y_�c�J*�R��\\y%b)/OO�^�`P��ٛ�%x�6V����va�E�ķxq3.�~�4TcE�#�q�E]��\0�r|y�s/(�{�q(�7e�����0���e�s�#)�.��Uc�ψyg�;a����^`k��VO^��b�mVIn�~�3-����b�\\g�q�@�&��֚�b�]a��{\0�A�\'���#.�\'�b6�nI�Jt�\0�*�W�\n�KW���i��}�Ɉ�����k#x����\\R�Ъ�\0��B�+�f�A���ڪ\r��\n_QE���P�YZ̃�8�\"\\89W�CX#�q���%�l\\l_��3���1ZB�Γ�l�%ѝ�ّ9LF�\\�T$�=�f�~��i\0�B�|s�/�j~៽ү28�<\r�&d��X-��+��)��D�N� ��\'ۆRc��/�W�����j\n@RA�6����1��b���l�wpT\Z�!m_��g?����n���l�X\rYԸ�\"q��<���yrW�7U3�\\�(��cX�jv���Ž򔢓�e�K����}JQ�h�+=8��͠�H��3&�\n8�s�-l��C�Sq%g@s��\Zy�T8A��\n�EȚ2�̳-��K�iF�,UJ&-S}?�\\B��X/�ܪ6�n}�oX}ľ\n�0���T�>�%��3I\\\\�����#`�M������m0�P��Ȋ?���!|v�Gȴ4o@��M��s)��O�RņʳP_�M�u�DQ�s���cj�*����C��=2ź��M�vC�a@���|�ԣYݖ�ote1��u]�]P�v	c\rP���{B�\0��S��.8������GPԗH��_SL�\n\Z�n��QA~�~%�a�J�������-���6T����3��5�Z: J�E��b�f�a\rv�|ʅP�j����.�����€f�m�`��E`Py�[[�q�֜�\0�<3����ڠ�J��&إ5��P�9���wcw�\r�IlVj��J�����087.��\ZAw.\Z\Z���|�L��V�9eӾ%�fk���QM\ZI>�p�n�8>ޒ���ASH��^�\Z+B!��\\�)�u��d�����\n�qf^}alI)T�>�ɵP)47�(e�j�j�n�I�k�yk�PF��r�N��\n3�He&ų\'�N�l[]���:�\n\r���8�q���\Ź6r��Wpv�z@\Z&q�X��V��nuZ��𸩌����Q�D_X_1\"!�\'4�!�,Ljj��ؖH�\n��c����C����`�e\nҀ�R�+d-mȞ�a�c`�#W�DY��aX���0�r�8g������Y˰�g�L�@�	�C�n� �Yf�	�_�wmJ� <�����tqnF�Ѐ�_���՟1�Tep�J�������GSWǙ��\n�\0�s�f���k�^co�\\	��Y���:�D�3і�u5�\\r�$}28 �븐�G���œF�}��o_��8́��\Z��e��P��*#Z��e�<���8M�z��Bct�)d�MT\n��iQuS7��g�s���\\ԥ]@*W�o����bD156�)F�W3�70,��;���/�j�R�J\'��'),(2,6,'images',0,'���\0JFIF\0\0\0\0\0\0��\0�\0	\Z &#/ #\'),,,150*5&+,)	\n\n)))))))))))))))))),)),,))))/)))))))))),)),)))),))))��\0\0�\"\0��\0\0\0\0\0\0\0\0\0\0\0\0\0\0��\0J\0\0\0\0\0!1AQ\"aq#2s����BRr���$3Cb���4��S�����%Dt���\0\0\0\0\0\0\0\0\0\0\0\0\0��\0\0\0\0\0\0\0\0\0\0\0\01!A2��\0\0\0?\0��bd�@!@!@!@!@!@!@!@!@!	�@�!�!@!@!@!@!@!@!@ɘ�3BBBBB	��!PfvU���f�ko�s�\0)�F�Zt�%D{33�0%H[&l��{{����/KH�HMC�@b\\_�<\n_/]S�Ӱ?�Vq-�|�\0��q��7��ģ�b���}e@�V��ؿ-x���*	�w#�|\'8������6�_�)Ww+�X��+���M�ؠ�mV�.T /�w�o!��5�1�{�(w\0�&���-�O�P|&� >r�����\r����)E=�����C��KҼh�+�\0�oę#Kc���F�8S��2��U�)QN�MI������͢t���T��?1��nѤ_���u�Rg�vl���76Ш���G+�{�D8���cӮ���ˡ��;�ϟ�T򕴺�tU��P�)�8pdU��=L��<�E|Q�SĔg�R΃(!�h@�u>��+a0��BӾ@��nB�+���G�Y�҃U��S�Dr��	�`	���:!!c��\n?��J�s���\"&�-��l#z8�9�O���鷣Q�)��0s0L�@!@ɘ�3BBBBB*^R��¢�����9��d��/���Σ�~���}ǜ���n0U���A\\��r���Bw)�4ן�n-P7�$������8�FX�T�!A��@q��c��>§�d\Z)��f]��|�=���F���\0z&;6��7�G��6U:2S`��I��6l���\rZkR��=�@o�۳�������H����]��_V�?��/���c�Ԥi�	�N�R*�6��I5Ҩ�\\���f�4Z����jx��Ch�\rb���$6Ƕ��m�vX{E�LPM�I���\rL�l^��0T�KSf��{�Bۧ<lq;���M�5�4,�K[�F�$��mn�׭|��`G�Mj\'\n~2��X�tnw�~ٳ�Z���k=.\r��~���C�@z�Gf��K��<X��x����\"�x�KxvG�~Rm/����]���eWA�Th%+�_�ߵrMͅ�k��/�yt�[n��$�>�^�;#YZ��)�,}+�6o��7�C�z~��5���,��u�^吃�� �7:�;K���O��B%FU\"�m���t3�B�d�L��!!!!0�\0$�\0ԓ��04b��*_�����W�\"�I��b�������򽊾֭f̹)n7�S�7�ʶ�s�\0{����GyA�\0\n��~��uP�c��������Z�kS�E��\n��Ç���-�o�	��\"����Ҩ��53�,8~q�TN$���H��p�[�jt7Q�o���\\C��(���ГI���L�����s]�6ר����|,��q��i�;<��ĕ�i���ϱokk�@66*���2�T�gU6��ݣ_�o��li��c�n�����їZ���fr�[�et�浀�R���%�d��9D{�)�\n�{��핚\r�S�Ih�K�7\n��0OV�ԱT�@��~\"B�a���.�\0IHݿ+�|���5:����p�0dlV5�[9׵�Wy��P/\"#ǝ�\0�\0�j�(��v_D�}\r���?�^!�Q��?���\r K�7�o	\0�����}�!��U$����;[�.܍�w~$�&�n���t��j��\0꺛ߕ��欦y;��U`M��-��{��2��;��:׬UK����Yl2�Q��O��.&s�k|c�\'6�3&bB@�$Fݠ��U���67�=R��G���g��+�YvEl��jjm�MU<��F�6�A��c��K�n�������\"�Pl��]��Z2��\0�`<-td��x��A��T��Us57�\Z{��8�O��y�9fÑg��},>��Y\"�[�Ў��o��#�� 9z�ݰ^��o��C�N�p�����<m�@�3\0w����*٣��VŁ��\r��%��:���\Zߨ�U����ܺ�Ȫ@�t�ԍ���6Pꨐ�:���vN�ԍ2�e��/I��0��[��\0_F��7��J�lΌ�qi�:LQ�0L��Dv߸m{�-��M1ʘ���������R���9�U�P�����n��E��j��\n�C�|%�����ev��:�Y����\0�QP�\\��U.5�L�<V�4�R��G�\"��4��7�%��*SGb���N3e\nl�{�Z�o���Χt���۔�K�xa���.Z�ӱ�y㬝V�_H[���\Z��tMK9��/rYT{F1���v�!+km<;%6��\r��u��Y$�\ZF�6+@��=S�Uc�g[��n��yY�)�Y��Q�J���8u�*گۧ�ŗiDÿi>�qe�r��|`�!96ɘ�3#�h�L�k�d��zR�F��WKw���~�å���@P�$�\0��\'t��5�b+��Ԝv]\\2�l�,yf��U�\0̌��2���HX�KW{�?h���:�J�6\rƄ�\0I�\"�^�a��q����q*�h��1[1��b\r��9J�{��U��,�\n�z�I��Q�̬��Pi�;Z�U+��\'x>,zC��ףP��֭HUK�8�FG\0kcf}�%�t��5�R�W��U��Ms?�1�tcB��5*�Q�y�=[�?R;�y0���MJ��hr�YTq7��4���m�5X}21�gaib��P��YN_�=G��f]5!@=�7I�$E��zXl;\'f�G��],4\0��&�����>�<�\rܺ�>خ��o�k7\r,>��~ �o�B͝u�:��B@�6k�m5�G�wF�x���:�a����jڕ蛩�l/���k�ɠ�仴��’�ث���N��Z���?W������D����R�bv_���u5L���Z(������ki��b��&aZi#����#fR̤oNe#�\"\ZgH�L~�D��1Pu�2u˜k���@ճ��j��R��k�3	�����C�َ:�\0+}�T��\\뇦V��33�^�%P�6�W��O��\0���0K��\Z��W�b�z��eV��$�~k���6<#|�T�3mE�/���bpl��,8�%�+\"e\nδ�e@�\r��������Ȼ+ѫ���,���y��y쵁�#(�0�#���Օ��E���~57G������שO�t	�vc^�?X��Yѧ?.��B�L���1��;g5}����,��{�I�{[�(}ٵha��%�\nH$�.lHԂw�?��\0�PY`x��\nti��X*�\'�\0�Op�*�V�ZԨY�-�����Ӥ\'�!O��J���g����{E���o,8fp��j$����@x�ӨQ�����R.7��|�\Z^���F|�UX����Փ�����h��zh\Z�\Zu**�vV\\��N|�w�]��j?_V�R��:4�1���\0v��Z�y�Yic֢F�.n\"j����8�،UJ�#�zj��T\0�T�(\0\r�F�\0�0�u��M>�\0k�����f��F��b����=kn��\0������uݡ�>�f�<+3���k�$ը���K(Zk~�wo��\"��\"�n��T���5��i,r�����L�\"-P/�蟚�؄�؋��Wnž���B�7�6zވjZ�t�v�asm��F3��M�%�2��p6jD��¥N�?g�u6�5�wts�i��Tf�)�wؑ����&/�X�%:dW��Q�(eL�V+r�~��]�ߥck�i��4�3�/���I�k��0��Β�X����!�ZkV@Ǭ��״��;*X(ı �,#��F��F��I�bR��Q**�V����ՙn\0>�\r	��]�u�V��UK��hz��1V�~�uG�?����C�b�k��K�SP�M�R��:k���l�B��_��tu�S)0�*a@�o\Z41�Q��.{\'�����\\����8ړ��zc��T�z\ZǪ{���w�*����?�-��~��O�\'K��a7�}b}�:�����\'6�3&b��՛���\00�-��Ɇ��괜���y�p�:��\0\r�3�l%�S\rQ�U�S���̤v��]<!\\1�jy|d�f�l�;��}�:]}�Y�����֘A�m%l�tb�?T��jlJkHV��5�ue�R��p	�������*�l�ٴ7�2�:ϓ>���h3z�N��K�=�O9�<�3~��} G���;3�������u��?������H\"��#�Y_Z���C��xpC�F)��9�����V�j��4�U�gW���1Q��&�B�K���:�$��^����,���U��S�X�x��\'�k��|�/�A�����f�$�`XT�H�6r�4�p�l�]������5��y]r�tM���S9�Fcs~�fͨ�{n����B0�~*�w��Q0�[K�_`�\0y\'����V%���*�d�#\Z��@cڧ��ct˭���7\r�ݴ,�?�L�\Z�%���X2�|���l��̴��w݀\Z뤫��X��=k�Fl�+ָ�)1@y�[��*<�3�B�Z�P\Z�nS8��&ǬU���Q�[���Ѫ�3ԤT-Dbr��f�Mų.��{�zC��0���f��x��+T�QJb��h4Ι����L�����2�P���>�4:��C���e�)@��V%C�*����	��he8��w�P3\0Y1\0h	����fQ�M�jC6�����x֫D}�\r7���hޣ�c��G\Z��>�~�Vrn����γ1���\'6�3&bW����F�fnT�Pn���\Z�c9e-�[	��v%\\�nqq�D�AoI�%N�F�UpϘ�\0\r�><~0���5Z��T�Q�)\nr ��F���A�m5�#�3�����b�h�ӫN�N�Um;H�6\'q���zN��)WRC+Gg\0�,F�\0�;\0M�<����=�\\��ao�-�S�E�S��)�Oz>�l>wz��8�� ����q\n�}\"�W��>���Nm�����p�5��:��0c�j��Tx��`j��sն᧤�x�+X��?X�*V݅\Zo]眲1���7�o����+���q��Ԩmn\0�)�E��X�Q˟t�aj~te!�qp\nvu�?K��?����q�A�b\\�G��΢��ٵ������mUˆu�\'?9�{�\'������C�9�e\n�tS�a��Q�~�����X��`U���(��Y�ؗC�-ۻv� m��O�&Uw�%����	S��+��.K�%@�E�,@$�n�Ѭ4���|��^�Ge�6f\0�Y�1��čW)��C���?#*���0��}拱U�U��fɨl�)*�Ŵ]O+�*/G\ZC�4�ؔ,Wy]��/�M��\"F�ѧH�l�0 ��@3ft6�w� ��r=���:X|Wy�mS=�5=���٭����)���w�Ìh���:m��t=`�gZ���Mlns�>��u�Ϲ��8!L�ɘ�35�V�r?)�q��u=�IW�8Z�FQ~�S����_~�u���NSc��bA��%��<�S��]ю���ցk��e̷�t��om�:�5�:_�\\64yԳ�aU4p9��q��gF�6~&�u�r��Je/�1�u\'5��4��g���t?W6�yl݌H�Ho�k�y�<�P�0w&�A�,,�y��_e�4��Qጧm���&,R�� \nX���xw��-�*Ny���$%zy�%NӢJVQ�K�x���d]s�\Z�|AbG�A.c�:_��U\Z��*��`���UϜ\"��,�}�y�/��U��%e6��F�^���~��yk����}�\'���3�U�z��2��.���\r}��bE����]�N#��ȏ�sa2��Qh���AU��.�2�\0e$6c��q�m}���\nao��η�c��n�<!9�cg�:]������9۴��7\0S���Zh}����8��@ͻ`_T��)��n�Dž�2)^lԥ|�ta�E�t��m2��;�&�����#Äv�z�c�QFʹ���Pj��\0U��������\"ڬ<݅�V,9eP��U#�:��\rnG���2���h��PƖ�^�*��p?H~9,��x���6�4:��\n<\"�綾�c-�qQ���/�\'6D	bM�ԓ�-�;k�c�Ե,1�L}�W�\n�ēfl�)t$�n\Zx�`���}�v>���%>�j���m��	�pĪ��<����Z���\nl\07����{H����0�*Q_*j�n��i��^D{(X�S`3X3e\nL�E��?��k�㎤�7����>��D�����	Ķ`�Z�\r�Qs�\rn�u=��zxq�3s3Q�C?��\'F�U�֩�C�GlF�ڙu�&Z� d�L��!�[��*�7B���}���n���@{�[�%�)���]wӸ��Gaҥ]�&���M���O:��Q���ʯ�8�S\0���lX��}���{?���[�m���-m.�ҭ|ŵ�n>1� Q1�L����#q⼜W�-MT�M��.C�ux@���\\e�AŴ�ͦ���M��gV[2��k�Qpn4\Zn��}V��j�2��H��-�	Cn�L)�Y\r\"vK+�լ@kp����4�$ݤ�3Ќ-M�ǸHx\'XjUz̠��MG���\\w�~M�8�r��;��,�\n���ɘ�g	��N�֙j`�V���P��q�;�:AE�\09��|5bMJJ�� �pCP���Y���Vf,wX\rN��pH��c�y1�7��|	#b��)�*���*��#j��\0\n\0�\0?�玱�Ժ;���d$.4�a�t����M3zn�{���wC���5 �gK�\0�\n�کP��I..�E�,m�\0o&W/.;[b� �E�G;��X���J�ȩ\\��T_����|��Ѿ�UĐXC�ô�\0dp�}��{��M��\njSQk�}��,w�qyiٛ\Z�e\Z�c��Џ��\0(\0{� � � d�BBBBBBBBBBBBB5��+oU> Oj�\r!0� � � � ��'),(3,7,'blaster 3 dlg',0,'���\0JFIF\0\0\0\0\0\0��\0C\0\n\n\n\r\r��\0C		\r\r��\0�\"\0��\0\0\0\0\0\0\0\0\0\0\0	\n��\0�\0\0\0}\0!1AQa\"q2���#B��R��$3br�	\n\Z%&\'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������\0\0\0\0\0\0\0\0	\n��\0�\0\0w\0!1AQaq\"2�B����	#3R�br�\n$4�%�\Z&\'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�����������������������������������������������������������������������\0\0\0?\0�N9���}iG��k�S�0E�敗���y0@���(��ޤ���:�\0��1�8��3R)��5�NO�J�&2M8|���\'��q�)YNV�c0I��q�\Z�i1F��\r&~��>�ґ��}��,�(<)� ]�9������4�v�p)6�ҀW����`��픆����#���MI�B�p~�l#�+��j��ހ�w�6�u�ی�ڐ��4�ǥ8FI\'�Ŋ\Z�	�M+�Ҧ�#)�\"�#_�8��R����>Ԥf�X@�T��D\n;�K����֤}�U��01A\\j{/͎qI�p)\\��랕>2}E\"��拒����O��\np9���<�)��$rr}�ï=)v{R�9�rmq��֛\'ˌt4�ґ�A�Z.Q�����4\0W�xC�*@E8=ME&z��8��t�\\�ӊ�� � �(j����g�^��4�<�b�E8�*x����\0�f��8;�Ҟr�J���WNvg��^i��zsI�r�M�¾������^�.� D\\��T\\�ڻ�\0��H��\'�sb&�A��MU�#:/\0�.M:�$`wQ_F�wl6h\0ן�I\n`\0�;WM��钡����T�wv}�\Z����B�x��Lgh�;����M���+Ŗ�$��UgO,�a�c=�0�i\'a��L0r@�j̻H�q��kMj�8Vm�[�5+嵍!e����y^��W���s~�7��#�\\�Հ�vlשB����:j{�m�И\0|�Ӂ�(�W��ᷜf���pݍ+����<���\r*��3O\r �h㹥��r)��[����9�F0qR0 R\0N=� S�H�֥\'4�c��Gj0��PݪC���nӚƪ�ӂ��r/q�ҹI\\�8���F�S�NA��E��\"u�5*��R�����	�N��F7\ZL �ӎ�)ʼ�\0CAZ�Q��8�*Q��ޥ)����h.�@�#$T�1�\0\'4\n�\0��O�@��K����$K�ڞх�y��a�<�֔!�qK�R�F@�ޥ�cr������Jx\0{f�T�.UCzӏ�7��u�M\n:��s�>`�1@}�	�P��₤b�ۻ�I���1�I���x�2zR�~�\0ͼ��\np?\Zr���h���A���朠�����*\0oW���;f��{��x�h`�3O)�;R��9��j�do�ǟ֍��8�aހݱF�@�E1�if�{{R�RN�\"�R^�GnnPu5���0rko����I%Ls�]�𐜆 q^^#�+E��#�n���>͌?Z���NÌ��t���ݰ3}i������qTŪ��:)�:���@�*ᶎ8��~��3�Zņv�g�=��K.S_3;�Agfz�w�W\'�nEv6����D1{�jͶ���~��ʝε3��^9�R��y�d�-��w��kMD,�I�k����ν�MS��~r*;]H0\\�\0:�.���Y�nc\\�{�I���42������eRy�M�|W�ѹ�)��T�;~y}O�~�~Kf �����!y�4\r��Af9F8���a�})\0��)��R�`�9�Q�@NOz���#4�9�2��(�(�)�g���0w\n@6�\0l�4�Wi�H�Zc4ؐ�9�ЏJv�f��[�JC��\"���y�(��у��9�-}����v�G�.w�\nx�9�Ƃ�0&I�\r<�~�΄���\Z�`1�q]�5S8�\08�z`g�Dy�jq]���������\r\0���0)6g�N���P�(H�0�J3���\nB��3@\r�Jz�A�i\\`rWސ#h4���I��/n�\0�N�E\0\'�/l��m�ւ�ݤ��(\np�I�n\'�\r���n2=���)�I�g���6@�g�jM�z\nC��2(���Ҫ�n��3�^�\r0)�y�����{R�2y�a�>��	>�r}��r(�\0@�Zz�\'�iJ�i���I�	��4�4��njc� ���E��\0�Z|�;�知@����RZg�����z>�~�H�]��}�\0�^g�����n@��J�bs�_/���n����$�gE��\\G�}qU4�e�MZ[��A�����V�y��\\�n�SYʯ\0cڈ.l1��VԷ�\Z_����u��f�V:�t�D2G�PGpC�\Z��ٕ@�@�ZR��7Ҳp�檧C���(�H5�kvKrk��NG�h�M���IEgYg>p3��%8��?i9R�8�(�wq�\Z�Zy�ry�}�T.�^*������l�ҕs�b�F9�K����p�r0h��� �y�J���16�!P:P�a�9�����P��x�8��N<�zPS�\0LdNPT`��”��\08�H�q�J\0�Ϡ4� P�YG<�J�;�g~��@�1q�h�$T�<��j�qJ�a7)��U��Ӕ`�ڀ�֋�Vo�I�N;�)#�?WߊW��4�c>�.ܹ��G0�s�o��+.�i<��3G0��4�n�t��*�I���\\�0�x�4 cS�w�K��$s��#E���8��Lӛ�R�\0oN��c�O֗��Z55#$�)[\nqO#�;҅��\0B˴d��JS�p?\n�:PF�h*�I�㨦�٩H�8�(�G|��*�+߭4��`|��K��m����G��})J�rH1�H��sҔ��f�i��*yo�@�҂ǡ�OPM#1�\nB����z^�=M/&���Z��fN��=�#i�\01�h?{m)����p4\0�w�zӢm��(;�p((�r9�	�샡�t��P�5�����d�8�+\n�MZ�E93���١\\���\0I\r�����\nJ�$e�y�ä�=8דI-��e|���a\"��}k���T6Z�m/���s\\U(�;!R۳���\0<V�.U}~����\r�����8�5�N���I�42�Pq�U�Y�>�u�I5أ\\���4�A.e�>���I����O[��;rG�h��3s�Ҩ�ӡD-�j�K��x ��y�Gv�^\"3��:�x�n.�}*����>.\0�E(\\�zf�3�G��W�?1��zу��N#�u�Ѓ�d�����qRښ��p;�\0h4�p�/<\n��Ah���\0JLT�dx�J�6����\"�����Ӗ>A��i��1HCT�~4�7c>��,�9��)���h�B������)�}�6���O�a�\nvݣ9���\0\ZW`0�PTc��R\0?�.��T��OQ��ӎ���Crx�l�=��~n��?\nG8�>�\\���3��h�\Z��AHnw�ȊKt���\'�yPh���L9�*]�M.h�NN�p�����\"�9=izԅrݨ���%�����P*W\\}i��G�@��c��䞕.�)�b/�H���zy\\�8����i�j�\ny���F���r@�=j@�M(P(DI8�F܌�����\n#+�	�I�� \n�jC��ӓ�_@@��#��qɠ�b1�JO\\O�g9�pp9�\0G�C��P���Z�	52��&�4�J�5R����*6bzC��i8ܥ4���0 ɧ�8<b�m��.�.T�����	��Ph����=O<v4����J&���:{��4�Y{�†�Q��\0��K�%��s��JM����r�F�\Zl���O>���Z}�0��ֲ,�)\Zt��b�����_?U�{��Mr�vq�k���U�[�6\09?J��~b;Cg�[:.���{W�:6G�\Z����� �&���F\r;N�F�=��O\\\Z�gb���iTc!�ԋ�ь���d{\0n��2MM�{�m�w�{L`b�1�(QH@��̀�p�pE8�ҜO\0�+c�4s \Z��`��<Ӏ���ӑ@7x��8�\n�cGb8#�8\'��e��\n���is��(L��9��D�R��贫���c�V��\r�>����Z)�ߨ[�&���z׏�f�L�0�.j*M%~�kٻ*��\0���銧�i�O۳�\0`jVR\"�t����=�B�1��Y�1�6�g���\n��)@��Ӈ�9�z75��Zq���-�)\0\n.^Y9�\n1RH��y��3��p:���?���\0��}�6g����q�6m?Z.�4����J@�\n.>a�� �� w���֋���S�HO1��f��Sv�����=��d���\0�c�.!�OR�)�\0���G�8�&ܞ0HTHTQp#��Gj\\q��R\nk��\r`�I�דN^iH�\"+�g�+/�i��(�h\0>n��9�s�u��b����9�����99�+HFh�p(����R\0A��m��Lu�ӽKM8ɠ�Z����*n�����@t��6�$U�Q��#\"��#�,\rt�=�p*������>��fC�汩h����ٻ��m� \\y��Y\Z��C��9�핾���cR�zg�K���G�w/��l���jEJ�����3�c��-3VU\0��	�J�~X�uS�}O[�u�#P	�j�p�+�-�A�p��O|ܷ>Ƽ��o��G���@t✉��i�y��}�3>�O\'��p1JwjOP�;��`w�	�F�:b�X��M���I�~4�0~����db�T�Ґ/�#ۓ������3R*�Nh\nO=�лh�Ҟ#���84�c�K��Jz)<Ӷ�J.;/�29\"��ָ�3�C(xW=y��qS��Kay�-�X�e#�k�x�!�ęU\\���^>R[4aZ�����ZA*#NRa�\0�h��j�ּ\'i╚H�luT8\n��+��o��#�b�u���qD�F���-��\Z�\0?���k�ٔ���:��i.��uL�	{L-[�x��W�Z�D�ʙʿq�=�^{ײ�e��-��������_u5����?|�Q����=A�_ۜǘ.,���N������Z�f�<S��J�l�~ӑ��_���¸��=i�G v�K�3�z��()	�i�\n�x�C���(`:PJ��@P���JA��!]��a�0q֐���PXc��;mbS���8�H\'҆�\0�4�[rs�hٚ~�h\nE\0G��i�A&�l$r8���L����z捕.��P�P!<z�%��J��~��qL,G��$�h��<\'$�搡#9�9��s�_@i�3ҍ���p��_�\\n����M�\nw��Q��\0�T��SI�aE�`9==(ڽy���h*@����H~c��0��(,�	8���=i�<w�\n`G���(<�R��0rO� ��)B�g�I�Q���&<�����I�goZ]�23�Ka�F�یR�O�8�{�:�w})P���sV���\0�4ӹNx?�K��摟/SY5Yv��f�$��E�q�Oқ���k���%Բ���nH�N�8�(��A�0A�R柳Ҁ��W�y�i���\n7i\0ͬ{�Tyg<���0K;S���=�U��R4[E Sޜ���8�:dS��?*\nD{px�FӞ���\0w�S�~S�R5��N+���O�#�q@�\"E�S���^h���~$]S��	6���W��Zy�&E\r,K�<:���x��=+վ����˧]�k�A�I<��������u\'��i��K�{�V+ι�5.��I�%\'O������[Zx��쯣�,~�z&���f�o���pL��_`�|�\r��t�c�l��3���N��q�k�/	��上x�5G-c%�?�~��8N���u�\\�r�ț�F�9W�?�j��W��6^&�^��ÐF>h\\w�\0=k�<E�ˏ_�y�e<�0��_���\0��?��\"��Cu��h�l%V������N)�2zS�S��{�`�~���=!�c�\r(u�q�a9\"����LSJ����W��PM���G��<�F\0?Ҁ�.O�d����z~ˑ�\0���Ҁ�\'�X��LQ�恢3���S����㷵�FzsRR2��@�qI�zS�G�x�P�Rm�Oe�{�W+�\0W��qJ@��J�T���Fy�Dy�HW\'@x�L-�1��!�Y�ANjn�\nkߚ\0�`ϭ.��6g$SJ����`(�1N�h*�LG�ԛ1�*T�-��@8#)�=q��܌\n�����i���EJ�vx�FzPL��>Ԝ�>�1S�\r&��C!�H�ҕ��:Ի>\\c�т}(��R?+!S�0��4hR0{Pɓ֤*v��YpDž�x��3O����R3D{0i+�_z���=h(b�c�_/��jxL҃��h�zR�x�5*��vݽ�\0Z\0�{�P��i�4�0�h�c�m�*����`��;�h�u�*�H�O��NE�J�|��Ҥy�sɥ��Kv)\" �����y���=Sq���A�T�W2�1\\A!�H�208�}j_,b�h��eR1�	����IqOs�t˫/xvXn`�x.�qn�=s���s����Ʃ�\0���)\n_L���^a��t>��x��;���i$��3�{���,�忍tX�$)\"�{K��N>����ȯ�OxIp�6V�ժ��\0+��ů�kc:��KI��n2�bw���R���x�H0�e�~c�q�&�Sº�ڜS�jQ}jɼ��W�=�=Q� �Gj�wn�L�u&���Q�����<n/(�F�	rփ�k����1Bt_2<�]�.t�kr0~�H��u�EQ�\"��T�,�O�}�b#t�%b=���u]&�E����rG�8�H����\\s�����\"��c���H��Q���dt��A\r�z\\\Z�W�� �i�Nz�œ��g���G�=�B��v��<qڗ0�қ�Hn�����FA�Rw<R����\r2)��:7sE8�ϵ.�i7`\"�M�>���\0.����N�Р�I�O�1֍�1���FPz�F�2x8� w4\0�BZr7�F>Zb2�8�4�<Ԙ%�#��P!�GJB�t4�\0=�����Ҙ9&2�H���#S��!��x��A�@4��\ZA����h��MIϵ/�\0@h*4�\0��q�Љ����Sޗo��m�ƕG4\r��qI�lT�=)�f��ҧ$nޛ�g�6�9�\0�@Z�H$q֍��튔~�!c�p((�	׸�۷����4�<\Zb\"�0)@ȩ\n����Za��J`�\0:��h��x�,3G�`���R�ǽa��;�ž�S�r8�B�٠,\"/=i�s�BNJ��*Rzs�*��R*��fO��+��1T���l�=\r=W�J�Ҹ8�CJ0)��@�(J@��?t�h�P+��^��ŞS.�x�bo����\n��5�z��R�4N\\���#����,��YuL%i-�g�N7=�����ִ`�f�K���[��c�n��[x�K���p�N\n8���\n0�A�57�<X<E���}m�t�:ֱ|Qc/���<Ef��ږ�3��A�\0��\0=�솾]���bU�������.�;ꋡN�>��F�\0<��\0O�R����+�V)K��������+L�:��e+4.A*�G��e[J�=�Z��Z��ǐ��|�M�b�|l1�9rՃ��fp��� ���M����&�h�VS�P�\0{���-��x��I�D1?��c�C^J�<3�:�NOPGj�\0Dx;���[��Aڢ�Q��*��\r��o�O�:я��������d�4ђ~a�Hx�i8�\0\Z\n�ͣ#�B�T���QK�`P\rʞ�	�P�/=��P�Do�})݈�f}h?)�5(\\���2�d�\\���BI���ǵ! ���f���� �\0zS\n�Ƌ�\"+�Ou�`u���R(�=�m�\0/<�$��.��ǁ��M)��H�s�F�㎞���B�g����y�;�\nB��0A8�R�Z~21�@��A$Ar9�j\\v�0w����!Q֝��┨PA<�\"#�2zR7SO)�y���X�o�4�zH@�g�h�Н�҅�Zp`��fsց�nڌ�\n�v}�0��<q֗g�?Jy�1��s�\Z\0w\0sL\nS�{���0��\0�ۆ�H�#.?\ZUS�jn0\"�T��i\\�;���z\0��\n���R�n1�W0X��N@��	4��]��&�p8�K�\nxQ�2j.44\rKjAT�x����$\0�<f��y��WzS��RP��b�P9�Ҝu(�Ҁ#�2�����Cq�R�x�T�A�d؈����?�Lc��i�F?����CC.MNTS0}*FY���S��տz��;��k�t�B�Ě2M$��J��x����l���\ru>�Y��\0�;�������z8�k��F9���5T�_q��ͫ%��޼�=�n�o��\0f��m��>�����;�7P�Ñ����-�źōҬ�L��O��*�{���KZ�������kU\r���E��;\Z���Mւ�H�K��\03˜��Ѱ����]6�����z�++�^\Z�R�E7�\0�F<���~u��6Q��U�|�キ�j��jr����C�	f_c�v�O����x��MR��}$��\0]c)R���/��)��<�>��x��C��9����\0|{\Z�,�_�C��O���-��g�z��Έƒɣf}(�8�vÏq_Dn4(��`T���isM0#S�F�*{Pr��N�G��M ��7l�{Qp#�A�J@3����{�i��.1��C/�c4\\��/lc�\0�d�Ȧ&FÏ�4�_ʦ#���@\"1��H\0c�HF~��$z�M�i�zԮ>lS\n�Bj���4.sM�*Lc�4��O��0“n�N*r=ieqG0��\'�8Ẏi�Y4yg\r�#1�3H=zӊ\Z6�9�aڐ�\n8��/�(,M4�\"\'m����(U}�K��8�.�8E7�>�s]��8<\n��Mݚ9�0�TN~j�Fx������k��?Z#S�~j\\����X\\��JJP��O��c�\r�}()�>���y�9=(�XH���R�u�?iQ�\ZB	�x��#\nsКq��T�q��\Z���+\r\r��N�i����\\�(�֗osɣ�+��{G�4(��!\0R*�=�\\v\r��JGjw���}�=�F3�\Z]�Rc\\,!���=��ϵ)@�U�g�J@$�ϥI�g�I�nz���4��\"Dɷv?{���+[�o�Eqe �լ�͵�?��սU��דE3�\"Ȅ���oJ��\0��|A�䐷p��!�/���#x���Uy�[q��$�}�Tp֥un�/	��<A��I���sݣ}�eyO�Bpjί��W�����h����=�cx�F��u5�>�Ks�������ג����#U��t�/md[λ�������Ib��\0�T�\0N�%�$7H���7W�$��[��	>�t��^\Z5���P�	���ɿ����U��%[� �k�`��J�����֦����t��K��,M���Њ�3��ҿ	�M^zN?�~�)U�N��⠜�)P9���/�捉��C�����Y%A��	����NJP��h�a(�sDB���/2)�8�1�uܾR�\0�s�&�Vq�� R{jwyE�+&�d���v��5���Bb��=�I�x�m4�>R�Ú6�S2���QqX�a���*}��M<��M6>R7@W��4G\0T�H���+m#�3֧+�^j\"1�Z.+\r(6��i�X�zy���#�ީ���(�Fi�{�\'��\0AȦ���?8�o4��1�^�͠rjR\r7a�{Qq� �ԛz�9�Yv���NT�J�k�2�A�x����˟ja�����4�|��JO/oj�n4.�+�Ȭ��:R�m�1VY��E����3���b?j�pq�5\0qG2A�@™��`�SL�)�Ɗ��2he`:_B�_#��|ά�@�n��@N�p���6�{X���j�Ԗ�J��^ը�0�B� �}�������D��Һ��Uv��WR���s�N^�n�D��p���O\n�}�GNM�۸��;\\�T���d��9�K�� �`�F2O�ks;kaʃh杷\0�=)\0\'�~6�(�X��(@sB6qOq�+���zZ��4�g�E�х�&�@]��O	��.7{S�6{э�f��B$΋�l�9�!L{��`w\"���R��d`e�a�Jm��a����J�c�w�.i�6�qǭY4]0���L�W�mZm�;�6�\0�\rW[i\n��q�����\"��4)��J�h�BJ�?1J�DZ��qj�q��r�	�S�}k���íu�S��֣(��?-���hܞ}\rP�tk͓d��@q�i��w�֖��������2��2���_��q�u8?2�K�Wo�]���pve���5���ɥ�>�j����������~u��k۟j��}M�H�^�y�1�?�_�q]�c��_�դ�U4������-��#>�Oi[��2�e���k�/��l.䷝vJ��Њ�nU���͝�2(ϐ����}*]wJ]n������?�O��O8��?�z�ݓ���:�x�e>I�y���֗fOZ{G�\n�8 ���烏���H�5t�>�}�ʞ1A8=js�~FϮ*6� ̎�=K\n®3\rE^�H�V��a�T�`�Ȍ�G�7n��<�;]���I����`?��?�rS���t�ſTm,*�&����Ӊ�s�M#9�Z��i�ܚs1MzW� 79�G���ԉi5��H�ہ�.����\\F(*1�ѷ�֧vG�k!���\0י7}�L}+)W��~ƣ��4r:�C�[xcS���i\"�qҡ}\n���$s��U\"�b�r]��f�l�/w(O(�ޢ��SX��p+)bi�y�T��N	��`确���z����QQj\ZC�[e���SX������:pz�gw��ʌ\Z|0��U�=\0�Դ�1�{��P[�ˢ]�w��=��D�q���Dgl��(�1-�ic�ӽ8�g�‚�7�8��&�nE攌�\'҂����o[\r&4�y�3M�d�=i7`dr\r0hx婭�#�:f�H9��6!q�j���*BF{�X�-zu)�I)F{�JF��${Q�ܝ��mc��U�5�ӊԛ�*��!?FF$�\\l��+��|�!�\n�z�u�ߞ��Ih�coJ�gtȜ�g����@�n����xB�ّ�=�]1�y㊘��r�T���J����ߍ���$�)B9�z�I���I���\0�mխdP�85�7~+����.k�2�|�_;��c0��q<�t˖���ʥ�D�9���.�}�?td\n�h\\���+׎*svH󥆄U�8y�%�ǘ� ���h�\\���Qc��]�g�Ҿ�aL�ݑ�@�z�����6�ԛ{(`�F\nʸ(�8�8�+�\Z��j,�R|�c|c>��\Z�s�	c���OY+^��u�O���SQ��I�<MΧ�++n\\�v�J�O��t?���R֥I�c���\0qT��=|\Zh�x��Θ�v��:\r��B�U�{�Gl\0\\�O|�pw�8�\n�bir8���=L��7�\'���L\rY��k��Ӛ�E��(�Em�H���M��\\O*�)��~�R�c�iSuZ��m��@#*\rki�) ���k�4�.Wչ��z2A \Z�ꙓ�#ݥ��Tp־\nY�]��O�Z�\0�K��e~��6:LP��j%��/�O1��gz�S�y���;�U�s�Ek/�}8�\"V>��Z��\n�{Ӛ�T�J�x��F��S���]g᝴�ΐ��\n��ust	��:W�k��#�Ոlv>��3\Z��L��)Mݣ�.�g��q1V��#P���t�\'(��=+�f�8���5�x�Ǟ	�TN�#�6����弽��9�+��$8�<1]5�t�������mf|��{\rW@�_\\-�pbe�c�n��L�\Z�o�WO�8k�\Z�����6I����oҬ�~|F�e���k�,e����<0M�n�x�^S㏆~�c᛹�G�祿a���w�Aʆ�� ��V��2����u���2�\\yҖ��=��[̇�FS�1\\v����X�c�����A`�v��\0OCۥq�\0,������@���dzc���P��rT�׷�h��.\nc�+�qT�e8�E���8)�x��S寉��[a᯷i���[�3%�Y��Tq��2[�@��ɚ��G��Eg�]��g����~�ɤǣ0�?yf~P����Z�/~��c�Ϯ6�>�9��N�A#w!W�>��¾$}jp���䃲��������9�d����#���/~�zf������hu��X��q�\Z��\Z�ԥ1h����{�`\Z���<���\0\n�o0a��Nk���p�k�\0�����]\\\rKS�֭����#�s�h����&kӡ����!\'�f�8S��FMw^�[�8o#��5��U;��J&�nO�^��	-��d���z+H�\Zq޽:U�T��i-u\"x�n.-JVL�6�n�����D�-�I������\"\"�\04K��U�;����g�}W��KJ˯���Я/�F�N*��.nQ۹>����\nY[ɂ����]���e�~����_	�2�gκ�]J��M�1��x�{��Xi�\"�۹5�GmChQ��n�H�׋��kVѳӥ��Kds�~��@�/�V�EU���`+��js�s^c�\'���]�\"��Vw|< ���}�/\"^���[��+�V���${y\'�--�)�⣟L�p�}+���6sY�VI���VR���<�[���0\0n>��\\�>��Pz��tTi�GJ���!�+��RٜҠ��?���HC	���+���m3��e����2+ӯ��	*;�7��`��QNx��#g#8�(��#6_h�	-�c����߇�!��A�}-����M(�^�+��*GiJ�7�G�=�c����VN��7O����5��b�f(\ZS���Jт����Ԙ��JZ8���_���Ջ\\��G�R��2�Ѥ@c�L��K��F+_�z�%|�+jy�h����RQ�G�z��mn�(Պ� Vx����a���.�\0(���S��VhW�LW�,�G�,��\\�4藍��A��m��b��c��+�[Oi��6[!�\"���kf1(�`\n�Y�ZF&�ʣ��|�>x��y��ұ�|��ɱ�%��\r}�@f�E+��ҭ��x�����*5y]6�l�g�?�]n�^�\r�\\s^��q��3�=Mw�k��/��Z�\';�^N\'2�]���8:T��p����/\"�۸\\��Ց7��y�j,[�Q�\r�R8� �q�*)W#�}��\\6iW��~�FqHp���֐g=N+�|Ou\"^:m#�^���a�ךk�{���pz�W�����1�^kC�n��`xl���3-Ԅ䪞��]��)Cp�:Lv턋�,j��O3�wg�\0\\�n*��W���ғ�jת�h^if�m?F�``�+�Y����`����^�L�i�>�Ӿx*�ĺ��c���y��nc�W՘�^�D\\�v���(��<�AtK���$�ˡ�n�1���P|��&�<�f5}���_@�B�\Zz-Y�_h[�/���uy|�Ԕ��S�AxQ�ܞ��i��W�o\r�O��v��#��k�X�ZQ���B��zO�ն��f��[(�F�o�W��n6OVxU�Y%���s<�q�5�z�iX�N����E��(_����J��u�[�C{H�#�y��fUVF�\0�q]O��j���]1*G��W�3ŕal:m�i�g�������z3j�E[g�\0�68<����N��>�0����3�4��6��I��Eא�\0�φ�h[���G��\'fX�Ӭ�];��������s�q>���l������5�Տů�_�\Z�c|+��M�G�k�v��g�԰�Ǡ&���{���s<rx��dzE�0i4�[2�;��\0���4���}����G�͹�յ;./{r��>�Ex�\0�n_���y��gk~��D�@��C�۟lלZ�\0�:�jZ�ڗ��ŷr���{|�>�FN>���������o��#H��7ނk?�n��n}�/��<F/�(�~8�{O�?�I�iR6u�����lt\0�nOj͏�7��6e]+��ý=�q�ȯ:��\'��_h٤6P�6�(��%�}9�`0}�^^H|���v���r��q+x�ա��<X�*S�vlO�]��\0�I�Am�[W�l�;He���̌�c�{�����q���wN1Qf�c�<�߳7Ÿ��xo�Z&�r�.V�̘q��r[?�ex��g���iqy�����}3^��\r���+�S�\0֯��8w��\"6ki-�������>aO��ף>Q�-��̌�:�����CE�Cꧺ�(мS(�]+ZD��0Ln�Ct?���S��0�y����n��(�����|A�5;w�V�����+uV����̏�U��ajfk�S��b��mK=���E�`#��Y\"�B%��.�~�L>��}�Vu��{�{���zC5���W rz,�����u�X��C޾2p�����kg�ٙ({X��W\Z]����	\0���{�⤷�i\"er:�����M�kd/lęmת����;����F��ś���>��ڿu�1:�7*)u���=l��irW��:\r+FKH*m\0V��U:v�Wt�ݪK�����>KP;~��5KO^�ԣ%�G��%8;�g%������of\\�h�\"���~��ƮRhۡD7JԵ��M��Ӛ�����SE�a%f<�&�p�O���ZŭK����;T�h��.Nz��r�w���	g d75JI7��������P�\'��!�������ӓL��L�p�zS�\0uۊI��x=*���sW��А�����TNj\r�~�b��\n�4�%�4�&?\Zܳ����9�$(Zڊe�y�^���P��f���稩D��ҥ��%p	��n��2)�j�[͋��6�XT��NDQ���)Z�y�5J�rN7~T�I!Q��Q�m��8��;R��K@2���\'�V|�\\H�,�8�<0 ӻַr�y��Iv�R�Y����[��Ms�ޟ�U��rz�ה����3RyỒk\Z+���ե��+}�\n���f~GT͞�Ո���;�.709�-�<�=k��\0T���,_(�hFC��1���py��lMd�Sٛ�\'�[�2�� �j�1�昐�x�j�gC�H鎦�n�xO��|�!�����ul4��qˏd]���k۹n��i��,�^Gn�����}}�\0.��\0�xb�a.��h�Ƞ6U�X3~/�_�ۺ�W��~��R�<*�=�A�L@�K�F瞕�3�0I���\0�\0\rxc�O!��ռI�}�ef��5�|���_�O��7�ߊ������2-��|��R }����b�n��{{~��&���5��F���}]c���YY��o�ԑ�1m��\"W�%V�VZ1.C�Ez=�\Z���2eH��Q^w�X͡ݔ�/`��\"��x���duZiʌ����9�\\�s��eᧁ5�M�j��.��@���e��\'�W�[���\"��+h��1��\0W�#�\0u;eC�\n�-W]R�\\�Ώ�u������bi�gy-�t{.;��<ߡ:E�r0hv��l��qU��5��g��^Fj�W#��\0�y�F{����?�\Z�nr:�*��֦[���Jù��)Z��#�k<]�ޤ[���Y�N��4�����|�{�����J�]�-���M�>��Ҽ���2>�\Z�3��a��AJ/�9�Х���Es�����\Z��H6�8�H��W^�R|�.���>�K�b=��~�W�_Lk\Z5��f��&�>R>�Pk�<A�ۍR��m�}�W����ļ#�Ṻ������K�ٮ��V��	�mu�n��\"��tt9�\Z˻���v��]��e��ԯ�:˸Ү�\'+�hq�%�4�=	9/�[�:\Z�4}f�_�[�IDѓ��a��Ue<�=\r~g:N��i>h~^O�ϟiT�[��5�,�Ol��n2z�;\Z�\r7R�֭��0��z�����	���s��\"~YG���hx�Oj��Ԕu;d��z�Z�\'��ʾA5J�s�7����]��ϒz�y#�Ry�����qj��>�w�F`���\\;�a��O��3�5����I���*:�T���7�1���v�ߙ\Zh�H�p9�Ԙ槎L����N�s�֭�0#�c��b�M�SR�H�n�N<���Y޳����)@L�TfN�����@�X�#	�Tn6v�+�u�@Pg&�-\"�u�Ա�!�P���y�+��a\\�\n�C����=k �y���K�w7�=sS��;�\Z��jU�ݎzT�w6��GZ�4���Q�Y�c]sޕ�壐���\\��^�栒����^\0�9�b\n�Y�xH�}�n��~Tj��>�#\Z�.�\r5�0h�.h#qҗug-�\'�\0�5p�������T(��8�p�ƶfd��J�E#��������(�1��Z�Q��PEns��;xH1P�Ƅ�wj�-2q��ːx������M�kC6�S�Kk\Z(��d��C�$\Z�^��}�p���Mb\r�;\\ԭ�{��;)�\"�5,�ʄ�\0rN@��\\��>;��\Z����x���Z�\0�5�CM�d��$��=��̎ĐF�S^������W�Ɓw���}gT��EN��]��~�-��}�on��O�S�]�z���j��gg��p�O���y�����O�-D6����eĤ|�9�\'�{�NA�^͸��ɚ�i9\'�ɷ-�עVF��qL�[{�g�tެ?/�c�ͧ��z�������Ԋq{��Q���5�0o��4�H����\0�h�N���vdm�`��:̌�\0��A��4�k[ŸRw���?����s:X��ޚ{>��|����1�A�s�R�z�F@z�R_s���Yq_���L��5U��t此��sV�W�z��$�Rp9�Z�n@��-I����;б#�з����Q-��W�Xq�I�=��B�=r8����ނ��ʇ��ԔG!j��pG�;U\'��Z�RԚY\n�g �V�D��ʫ$l0U�u���+��<Q*T�ө��̉%$ԵG�xxٻ�jL�w^�5�j��-E�m\r�����Cx?� ��#�^�p�\0grz���t$��=�S�\'f��n+�R�2Ux���u��e��a֝�3�$���X�=��-͔�I	��{0�ԗ�^��hB\\���8�z0�U[�^\Z���E#��ũ���c�_�Xtu?�?�C���I�\0�uXV�XPH�Nc�Q�q��uZ�t\Zn�k|Q{����]O��S�,�4�}Y�_21\\Gãu_�D�u��H0�$�>h��q�^s��b. .�8z�C�(�uY��ow	��=���-�x���M�Qo��3�����]�[S��j&�8�5��k�j��o��|�ٽ�i��k�+�p��\Z8����\0#��6&�*�������!�qQ\0��S�¨�U�Q$a�LP�h*\\�5���ٲ�p�Z�f*<z��j��SQɪg�ǵ>F5��\0rO�Q�����X�}�g��>�\\���\rzH<�g�d�䞴y�s���!��J���>��VA� �B�㩠i���0I�_4��b�SJ/���e\Z��{�Sy�G\Z�\Z����Pڀn⧔w6$�ǥD׿L�4��9�7��|��s^[�w���k)�7uaQ���ZӔW]\raw��3M�Edͣ�j�}�r�w5E�ޔ���X��y��NZ9|�i���<~tﴃֲ���h�O��k�dnsS�s��W\'�69��꼑�#h��pe�/��+k�q���=jXn6�3CW\Z:�{��qo0k���֬���Z���ϐ0x��2��\Z�.،n�����ֳe\\��]���N�\'������v�}=�\n�S6t��\0��R���s�u���*]�Q�>@�7Z���Y�ֳ~�Oz�qxNNO�I@NM.�cYW9TwD�?\Z�yI�[�&m�|\Z�>�X1~��O�ZX�ul㚱�U0OOz�o�FhcF�\'�_�q�U+u�h�sHбA���/=�Ub*?:��\0z�cDю�T��V`;�N�I�< ���Zb���/�FX������#��@��~4蔾*���Ҙ��,z�sdw{}+��{b�hT/j|��m�sɪ��?\n�.a沮 �8��جr��Y�y�����[��	w�����溹�L\\Y��Z}��>pVQ�$_�\\\'��+�	���%[t7�����]��l�z�4����2�S�=s�=��*�\Z���]����7�|�?+�+ކ���\'������}Օ��]P\r����Q[:���a��gC�H�G��j��\'����E=��XJ�]Xd�{�=Ep��l�^<������a�k0z,��g�;��.7.����Շ����Iwk���>Nt��Ek�����>E�\'$)��)�F�߈�բɅ�Q��W�]ZéA���7�<L2>�#�?�A��s��,R��r��A�=�E{<5Ę��{J:��P��D�\Z�u^e�}knO���HcȬ?x�5x��p��9\0`?���b�_�YNk��p���ex��}��p��x�J�6Ba$�\0�4���W�/z�F����k�S[�Uf�l�]�t��A�\n9��������/!s�\Z����s���z�29��l��I%�m�S�3H��\Z��v�-���������s�*�}y��g��!OJk98�Mu%��t���\r���R�g�MV:s7���Z\\�2?���i�ke\'�K��޴�M\"�=��-�=�J��4�\Z|Zy�⍂̮��w�����Ӹ�ʧM1jCI��!��Ծ�V���6翵J��Sr�f�(G=A5�m��e�B;Q�Qa݈����nTw����92��R	\nV��Rw9�FÊ��\"t��1\\VQ�)��v������K�\rV���<}k<j?�~5����퓯�j�Q�dJ�F��s�3L�E9�O�y�ƭ-���z�Ԑ���a��z_Rm.S�⢝���8�i�tA�\\����ԑx�I8�뚇��w�E��߀8�U���>��k|��}*��:�\\����w$�~z�g���K��UF)��ԓi�V#���ldU�����4�\'��� \\f�cv���h͊�(ي��Y���2ǵXR�t��QW6��b�K��V��x��-�st_�����?�ay��,sx��K��Ѥ�R��<�=+7�\\��ғ�U(���8\\V>�������ը���*\Z�I��ň��8�5��c&�	ԁ�ga�t�j����2\0Nj����M�U�F�V��U�����T���q����n{�m86�e$�Z���P9�ֳ��CY1�	�����q�\nr+�P�F\n\\ڛ�D��6��;\Z�ռ)��n��0�G|�\0JӴ�mqn\0n��Z�����Y�.LL=崖霸�,d-5�s��\Z�W]���w��/s��d��x��~U��\'ҡ���Oo(���A���Yմ�]P8�u�\"�g�\\$��C��b�[��ewNF�M/q?��j�բ���k��g�Y�W[	\'̯�S���b��wK�R�Lz{�W��o�q�X��/�@:���N�+�6�|�y�ٗީ�ڵ捨����3�)�����W/q%|��������wH�r�ζU^��:��ޤW��]z^�fR#�p�\0t�\0�_�J����j��b��4!��;�[?��?i�ק����wL�Y�=�i9�Iy��\'�#���΂���=]��V[�7?Jw����qА�a��isT�H�Q}�}ir�ܼp��$dP}�=G�B�)�4r�\"ao���RE*ު\Z�����b&�N�R8��*�K�MW:�^K~�\r.]��@?*�Чp*��T�n��jc���lz�UQ���q�Z�&��w�_P�sWfMѫ������Y�)�7�\n\"�4�l�)�`:Vs]n<P&\'��I��O�`T��Yj�G�Z�!�}Q\\�7�9���L����LY�?�2�_gRNk֎��!#���\nH�CI��v�p-�J�$�S[Q��	�t�\Z0x�v�%q��Ʃ�\0�\\3�:��\\�t�7>��:��\'��O�2�*��|A$��O�\\��4����p�����2{��n��&�;��>� ʊ�TtG;���wb���6��Me���XF�z���E�vgSi�t��5�@3�ιn�.i��ww�:xu\'vz�du�WYG&��q+�5�k|������� V���j��:#B��L���k���B1,�v=i��,���TjE��ÆqW��UFko�`n#گ�](��s�\r\Z��(�\'�*�Wiڦ�d=Me�Rލ�=Jqdq�����i-�*����P.L�D�{��԰O͊|��S\r�j0x��YK�=9�5u,��5\"��Oީ�AΎ���s��USX�}k���U�\'�j\'�s��[C�e*�砿��7\'���i ��\0�y�f�s��\r>\r^XH��s]/����=y��8a�Q�Tc��t�:�Ti���H$����Pf�2.�pe�\'9�[�a\"1$\Z�i���j�<��֐M=	��4A�N��x��ի�c\r��]�¨$Wj���3��t1ja�R6�\Z���p�\Z���Z�.�,�n�>�Q�kr%���;��!8U��e��*�P�^\n���}�*��/�XⲼ62��b\"��f3��G�Q�.j�z][�B�0r�Ұ.b Z݂�d47���{�w���b�$s�W��o#f�n��6���ƿ�x�Ê����t��KӺ�>3Ȥ����v0|7��i��T�(2âʿ���עY�=�K$gr0�G8�\"��~�{�^Se\r�޷�\"?����G�o���:��Ӎķ+n�-/���B\0�H9ȧ��e��b倜����/�?�9�����i_�Zz�l�H�l�{��,%<��UxnS9{քW���H��~�s>H���ON���9���c֥I\"�EK�с*ʧ�SU%##5�<Q�ޠaB�����$N����C�j��N@�zU�xl�%�X7�ң:��Rl�\0*7S�d�as2�ڀn3��5���Qȇ�8�J3�U���vI\0T&gf�i�\'�\'�r��T�4��\\��u�4�A8<Մ�GJ�?�5<r�*[�lJ��b��j�b�g$\rf�zX\0��)ۗުy��Hel�Τ���L�ҀNy�Q� qNBXs_sd|�3������J9�7aF&�A�>ƕA#�1rG��)�`�(�)E%?�!�1����h�)�B���)ԍҁ�I=M.H�4��\\�wjVC�&`z�,N2j,\n@�l憓�>f��sRGv�xb*�4|���X����u4�դ%�����\'U9�x�)ݸ�t#-Ѥk�D~%e\0��ҭ[��w��㔟Zv⣭c�H3e��;��b�����\'�k���zq��*>�x�����6��j���V{���;V�G�dtK��Qͭ�<��`g�@lv�(���5��9o֫��$뚢��<7_Jr�ʬ�S�w����„�Vt҅�c�$ײH&���h�R%%�M�-G�\nC~������\\�`�6�S��s�k\Z�H�u���V|����ұ�=M3�\\0�[��$�uf��j3vϜ����M(rz:�RH��>���`����H]��RE\0\'wJTw�y�\Z|w�b��U��U��ȪP����v6�Ud\\)�MO� a�S�� I���g�x�h�Mu:�R������VIT2���{W1�/�[��ƃ��cuzŦ�͌�`\'���T�z�y�<v�&\n�g��J1�ݥ����S�����;X�@H���Va�aָ%���$ոL��d�]3�nw�\'�����s���H�GJ�I1���|es^\\��,�&ѽ�J8n��!b��	��$P�]�5~�s\\�)3}lJ��5S�ޤrTu����=���ȋ�5��\'�S����VD����S&;\\�m�p�Lk&��+\\4��J\Z,`��fU���S��SN�#��oʺ\"�a%@;f�f��S@�@H�5<^�6�tKz3�1Hת}3P� I�����\0�@*��Y\Z�\\��h�or�C�������ig�9�J1R݂�#���*6�y���aӚ\0���R��C ���B��JA5���[QG=(U�iTS��)�&ܜR��\n�A-\\���<�(	� �3:QA�A�\03� l�Q����E�AI\\#���݌ӗ��\n�\nL�إ�B���ÏƔ�q����@%a���QM�͎���=i��i\0�>�&x���8�m�R�c�JW}�J�P��ҁ�jr��*q:�sI�eu\\g8��OpJp3G5�І�e�<VY<��p^�i�Ns��3�ˊE�����U��tQO�_3��Ud8��ʜ��gV\'�ڃ��+�#|��q�R�f\\�+P�T�\rJ�L�\'?�g5+hk\'�ml�T�O��$JW��V�훒qP��z�\n2z3Nh��\\a����{T��SOJ�QG<����9CI���*�q�Z�|Q�%�jjO�]\ZBFp�v���0#�J�$x��})-�9��\rq}b]���]̛m=��S�۳�$�Ɍ{U� �A�p*�6�G� WJ���U:*=E���*y�Z���\r�I��\Zp��R9_μ��Kdz\n�Z��2�YT�*uH��>�˭QN0\Z˖M�;��Oq�r�R[��7V6�u,�Bֲ��X~��}k�49��*�3����[����\'��m��bd�sZ�� \\֦td�#-nm�\0c�T�ݳ�緥s�k�\0�	��8\0��^�]�9⺝R\\685 ����W3��v\Z�5�8�c�t��j|�3|�P����H�F�8��J��H!�O�k?g&�^�+&��H=j%��h��?V�W���ޯ��}	u���!�p2jP�Z�Wń������#�x��R��.5b�ݧ�?\Z��U�s���לc�TcZ\'�Z�a$W�G\r��FE9ɩNAWڟ+�����\0lt�� �K���##p�P���Ch�f\"x$V.��6̶S���qڷ�H�=\rV}8FN@�\Z��䌵^������;\n�$.́�j�_c�P�\'��9��Gz�;�D(]�M:��M �sɥ�ҁ��.1I�=\r <�<Н�x8�f��҅$�b�\\Ps��8\Zi�4�Z�4��sN�E1���%\nry�aO=\0�)z0h^�)1�!��֝����R\'�E�<��qKER��{S�{R�J)�p�Ni2^��2)�Q�,8�N�G�-X�۶i�7u�jM��(�3I���SXR��cG��N=�\Z�	��S��/Je.�jV)6�.�ML��;��Uq��e:jE����G�qNmrlm����ZL��1�_��r䚌�~�&� \'�橃�ER��Iw4F�8R7\ncj�dbCT��J�\n~�=��O�i�9�9��&�27#��\r����M?d�	ɽ����[?�BA�.j�#�\\�}��p3N�s�Ơ�H��Z��Es���:�-I�c�gn4n��Ѻ5�f��o���U+��~^j�W*��j)�YVP�f9U��>�#t;j33g�\0�Lw#8�B��^+�٤�0�m�-����zط�8�`�k*�I���j̺�HJ�\n⨣%k��ܡ��U�G9$\Z�|�95���ھ�8j�nn6��#ޱt4��5�:	I��?/��s�?r���]r-�R�W֪os����\0�B�_v�˚��F� ��R\'�c��7M/�NZH_U�v<�4�]�:U��ҷM16qSIh�{~tJ�}KTR1���<��	b}�+fKp��5��J�԰J9{���+�޳��� Wk���� �;�Ҷ�yn1\'=y����V��ӛ�Q���W\Z��W8>��[|:��C3t�zE��m`) �u��W\0W\\|��Έ`��#��>\Z�T1��Z�\r |��޽\n:6m����lTg<�s\\r�Vz��XjKK0�\n�f��!	��O�*���^�oe��Ѫ��mL�\n��%���+��4�b�7H8��_x?R�rZ@=���d�G$����Q�D�A�ZQ�\'����ꏗ巒\'+\"���zW�?��\'��їbs�M�\ZeˌFW�5�ʛ����}Q��qJkֵ_��ydکݏ�r7�u[Rv��+��>���a���Gjr�Z�\r���ʷ����QK�g,�(�piؠ��)B�W{�җh�  sN��⒟��AA�8��JeH#�����4��Lg�\"�8┧ˎ��0\0��\rd�)�08�����+�,6�i&�(^�qڝ��H��i)�ҐИX)��u�;��.��F;R`у����))��\r ���g>�mZS�Z\"��2�x8����E&(Ҽ�G�S��i(<�1M�H����F1O���4�a��!9�l�I�a)f��)�@����4�\"��=�n�4�J����l\\�Z�:V֑s\ZFZ�6㡵$���4�9P���n`O\'�jȵ�H���MP��N��\\��QH�u#θ�8Zb�,cnj}KUU�9�9uI�p>��ӍI�N:�	���\"��aL�5\"s�U��jrp\rx7{��>&F��j�6��V�tR��^�,h.��@��ӎ	�V�\\��AcBv(œOe�=�#lG�J:Tغ�Uq)����ku/��qXm����l��cު���Ћ�ǭZ�e�/�=@�{�q��)E��u0\\�qV�a������W���q��\\���F�4V�G#�H��k\nC���΢�[�J�sX��9?Θu%����w�q�N�R�r��EsfGI��{�eicc�W>и��P��IsT�kp~�#����FMA�A�)�[��.�y����\n�@r=+��|�\0��=8�G��7:�+��\ruR�R���J2�)}�;�7b@����	V\\j�\rJ�JX��\\�֖��l��n�>m{ǛS	��չ�nGC�u�\Zr?8�a_G,Qz��!����A�S5s�h9��	�t����f\r ��)1E���pi��T�A�)�0Mi}\0n)v�?������\0��HSZ.����H֤a��n�Qvm�Ӛ���T��FP{f�/]@��4��3�b��m�Z]\0��$R�	�@(��I����L�Rg�@.��&��8ZQ�.�F\\�k\nv�B��@0�)TS�=sL|�Z.��C�\nqH�\0J.�;\nC֔��q@皰���@�	�;�?���8�vs�RE�V$�={�%*x�)��;b�*\r���o��K.�+.���A�J�P��F����#�<�5���)	��U�M���'),(4,7,'blaster 3 dlg 2',10,'���\0JFIF\0\0,,\0\0��\0C\0\n	\n		\n\Z\Z%!\'&$!$#).;2),8,#$3F48=?BCB(1HMH@M;AB?��\0C\r?*$*??????????????????????????????????????????????????��\0f\"\0��\0\0\0\0\0\0\0\0\0\0\0\0\0��\0=\0\0!1AQ\"aq2�������#BR��br3C�$DS����\0\Z\0\0\0\0\0\0\0\0\0\0\0\0��\00\0\0\0\0\0\01!A\"2QBaq��3R�#���\0\0\0?\0�\\�	��Rr`F�;��.B���W��uOv�*��X#y��꺯z�ژ�A���\\��/,܈�P*�\0�\r@��c֤�G�:P�s�_OҪ��L �\rx�$c�Mօ,���L\0�ol~��:�t�$\0r	#��=�^g$�0�_m�j�h	%��G��Q�3�w>u�\Z�.(�9x���pC��ظ�����M�\0�.�\0���fV� |_��`S\Z�m��\0��;�7�8�f���:���z��d�n\08��J�i�J�u\r�VÓ�~-@���*>_ZG��zX�\'z�a���L�7�\0U,�/�*C4���A�]WP���f0*�M�2�V ̝�7�(8؝DI:O����+/|�k* ��V����\Z�eZN#ڮ�U�8H�@;�j�o\r�{l.dN>��t���$����@Z,�fD4f�HQ�s3c���)K��d\ZI�h�`��Ñ�(&\0 @9�@e\\9:�}�\0Z�]T� �8,#��\0�u�$L�gʐ�j��z�qUO�N��tF�-��S��?�s\\�n^������#��$�*�1�����0���\0�pD�F�Z9��pp;��F���~u�:�}@g��������,3�Qy-�fw� <��E�`��O�޲�̱�D5��29�-��I\r�,��X�����s2W�R-��W�O�4/o*������t�\'��Zē�c�ґ*;mR\'�G�WH[�L�[��4�E7n<������ ���4�$��\r�4F?ZcP	#cT(��A��>t�3�����d�cj�Y��Z�uǕ0�p1�G�4@�@��J$v��M!=�EӁ�\0�)c>\Z0F�\Z\n �1�D�F�\Z\'΁q���	�;P 57=�2Oq�0���kn�2{��Q(��w&6�0��I�ҤL�`��������@Y��F�PI�$��Bȃ�s��4��&w��K�,c��ZN�L~t����ʆ��\r��\n2N#jlt��̐j��I��K\0�	��fG��dO�B�1���D\"D�&$��06�\'fg�?“kR��Cmʁȓ�O�VG��l���dsY���XȞ\"h>��P��g \0���RD�~���X�Z\'`���N���KI��Q\\.�>�	e,I�6�;j#S����I�j-��d��H<�D�-ԭ��X0H�\r���⩶�=�tf���#3�KZUrm������y~Ϋ|3Zr�$�f1�Gm���Y$ bw>���--�䋌 +�A��Zݑ��Y�D	o�G�����xWmD�M���]�,�A��΃uV �]\'��������-�bj%H�8�)6���8���c�T�j��?�H=�f�c*7\0�����@���DA�AuIn�)�K�O���h%^�\'�@*$q4RU��*�L���3]J	BP������V(��ˉ�$��U4��Vb5`���j�(y�&$�����5�{���H�4�OGB�EP&3E�5\ZL�����ީ.v�}���ns�)��#V���p%d�v\"#���������N�@����;З\n�\ZɌ�֓9\'r�~4	L�X%���ӈ��&Emd2r9���ip�!|@J�ֻd�ϵۇ��.9�C�I\\N��H�P���d��t��$��u�쮧��	c�6�m��[�[��ڰ%��$�.���h,8$7�cp?Z�n����~���z�,J�S�~�֚�m���k�\Z�$o\0�5��S���v����bMO��I��及I�I��|*c�H3��0$\0��A�^�qK.�b|�\nv���I���\nIS�f�1����#ʟ���U\03��b7���@�H\0&sK��Dc�)�D�gqP{�Ng|\n\03�q4�(�.�@�il#l�b64|����@\0��/��APD�,d�ޤL�f���A^����ء��\nh&��>t�L)9�U8�뚰�\Z�B/\0��[\"3?�Q	$�h$.�4�$����I�x�©r�H�8�4g85@�&0�(�hQ9EDdmU��@0@>T��*	��\\��K0 `����B�bf9ߊF��‚��ȉ�q��*rT2gcI�[�01�	��8,`�A;Ԓ �;�A�P-��D F0h5i$0�i�gx\r�����@���L�#�i0R`d�\r:N�^H4(����:�č��M�H0O�Q�ƣ$�E�rH �#E}A��a����P\"\Z�`Cc�}?>i\\:X�Ơ���V6n�keu1Y0�o�s�\\:vm�^.��3��1.g�w?�u�+��W�P\'�珟�IF�l[b�&3���PT�H � ���O�z�h�Z�	e8�<���\\�\0�YY�L�	S�?�5�����K���;�\r��k}�D\Zu�D�`{�]���vKJ���?�\"\\<��p<\'��Q:���*�\00A�G׉�t,�2U@�7�A��(��v!��v�J��M�vR\0�8*���E݁�؈��څp  .�������t�2����c��5 2�]`M@����nw�j�7�u\n3��\0�.*\\�v�f�G�F#ԃϥ��-�\ZL���[�\0]�#\\`�]�\ZIJ��AL��<��ؤ��2;�c ����M|�.|C\rw�sm�R�v��	ҡy��Z�H#33�T�u\0j�XIs�jG�h�.��w�z�eI_ā���\".��)i��>j�[Ҭ j� H�?z+&�X�q��G��6� �p�2��>\0ĒA\0�3��������s�w�i\0^���$��J�F�C�������<�W�iݶ�<�\n�y�\\��{[��;�u�j޻Z��S�f��- ��j�u9;��	y�^�m�9�Y&?uĨ�\01�%y��\nf���9�ڗ���AH���A���P�o*!��9;��F<���9�Q@a���7�`�Fӊ�DAX\"�;��;v���f����𝻚�;MP`�҉!v�f�\0.{�Iր �#�(9�cڙ�a�gjDD�}hh���(ʙ��1�z�s�򪘐sDH=�����c�X���X�pj��*\'3�ʘ�@l&�WT�#���\"q�W\0D����g1Z��Y���w��sI�b;�EdP���v���.|Q�&�\'Y��d��K	n�:��4Lm��TD H\Z;s�A:I\Z������1Msl�FEA��|�AL������5�b�``�� yoYcg�N&ph\0s��#zBvR��\0�%���3���Ω�\Z!�5@�	� H�on$n�R����҈�oc��hX� ������_P��\'2\0��f��L�P�6��jT������4�ʊ4\0H\r*����[0��P�D)�kkEŸ��E�eK\"jb�Lc��p��I�N��֐�q�L�Ν�ql�D���WP�@o�N���l��K0$���:�.�r4��oߐ6��U�����-\0����B\"ݶ$0�	�$��Q��}^ �4�8�1�\"�W��c���H��3dT�I��\\܌�x]\\@�����X\0���2�\"\0�lM^���6�++o���>�W`�#�4\\Mv.����}��L�\0��,D����W9DoHR��߾j�!��	RF2~�_��b�-�i6�m+�2$yNsT\'Z�eƝR\0����: 0���]#�D�7�6�?�L����O��e&��V�r&Dl~{�5��m~+�Uٳ8�ڬ!2�xm�)�/�0_��4��1�q\\w:�B]�A\'F�A�������+jԌ	��w�10��2�`�S�{�(�Z$;��;��Т���y�o��UB�������X��Ξ��k�C6�i�]�\"�n���v�\"2��>�b��f��\r�����km՛rA��N��4�X�r��}�jY�Q����[�����u*�s^�rs���++ג�B���H$oq�c�Σ���E���>�f<L�<�!���>�z�gx��\Z�e�yO������\06�&`��W<0LOz����4`’~U�&`�1�{���r�Y�H���-��J�PFqǐ�*V�+7>�Ξd��9��FǷ���\Z@0Hc����z �D\0� �y�=)���Ϊ=��>{�\0�D��\"|8�h�2;M	�C1��(�;G΁F�\"j� �1jN��r~���8�NcaNsDL�MO2?\Z�\"�j�:��4N�斏\Z�$�<y�-�����\'��.\'9�/I��XY9\"4R�X���\0� j��jUF���P\0�	��j?�uo��H،��J�>Y�?�q��P^���\0zSzaAr2?sRu��>���ڀ�P��1���`\r�qD`1\0���Tf�#4Ho1f*TS��;։&�o��N#\'j� ��Ԗ#�&o�� �v��Ή�:���c9U��$�<zRb�G9Q+��Ճ����V9��7X;y���0�AMA۪���ʅ�O@��6oyt3��<ԁ�$�t�`	��5\0��P(\r�)�K(�L\\pb c2f�|s�c�O�I\' 	 1�Pm�s�1���H3x$T���\Z�\'�Ce\n���g�V�>_FD�C�2�x�����d%E�T �A��9�������b �3�8��\\���>��׭$�#V��&v�����\nX�A����3�J漥z���CY\Z…�x$睢�zas�F:_ut��]�#9ɫ=!�kβ��)��s�:�\"m�3�X���5����v�M�p�\0�A&;�T�j���ث�1���L��g�G��SLk�k�l,��\0���ep�e \0��3�ŵKA3�\"�P�;xfg��=�M<�$ɑ��zkiT\0�+��>��\r\0+�$�H\'|Ub.4�$\02NL\'����,����YR��jH9�5��u\0��=�Tܱd�/j$�EW�ϭhڇ�a�̂~UP��Yǧ���R�V�ҧ�f��$�I�y��qE��F�:� ;�U&�WbD�c?-����l(ii1��#\"vۊh�[�\"X�wߵp{S�uan�xԐ]�\0�Ρ���^-@U\"ҲS���KN�c�[+]y��[~!��������C��ݯ���;a�~O��t��u�ݛ��$�\">|�$Ƕ[�ԙ�]G˶�`NAڥH�\ru�g�w\r�C�&\n�߲�3r�i�V+�Vm�m�}r�Vǘ_�VX��;o_h�����yj�fݼZEQ�\0�#�X�����\'&KZm����tm��Mt��1����^�&�[�\0���\"��jLEc<�|Ce}\'}�2����ٹ�Z^HU-�V�n�.��H?3_C��57n��&�Kv��@�w�V��i�-�\0�qi���z���v�w{wز�@u~��g|W��m��Z�H\n�8g\"�p?x����]�?��������8�`�A��`����]9#&I�x�^�M\nx�&�\"\'���|����x�o�	01G=ϝ2��ۼR8�\';�O��}iA FDՃ�0c� �F#��\'1�V�uA<�uG-�q��S�LH���[FX1\"�\Z�m������:�2H$D��P+`I���mS>d�\"&mM@\0�8��4���Y�[.D���2���ہG��(�*IF	\0o@0\';gm���åpN\0�΂�H ނ>\"%t�\"y�jX�\0̞4�ZKv��L$�	�Y�A���@�jI1������z�VqmyY�j���i�l�;yPK6��h���f#h-�0@�@�p���BO���@\0\rdN@�U\0f<E��&��Sq�(U�`����Rā�;U��g0A���v�1M	%�&A��V�\0�\r���̞�:�7��2\0ո#�j@�!�`����@�4�vF8�](�~g�~�͍�sڑX@\'�E3��H>\\T4�;NÉ�e������A��f��\r��暫G���G�D{@5�h�Z�o	.��3�O߃Z�)��-��mL`\0��+b���(��u�8�0qL7Z4��A��O�\\{vkA��/g�l�W��b>�`ǭf�k�]�D�|D\0Gl��5��CD�\'�8�Ӱ���.;��$*6�籨�Y���\n\02܆g�@�x��V���o�.A�2\0~���滖�Ā\n���O��\Z��Cdn?j�Yd�\Zp�LOzՔ*8�@Ƙ��`[%�G��TF��A�G4�ԍ$�ccLgI�H��2��+6̈�50f\'V ��3���HAP�^�H�B��T�>uˡ���~�@�d+�9 A|�\\u\n���@f�⠛�Q\'�\0� �y�WX��J���$�QY�3m:�^�]�F\0�>~U���w5�*�Fݨ��:����L֞:�\nO�n��m�wA��*5����{��z��W�+�-�M�fcf��3�v[�)��kP�85͚��~����\Z�?�W�}GO�t�\0�Vy�\'�k�/ھH��\0��\0�Q�-�\0�\0�rN��=��xu�V��\0��0H��>��\0�C�ݢO&��=�Ԩ\ZJg��S��:�tӗ�%fշ�}8&\" �&�!I,���zW���X��#��=��E��W\nK�D����=Ξ~OS�D���C��\"�ū���Klr�p���������&��H��>����V��k��y=W$�����\0uwqiR�<���N>��޿v���5���MA�1�T��WM1֝C���ɗ0hڃ �%���mrʵ�H2q�����0f��`���q��H��h�Z�rh\0g��@Y$P@\r�=��Q0O\Z\0�r{�?�=f���.8��A11���h-�)��$9�-1���Z���3��|�5��� b<�eÖ �9�C♐�:�z�L�d\0NI�M�7���jA\Z�Hzj�0`!�y��&7��߽�NX����uP��&#?:\r]E��RpN�\0Ɩ��\nPc\'1��XY\nW&L�ڀ����F�c}��ZC���@�|�P0�G�̐L1�C�@x�$dN�:��R�v�4\Z���LH�|�$�T�o:J1Ug�W�H$D��	�`dA�j���V�ݳ� 桡�`D���)�C\0���D�N�rh\\�%�=���H� 9\0���jXS�D�h�V�����%�L�G�N\0��9 �\'~h�U��3o֊BB�(�EZ�kԧȍ_LP@�ɉ+E\"�Rd�{T4�F\'|���ӾvҮ�Vy�2V�7���V�ᴓ33�n�+:u�RH�`��x��Ip�sA�TF��ϬUb����\r�?�?*�PN�c���?w���\Zn:���&38y��n��	�X��`��-� qS{P�ۇEV�3���>Y�Q^�4\\\0�j����+���Q` C�[d����Υ����e�.�j�11��dUCx�	%��w��޷k���AmM*`�?�rY���kwG�ة1���b��3;�}�{T��C�2I���!��ϖj���wx&&EI!�H�6\')�t���~��\n\n�JO%{��I_I�9�y\Z�N��׸׮�� �A���[�uI��c��u7���뮙T��XD���A����ru]]�W4���1��ן�Q�>��q��\0�y�q��lv��\\��d�;�!���ղ�¹��\ZH��s�R���\\���^i�Ǡ���F�$y����14����Ni�ѽFG5��n�\n\Z\0�~ե�Op�F;��j-1ԃt��Z�鐩,pv\0ӵamiy��Y$�;�&��˧����t��1�[;��c�����=%�{ұ��u=���k�7���>�����k�)8���J\\^�s�������b$\Z<G��u��gL�W��҂n��e�\0�<��qz�5�ݱ�h<\n2v��8��U��\"�dc֨)�U�c4���Ħ\"������\0�J�o�M(�1$�U	\'�1R�\Z��3�b(��樂�I�J������:O�4\rH\Z~)\'~�a�s��Ni.N��x��Y�%��-�@]@����#�\0׽H2^O>Q�)1�P9.\n�$q T���2c�(��H\0	qA��2 ��(��1��в.GpM2K$�\';��Ai`D<}�4����t��zE�G�����%v$��;UF4��;�h%�(��2\'o��R$�&H?�S�����޲\' �1\"����g�KR	\\�oC4�\r�&*ʓ,��c׷��\rz�0=|���OH�x�)��&@��ML\"\'��\0��K�o��`��`�&�V��G�>ZN �P2`�.,� T���Hϥin�ۡB[.W�Mv�k뛬\r����Jw.�<L٧諀0y֦�j�6.�(��Nֽ�]�yT�ݳ[i���r[���{8={�g�o��U�8�#z�N��\0B	$�b�&1��:	������n��c���_�/:�O�>���	�5�G��w�Y����Ҿ�m�����Η^�lt��ԘLķ�ǚ�:���W�6���ɺ���&&9��s\'����\0Ӷ{����|\nG�9�U���F���?�:���A1�&�}Z����u,4����_O�\0��n�6��B�v�~�P���P+-�fI D#�m�޵�r�kV˨\"K����}��Hg\r 999�+��>\\�����v�52��Gƒdm|V�P�6�S���ߑP�-\"kk�b	#���F!\\0��28�-J�c�`I1��+����#Su����j�.��Y��Z#���Y�&X�����ݹ`uƠ}:��K*�,��\0A��kƻv�ê��o������>Z�$�=.����E��ڤD�;v�:�۷�U�,|�t�\0���G�M�0ku�j��25iVq�33=��O�|��n���?��lj�>���}-���F�9#\0q��e��i¶.�����3a��\03J�ַz��G�@1�w��<���𶯔TM3�*(�SN3T���(\"�Kn�|�=�>4�;�\0��FF�$r\rIe�t˻�=�t1LFڤ���1���b�������&�X�|�PD�D�\0A��V�\0g}���b�펡z���}�\\~�\0:�->�V=5��ר��r7kc�u�v�H\\��5��$��h�wR\n�����p�`G�s�k��So�E𶽨?�¯Q���>����p�#+�x�`��aN��7�68]�D�A;��\"&j8��=*q2�c�4�$���N\"D�1@{��H\'�5���[3$�`����Zꍄ1�ZxT��8=�=8$L��~�?�N�ځ��%��\0�%�Z\0���WIuq3��� �h��\0�6�wĊ���q��X��ڳbTC\r�1���k��I�� ��Y�t���H0,q��\r��`v� O΁�$�Y�,O�֨���$��qAbH�`�	�0\'Ř�8�$he��gʔ�,�P��v4��\"c=��:dfFdm4R��29�-2ud�g�FY�2���sA>#&W�6�`s��*>J��\"�pZ5r9�J�͆��ܣ�3ة3�YR��걶n�\\Ѵ\0pG�\"5iG>���^�i���w�v��X˶�o��k�_���#>O7�a�Cr�B��_�]v}�a��|�>���⡍�\0Hɦ-޹������\\��d�Ρ����6�t����p���UZK��ҝ��[Z����&����<�oB+1�$[U�&���Y��t�\Z�pp>td��uyqS���\Z���1��o�Zٱ��$�Mioj�z~��GZ��0%��Q���sV�6�CV[�*��@[�e��anͱ/p콇�<k�=��뺿\n��L[I�����A����E�:n�ܛVT��\'��^;�cO�W��c�=�W���}5�T��H<状ybi ���H,0w5$���H\'��WS�Qm$����L��+2\0Q���\rAy$��rj��nܵb�ܹp)\"53d����^u�mYX�V��f�����%ٝ�\'&��M��0��1���z��;n�����}��\\�݆�.+�ݝ�f,Ǔ�]i�4�r?sWo�nJ븪�C4�X�Y��:c�K�}*|�}+�������эƌ���7��jѶ�}��X8#���v�\\�h�e靁0\"�+]5�*L�+3�+Ϻ�d�V��b��x�U���?[�۴Q��ls��L�/��څ�U\'��O�H������Ř�$�3S�U*\\}��>U�:�AfQ��d��B9g��o�z	�Z$�f���h,i��6�y��gs\r�����0+`J�`�p\r\">���\"*�O�Ԋ��(Q�Z#� G�#	�F����?�\0&����\rz11����V����R���L�9���Fޕ�ݰ����j��2���nၽ0s�*m]�pH>�kR��w���3�f�����	�f�1SA�b�v<��`y�P�FW,��?\r�������:_h�Z�6�������0�@>U��)y �hǕQ�~������b8#�g.��G�-�^�ژ�\0]�WԞ=~}��[�5��$��c�Gn(0PpD�h\"j0L�ڨ�\0�@��)8؆�`�C#i�5B{F3ژ���v���� (K/�L�1�E&�����*�)��X�l��u#$@Q��b��9)LR�	�\0����#�U\n6i#�f`��ރ��fի�����\ZT�qښ�\"wނ-��p*��{��1��\"�L���;v�j�,΀!K2�Q��`����򥥴��sD�\0�\'��k%��8��՘�ĕ���Wn�_%QIh�<�߳�7^x5��iN�Ӈ��<�y�\nܑ�x��]��O��\Z��+ճ�ڳ�@s�Z�\\W�|Q��#�kg�gY�C87[����\n\0��e�K�����6:�p�?�sظ�{Z�m/cX~�U&����.ݗ4������ڛ�kE\n�B�¨Iް�k�G�g�T�lE����Y��C���H{����7���r���V��iPY��)73t�\0��hD(\0ySޞ��F9��D��g�,\"$]ؘ���������]��s�Y��l�ᣑ��Ʈ�?���u�:��Šp?�x�޾o��/����UtaG\0F�ʱ7��k�޹�D�@�^��;|�3���o>#�lCI\\���#�V�L\'�-��p\'$�Y�Dr�WC�I>&D��9mS\0Od�\n&N��M�����������6F���Y�I$�1ޥψ�\0m��R�����J11�TjQw��	��RYAөH+ \r;���+�����V��$H�A�W.�]S1�\0�h\ZI���c���޳�M�\0���@e�%��<T{��ů�f	]���]=���$������j���\0���45�I`���ɺ�ӭTN�}+�ȹ\0�\0� �~��j�\"�չq�)1p�_�����<��}�O�`r\rh�͍b���_j�ף~ދ̊\n��1��\0�γ���H$������WP��Irq�֦Żs�)rG�F>Ul�T�\0v��5L%}��}~�<2\n�\0�y��P�\0#��2EC۱�֠��<�9�AlI��$��9��!{yT\0uNc�V\Z�3WH�&3�� ZcF� �7�&#�	�m��s?*jgnh\00#�o��#-�R�[�j�$�	�N�T��g��=ޝX�@?j���5,�#��U��WM���[�Gpk��Ya�Wpk��l��ު=*�s�?\Z��v�s^]��m�N;pkгԫ���\n\rAѧ\'?\r\0���c�S�X�rfi��jNDyU\0\'`ch4�i���T�\ZL`I���uB��q�E��\0��EΜ�G\'\0q�ݏc�&ʦꋫ���9��WS��YL�$1��cpw����$oQ�O�E��l|)q����`7_-���{]U]�e\0��EF�xa���$s��i��3MP}L[\0����*�T��Gڢ�\'�T���Wr7�H�5Ã��2g��hOq5%a�:��Ҩ��A�Q0�`�@����Tf&q�L\0�7��\rL ����Ȃ�~.J�;T��l3N��Xnf�xX,���uZ许R�2�q�]��KK����d�R����z_#?�j?w�o��t�U1\0q���~�A��ݦrM\'uA,@�~U�⯠�N1;v�ڀ�(�S,�$�\0䚅��\0�&�����V���R\Z�7�l=s����\"��Cw�����6��J�����/ҷ-����X����>m ��!F�ކ*�S�Y�{����������h��Uˆ%�+1����J���d�nX��9��:e��䪪|#\'rw5C4ޛ:[R�@Qɩ���>�u��Xu=m��C\\� 9���?���c���_ s��ܺ��3��I9繮�<I�7x�X�7L=�]WY{��E���\0�`{��:�\"�=��(�aI\0�j��,��1^�k�D>_&[d���?	��:f\0��&=��հPJ��6��I���%����Y�&N�I\':l\\{�f$�� f��e�N�>��30X��\0��9S�,ԴH����yR\"\0\"qޥVZ �~�CA�R)4$��\"�!]I��i�ѫĤv�ڈ�/]��X\ZY�I2u۱��7A�ݘ洸�~�]�圴�A��U�U\Z��;��µ�9����k�iة\Z��}&�Fn{�$&m�J��q�Z[���r�{sqm�3��sVP�5�PJ,�ڠbt@b| ��I��,�|�N\n<.��| \0�<QVe}`D�D��;VjIB�����:����B@1�ze��th\"�Co�1����P�r$}��FX\09Zn\0�1� �\'���<3 ��j��	P�EP�:�\n�JA�l`�ϥL�?j�m��jB`I��?Z}�9�b��q:y����D,�L\'8��N�\'@d�q:��3?:�-!Fq�$�|&1��J�,\'�ހ\06&)�D\0i�� �N(S��s��C���m�I���F��\'Q�HX�ѼA�(�\")V\0�-$Gh�|B cʊ��&��j��5��f�٬n�W\0�	���4˧괴]��k�Q��;A�-ё��\Zv�5��8�Pz����ʣdNfEgj����[#���\"y��c��.&\"}i!+�܏*h�����`�i����J(Z֖@U�!H�i��v�DQn3\"}�$�\'pG*y^}k�VY�2�7;Ҹ�ԃ�ܓ��zD�j�\\�v�\\.�mN�����#5�i�GڹԞ����ځC��ܿ�>�������px>ú�n�mW[��� ��\0��\0�ڈ�ii �δ��.�!g�ڰ����y�cl�%H\"@����Y��X�0��u��I�Ll#�]���U�~Uk�g���ry���pX���$�m��ݣ����s��D\n��iSj���_#����q2�\0({��s��sP��\\3��&��fݯ�s��ZgQ۪o3��5N��Kݷ�V��[�ڈ,�\0��Mk�6���&߄�D��;2�f�bפ��1��5�D�)��Y$�@�_WW�����\rê���`ַ���a�Y��\Z��:ۉ�z\n�5DԘ�fv�JD\'sH��a�u��	��ѿ����^�Ġ�|��F.=�~���z�4k{���{JՒU<o�+ȿ�]�sU�q�qY��ʹ\Z��a����Ӯ�I��ץ�q�NW�e�ϙ�~�\n#� ���lt�-�x��DSmH.Dؒ%�U��Nd�����2ZP�C$�Żyz�:-��2�˟�,��#c\"�*^\'\0\0��ޫ��) ����J�PTD�+��_w:]�9b�S���UEI�;��*L�\\i���*�޲�8,���:���3���P\rB�<H?LsU�b4`�����\0o�L	�D9�\0@*rg���q�z�����f�nH��!eP�1&1�T�R��oڙ�-孓o�Խ�\0�i\0�B�j����ߥc�L�߼ n�@\0sTn��uBU	��#j�K��K�F�����T0(Or`�G���\'�!m��B�2w��^��3���}{Sek��I`H����F�����PS%\'��΢!��T��\"��<0ְb\n�T7e�6�\"�b�gÓ �\0m��X��G�5 ���|��x\' ��5Q4f\08�`��ڙ��[UEB�H\'��\08�N��AVw8�R��]��4(+�o/*V������pg$��?�p�j�����I\"x4�r0q�Q��Fq5�\n	�MZ��R�<�\Zs�\'�-2GP@�oA@�Q�F�8��2����	��r	�y�(,���#��b\0#�J g�@Ƀ�F4�Ic;Ι��hҪJ�0q�(�+��L=��{�kyN\rz 4Ȍ�S* ��s�Sf�7ں�u9sn��:03h����G�^$[�q��M&�e\\w��#oB�Fڤn�Z:VL��̯�>��^�F*���G�S�#J��I�J�f��~]��7���i����)\'�\n��s5�\'CaI�\\� �Mn���U�Z-ˬuG�e���x6�K�i�߷�Uc��R;!���[$�<x?��{��:�1�z֙����S�8��e��iR�v�7��f7��HA,@�u�k�8a�\n�����)F�ް���m.�Q�M1�S{Wњϟ5f�(�e�k���w�KdF��kHP\0+DG��Y2d�:Bٸ���G���]��P)�\na�Ei�L�Ec��=�PMC�[q���I�b&VuXܶ�Y��V�%��F�\Zn������J�ݤ�!@��\rͺ@�r������괊�HX`*C@�>k��F6���&��Qnղ�*��5��k��(\0��?�g�\r�u\r9�8xѻϟ���z�VU���ב�wn��%����Ҹ���n]}lv����U�b8$m��^�.5i�|��9^��/ӏ�mAu��d��?�A\n����u�@����\\!�:�\\lH�;��һ\"4�&�=��[�6dTG�J^�70py�AP\Z|`�m�R�+3^}�&\r�\\�1�\0�Ҁ�$�*8#���,\\C�b���ԪDO�D\0���	\0�0�ֆu�0>]�qL�\ZT�W�ڀ�n+8�A��THH���ΘX\"y��Qt��w9/m�*\0�Q�7�Q�i�dn@�+ ;	 �œ���#<��6\0q��A�-�rhd�|��b�\0�)4N\0O�@�H�1�;֩l4�grFj�v�(\0�B��]��Q�M�SI�A�>���q�p�_Ũ\0�;�޲���YV$�H����e�\n4\0H�#��Z��Tj��&YN�v�V���B9�#&8��6�s���09�2U��8>\'s��0V$���f�B�;o�P�@\03��0��UD�!fd�ۼT����w4��A��hO뚠c\'#�@�ol<Y�ނ��PQ�X\0`���)�$�\0Z�U[�C�\0���\0\r�#��I�v�bC��4����4Q*D���\0u	1�K\";������(4�0~T��;�څ�ddD�0��.��S�h�`3NGʛ,<��i�z����dr\rM�F�B�;y�LA7�-Zk����`Mu�WUp����-���[���+2�PG��\"\0��bױX�����_ֻ��/��>�i�{r�ׯ/G�ro�F�6Z���]6z.��h���޾�,۴?����\n���Ο�z8�\n����\r�c\\f�r��k�ײ���)����@��Q�����D�=�m��)�L_���K����I���<�_z�\0\r��c��l^o��?�$��Tͧ�˲�ç�G�@��z��t��n��`}�D�m>j>U<,�P�w�Z���\0\Z��4��AR*M6�v�����WLvQ�Ol��݌�N�C$	��uUX�\0��a�\rE6�s��,6�\rsݶ�Z_�ֻY���SQﭝ�����g�V���7�l����rn�29�,x�U_@𮔜3��cl[,��w&��;^m�5\r�kf�8�Yݿ*���\Z����V�쥼�\'�9&�5RMs;1O;�T�M&uU%���u~ٴ�m���\\��|�*c��U������N���[hY���l�%:E���~�דy�����O+?\0�ӴF�<��^�>%k��_;�����~Zu�i�}���DG���G��(�& ��ڲ@�q�ۃ�ږ�0H���\0P+�+�¾K^wiܛ�TV�$A�,��S��g|�h`=Ȼ Cӝ���5ef>\"$Fq�C\\�B��`�$��~Z��ʭ�r�jk4��$p<�\0����\0�$N��UbJbu�I�?�5I�P@& A�L`�I��\0�*�*�O�\r�Q�@�ʩ��s�Uj�d :���\'늆c��\'\\��z ��s�ڪh��D�@}������P54��1�M���xv�ϗޞ�p�T	*1��z����$@?�d�V���*ʀ� 0 	㚅h�*�H2L�C:Ic�qjd�,�]�?:@��c;P۷�H�6��A�mU\ZB�A#:�3�ڜH@܈�@�)�d���:D�����b$��iY�����;:���1�G�bt�lXdfi�iF��AH\'�$�1�jl}�v��� �s�ŒаW�ۉ#2G�X+&�$\r�v��,��N�6q�ɠ4I c΃x�J���0ʲf\ZF�\0�^��2�N;oHm�Q`��֥|&d3�G���f���F&(�> fA��W\0i *�\r$o��4���cA�����PI��@8�9�\01Qt@lH��Y�b��ݫ���eϐ��Od�7�=��#�X[%+ܺ1q�e�+2�+Hp\"��<��{�=�m�^v<�\0Wm����\Zl��[�~��nn8����輋��1g��q�ݦa�f�l�\'�c�\n��g��2\0���-�s[�y�cOS�a����̷�[s7�3!�g�%�)eI��j��>Y���,}qZ-�-��������?��iQ\n vNqB����tA�Z������\0wO�#�a�\\T���!t���w�Z�N��|6�|�eH��&�p�}C�S��\n�ҷ�\0%��+�I�OqM�O��ʽ-�d��ݳ[���P��V�j`��8<�i��q����?Sapn,�Oڳ=A?��\\o�����Ov�\ZG4�\\��m��ى�(�u�>��$P*�M�æq�ů�C\rq�9����/��\0��ժ���B���ui#�)?�K��?\Z\r�͵�_�6~զ��\\\n{�l��kw�K\\U�\0����N��wq��V���UM�8��i𢏕K�b�P\\�A\'��⭥&��vGw`)6e�;y��0 �k���b؄*�n9=뫬����|��n��Z�.t��t��\Z��_m��,�����x��ywYr-�k���͛$���\\�o�y�GZ�ZM�m�q��Kl�v�c�[ʺ�Ď��9�m{0F�s�w��H7�J�)�֢؅*؀8�\05���P��@�I*���?���+\Z�x92�-�ם��ʜy\nЈ$��m��\05�n+ er6Θ\0�\ZuI�\'򫦭��HlmD�ip���-�;;������HV&@>UC�F_*�L\Z�M�BF�Dϟ>��%�`�0�#��I[R��1�?Z�1S���PJiMZ��d~�\0y���C��L֗\nk!�&$G�ֱ;�V�pF~�*�@V��U$�joīCyl$՝*LkB�,⥊��*��Q��\\�CHd5Uյ\r:F�s�LP�ƙ;�f�NYO�\r�����Z�@ �9/�K@uӨ����]ɏ/�I\'D�D�z�D�bB��d�9昀 (R��KY$�d�yV����%b�փ3\0��Z\"Fx�Vp�x�@�j�*e��\r��a#��H6�� ��T\\��j|F<����\0\n��=�Re+\0?�\0���<$1���I�&t�ڃ���:I�`j��\0�s�4ٗ�$��V$�1QWq�(U ̚��qM� ����0O?Z)n \n7�&q�f��b�����b��#�t�kΫb\0V ��� fw��w�M��2 ��\Z��ޞ��\Z��0>�����_��a�V_3]G��0���޺�;���l�;�{��-�����\"+A5�~l��z�}��%���=��y����]Ml��.uWNMW�����[g�n����6��\n�V\0�\nF��@�4�\0��\0�u���Z�!�9�30�׊�~3�S}�aG��u*Fՠ������w��:[��J*���> X�c5�4J��0����|�W\n�!Z\0k/}k�[Q젚~��e���5?,}���)C���������]�;�|��>�u	�nH$2b�=U��p1�\0�\nK�Z\\�R{���TA��M�je#�c��s�ah7/�����X�U[S��}�ͷc��@ZFŠr��w%�\Z�jS5=�{`�\n\0Py�jp�T햿\n�k=Y��QG��Grb�/{W��:����5�R��ץ#v�=MX�����\0�7J�����+ο�O�4��h��&�+��o��G���o�>�X������/[OV����~���h�\n�k��Y�>f�+��\0t����H�\0N����A�ּ{\"��:�\0�i:n���5��5�N&:�m�e�~E��:��Oiߐz���¼���]b���I�Y\Z&�\Z�+^��d�e�ZeН3��)�����ʚ���v\"���d2�h��`��h,Đ�I����{LA�y�,uB��\"\'�ZuV�B��h��]~��p!�5wጽ���o*��	\nB�&�5��UZWb\n��OQg�Ef`v��\0h{&�Z��Ɣ�|����s�h�j[b�1����6�6���EC�\"v#�����_{wU�,�B �U6�f�e�\0 �0g���Р]$E�I�;m\\\rlC���3Ui�]�4� 4#��f]\ni)0	�)�~_�TK|!4@ �g��*�����\0*�fT �n$�����$j��;UD)Ҟ�EF�8�ѳ#YnH���\r�D$�\Zj�!�S�#�٠����l\nIɑYV�#8�4��S:�0	���h-��d��UQEƕRt�]%����mX�?^)��$�\nHǞ~�\r�:\0\r�3�΁�P��\0�2>G���:τ|\\�����1x.e�!@�\05A:AU�x�bِ\'�QR�I3���X�p;��W��<oL�S�#8�cS�(��$�P��F�g��@�$#�&fi#)f�!rc΄�X(�3�ًO�\Z{�H&T��6��7\0#|O�M�:��F��I�\Z@�`����w$�;~59,#���oeٴ���O�~��.Z�.�\'\'.ڧQ���Y�u��FM�б�+� <��Z��k���OMh�6���ݣ�\\7��z�>���<Ls�\0���8��v-\r�ǻf��1j�^�������F¨��?\n�I�r�1�/�\"��\"�Z����	��YNP䉤o�ؖ�ֽ�ͳ�$-�z�ҴK �5��9�����P<�\n���6�P`s5��E�ݓ�;7���V:����C]U z��=B	oA5������<Y�7�6�\0b)��ԫ�&�3V���G̒�\'���`}�E�mL��&�1OP��r��\rE�Y���Y��Y��4�i���p+�i�+�?�W%���vvs�\0Y�Ku\r7φ�u��^Ѹjugz�����?��c�b���\0uM�*/޷W��~4俩�)���e�Υ��e�@�5�w=��]ߨoA��{�˻7����O�O[�ev����P���>��/J������?Q��tW��;�⿭f��\"E{���jү�����x�츯2iMo�u�9=C������^�f��oRMdI4��m����k�ӹ�<R�f)���gϊ�@�\0��W]��5���jʠ�(w�z�+����<뜂��^�![ƪ�p6�N��Tܷ��oH��y�4�A\"�DVLSZ��.Z +��\"��*����� ���2{�{\"�F.�Gּ���ܶ\n�H1�Ec0�u�EΚ�*�������P��\Z�\"�B���ֳ�y����Z/�-\r�����C���+A�ԁs���U�=]��.���\Z�.4�m��z��ȸ����k��,�S��B�Q���V�^qΧ��V-�ÛM�t��O�IG��܁���p�ӵt�=-ޞ��Jh)�c����W-�!���\04�;\r��\"w�|j,��\'N�bf��4�AH���K��2	� �3-���FO�d�`�O�A;��Jړc��l�U#Km��)��{�Sw��\r��#L�Μ�j.���X\0\"G�w�#AY\n�*5|�γЌw�G5P@�2\0�[�mƒ}����e�Sp�&y~����$�\"��:q3P�C�1�jT�4�d�G�F�Rd���@���ФI\'�S\Z ������HOsm���?��f#��\Z2K,i\'|Rh?j��\"A^=((�n�����\0���&\r�΢	�#��@��ic�PP1&@�B):��$yR$� P`#�uؿ*�К�;Q�azE�M����S~k��}CY�-�зD�t]����ժ��T��[`��C��Υm>r�Xf�C��NAoRM|��o���\0�O��q�3ٯ�p�g�>�m �T|��+号z�6Z_�o�3�c��Yg�\0w�G�}I�:G5���Y��>U�{S�?��z\n���c>�Ǝ���KR�yW�����_o@k��_u�oRMl��e�޽�:��ẋj<N�����>+��k��Y���[#�_�s�����_۝�O��.t˅Wo�W��[c��;r��96�P�K���\0�j�C�7á}x�D���W��T�_���{[���_o�+����>;�ޤ�3Em�V:�%�o�ZeRN�;�S1Nq�Y5og9����4�PL\ZTs�M�	��@�Uv�ƄRO�u\'B@�F$(�ԝ@�\"���\\pi�kзnբa���A,$O sSj�N���޴Q\0�)�W<*hH�EH�	��Z���X�\"#ΑFP4�m���q��l�\"I�ҚT{�,v;U!��t�@o�}DPN�����.�p�\0����f� ���^m�7-9WR ��׳�R|pTF�9�i5�yȸ��I��ڬN��E#]��FV&߉`��+���ؑ��Ez�U�RA]�kҷpD���\\�I��#��a�A����\"���_�� v���0Ei�8�6V�~����=��\0H��\\#�{��ޯ�n��t��d�	~_���?�ͧ���>��^�����|����S��k����3ܓ$��`H��Y�$�J`A�y�K��Ms���<�� �~��U�Lq��v���z�}Q�N�&qV�5��m�e\\�T�Rd��`LV��\0M?�;��4F@(}��i6�P\n�9c��������2�\"A��%����i�-0��y�(�IǘȦ��\0s�l�2ш��r)@�L���j�@�J�2FH\"��� �Re�	�Re\ZD����l�I�18m����ұ��)�:H=�w�&Dm�E I �Gi��UA/���w�� �bx\n�>�3v	��Y��DJ$��A\Z�����A&6��d�#Ž\ZfH0)ꏄG|M\"�*XN�U�H�|襫iڜf7��gz6x��v=�IԳ�$���`��HL\\��`��.�M4�u5�I�I�\Z�66U��M9�sJ�9�E6t����E*&��cj�(����QA��i��8�*�S���,�n0Px5�k��a��\Z��U6��η�]�p�<WZt�;&6�WZ)YRNrI�\"���j�2�5@���L�8=���f��؍�j�Ħ`���h�%�=�T�uF3��X��U\0}�|3��l�U��1��3\"IrD\n�$*1a/۷� ii�Ls>T�6���8?���|$�	�#4�� ��qB0I �P�a	�<��CN�!���������	�R!U��9�M�\0\n��AU�����h�t\0d����@(�2��;�Rʾ�o\0H�\r�Ӆ�$AϔQ@B�\0�\0)3�EΚ���ٶ��ѠU���s���<��<��3�\0�Jy�b�ۇU�9I\'���s]��:R��09��YD��TR���-�m\0��b3TE Hi4���4:�ߜ\Z�_`�a�][WX�;_[��\n	ۚ�|qh�eo1/�?�}����J��6�]@�x����!�)rq٤�l��\0\n{t#���\rr�\0t���d�}E�zN!�:ӆf��y\"&=�����B�����\04�ăL�E\Z�^bB��\0*�3�6&k��E�G(�	�&\0�Y\"�����b��^4��\'s\Z�):�C�Ωe�~�����+�LoA�!Dj����\0A!Ả���\'JFy�P��~[P\"7\0n恩�>��9�\n��	ל�������FIM\\�$��+B\ZHe2�b+0`�dpb�@ `�A�$3��\'��&J���t�.[�2NMH���P8�����,r�y���a d�;�dH=� ��4Fq�0�A:�����Aт�sX�tF ��w���¢���}���$�:TPQEEPQEEPsEP:\"�D\Z)�<�4�Y�($�WZt,,-�e�Pd�H�Z��Or뀢s��N�չ`���H=��.6��\02g��;]8��ԓr[���l[RQ`I+��:�ƕ�A�:lm����|ꑉ�y�;d̂\n�@�<�Z�`�����\05&LɁ�&)[:�\\L2�x34sQRf�;�ئ�\\�L�#�j[Q�F�PYF-KH�ϝ4l<�/$���\n����Q`�p	dx<MHm r7������㘠J�S��a��}��I���j�.Vp{z�Tډ�pi�02\0���m�:�d\'1�y�v�\\\Z�S$���Ft�ن	�\04	�!D�Ѿ*��)��\0F	�h�H�H\'�hV��nUXi3�y�$�tE\0�I9��ih��uI*�Sq����+S,��Vh��������  �:���A��J�+�<�n����ĐH�Ȋ�y�H ��U�����:q1�QK���>Y�ʤ�X�:{�j���%�`�N1@�a�28�@,Y�\'PH�=杻cZ�d���؊��Y��|������0@��lg<Z���������=��|�X)ϯz]ISoކ!nq��\0��zY��L.� �V-a��O�z!Z�`\0p�;:(bՍDcv�0�v?J4�0\'��XZcl4�?*c���`�3ڛ]*�GR�@���u7�25ی�h\\��γT\rh�\r.3�1ڀ\\$� �\"=*j7���AJ��\0�?8��U�낙���N���ǯ�P�L�w����q�X�V!N�L\\\0�a*�c�T�:�8�ڀ0}~�AJ�s�;�F|�p1@%P�Ӽ�V�kaaB��Ћ��Dfj�I\n{q[Y���)��w��dX�\"s��\0��)�s��G�`�jT\0��V�@�˜������\r�#�P`���\Z�b9��G��P��٤c$�N�t��`qޙ�&D�Z|@��L(�����e�54QUQ@QEQEPQEEPQT�Ͱ�	�d�S�����nջpU}Hɨ�q�Oq��:�N�[\n��\"�hg��pK\ZT�M���\n�P�4�Dm�NԽХ7�}��\nY�{�*F ����\Z�!n)�	ϟΥ�2�����`��Ь�� �`pj�Hv�LQ���5f\\��Ө\0@��rÑ�lR\Z�#[\ndfv�Zm��L����Z�y��P�m���H��E����$LN=jǁD�ddv�g��H��Ed�R �`DyU�.�3��`���m�|��\n�Lf���E�\'�1S�,����	c$b9����3i��\"4�\"Fj�&�bK957#P]E� ���An�n�C*N`lh����҂�N�GBA�:�۝��Z�`D�P�\0J!�(�-��q�@�6�@o\n��f(D���q�Ed��!�.\0m����x;~�S�f���\0{��jcI9���Va|J����R���rAogo�CS��I#h8�԰u7 S�s�V��\n�|K�yT	�\\f�*��n�\0T�U\Z�\0�շ��Ё�4����D�O�5�!��P �g΀t�ĩ�<��U#S��p�c�H�ub��)9>��&�m��S�$;U\Z�T�]@:�Rw��|�\\�oi�\n��@\'�*�@#3\0&����XF��+I���DK�[�L�\0I�ژr�[n�w��X�b�����28Pu$G�@�\0-H}��jX��/`})�V�jo��\"�\Z!�۳�b�Cim����D�\0�v����Y�0�\0\Z�E�3@�ڤ����9��%ؼo fLϝ�d\r��\0��9��q@�@�<�� ���~⃫Fr	�霱�u���r�m��$.6�S:X6�\Zw�?l���H-t$O>T��E2���?����j!�x4�w�(��9=��\"H8��Hl�� o?:\0p�27�Tx4̙\"6\"�\n��U��AH�Ѓ- D��	�$�0�ހ@a���E= ��`\ZH+ڛd�r�g�I���4� y�u���yg9�\0��ETQEEPQEQki�a��l�8�p	�O�h��>�]H�@P��x=�M��ŵ|D��U�~��rO��ə���E�E!|�`f��c\'���0Zd�>��Y=��j��Lb}jm��f����ȩ*�r����\0L��j��b��������rh�ӈ�z�8ץԙ�u�`�	K�$gF�T�&@$Ga��Kɀ`��P�X��r��v��q��*-�Y�2\'�����Y�O홤 1e����l���`��QX���$�����Li�\nN��]�;�	F%B�@�(���kP\r�)�;\0;\n�D�3n6�*��j��e�1$戶\n�`d����Ue9`A#�֧S[Vf\"I���${�9b~�=����\ZGo���[�H\0x��Λk}�1e2HĞ\'��\r)�APh[G��$�efs�ڰԤ� ���J�\Z�Ӑ����ʖ�l��b24����T.|A@�8����0F�̟�������cCD�1Ww�5ƓW�Dz��	�o��;�m�����6�\ZND�c�*�����\'�=�֟;�2s�򍷨�(S��K\0{Qt��(�� ���y�}c��0-29�o\Z�ШL��82j��Ѡ��kI�pqߘ���N�$I��~?�-�m$4dg��ëQ�a�3�QEfT1�,0�u�L�K-˷�i�>�O���.뇺�@eD6b<�*��:�)R�Hm��Fwm��f�\0��Q��\"y�傳L�=�_�)h>4 xy<\nf��&@9\0U�3����;=�~(�r\0�Ȱ �21�LaN�0O΁���G3B 2I@����o�R1G����60L=�\01�`���@Ө�Go>*N�#oNt��V7�PZZ2bN�1riP���H>��i`U�@̃}�.����u�A;�	\0��Z ��Zh�\rBCn$�ێij:��RX2$|�[G�A`N|�A�	\'\0�i�\\ng�sOQ7us3{՜���Ey\\�)�<Mh-��\\�H��@����@ N�ڬ>��W9�3A�2b\Z�dj\\2�VX�D��\'�@b|3 �I�p)ᘟS��H��|�r8��@�I\'y�\Z	����Y�\r��ރ	Y�i��i�(��|�QL�qQJ���Q3Z\"�[>�WZ���;�å`9�{f�KJ�	=�V|$.18��A��	�ڨ��R0�N@ڀ �;�Am�4���1�=j	��R>O@L�;��l�c�J\rC�#$�s����\nQ�\\��Z��c���qY���+E9c@�a��\Zr�~4�Ȑ~�,\0a���q���T�(&GnƐ0Hf��bqz�+;�($7��\"b�cy�(!KB6�<�Е�5A�?�Rudlս)���|&*�L\0c\0�\n�u%�����f�@�H�ٵ$0��#��	9���8\n�9�����lvb���i�y��*A\Z�`�Ι�\r�➭V�F�3��j�B�\Z�:�!#����.[\nVO�\'# ����Q���f9���iܗŰ����‚\\������h(KpgX�]�]���U\'1U|aX���v��\"��.H��O����QA�i�*K��sL�v`5la�a�&�EkcD�$L�6��51$����6斒��pw���2���S-�H2`�bEi\r�^%I����@T����52*�0`L��Rr�\\@	Y�20@����X[VU\n�1��xKK�by��s�jUΘ��� i%���P[F�s\"\0<~tE)sZ�kD���\0����A�ט��\0!���%U5΢\0\r\"VO«�c��Fӝ �_3�/�f�r	\0��?:wn\\%��[����=���z���(As��ˠ�9.čLwa��Ϊ �J`��Q�K)�2w�󫻋�C�8�O�+M��L�A������G�T���-�\0��T�!ANӂ7���\"g\0����\0�Z0d��di8�\0u\0�H�9>UN��\0* �3@�t�C)��q��-@ܗ$ą��\"\0\\��M?�t���L�?sOQO	Q���\0*A1`{��Acs�?��=�8Y��H\n����\r�2F��� \"�)�>�3�4h:���\\�&)��Ajt��	;��J@����H�Y�g������$�#�&F��uL�Ad��s�*�����j\\����I���hi1�$X��O�R��\Z��1��@�P�!+�?Z�\0&#�h�I�8z�[-�Ga�Px�d������|����@>��ۨd�GΊ*JÒ��Ug�\0��[N\\#X\Z~q�֊*\na���In��1�UE\\*\n:}sU9��Q@����5R� c4Q@�,��|���Ʌ2P91���~�1������a�x��#j(���~D�JZ�����E��Y�e@3�5\0N������Z` �n�9��4Q@���cΨHҠ���(��hr;SR2@��!���f�4{�ԡA���E����F�5ض���bD�\n(����.�����[0Ҭ�\0&G9���{ުՓ�v����n�8��QB	�%F�3�9��2�c��\0�P��:��۳�g4]���b/f`\Z(���K:���`�����o��>!��cˏ�T����=η�\"�H�w��D���	��Eޏ�sh(��y�n�=�s!cpg��Q�S�@�T��;V%Y�mیQEP���W��UM�P0o�r<����\0�9�j���+zQEnިf��\"�\n��D��\0�PK;�(6�1Rs�>�QAF�[��@ϥWG�D��P�fL���F������P��E\0�HS �ғ�:@?��(��Kv5�\0��Y��q����QE�ՂWH�4Q@�!C!��5�Zr1�(���'),(5,8,'MC007',0,'���\0JFIF\0\0H\0H\0\0��\0�\0			\n\n\n\n\n\n	\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n��\0\0�\0�\"\0��\0�\0\0\0\0\0\0\0\0\0\0\0\0\n	\0		\0\0\0\0!1AQ	\"a�\n2q��#$%5bd��34BDGRUVrt���ESWfu������������FHXegv���\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0!1A�\"Qa���2Bq�R���$C��3Sbr��\0\0\0?\0��ADADADADADADADADADADADAD�50�IW&�KM��<\0�Sc\\�W(���]�1�V=��S9)Bøj�1)-).��m��e�\0N�9�$ߓW+�)�Q�RA�3�=�k�Z�t��c���3v��|^ְ�U����+�A�\Z�򤨛g�{�c�����u3�T=s�?9�\0�*��]����5�S<�Ͼ�}��{P\rL�T��3�>�:Z�V�h\"�lI!��*��3�>�k}ث�Q�jkʣ~3�>��oj��RLjgʡrNw����U�c�֧<�	�]Μ�Z�l���Xm>=y�+���:���\0�~}�\0�o�>L�TO;s��*��]����ߕJ�g~}��X��P~y�*���s���ս�\"�lI��*�A;s랿m��\0��s?��8��\'@���J�&P��V��&�O��\"�W�vr떇H��#6�q�5�CE�*u%)dI$�OXè�]M��f�l��w5J�����T�V��*�Q�N�����ͻsȪ�~�m׵e�\\0���Z��Ji*�����;���ޡ{q��[V�s��\\��ފjO��,���p�(v��nu[�&��4��j�թ ���{��,UKsA��h��LQ;Vj�Pu�AA�;)=%����`�[.&ee*O����|^�:-��\0zb�ٗc���������7�t\nZ���YZ�F���Y@F���)����њϔ+]-���F3W�����I�=<bb]E	o�C\n2RM���\'u����vP]�R�\Z��6�8kU8�)O������WN�弢��yj��cz�;���\"9*rR�%$���\n��RWg�S�V����w�X�$\r\n����O:���[�Q�A��-�Wx�A*��\"8��!�����d�OT��R0�����$��FJ&�G��qݪW��G�r�3_N�qpfQ֛q��@uEw�J��-�8�x���5:�Ƭq��\n����HP�Q攤���R��*x�5���\n_��P#������ƽ���Վ5�r6��mo�2κ���\rZ�76�MP���hJභ�`��(���Pl#)C~�ǀX���>>i�+�mx���U��G�o}?��\\z�W�뱩Ry\0��?��R���� ���լ6�{}�u�&7�?\0�\n�[G��,=��zJ�){U8�)i\nO�n�Ӻ>~}�y)Զ�Wc1sʅT��(\r!E.K�#�a�M�L�`n\"�p|�Zv.kE��Y�k�]�8[:��wH��n���Mp�|K=�kZ��s2-�l��F�N+��\"��l)P)D\\�٬���L\r��TنBf�Oo5o۫�|��#OaIyhZ�\\�*C��k��yNj�V���\0�w��\0�B%_Tz��p���,�=���.J|:t�ǣ�,�� BZ��L� ���7�\Z<]��}Jìj�T)��yb$�Zɝ>$�x��?�<���Φ�d�70ꕶ�^Y�EE������?�$�+l�5{�x�D;�jz)r�$ou}~A*�IȾ(\0Z�ae)�6��w�.��%n��bs�0��Ȏ�G(��S���!�a�ɑ\\��Q�į�ЧG�D��y�[�\\[<9��/q_��;��G?�b�9�/��$u���%q�5�>a�ᖧ�~�Ɖ�_�R�����wۨ��|�mehM�Q*�ӉWi����:L	+���L%`�сP\rR*\nacm5m�\0r})\'m�p��.��_��ncd��> �=Z��T֑�8@��B�;����\n�v��~ed2�v=�ê���KI��G	?V���ZSb�2�<���&Pv\r�m�����/J؆>:F�w������\'ᩌaC�3��R��32�*Xm w��hB�K,�K.�H)䞑��O\r�pZl�\"��p�\r��~]�>FC+J�A�@u1�%EK��$[�1n�\Z�LFfS�%�V�qrG^|:ĉ��\\���=3-�^��6���Z^�$@JV��*,(<��F����%�v�F�ͤ�ʤ¾�Ht�P��n�G��Kf~m�=6��2ٳC�\"�\070�i�8�^m�%�%��i��\08O爊��Y��y#�<�v��S53r����(q+��~��IM��t���Lɼ]4���9a,\"�w^7�yY�ܩ��h�.Z]���0���\n�l�q\\5�t�X����ۋZ���T��>)�矞�k��$��jW�-x34x��\0U�9_���$ŲH�����gIG\n	��9�wai���[!!�X�<�䍑�S�S�N԰��؝pY	�۴�\0�ecܿ�֖����q����w�Wߢ��\0�c�ץjq�Aޯ����X5�\'�k�J�9,;30R����Z1��r�$��Yf�m�F�w���ˤ���+���L���ӫ%�ܓk戧V���ju���E^�=qS!���LB��5�e�R����+c�$���k�!}b\"^NB��Xu�M���\"T˵ee~pԱ��[�b[@&��`z��u�D���ڣ��^y�J�\\ŇA�,��c?O���ñ�+��u��q���Wd��۝����\0�)���8䗹{��vd+�3��\":�-���Ce��8��I�ӯ�1D�|����)=N1��\0\\^�}���(�O�~4l��j�)*Ɠ�\0?\n\\\\�3Gh�j��,7�&%)s~JNZU�\0=a�<��KA �${�nI��ny��f[�} ��2dhJ��%�T���;�Ӆ�eJ����)=o�#�\Z3k��-SčcK�\0I�**�XKM�a�G�5I�<�L����YP���3 7��%��+�,����˦�]y�ܽ9��V�\0P�H�I��Z�\r��١rz�%���6VI�#�maü���*+˜�i�M*�c\'6$7�4�@����f0#T���TYK!d��?\\���\'<��\Z�\'�KT�+��S\r%��I�8���\'��1s`�3��t\\9OqʭBᶛ@uiJnlOA�\'�\"�+4J\\ֹ�7D�x��:��[4i��\'����]k�!r���^�!�ZZ}&ԁ��oo�1��\nf\'L�T��)qii˭��lPA��|��3�3r�.`�TUu,�4H�[����eڕQ���d/�+��V$�G\'�c	(�&����^�����1�����\r�k�@�蛸S&���+7HÓ��ؔ�d�mv����d��1���S[m�\0{6ذH�����V��[���7�I	[d[��z��)T��Cm�E�:G�c*�Z9��֮��|�\ZXAk.x�d�\Z�S���i)Fժad���ՌG�fn��ꊐq��:�)F�Р�19jc4���=1!�d;F�Rî$�㿼Z5n�������_Qĵ%}�F�\0JT%�UӋƻ\n�P�1ч��e�I)���m{[��R;���yԕ+�Q[�8��W9soT�TCu�y97��Xv�(̳\rR~a[�үHӎ�R��K횤�g�^R�7bTGu�%�\\q�g�ʼ�ҘtPd\Z}MK90�B��R�S�RA���q���~_�	��r���X�ˏ��̚r4�I�%N Y䬋��ިE�c��̪�\\�K�Q�eH	-�T��;�RzZ�]O��J�)s�A��>��BbB�>��q�GػR�娚57	4Ӳ��N)]�2	CA7��[�tj\\�81��=�`���t�����2ŧ,(`���k��N��6��:T�M�������&+PK���_����8�����t�(�ξ�}m^��lĔ�8�5U�S�Wa,�H<\'�U;\rK�X���k̃�%*��H $�{��h�h�È��I=T��<�1���o����	���8��R�\Zz�8�m�!%)h@�:Dw�꯽8m�Ǜ[--�2���$%7�쓆��R�!job���S\Z��J��.���P�g�T��R�L`�t>�\rƹ�?��N��9���ї��O�����Ļ�|�RO�&Du�9�8��4E�j?�(�\n�u�8+�]�l�+���v��(�O�� @wS54(�+̂����}Ý�(��LQf��ꂠI����ͿWt_��n���V&ͥ\"��\"�6��٬6��ͥ��B�~2�R>�rM?Aó2�\Zpp�w��E�Gu�a9��io9-@y�2��R��ҡ�;�!808翵Ǧ\ZQ%J{�P���]�,&\0������h�:�\0���U>�n� ��+Ja�f�b�)���a�p]4��F�M1�[�_�l\"hp\r��u�eb�%E��nVX���8��,x��?T���\n�bvf��b�f����&$E����_����ڗژ��}n=���k�m��#+3��D�f2e��v]��P&��a�I�^���7&d%b�eg��<~c�u&�)\0���k��R�?OD���N�R���I��H�<x�S���U\r�)%��6�*��ܞ�_��u���B�A�_La�_,�F�3����-�e�v���P��I�����q���e*��$Dfg��#���\r��	C�VK �U��&�r~X唞��&Z}�j���յ����M [�{�^[;fi����T����؞q�)�	�|���:�M��$~��]\n�W��a�ݺWZ��n�y3Q�U����e�y�^�z�����\"<��u5��S���䜫�:�:@�#�RAߎ��J�f���O�P&�Iq��*�:�Jy��D�|x�\\ޢO��F�\r��Fc�HP<:�u�y�i�CR�����+���a�F�%�[�<��l�7ԖHa�D��V>�ÓS�\r%n�;I�\0wH�sR���I����ԢP�f�%J�E���븚rd��1!-<���!����$�jI��bgjt����;\ZvaҲ��\0�h�(^�Mp�2�K���U�׽�HM�S<G�:{	#A~�tN�Q�U�)��V%�Y���0����Ak���!�����8�lL��N�C�U���ç�\ns3��QEN��EM��X^�‡��/fВ�c�]��:<9L�0�����4���\\�`��v�^|R�:z���5zZg�RչS�T�������Hru�F��Id�\0<H���Y*a*�&��y�1e4*�\'�ck��–�����w-J=j�=�#��旨�C�0Գku�ԁpmh¬�%����f��C��5�+�_y�a��e�T\\x;��Dk8���qb���r��|_�*q�Ի�ry�c[5��SSb�su%�nG$z�)JSd=t��b��OΥi������h>����հl��Q����Wz�ƫ���Z����\0en;	r��41����3�\0en;<��bW�(S��}��?ޘ��}igSU5�y2}G���k��)�#��1Ed�kPշ�#n6�7\'��K����,=��Z���;��ތ7�(�;ڼJ@\'rP�oP�f�%lW,���D7�s5�a�bM�u�9*�w�!d$�n��Uq�s�\rz@2�,$�qsr}W/Tt|�P�=󽤧��\"�)���ҬT���b|y��h33sN��Ĝ�V,��.�9����˅��-p���蘔�pn�	7���G�-1	���w����%��UӲ�U6��is�o��=x�����$]L�WXmEA [�o%�6J�\'�c%���t)�z�c���|�lف\'�-�%�e:�&�9l��ְV��>Q�T�N�>gZ`v��/�I�a�-VbQ���\'������7h��xz��sC,tY9�����?��෷u�O��	��n�f�U�sg��ڇ@;}\"���/�m*os^���zB��H�ur�-�e�S�TD�PR�Y_;w^�ۘĘ�M)��JS�	�\0�5����Y\\ۭ�5��;K�J��^��b�Tw;R��H�n���6���1�(8�s��|�\"J,�*��x9��a@)Jb��I�G|�A�e��/����C����O=�*�Bd�\'x��K`)��CF����R�y����	S����.6��<F>b��g��Y�-N��B�cb��(�{�hC��\0��x&�hA����J�4��^R��%�:��6�I�ۥ��ʌ$�M�V�%D �d�Q�jA����>j���H�����/�UÍ��pv����5��J\0::{�Q�b)�B \'��-�* L4����Ǹ�QV�s8��%n;#l����?d�+q�8��oX����?���L��n|���3�w[���*�rA�4��*@\'��֬r�d��q�[f%\nj�X��\n�s�l���,�@Ћzb��+����	�M����x���!�\'��\r�nb���\Z�j�wT�\"���\0�1�AƱ�\0O���#a����궉�t��4�H���\n,�ZJ�d�l���}�A��U}��*�~9Q-��a���E�6U�\0/U�Ҹ��vʔ�D>݆�G?�x�4�\']}C�S�	JB��Ƣ��5�����8P��7�W_�c����VN��|�WWr��\0\\�x~^�]�)j4��֩�k�ح�M�p��O6Q������~��u�U�2ȒK�\'�T��\"�mڒM���ÎqaN7��t�;o�Gφج�\0�Z����j1�~j�\0i�/�׫����:�ܥ?���u�[��Z��i���2�sb\n;o�a�ږ�Cs\r�v^e	u�J.V@U�����Fmɱ7Z�2��*�#U�\n����)BB�씒J��k[���\\W�������B��ܧ�8\ZMgf}�jJ������S�7Q���N(ًs~���1�+�Kz8�,u�i��[P{��H������!��-�a/����T$�$k�>��Zz������\nܴ���\'^+r���f�2b��S�rH�[$�T�I�T��G/�1V�U��?l��\0�=��P�U/��sڏ\"c:���V�!���#a�.n��jمh��d#gh ��w�	��@TɿV�Jڌ�ĸ�CRXz~f�ī��6[-��-vu�(���G�j�ze� ��Y�^�4���%Ą�`�w\"�� �,cQN8�\"��j�=~�;�G��&�O�+��s���$�6��<�_f5�����٠��o��H2kw����~��*I[�#p�)��H�w6� �W��;����~����,M���W�� ���S��2�T)����;)(��YE���\n��R:�O��!��R�R�P\r�y\"}��9��\0��?�+��1\r���ݜ������rR��Ii%nYJ��\r���[��!f�\\�o��CLU�E�P_�\n�!��g7	qj�f��e��z�LBxuՔ�ť��30��i��V�q��q���y9�V0�XvjFK��TG&�-��\r��ˉ\n\0���ۈ�a��Du��D��t�fޝp^$����Y�r������`�(X�8�\n�Ѷ[q���{\'�àD��F�j?�Ob&� ������\09�Z�\0���}��:���m���)�D�B��à4��\Z�)�@|�\Z$��\\��O��\"j��c���!Nӣ\\���ϔ�#J|���Ea,?�4��ihE6a��!�e�.���ڑ{X�1��}de����MO{�&�%)M���\n�J<�+g��;.b�E�D�n��6���V��m�Eakp�cz��E�b�=fiLy/N�&·L�\0+O�4T-sEYݑx[����Rz8�y\nĔ�����g\ZZЪD(�A�Z7�zu��K�\0+G�s�pR�PEb�OQ�Z~��D[IJ�wh�K��5�l��1.�>S����O\\{�M���-z���=����js/hen!j�t�M��$6�l{�B�GW,|�:Q��m�����|N$4k��=G��Ob&� ���\Z��\09�Z����{�8�\nx:6�S�)�\0�LE\'�ǠT�F�l?�Ob?Ly:4,�_gGl�!WI�)��\\L�A-�D�4�|?���	F�r�R2�i�P:%H#�eAAAAAc�jR��s36�JGA�}B9y���<��1`Kf	E*��!(����I@HGzs�1�\\���U�k�l=���D2��ɷ\"��=�I��,�Ѭ�dXb�q@}n��I�x��I�\\��If�\n)��G�l�=әhU��S�\\t�o�A�\'TU1�U~��G��y!��ι�P�\0\"G��j�)\\�D�e���0��uB���ߊfSN�c�w���N��:�r�pP�j�>�6��^��L<\'��QP�f\\�q㶧����gjX����XGOof�q��̄���i�[*%\0���4L�=�dĬ�zMȴ������r���)IK�RM�U�-��a%�����bѵ�B�� ��� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� ���');
/*!40000 ALTER TABLE `equipment_photos` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `equipment_price_summary`
--

DROP TABLE IF EXISTS `equipment_price_summary`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equipment_price_summary` (
  `EquipmentID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  `LocalAveSellPrice` decimal(11,2) DEFAULT NULL,
  `LocalAveJobCost` decimal(11,2) DEFAULT NULL,
  `LocalJobCount` int(11) DEFAULT NULL,
  `LastUpdate` date DEFAULT NULL,
  PRIMARY KEY (`EquipmentID`,`BranchID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `equipment_price_summary`
--

LOCK TABLES `equipment_price_summary` WRITE;
/*!40000 ALTER TABLE `equipment_price_summary` DISABLE KEYS */;
INSERT INTO `equipment_price_summary` VALUES (1,1,'25.00','30.00',2,'2012-03-29'),(6,1,'29.00','9.46',1,'2012-03-29'),(7,1,'310.00','275.99',1,'2012-03-29'),(8,1,'200.00','71.54',1,'2012-03-29'),(10,1,'300.00','0.00',1,'2012-03-29');
/*!40000 ALTER TABLE `equipment_price_summary` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `event_log`
--

DROP TABLE IF EXISTS `event_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_log` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `EventDateTime` datetime NOT NULL,
  `EventMessage` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `event_log`
--

LOCK TABLES `event_log` WRITE;
/*!40000 ALTER TABLE `event_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `event_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `final_outcomes`
--

DROP TABLE IF EXISTS `final_outcomes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `final_outcomes` (
  `FinalOutcomeID` smallint(6) NOT NULL AUTO_INCREMENT,
  `FinalOutcome` varchar(30) NOT NULL DEFAULT '',
  `RNRFlag` tinyint(1) NOT NULL DEFAULT '0',
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`FinalOutcomeID`)
) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `final_outcomes`
--

LOCK TABLES `final_outcomes` WRITE;
/*!40000 ALTER TABLE `final_outcomes` DISABLE KEYS */;
INSERT INTO `final_outcomes` VALUES (1,'Repaired OK',0,0),(2,'Beyond Economic Repair',1,0),(3,'Parts not Available',1,0),(4,'Info not Available',1,0),(5,'Return at Customer Request',1,0),(7,'Scrapped At Customer Request',1,0),(8,'No Outcome',0,0),(9,'Returned Not Repaired',1,0),(10,'Parts Supplied',0,0),(11,'No Fault Found',0,0),(12,'Repair + CRT Fitted',0,0),(13,'Site Visit Complete',0,0),(14,'Returned for testing',0,0),(15,'Service Exchange Supplied',0,0),(16,'Job Transferred',0,0),(17,'Added To Service Ex Stock',0,0),(18,'Job on Hold',0,0),(19,'Calibrated',0,0),(20,'Recharge',0,0),(21,'.',0,0),(22,'Unit Serviced',0,0);
/*!40000 ALTER TABLE `final_outcomes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `groups`
--

DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groups` (
  `GroupID` int(11) NOT NULL AUTO_INCREMENT,
  `GroupName` varchar(50) NOT NULL DEFAULT '',
  `Email` varchar(100) DEFAULT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`GroupID`),
  UNIQUE KEY `idxBranchIDAbbrev` (`BranchID`,`GroupName`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `groups`
--

LOCK TABLES `groups` WRITE;
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
INSERT INTO `groups` VALUES (1,'Group A','helpme@itpartnership.com',1),(2,'Group B','helpme@itpartnership.com',1),(3,'Group C','helpme@itpartnership.com',1);
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `incoming_jobs`
--

DROP TABLE IF EXISTS `incoming_jobs`;
/*!50001 DROP VIEW IF EXISTS `incoming_jobs`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `incoming_jobs` (
  `JobID` int(11),
  `NumberOff` smallint(6),
  `Warranty` tinyint(1),
  `CreditNote` tinyint(1),
  `BranchID` int(11),
  `DateTimeOfEntry` datetime,
  `CustomerID` int(11),
  `JobClassID` smallint(6),
  `JobTypeID` smallint(6),
  `EquipmentID` int(11),
  `QuotedPrice` decimal(11,2)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `invoice_batches`
--

DROP TABLE IF EXISTS `invoice_batches`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_batches` (
  `InvoiceBatchID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `InvoiceDate` date NOT NULL,
  `Invoices` int(11) NOT NULL,
  `RechargeInvoices` int(11) NOT NULL,
  `Keyed` tinyint(1) NOT NULL DEFAULT '0',
  `DateTimeCreated` datetime NOT NULL,
  `CreatedByID` int(11) NOT NULL,
  PRIMARY KEY (`InvoiceBatchID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxCreatedByID` (`CreatedByID`),
  KEY `idxInvoiceDate` (`InvoiceDate`),
  KEY `idxKeyed` (`Keyed`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `invoice_batches`
--

LOCK TABLES `invoice_batches` WRITE;
/*!40000 ALTER TABLE `invoice_batches` DISABLE KEYS */;
INSERT INTO `invoice_batches` VALUES (1,1,'2011-12-16',1,0,0,'2011-12-16 04:49:06',1),(2,1,'2011-12-16',1,0,0,'2011-12-16 05:31:21',1),(3,1,'2012-02-11',2,0,0,'2012-02-11 14:44:11',5),(4,1,'2012-02-12',1,0,0,'2012-02-12 09:54:14',5),(5,1,'2012-03-22',1,0,1,'2012-03-23 12:26:12',1);
/*!40000 ALTER TABLE `invoice_batches` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `invoice_print_list`
--

DROP TABLE IF EXISTS `invoice_print_list`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_print_list` (
  `IPL_JobID` int(11) NOT NULL,
  `IPL_InvoiceType` varchar(3) NOT NULL DEFAULT '',
  `IPL_CopyNo` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `invoice_print_list`
--

LOCK TABLES `invoice_print_list` WRITE;
/*!40000 ALTER TABLE `invoice_print_list` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoice_print_list` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `invoice_types`
--

DROP TABLE IF EXISTS `invoice_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_types` (
  `InvoiceTypeID` int(11) NOT NULL AUTO_INCREMENT,
  `InvoiceTypeName` varchar(50) NOT NULL DEFAULT '',
  `ReportName` varchar(100) NOT NULL DEFAULT '',
  `SortOrder` int(11) NOT NULL,
  `CreditNote` tinyint(1) NOT NULL DEFAULT '0',
  `Recharge` tinyint(1) NOT NULL DEFAULT '0',
  `AccountsCopy` tinyint(1) NOT NULL DEFAULT '0',
  `SelectInvoiceBatchCreation` tinyint(1) NOT NULL DEFAULT '1',
  `SelectAccountsInvoicePrinting` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`InvoiceTypeID`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `invoice_types`
--

LOCK TABLES `invoice_types` WRITE;
/*!40000 ALTER TABLE `invoice_types` DISABLE KEYS */;
INSERT INTO `invoice_types` VALUES (1,'Customer Invoice','Invoice',10,0,0,0,1,0),(2,'Customer Credit Note','Invoice',30,1,0,0,1,0),(3,'Interbranch Recharge Invoice','Invoice',20,0,1,0,1,0),(4,'Interbranch Recharge Credit Note','Invoice',40,1,1,0,1,0),(5,'Accounts Copy Customer Invoice','Invoice',60,0,0,1,0,1),(6,'Accounts Copy Customer Credit Note','Invoice',50,1,0,1,0,1),(7,'Accounts Copy Interbranch Recharge Invoice','Invoice',70,0,1,1,0,1),(8,'Accounts Copy Interbranch Recharge Credit Note','Invoice',80,1,1,1,0,1);
/*!40000 ALTER TABLE `invoice_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_chasing`
--

DROP TABLE IF EXISTS `job_chasing`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_chasing` (
  `JobID` int(11) NOT NULL,
  `DateTimeChased` datetime NOT NULL,
  `Note` varchar(40) DEFAULT NULL,
  `NextChaseDate` date NOT NULL,
  `ChasedByID` int(11) NOT NULL,
  `ChaseType` varchar(2) NOT NULL DEFAULT '',
  PRIMARY KEY (`JobID`,`DateTimeChased`),
  KEY `idxChasedByID` (`ChasedByID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_chasing`
--

LOCK TABLES `job_chasing` WRITE;
/*!40000 ALTER TABLE `job_chasing` DISABLE KEYS */;
INSERT INTO `job_chasing` VALUES (1001,'2011-12-16 04:19:51','Quotation sent by email','2011-12-18',1,'QT'),(1002,'2011-12-16 05:12:03','Quotation sent by email','2011-12-18',1,'QT'),(1002,'2011-12-16 05:17:46','Quotation sent by email','2011-12-18',1,'QT'),(1002,'2011-12-16 05:18:49','Quotation sent by email','2011-12-18',1,'QT'),(1002,'2011-12-16 05:26:25','Quotation sent by email','2011-12-18',1,'QT'),(1002,'2011-12-16 05:28:06','Quotation sent by email','2011-12-18',1,'QT'),(1005,'2011-12-16 11:25:13','Quotation sent by email','2011-12-18',1,'QT'),(1003,'2011-12-16 11:26:57','Message sent to customer by email','2011-12-18',1,'MS'),(1006,'2012-02-10 12:45:30','Quotation sent by email','2012-02-12',5,'QT'),(1007,'2012-02-10 13:41:59','Quotation sent','2012-02-12',2,'QT'),(1007,'2012-02-10 13:42:52','Quotation sent','2012-02-12',2,'QT'),(1007,'2012-02-10 13:47:54','Spoke to Mr Jobs. He was a bit rude.','2012-02-12',3,'MN'),(1009,'2012-02-10 14:10:50','Quotation sent','2012-02-12',2,'QT'),(1009,'2012-02-10 14:12:15','Quotation sent','2012-02-12',2,'QT'),(1004,'2012-02-10 14:34:58','Quotation sent','2012-02-12',2,'QT'),(1010,'2012-02-10 14:49:53','Quotation sent','2012-02-12',2,'QT'),(1011,'2012-02-11 08:27:16','Quotation sent by email','2012-02-13',5,'QT'),(1004,'2012-03-29 18:02:33','Quotation sent by email','2012-03-31',1,'QT'),(1013,'2012-04-06 08:23:37','Quotation sent by email','2012-04-08',5,'QT');
/*!40000 ALTER TABLE `job_chasing` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_classes`
--

DROP TABLE IF EXISTS `job_classes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_classes` (
  `JobClassID` smallint(6) NOT NULL AUTO_INCREMENT,
  `JobClass` varchar(16) NOT NULL DEFAULT '',
  `QuoteTimeHours` smallint(6) DEFAULT NULL,
  `RepairTimeDays` smallint(6) DEFAULT NULL,
  `QuoteRequired` tinyint(1) DEFAULT NULL,
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`JobClassID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_classes`
--

LOCK TABLES `job_classes` WRITE;
/*!40000 ALTER TABLE `job_classes` DISABLE KEYS */;
INSERT INTO `job_classes` VALUES (1,'Emergency',0,3,0,20),(2,'Standard',48,10,1,30),(3,'Urgent Quote',24,10,1,10);
/*!40000 ALTER TABLE `job_classes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_history`
--

DROP TABLE IF EXISTS `job_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_history` (
  `JobHistoryID` int(11) NOT NULL AUTO_INCREMENT,
  `JobID` int(11) NOT NULL,
  `DateTimeAdded` datetime NOT NULL,
  `UserID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  `JobHistoryType` varchar(2) NOT NULL DEFAULT '',
  `Note` varchar(80) NOT NULL DEFAULT '',
  PRIMARY KEY (`JobHistoryID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxUserID` (`UserID`)
) ENGINE=MyISAM AUTO_INCREMENT=436 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_history`
--

LOCK TABLES `job_history` WRITE;
/*!40000 ALTER TABLE `job_history` DISABLE KEYS */;
INSERT INTO `job_history` VALUES (1,1001,'2011-12-16 03:40:22',1,1,'OT','Job booked in'),(2,1001,'2011-12-16 03:40:23',1,1,'ON','Entry of Order No: 1234567'),(3,1001,'2011-12-16 03:48:29',1,1,'ON','Entry of Order No: 12345678'),(4,1001,'2011-12-16 04:15:02',1,1,'ST','C-Status advanced to Being Comm Quoted'),(5,1001,'2011-12-16 04:15:03',1,1,'OT','Quoted By changed to Demo'),(6,1001,'2011-12-16 04:15:06',1,1,'ST','C-Status advanced to Await Go-ahead'),(7,1001,'2011-12-16 04:16:36',1,1,'ST','C-Status advanced to Chase Go-ahead'),(8,1001,'2011-12-16 04:16:36',1,1,'OT','Quoted Price changed to 20'),(9,1001,'2011-12-16 04:16:38',1,1,'ST','C-Status advanced to Finalise Job'),(10,1001,'2011-12-16 04:16:38',1,1,'ST','E-Status advanced to Being Repaired'),(11,1001,'2011-12-16 04:16:41',1,1,'ST','C-Status advanced to Await Order No'),(12,1001,'2011-12-16 04:16:43',1,1,'ST','C-Status advanced to Chase Order No'),(13,1001,'2011-12-16 04:16:45',1,1,'ST','C-Status advanced to Await Completion'),(14,1001,'2011-12-16 04:16:46',1,1,'ST','C-Status advanced to To be Delivered'),(15,1001,'2011-12-16 04:16:48',1,1,'ST','C-Status advanced to Final Check'),(16,1001,'2011-12-16 04:16:51',1,1,'ST','C-Status advanced to Job End'),(17,1001,'2011-12-16 04:18:06',1,1,'ST','E-Status advanced to Job Completed'),(18,1001,'2011-12-16 04:18:06',1,1,'OT','Repaired By changed to Demo'),(19,1001,'2011-12-16 04:19:53',1,1,'CH','Chasing: Quotation sent by email'),(20,1001,'2011-12-16 04:19:54',1,1,'ST','C-Status advanced to Await Order No'),(21,1001,'2011-12-16 04:19:54',1,1,'QT','Quotation sent by email'),(22,1001,'2011-12-16 04:20:13',1,1,'ST','C-Status advanced to Chase Order No'),(23,1001,'2011-12-16 04:20:15',1,1,'ST','C-Status advanced to To be Delivered'),(24,1001,'2011-12-16 04:20:23',1,1,'ST','E-Status advanced to Await Print Del Note'),(25,1001,'2011-12-16 04:20:25',1,1,'ST','E-Status advanced to Await Delivery Back'),(26,1001,'2011-12-16 04:20:38',1,1,'ST','C-Status advanced to Final Check'),(27,1001,'2011-12-16 04:20:41',1,1,'ST','E-Status advanced to Job End'),(28,1001,'2011-12-16 04:20:44',1,1,'ST','C-Status advanced to Job End'),(29,1001,'2011-12-16 04:49:06',1,1,'IN','Invoice 10001'),(30,1002,'2011-12-16 04:59:19',1,1,'OT','Job booked in'),(31,1002,'2011-12-16 04:59:20',1,1,'ON','Entry of Order No: 3532432434'),(32,1002,'2011-12-16 04:59:33',1,1,'OT','Quoted By changed to Demo'),(33,1002,'2011-12-16 05:12:05',1,1,'CH','Chasing: Quotation sent by email'),(34,1002,'2011-12-16 05:12:06',1,1,'ST','C-Status advanced to Await Go-ahead'),(35,1002,'2011-12-16 05:12:06',1,1,'QT','Quotation sent by email'),(36,1002,'2011-12-16 05:17:48',1,1,'CH','Chasing: Quotation sent by email'),(37,1002,'2011-12-16 05:17:49',1,1,'ST','C-Status advanced to Await Go-ahead'),(38,1002,'2011-12-16 05:17:50',1,1,'QT','Quotation sent by email'),(39,1002,'2011-12-16 05:18:51',1,1,'CH','Chasing: Quotation sent by email'),(40,1002,'2011-12-16 05:18:52',1,1,'ST','C-Status advanced to Await Go-ahead'),(41,1002,'2011-12-16 05:18:52',1,1,'QT','Quotation sent by email'),(42,1002,'2011-12-16 05:26:27',1,1,'CH','Chasing: Quotation sent by email'),(43,1002,'2011-12-16 05:26:28',1,1,'ST','C-Status advanced to Await Go-ahead'),(44,1002,'2011-12-16 05:26:29',1,1,'QT','Quotation sent by email'),(45,1002,'2011-12-16 05:28:08',1,1,'CH','Chasing: Quotation sent by email'),(46,1002,'2011-12-16 05:28:09',1,1,'ST','C-Status advanced to Await Go-ahead'),(47,1002,'2011-12-16 05:28:09',1,1,'QT','Quotation sent by email'),(48,1002,'2011-12-16 05:28:56',1,1,'ST','C-Status advanced to Chase Go-ahead'),(49,1002,'2011-12-16 05:29:46',1,1,'ST','C-Status advanced to Finalise Job'),(50,1002,'2011-12-16 05:29:46',1,1,'ST','E-Status advanced to Being Repaired'),(51,1002,'2011-12-16 05:29:46',1,1,'OT','Quoted Price changed to 30'),(52,1002,'2011-12-16 05:29:49',1,1,'ST','C-Status advanced to Await Order No'),(53,1002,'2011-12-16 05:29:51',1,1,'ST','C-Status advanced to Chase Order No'),(54,1002,'2011-12-16 05:29:53',1,1,'ST','C-Status advanced to Await Completion'),(55,1002,'2011-12-16 05:29:57',1,1,'ST','C-Status advanced to To be Delivered'),(56,1002,'2011-12-16 05:29:59',1,1,'ST','C-Status advanced to Final Check'),(57,1002,'2011-12-16 05:30:20',1,1,'ST','C-Status advanced to Job End'),(58,1002,'2011-12-16 05:30:44',1,1,'ST','E-Status advanced to Job Completed'),(59,1002,'2011-12-16 05:30:44',1,1,'OT','Repaired By changed to Demo'),(60,1002,'2011-12-16 05:30:47',1,1,'ST','E-Status advanced to Await Print Del Note'),(61,1002,'2011-12-16 05:30:49',1,1,'ST','E-Status advanced to Await Delivery Back'),(62,1002,'2011-12-16 05:30:57',1,1,'ST','E-Status advanced to Job End'),(63,1002,'2011-12-16 05:31:21',1,1,'IN','Invoice 10002'),(64,1003,'2011-12-16 06:55:11',1,1,'OT','Job booked in'),(65,1004,'2011-12-16 08:35:09',5,1,'OT','Job booked in'),(66,1004,'2011-12-16 08:35:09',5,1,'ON','Entry of Order No: 1234'),(67,1004,'2011-12-16 08:39:16',5,1,'OT','Quoted By changed to Engineer'),(68,1005,'2011-12-16 11:13:05',1,1,'OT','Job booked in'),(69,1005,'2011-12-16 11:13:05',1,1,'ON','Entry of Order No: 213312'),(70,1005,'2011-12-16 11:22:30',1,1,'ST','C-Status advanced to Being Comm Quoted'),(71,1005,'2011-12-16 11:22:30',1,1,'OT','Quoted By changed to Engineer'),(72,1005,'2011-12-16 11:22:31',1,1,'OT','Quoted Price changed to 29'),(73,1005,'2011-12-16 11:23:27',1,1,'ST','E-Status advanced to Await Go-ahead'),(74,1005,'2011-12-16 11:24:49',1,1,'OT','Quoted By changed from Engineer to Commercial'),(75,1005,'2011-12-16 11:25:25',1,1,'CH','Chasing: Quotation sent by email'),(76,1005,'2011-12-16 11:25:26',1,1,'ST','C-Status advanced to Await Go-ahead'),(77,1005,'2011-12-16 11:25:27',1,1,'QT','Quotation sent by email'),(78,1003,'2011-12-16 11:26:58',1,1,'CH','Chasing: Message sent to customer by email'),(79,1003,'2011-12-16 11:26:58',1,1,'MS','Message sent to customer by email'),(80,1005,'2011-12-16 11:28:21',1,1,'ST','C-Status advanced to Chase Go-ahead'),(81,1005,'2011-12-16 11:28:43',1,1,'ST','C-Status advanced to Finalise Job'),(82,1005,'2011-12-16 11:28:43',1,1,'ST','E-Status advanced to Being Repaired'),(83,1005,'2011-12-16 11:41:42',1,1,'OT','Job Type changed from Workshop Repair to Non-prod Codes'),(84,1005,'2011-12-16 11:48:28',1,1,'GP','Get parts: 1 part added'),(85,1005,'2011-12-16 12:05:39',1,1,'ST','E-Status advanced to Job Completed'),(86,1005,'2011-12-16 12:05:39',1,1,'OT','Repaired By changed to Engineer'),(87,1005,'2011-12-16 12:05:40',1,1,'ST','E-Status advanced to Await Print Del Note'),(88,1005,'2011-12-16 12:07:53',1,1,'ST','E-Status changed from Await Print Del Note to Await Parts'),(89,1005,'2011-12-16 12:08:32',1,1,'ST','E-Status advanced to Being Repaired'),(90,1005,'2011-12-16 12:08:34',1,1,'ST','E-Status advanced to Job Completed'),(91,1005,'2011-12-16 12:12:29',1,1,'ST','C-Status advanced to Await Order No'),(92,1005,'2011-12-16 12:12:33',1,1,'ST','C-Status advanced to Chase Order No'),(93,1005,'2011-12-16 12:12:40',1,1,'ST','C-Status advanced to To be Delivered'),(94,1005,'2011-12-16 12:13:17',1,1,'ST','C-Status advanced to Final Check'),(95,1005,'2011-12-16 12:13:23',1,1,'ST','C-Status advanced to Job End'),(96,1003,'2011-12-16 20:17:06',1,1,'GP','Get parts: 1 part added'),(97,1003,'2011-12-16 20:17:06',1,1,'GP','Get parts: pick list printed'),(98,1003,'2011-12-16 20:17:12',1,1,'OT','Quoted By changed to Engineer'),(99,1003,'2011-12-16 20:17:57',1,1,'OT','Job Type changed from Manufacture to On-site Repair'),(100,1006,'2012-02-10 12:38:04',5,1,'OT','Job booked in'),(101,1006,'2012-02-10 12:38:05',5,1,'ON','Entry of Order No: 12345894'),(102,1006,'2012-02-10 12:41:49',5,1,'GP','Get parts: 2 parts added'),(103,1006,'2012-02-10 12:41:50',5,1,'GP','Get parts: pick list printed'),(104,1006,'2012-02-10 12:44:45',5,1,'OT','Quoted Price changed to 310'),(105,1006,'2012-02-10 12:45:32',5,1,'CH','Chasing: Quotation sent by email'),(106,1006,'2012-02-10 12:45:33',5,1,'ST','C-Status advanced to Await Go-ahead'),(107,1006,'2012-02-10 12:45:33',5,1,'QT','Quotation sent by email'),(108,1006,'2012-02-10 13:05:24',5,1,'ST','E-Status advanced to Await Go-ahead'),(109,1006,'2012-02-10 13:05:32',5,1,'ST','C-Status advanced to Chase Go-ahead'),(110,1006,'2012-02-10 13:06:12',5,1,'ST','C-Status advanced to Finalise Job'),(111,1006,'2012-02-10 13:06:13',5,1,'ST','E-Status advanced to Being Repaired'),(112,1006,'2012-02-10 13:07:40',5,1,'OT','Repaired By changed to Engineer'),(113,1006,'2012-02-10 13:09:09',5,1,'ST','E-Status advanced to Job Completed'),(114,1006,'2012-02-10 13:32:09',5,1,'ST','C-Status advanced to Await Order No'),(115,1006,'2012-02-10 13:32:12',5,1,'ST','C-Status advanced to Chase Order No'),(116,1006,'2012-02-10 13:32:15',5,1,'ST','C-Status advanced to To be Delivered'),(117,1006,'2012-02-10 13:32:25',5,1,'ST','E-Status advanced to Await Print Del Note'),(118,1006,'2012-02-10 13:32:30',5,1,'ST','E-Status advanced to Await Delivery Back'),(119,1006,'2012-02-10 13:33:06',5,1,'ST','C-Status advanced to Final Check'),(120,1006,'2012-02-10 13:33:06',5,1,'ST','E-Status advanced to Job End'),(121,1006,'2012-02-10 13:33:33',5,1,'ST','C-Status advanced to Job End'),(122,1007,'2012-02-10 13:36:08',5,1,'OT','Job booked in'),(123,1007,'2012-02-10 13:41:25',2,1,'GP','Get parts: 2 parts added'),(124,1007,'2012-02-10 13:41:33',2,1,'OT','Quoted By changed to Engineer'),(125,1007,'2012-02-10 13:42:01',2,1,'CH','Chasing: Quotation sent'),(126,1007,'2012-02-10 13:42:03',2,1,'ST','C-Status advanced to Await Go-ahead'),(127,1007,'2012-02-10 13:42:03',2,1,'QT','Quotation sent'),(128,1007,'2012-02-10 13:42:45',2,1,'OT','Quoted Price changed to 200'),(129,1007,'2012-02-10 13:42:54',2,1,'CH','Chasing: Quotation sent'),(130,1007,'2012-02-10 13:42:55',2,1,'ST','C-Status advanced to Await Go-ahead'),(131,1007,'2012-02-10 13:42:56',2,1,'QT','Quotation sent'),(132,1007,'2012-02-10 13:43:10',2,1,'ST','E-Status advanced to Await Go-ahead'),(133,1007,'2012-02-10 13:47:54',3,1,'CH','Chasing: Spoke to Mr Jobs. He was a bit rude.'),(134,1007,'2012-02-10 13:49:26',3,1,'ST','C-Status advanced to Chase Go-ahead'),(135,1007,'2012-02-10 13:49:29',3,1,'ST','C-Status advanced to Finalise Job'),(136,1007,'2012-02-10 13:49:30',3,1,'ST','E-Status advanced to Being Repaired'),(137,1007,'2012-02-10 13:50:40',2,1,'OT','Repaired By changed to Engineer'),(138,1007,'2012-02-10 13:52:36',2,1,'ST','E-Status advanced to Job Completed'),(139,1007,'2012-02-10 13:54:07',3,1,'ST','C-Status advanced to Await Order No'),(140,1007,'2012-02-10 13:54:12',3,1,'ST','C-Status advanced to Chase Order No'),(141,1007,'2012-02-10 13:54:15',3,1,'ST','C-Status advanced to To be Delivered'),(142,1007,'2012-02-10 13:54:37',3,1,'ON','Entry of Order No: PO93484'),(143,1007,'2012-02-10 13:54:37',3,1,'ST','C-Status advanced to Final Check'),(144,1008,'2012-02-10 13:59:00',2,1,'OT','Job booked in'),(145,1008,'2012-02-10 13:59:34',2,1,'ST','C-Status advanced to Being Comm Quoted'),(146,1008,'2012-02-10 13:59:34',2,1,'ST','E-Status advanced to Await Go-ahead'),(147,1009,'2012-02-10 14:06:21',4,1,'OT','Job booked in'),(148,1009,'2012-02-10 14:06:21',4,1,'ON','Entry of Order No: MS023535'),(149,1009,'2012-02-10 14:09:43',2,1,'OT','Quoted By changed to Engineer'),(150,1009,'2012-02-10 14:09:43',2,1,'OT','Quoted Price changed to 800'),(151,1009,'2012-02-10 14:10:31',2,1,'OT','Pro Forma Invoice printed'),(152,1009,'2012-02-10 14:10:52',2,1,'CH','Chasing: Quotation sent'),(153,1009,'2012-02-10 14:10:54',2,1,'ST','C-Status advanced to Await Go-ahead'),(154,1009,'2012-02-10 14:10:54',2,1,'QT','Quotation sent'),(155,1009,'2012-02-10 14:12:02',2,1,'OT','Quoted Price changed from 800 to 850'),(156,1009,'2012-02-10 14:12:18',2,1,'CH','Chasing: Quotation sent'),(157,1009,'2012-02-10 14:12:19',2,1,'ST','C-Status advanced to Await Go-ahead'),(158,1009,'2012-02-10 14:12:19',2,1,'QT','Quotation sent'),(159,1009,'2012-02-10 14:12:24',2,1,'ST','E-Status advanced to Await Go-ahead'),(160,1009,'2012-02-10 14:12:58',3,1,'ST','C-Status advanced to Chase Go-ahead'),(161,1009,'2012-02-10 14:13:01',3,1,'ST','C-Status advanced to Finalise Job'),(162,1009,'2012-02-10 14:13:01',3,1,'ST','E-Status advanced to Being Repaired'),(163,1009,'2012-02-10 14:14:47',2,1,'GP','Get parts: 2 parts added'),(164,1009,'2012-02-10 14:14:47',2,1,'GP','Get parts: pick list printed'),(165,1009,'2012-02-10 14:15:19',2,1,'GP','Get parts: 1 part added'),(166,1009,'2012-02-10 14:15:50',2,1,'ST','E-Status changed from Being Repaired to Await Parts'),(167,1009,'2012-02-10 14:15:50',2,1,'OT','Repaired By changed to Engineer'),(168,1010,'2012-02-10 14:30:56',2,1,'OT','Job booked in'),(169,1010,'2012-02-10 14:32:16',2,1,'GP','Get parts: 2 parts added'),(170,1010,'2012-02-10 14:32:49',2,1,'OT','Job Type changed from Calibration to Workshop Repair'),(171,1004,'2012-02-10 14:34:11',2,1,'GP','Get parts: 1 part added'),(172,1004,'2012-02-10 14:34:27',2,1,'OT','Quoted Price changed to 230'),(173,1004,'2012-02-10 14:35:00',2,1,'CH','Chasing: Quotation sent'),(174,1004,'2012-02-10 14:35:01',2,1,'ST','C-Status advanced to Await Go-ahead'),(175,1004,'2012-02-10 14:35:02',2,1,'QT','Quotation sent'),(176,1010,'2012-02-10 14:49:42',2,1,'OT','Quoted Price changed to 70'),(177,1010,'2012-02-10 14:49:55',2,1,'CH','Chasing: Quotation sent'),(178,1010,'2012-02-10 14:49:56',2,1,'ST','C-Status advanced to Await Go-ahead'),(179,1010,'2012-02-10 14:49:56',2,1,'QT','Quotation sent'),(180,1010,'2012-02-10 14:50:57',3,1,'ST','C-Status advanced to Chase Go-ahead'),(181,1010,'2012-02-10 14:51:00',3,1,'ST','C-Status advanced to Finalise Job'),(182,1010,'2012-02-10 14:51:00',3,1,'ST','E-Status advanced to Being Repaired'),(183,1010,'2012-02-10 14:54:58',2,1,'ST','E-Status changed from Being Repaired to Await Parts'),(184,1011,'2012-02-11 08:15:42',5,1,'OT','Job booked in'),(185,1011,'2012-02-11 08:15:43',5,1,'ON','Entry of Order No: LLOYD'),(186,1011,'2012-02-11 08:20:41',5,1,'OT','Quoted By changed to Engineer'),(187,1011,'2012-02-11 08:20:41',5,1,'OT','Quoted Price changed to 699'),(188,1011,'2012-02-11 08:27:16',5,1,'CH','Chasing: Quotation sent by email'),(189,1011,'2012-02-11 08:27:17',5,1,'ST','C-Status advanced to Await Go-ahead'),(190,1011,'2012-02-11 08:27:18',5,1,'QT','Quotation sent by email'),(191,1011,'2012-02-11 08:27:38',5,1,'OT','Pro Forma Invoice emailed'),(192,1011,'2012-02-11 08:27:53',5,1,'ST','E-Status advanced to Await Go-ahead'),(193,1011,'2012-02-11 08:28:03',5,1,'ST','C-Status changed from Await Go-ahead to Being Comm Quoted'),(194,1011,'2012-02-11 08:28:03',5,1,'ST','E-Status changed from Await Go-ahead to Await Go-ahead'),(195,1011,'2012-02-11 08:28:04',5,1,'ST','Returned to Front Office'),(196,1005,'2012-02-11 08:34:32',5,1,'ST','E-Status advanced to Await Print Del Note'),(197,1005,'2012-02-11 08:34:39',5,1,'ST','E-Status advanced to Await Delivery Back'),(198,1005,'2012-02-11 08:34:55',5,1,'ST','E-Status advanced to Job End'),(199,1005,'2012-02-11 14:44:11',5,1,'IN','Invoice 10003'),(200,1006,'2012-02-11 14:44:11',5,1,'IN','Invoice 10004'),(201,1011,'2012-02-11 14:57:14',5,1,'ST','C-Status advanced to Await Go-ahead'),(202,1011,'2012-02-11 14:57:15',5,1,'ST','C-Status advanced to Chase Go-ahead'),(203,1011,'2012-02-11 14:57:18',5,1,'ST','C-Status advanced to Finalise Job'),(204,1011,'2012-02-11 14:57:18',5,1,'ST','E-Status advanced to Being Repaired'),(205,1011,'2012-02-11 14:59:16',5,1,'GP','Get parts: 1 part added'),(206,1011,'2012-02-11 14:59:17',5,1,'GP','Get parts: pick list printed'),(207,1011,'2012-02-12 08:31:25',5,1,'GP','Get parts: 1 part added'),(208,1011,'2012-02-12 08:32:34',5,1,'GP','Get parts: 1 part added'),(209,1011,'2012-02-12 08:32:34',5,1,'GP','Get parts: pick list printed'),(210,1011,'2012-02-12 08:33:58',5,1,'GP','Get parts: 1 part added'),(211,1011,'2012-02-12 08:37:29',5,1,'GP','Get parts: 1 part added'),(212,1011,'2012-02-12 09:25:25',5,1,'QR','Quote request: added'),(213,1011,'2012-02-12 09:27:19',5,1,'QR','Quote request: status advanced to Awaiting Quote'),(214,1007,'2012-02-12 09:35:23',5,1,'ST','E-Status advanced to Await Print Del Note'),(215,1007,'2012-02-12 09:35:27',5,1,'ST','E-Status advanced to Await Delivery Back'),(216,1007,'2012-02-12 09:35:44',5,1,'ST','E-Status advanced to Job End'),(217,1007,'2012-02-12 09:36:14',5,1,'ST','E-Status changed from Job End to Job Completed'),(218,1007,'2012-02-12 09:36:34',5,1,'ST','E-Status advanced to Await Print Del Note'),(219,1007,'2012-02-12 09:36:46',5,1,'ST','E-Status advanced to Await Delivery Back'),(220,1007,'2012-02-12 09:53:40',5,1,'ST','E-Status advanced to Job End'),(221,1007,'2012-02-12 09:53:43',5,1,'ST','C-Status advanced to Job End'),(222,1007,'2012-02-12 09:54:14',5,1,'IN','Invoice 10005'),(223,1011,'2012-02-13 09:27:40',5,1,'GP','Get parts: 1 part added'),(224,1011,'2012-02-13 09:34:01',5,1,'QR','Quote request: added'),(225,1011,'2012-02-13 09:35:20',5,1,'QR','Quote request: status advanced to Awaiting Quote'),(226,1011,'2012-02-13 09:36:20',5,1,'QR','Quote request: status advanced to Quote Received'),(227,1011,'2012-02-13 09:36:27',5,1,'QR','Quote request: status advanced to Quote Closed'),(228,1013,'2012-02-13 09:52:22',5,1,'OT','Job booked in'),(229,1013,'2012-02-13 09:52:22',5,1,'ON','Entry of Order No: LLOYD'),(230,1012,'2012-02-17 08:42:01',5,1,'OT','Quoted By changed to Engineer'),(231,1015,'2012-03-23 11:00:44',1,1,'OT','Job booked in'),(232,1009,'2012-03-23 11:45:11',1,1,'ST','C-Status changed from Finalise Job to Being Comm Quoted'),(233,1009,'2012-03-23 11:45:11',1,1,'ST','E-Status changed from Await Parts to Await Go-ahead'),(234,1009,'2012-03-23 11:45:12',1,1,'ST','Returned to Front Office'),(235,1009,'2012-03-23 11:45:19',1,1,'ST','C-Status advanced to Await Go-ahead'),(236,1009,'2012-03-23 11:45:20',1,1,'ST','C-Status advanced to Chase Go-ahead'),(237,1009,'2012-03-23 11:45:24',1,1,'ST','C-Status changed from Chase Go-ahead to Being Comm Quoted'),(238,1009,'2012-03-23 11:45:24',1,1,'ST','E-Status changed from Await Go-ahead to Await Go-ahead'),(239,1009,'2012-03-23 11:45:24',1,1,'ST','Returned to Front Office'),(240,1009,'2012-03-23 11:45:25',1,1,'ST','C-Status changed from Being Comm Quoted to Being Comm Quoted'),(241,1009,'2012-03-23 11:45:25',1,1,'ST','E-Status changed from Await Go-ahead to Await Go-ahead'),(242,1009,'2012-03-23 11:45:25',1,1,'ST','Returned to Front Office'),(243,1009,'2012-03-23 12:00:21',1,1,'GP','Get parts: 2 parts added'),(244,1009,'2012-03-23 12:00:21',1,1,'GP','Get parts: pick list printed'),(245,1014,'2012-03-23 12:24:32',1,1,'ST','C-Status advanced to Chase Order No'),(246,1014,'2012-03-23 12:24:41',1,1,'ST','C-Status advanced to Await Completion'),(247,1014,'2012-03-23 12:24:41',1,1,'OT','Quoted By changed to Commercial'),(248,1014,'2012-03-23 12:24:41',1,1,'OT','Repaired By changed to Commercial'),(249,1014,'2012-03-23 12:24:43',1,1,'ST','C-Status advanced to To be Delivered'),(250,1014,'2012-03-23 12:24:45',1,1,'ST','C-Status advanced to Final Check'),(251,1014,'2012-03-23 12:25:19',1,1,'ON','Entry of Order No: Test'),(252,1014,'2012-03-23 12:25:19',1,1,'ST','C-Status advanced to Job End'),(253,1014,'2012-03-23 12:25:20',1,1,'OT','Quoted Price changed to 300'),(254,1014,'2012-03-23 12:25:28',1,1,'ST','E-Status advanced to Job Completed'),(255,1014,'2012-03-23 12:25:30',1,1,'ST','E-Status advanced to Await Print Del Note'),(256,1014,'2012-03-23 12:25:31',1,1,'ST','E-Status advanced to Await Delivery Back'),(257,1014,'2012-03-23 12:25:38',1,1,'ST','E-Status advanced to Job End'),(258,1014,'2012-03-23 12:26:13',1,1,'IN','Invoice 10006'),(259,1004,'2012-03-23 13:36:57',1,1,'GP','Get parts: 2 parts added'),(260,1004,'2012-03-23 13:39:02',1,1,'GP','Get parts: 1 part added'),(261,1004,'2012-03-29 18:02:43',1,1,'CH','Chasing: Quotation sent by email'),(262,1004,'2012-03-29 18:02:44',1,1,'ST','C-Status advanced to Await Go-ahead'),(263,1004,'2012-03-29 18:02:45',1,1,'QT','Quotation sent by email'),(264,1016,'2012-03-30 11:45:42',1,1,'OT','Job booked in'),(265,1016,'2012-03-30 17:50:52',1,1,'OT','Job Type changed from Quotation to On-site Repair'),(266,1016,'2012-03-30 17:50:53',1,1,'OT','Date/Time of Entry updated to Now'),(267,1005,'2012-03-30 17:52:15',1,1,'OT','Job Type changed from Non-prod Codes to Workshop Repair'),(268,1005,'2012-03-30 17:52:16',1,1,'OT','Invoiced job amended'),(269,1008,'2012-03-30 17:57:59',1,1,'OT','Job Type changed from Workshop Repair to AD Refurb'),(270,1008,'2012-03-30 17:58:35',1,1,'OT','Job Type changed to Workshop Repair'),(271,1002,'2012-03-30 18:54:49',1,1,'OT','Job Type changed from Call Out Repair to On-site Repair'),(272,1002,'2012-03-30 18:54:50',1,1,'OT','Invoiced job amended'),(274,1013,'2012-04-06 08:21:57',5,1,'OT','Quoted By changed to Engineer'),(275,1013,'2012-04-06 08:21:57',5,1,'OT','Quoted Price changed to 281.6'),(276,1013,'2012-04-06 08:23:38',5,1,'CH','Chasing: Quotation sent by email'),(277,1013,'2012-04-06 08:23:39',5,1,'ST','C-Status advanced to Await Go-ahead'),(278,1013,'2012-04-06 08:23:40',5,1,'QT','Quotation sent by email'),(281,1015,'2012-04-20 11:52:18',1,1,'ST','C-Status advanced to Being Comm Quoted'),(282,1015,'2012-04-20 11:52:20',1,1,'ST','C-Status advanced to Await Go-ahead'),(283,1015,'2012-04-20 11:52:21',1,1,'ST','C-Status advanced to Chase Go-ahead'),(284,1015,'2012-04-20 11:52:25',1,1,'ST','C-Status advanced to Finalise Job'),(285,1015,'2012-04-20 11:52:25',1,1,'ST','E-Status advanced to Being Repaired'),(286,1015,'2012-04-20 11:57:25',1,1,'OT','Quoted By changed to Engineer'),(287,1015,'2012-04-20 11:57:30',1,1,'GP','Get parts: 1 part added'),(338,1011,'2012-04-25 12:24:55',5,1,'GP','Get parts: 1 part added'),(339,1011,'2012-04-25 12:26:17',5,1,'GP','Get parts: 1 part added'),(340,1011,'2012-04-25 12:26:17',5,1,'GP','Get parts: pick list printed'),(341,1011,'2012-04-25 12:27:33',5,1,'GP','Get parts: 1 part added'),(342,1011,'2012-04-25 12:40:07',5,1,'GP','Get parts: 1 part added'),(343,1011,'2012-04-25 12:43:56',5,1,'GP','Get parts: 1 part added'),(344,1012,'2012-04-25 13:56:11',1,1,'OT','Job Class changed from Standard to Urgent Quote'),(345,1011,'2012-04-25 13:56:15',5,1,'OT','Job Class changed from Urgent Quote to Emergency'),(433,1011,'2012-05-23 09:46:47',5,1,'GP','Get parts: 1 part added'),(435,1011,'2012-05-23 09:54:13',5,1,'GP','Get parts: 1 part added');
/*!40000 ALTER TABLE `job_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_location_history`
--

DROP TABLE IF EXISTS `job_location_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_location_history` (
  `JobLocationHistoryID` int(11) NOT NULL AUTO_INCREMENT,
  `JobID` int(11) NOT NULL,
  `FromLocation` varchar(12) DEFAULT '',
  `ToLocation` varchar(12) DEFAULT '',
  `DateTimeChanged` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `UserID` int(11) DEFAULT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`JobLocationHistoryID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxUserID` (`UserID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_location_history`
--

LOCK TABLES `job_location_history` WRITE;
/*!40000 ALTER TABLE `job_location_history` DISABLE KEYS */;
INSERT INTO `job_location_history` VALUES (1,1006,'','BIN4','2012-02-10 12:42:56',5,1),(2,1006,'BIN4','B07','2012-02-10 12:43:09',5,1),(3,1007,'','B2','2012-02-10 13:49:44',3,1),(4,1013,'','PJ','2012-04-06 08:20:40',5,1);
/*!40000 ALTER TABLE `job_location_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_material`
--

DROP TABLE IF EXISTS `job_material`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_material` (
  `JobMaterialID` int(11) NOT NULL AUTO_INCREMENT,
  `JobID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  `DateRequested` date DEFAULT NULL,
  `RequestedByID` int(11) DEFAULT NULL,
  `PartID` int(11) DEFAULT NULL,
  `SupplierID` int(11) DEFAULT NULL,
  `SupplierPartNo` varchar(20) DEFAULT NULL,
  `PartDescription` varchar(40) DEFAULT NULL,
  `UnitPrice` decimal(11,4) NOT NULL DEFAULT '0.0000',
  `QtyRequired` int(11) NOT NULL DEFAULT '0',
  `QtyReceived` int(11) NOT NULL DEFAULT '0',
  `DateReceived` date DEFAULT NULL,
  `Received` tinyint(1) NOT NULL DEFAULT '0',
  `OrderLineID` int(11) DEFAULT NULL,
  `ViaGetParts` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`JobMaterialID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxRequestedByID` (`RequestedByID`),
  KEY `idxPartID` (`PartID`),
  KEY `idxOrderLineID` (`OrderLineID`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=51 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_material`
--

LOCK TABLES `job_material` WRITE;
/*!40000 ALTER TABLE `job_material` DISABLE KEYS */;
INSERT INTO `job_material` VALUES (1,1005,1,'2011-12-16',1,NULL,1,'L3453','ipod 2 lcd','9.0000',1,1,'2013-08-07',1,29,1),(2,1003,1,'2011-12-16',1,1,1,'74-LS-08','74LS08','0.0800',1,1,'2011-12-16',1,NULL,1),(3,1006,1,'2012-02-10',5,16,7,'CARBON-ROD-1MM','1.0mm x 1m Carbon Rod','0.9900',1,1,'2012-02-10',1,NULL,1),(4,1006,1,'2012-02-10',5,NULL,7,'BLASTER-3-WING','Blaster 3 Wing','215.0000',1,1,'2012-02-10',1,1,1),(5,1007,1,'2012-02-10',2,5,1,'703-5173','Capacitor Al 105deg 10uF 450V 12.5x20','0.5780',1,1,'2012-02-10',1,NULL,1),(6,1007,1,'2012-02-10',2,7,2,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',2,2,'2012-02-10',1,NULL,1),(7,1009,1,'2012-02-10',2,24,8,'CPU-I755-BX80623I727','Intel Core i7-2700K 3.50GHz Processor','209.9900',1,1,'2012-02-10',1,NULL,1),(8,1009,1,'2012-02-10',2,25,8,'HDR-SSD-VTX3-25SAT3-','OCZ Vertex 3 120GB 2.5\" SATA-III Solid S','116.6600',1,1,'2013-08-07',1,NULL,1),(9,1009,1,'2012-02-10',2,23,9,'MB-368-GI','Gigabyte Z68XP-UD3 Intel Z68 (Socket 11.','83.3200',1,1,'2013-08-07',1,NULL,1),(10,1010,1,'2012-02-10',2,6,1,'715-1798','Al cap Radial BT series 100V 220uF','1.4200',2,2,'2012-02-10',1,NULL,1),(11,1010,1,'2012-02-10',2,8,2,'RE04050','MCF 1W 1K - RESISTOR, 1W 5% 1K','0.0500',2,2,'2012-02-10',1,NULL,1),(12,1004,1,'2012-02-10',2,12,5,'82-0336','Ne555 Single Timer','0.1740',1,1,'2012-02-10',1,NULL,1),(13,1005,1,'2012-02-11',5,26,11,'234-564','ls741','0.2300',2,2,'2012-05-23',1,14,0),(14,1011,1,'2012-02-11',5,26,11,'234-564','ls741','0.2300',2,2,'2013-08-07',1,NULL,1),(15,1011,1,'2012-02-11',5,26,11,'234-564','ls741','0.2300',10,15,'2012-02-12',1,15,0),(16,1011,1,'2012-02-12',5,26,11,'234-564','ls741','0.2300',10,10,'2013-08-07',1,NULL,1),(17,1011,1,'2012-02-12',5,4,6,'QL71N','Signal Diode 1N914','0.4900',12,12,'2013-08-07',1,NULL,1),(18,1011,1,'2012-02-12',5,1,1,'74-LS-08','74LS08','0.0800',5,5,'2012-05-23',1,NULL,1),(19,1011,1,'2012-02-12',5,15,5,'56-1500','L-7113id-5v 5mm 5v He Red Led','0.1440',8,8,'2012-05-23',1,NULL,1),(20,1011,1,'2012-02-13',5,1,1,'74-LS-08','74LS08','0.0800',10,10,'2012-05-23',1,NULL,1),(21,1009,1,'2012-03-23',1,10,4,'3952630','2N3904 - RF TRANSISTOR, NPN, 40V, 300MHZ','0.2000',2,2,'2012-03-23',1,NULL,1),(22,1009,1,'2012-03-23',1,12,5,'82-0336','Ne555 Single Timer','0.1740',1,1,'2012-03-23',1,NULL,1),(23,1004,1,'2012-03-23',1,5,1,'703-5173','Capacitor Al 105deg 10uF 450V 12.5x20','0.5780',1,1,'2012-04-25',1,NULL,1),(24,1004,1,'2012-03-23',1,26,11,'234-564','ls741','0.2300',1,1,'2013-08-07',1,NULL,1),(25,1004,1,'2012-03-23',1,NULL,3,'LS5555','Unnkown timer, tried Farnell','0.0000',1,1,'2013-08-07',1,36,1),(26,1015,1,'2012-04-20',1,1,1,'74-LS-08','74LS08','0.0800',2,2,'2013-08-07',1,NULL,1),(35,1011,1,'2012-04-25',5,1,1,'74-LS-08','74LS08','0.0800',1,1,'2012-05-23',1,NULL,1),(36,1011,1,'2012-04-25',5,7,2,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',20,20,'2012-04-25',1,NULL,1),(37,1011,1,'2012-04-25',5,26,11,'234-564','ls741','0.2300',2,2,'2013-08-07',1,NULL,1),(38,1011,1,'2012-04-25',5,4,6,'QL71N','Signal Diode 1N914','0.4900',1,1,'2013-08-07',1,NULL,1),(39,1011,1,'2012-04-25',5,4,6,'QL71N','Signal Diode 1N914','0.4900',1,1,'2013-08-07',1,NULL,1),(48,1011,1,'2012-05-23',5,11,5,'61-0440','Gt Thermistor 1k 3%','0.9430',2,2,'2013-08-07',1,NULL,1),(50,1011,1,'2012-05-23',5,1,1,'74-LS-08','74LS08','0.0800',30,30,'2013-08-07',1,NULL,1);
/*!40000 ALTER TABLE `job_material` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_quote_log`
--

DROP TABLE IF EXISTS `job_quote_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_quote_log` (
  `QuoteLogID` int(11) NOT NULL AUTO_INCREMENT,
  `JobID` int(11) NOT NULL,
  `CustomerID` int(11) NOT NULL,
  `ContactID` int(11) NOT NULL,
  `DateTimeOfEntry` datetime NOT NULL,
  `NumberOff` smallint(6) NOT NULL,
  `EquipmentID` int(11) NOT NULL,
  `SellPrice` decimal(11,2) DEFAULT NULL,
  `QuotedPrice` decimal(11,2) NOT NULL,
  `QuotedDelivery` decimal(11,2) NOT NULL,
  `SerialNo` mediumtext,
  `FaultDetails` mediumtext,
  `CustomerOrderNo` varchar(35) DEFAULT NULL,
  `AdviceNoteNo` varchar(35) DEFAULT NULL,
  `CustomerInstruction` mediumtext,
  `DiscountRate` decimal(5,2) NOT NULL,
  `QuoteCurrencyCode` varchar(3) NOT NULL DEFAULT '',
  `QuoteCurrencyRate` double NOT NULL,
  `DateTimeSent` datetime NOT NULL,
  `SendMethod` varchar(5) DEFAULT NULL,
  `QuoteType` varchar(10) NOT NULL DEFAULT '',
  `Message` mediumtext,
  PRIMARY KEY (`QuoteLogID`),
  KEY `idxJobIDQuoteTypeDate` (`JobID`,`QuoteType`,`DateTimeSent`),
  KEY `idxCustomerID` (`CustomerID`),
  KEY `idxContactID` (`ContactID`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_quote_log`
--

LOCK TABLES `job_quote_log` WRITE;
/*!40000 ALTER TABLE `job_quote_log` DISABLE KEYS */;
INSERT INTO `job_quote_log` VALUES (1,1001,5000,1001,'2011-12-16 03:39:03',1,1,'20.00','20.00','5.00','343243244',NULL,'12345678','',NULL,'0.00','GBP',1,'2011-12-16 04:19:51','EMAIL','QUOTE',NULL),(2,1002,5000,1002,'2011-12-16 04:58:38',1,1,'0.00','0.00','0.00','1232132323',NULL,'3532432434','',NULL,'0.00','GBP',1,'2011-12-16 05:12:03','EMAIL','QUOTE',NULL),(3,1002,5000,1002,'2011-12-16 04:58:38',1,1,'0.00','0.00','0.00','1232132323',NULL,'3532432434','',NULL,'0.00','GBP',1,'2011-12-16 05:17:46','EMAIL','QUOTE',NULL),(4,1002,5000,1002,'2011-12-16 04:58:38',1,1,'0.00','0.00','0.00','1232132323',NULL,'3532432434','',NULL,'0.00','GBP',1,'2011-12-16 05:18:49','EMAIL','QUOTE',NULL),(5,1002,5000,1002,'2011-12-16 04:58:38',1,1,'0.00','0.00','0.00','1232132323',NULL,'3532432434','',NULL,'0.00','GBP',1,'2011-12-16 05:26:25','EMAIL','QUOTE',NULL),(6,1002,5000,1002,'2011-12-16 04:58:38',1,1,'0.00','0.00','0.00','1232132323',NULL,'3532432434','',NULL,'0.00','GBP',1,'2011-12-16 05:28:06','EMAIL','QUOTE',NULL),(7,1005,5000,1001,'2011-12-16 11:05:54',1,4,'29.00','29.00','0.00','131231231','broken screen','213312','',NULL,'0.00','GBP',1,'2011-12-16 11:25:13','EMAIL','QUOTE',NULL),(8,1003,5000,1002,'2011-12-16 06:54:37',1,1,'0.00','0.00','0.00','123456',NULL,'','',NULL,'0.00','GBP',1,'2011-12-16 11:26:57','EMAIL','MESSAGE','To:              Mr Surinder Singh\r\nEmail:           surinder@itpartnership.com\r\nCompany:         IT Partnership\r\nDate:            16/12/2011\r\nQty:             1\r\nOur Job Ref:     1003\r\nManufacturer:    Quad\r\nModel Number:    QS606\r\nDescription:     Power Amplifier\r\n'),(9,1006,5003,5004,'2012-02-10 12:35:18',1,7,'310.00','310.00','15.00','HY122344','Dog eat part of the wing','12345894','',NULL,'0.00','GBP',1,'2012-02-10 12:45:30','EMAIL','QUOTE',NULL),(10,1007,5004,5006,'2012-02-10 13:34:45',1,8,'0.00','0.00','0.00','AP2845','Making funny noises','','AP12356',NULL,'0.00','USD',1.55,'2012-02-10 13:41:59','FAX','QUOTE',NULL),(11,1007,5004,5006,'2012-02-10 13:34:45',1,8,'200.00','200.00','10.00','AP2845','Making funny noises','','AP12356',NULL,'0.00','USD',1.55,'2012-02-10 13:42:52','FAX','QUOTE',NULL),(12,1009,5003,5004,'2012-02-10 14:04:46',1,9,'800.00','800.00','10.00','DL2343434','Doesn\'t boot','MS023535','MS023535',NULL,'0.00','GBP',1,'2012-02-10 14:10:50','FAX','QUOTE',NULL),(13,1009,5003,5004,'2012-02-10 14:04:46',1,9,'850.00','850.00','10.00','DL2343434','Doesn\'t boot','MS023535','MS023535','Customer doesn\'t mind a a Solid State Drive being fitted.','0.00','GBP',1,'2012-02-10 14:12:15','FAX','QUOTE',NULL),(14,1004,5000,1002,'2011-12-16 08:33:05',1,4,'230.00','230.00','10.00','100-200-101','Goes into sleep mode after 5 minutes','1234','',NULL,'0.00','GBP',1,'2012-02-10 14:34:58','FAX','QUOTE',NULL),(15,1010,5001,5002,'2012-02-10 14:29:39',1,10,'70.00','70.00','10.00','HG1001234','Colours a bit off, also making funny noises.','','',NULL,'0.00','GBP',1,'2012-02-10 14:49:53','FAX','QUOTE',NULL),(16,1011,5011,5020,'2012-02-11 08:13:29',1,6,'699.00','699.00','16.91','12345','NO O/P','878349','111','NO OUTPUT','0.00','GBP',1,'2012-02-11 08:27:16','EMAIL','QUOTE',NULL),(17,1004,5000,1002,'2011-12-16 08:33:05',1,4,'230.00','230.00','10.00','100-200-101','Goes into sleep mode after 5 minutes','1234','',NULL,'0.00','GBP',1,'2012-03-29 18:02:33','EMAIL','QUOTE',NULL),(18,1013,5011,5020,'2012-02-13 09:50:01',1,5,'281.60','281.60','16.91','111111','o/ps','345456','123',NULL,'0.00','GBP',1,'2012-04-06 08:23:37','EMAIL','QUOTE',NULL);
/*!40000 ALTER TABLE `job_quote_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_types`
--

DROP TABLE IF EXISTS `job_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_types` (
  `JobTypeID` smallint(6) NOT NULL AUTO_INCREMENT,
  `JobType` varchar(16) DEFAULT NULL,
  `QuoteRequired` tinyint(1) DEFAULT NULL,
  `Discountable` tinyint(1) DEFAULT NULL,
  `RechargePercentage` decimal(5,2) NOT NULL DEFAULT '80.00',
  `JobTypeNominalCode` char(2) DEFAULT NULL,
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`JobTypeID`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_types`
--

LOCK TABLES `job_types` WRITE;
/*!40000 ALTER TABLE `job_types` DISABLE KEYS */;
INSERT INTO `job_types` VALUES (1,'Workshop Repair',NULL,1,'90.00','51',0),(2,'Supply',NULL,1,'80.00','52',0),(3,'Service Exchange',NULL,1,'70.00','53',0),(4,'On-site Repair',NULL,1,'60.00','54',0),(5,'Non Productive',NULL,0,'50.00','55',0),(6,'Manufacture',NULL,1,'40.00','56',0);
/*!40000 ALTER TABLE `job_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `jobs`
--

DROP TABLE IF EXISTS `jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `jobs` (
  `JobID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `RepairBranchID` int(11) DEFAULT NULL,
  `JobClassID` smallint(6) DEFAULT NULL,
  `JobTypeID` smallint(6) DEFAULT NULL,
  `CustomerID` int(11) DEFAULT NULL,
  `ContactID` int(11) DEFAULT NULL,
  `QuoteRequired` tinyint(1) NOT NULL DEFAULT '0',
  `EngineerReportRequired` tinyint(1) NOT NULL DEFAULT '0',
  `OrderNoRequired` tinyint(1) NOT NULL DEFAULT '0',
  `CustomerChasing` tinyint(1) NOT NULL DEFAULT '0',
  `DateTimeOfEntry` datetime DEFAULT NULL,
  `DateTimeGoAheadGiven` datetime DEFAULT NULL,
  `DateTimeRepairComplete` datetime DEFAULT NULL,
  `ComStatusID` smallint(6) NOT NULL,
  `ComStatusDateTime` datetime DEFAULT NULL,
  `ComStatusUserID` int(11) DEFAULT NULL,
  `EngStatusID` smallint(6) NOT NULL,
  `EngStatusDateTime` datetime DEFAULT NULL,
  `EngStatusUserID` int(11) DEFAULT NULL,
  `PreTransEngStatusID` smallint(6) DEFAULT NULL,
  `CheckGoAhead` tinyint(1) NOT NULL DEFAULT '0',
  `CustomerOrderNo` varchar(35) DEFAULT NULL,
  `AdviceNoteNo` varchar(35) DEFAULT NULL,
  `EquipmentID` int(11) NOT NULL,
  `NumberOff` smallint(6) NOT NULL,
  `Location` varchar(12) DEFAULT NULL,
  `SerialNo` mediumtext,
  `FaultDetails` mediumtext,
  `CustomerInstruction` mediumtext,
  `DeliveryInstructions` mediumtext,
  `EngineerReport` mediumtext,
  `ExternalReport` mediumtext,
  `InvoiceText` mediumtext,
  `QuotedByID` int(11) DEFAULT NULL,
  `RepairedByID` int(11) DEFAULT NULL,
  `FinalOutcomeID` smallint(6) DEFAULT NULL,
  `DeliveryDays` smallint(6) DEFAULT NULL,
  `MaterialCost` decimal(11,2) DEFAULT NULL,
  `SellPrice` decimal(11,2) DEFAULT NULL,
  `QuotedPrice` decimal(11,2) DEFAULT NULL,
  `QuotedDelivery` decimal(11,2) DEFAULT NULL,
  `InvoicePrice` decimal(11,2) DEFAULT NULL,
  `InvoiceDelivery` decimal(11,2) DEFAULT NULL,
  `VATRate` decimal(4,2) DEFAULT NULL,
  `TimeSpendEstimate` double DEFAULT NULL,
  `TimeToRepair` double DEFAULT NULL,
  `CanFix` tinyint(1) NOT NULL DEFAULT '0',
  `InfoRequired` mediumtext,
  `ComparisonUnitRequired` tinyint(1) NOT NULL DEFAULT '0',
  `PartsRequiredToBeOrdered` tinyint(1) NOT NULL DEFAULT '0',
  `ManifestID` int(11) DEFAULT NULL,
  `HistoryLastUpdated` datetime DEFAULT NULL,
  `DiscountingMethod` varchar(2) DEFAULT NULL,
  `DiscountRate` decimal(5,2) DEFAULT NULL,
  `QuoteCurrencyCode` varchar(3) DEFAULT NULL,
  `QuoteCurrencyRate` double DEFAULT NULL,
  `InvoiceCurrencyCode` varchar(3) DEFAULT NULL,
  `InvoiceCurrencyRate` double DEFAULT NULL,
  `DisplayCurrencyCode` varchar(3) DEFAULT NULL,
  `DisplayCurrencyRate` double DEFAULT NULL,
  `AccountsCurrencyCode` varchar(3) DEFAULT NULL,
  `AccountsCurrencyRate` double DEFAULT NULL,
  `RechargeCurrencyCode` varchar(3) DEFAULT NULL,
  `RechargeCurrencyRate` double DEFAULT NULL,
  `RechargeAccountsCurrencyCode` varchar(3) DEFAULT NULL,
  `RechargeAccountsCurrencyRate` double DEFAULT NULL,
  `InvoiceBatchID` int(11) DEFAULT NULL,
  `InvoiceDate` date DEFAULT NULL,
  `InvoiceNet` decimal(11,2) DEFAULT NULL,
  `InvoiceNo` int(11) DEFAULT NULL,
  `RechargeInvoiceNo` int(11) DEFAULT NULL,
  `RechargeInvoiceNet` decimal(11,2) DEFAULT NULL,
  `RechargeVATRate` decimal(4,2) DEFAULT NULL,
  `SalesNominalCode` char(10) DEFAULT NULL,
  `SalesDeliveryNominalCode` char(10) DEFAULT NULL,
  `RechargeSalesNominalCode` char(10) DEFAULT NULL,
  `RechargePurchaseNominalCode` char(10) DEFAULT NULL,
  `CWJobID` int(11) DEFAULT NULL,
  `WarrantyNo` smallint(6) DEFAULT NULL,
  `OldJobID` varchar(12) DEFAULT NULL,
  `Warranty` tinyint(1) NOT NULL DEFAULT '0',
  `CreditNote` tinyint(1) NOT NULL DEFAULT '0',
  `WIP` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`JobID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxRepairBranchID` (`RepairBranchID`),
  KEY `idxCustomerID` (`CustomerID`),
  KEY `idxEquipmentID` (`EquipmentID`),
  KEY `idxDateTimeOfEntry` (`DateTimeOfEntry`),
  KEY `idxJobClassID` (`JobClassID`),
  KEY `idxJobTypeID` (`JobTypeID`),
  KEY `idxQuotedByID` (`QuotedByID`),
  KEY `idxRepairedByID` (`RepairedByID`),
  KEY `idxFinalOutcomeID` (`FinalOutcomeID`),
  KEY `idxEngStatusID` (`EngStatusID`),
  KEY `idxComStatusID` (`ComStatusID`),
  KEY `idxManifestID` (`ManifestID`),
  KEY `idxInvoiceNo` (`InvoiceNo`),
  KEY `idxInvoiceDate` (`InvoiceDate`),
  KEY `idxInvoiceBatchID` (`InvoiceBatchID`),
  KEY `idxCWJobID` (`CWJobID`),
  KEY `idxOldJobID` (`OldJobID`),
  KEY `idxWIP` (`WIP`)
) ENGINE=MyISAM AUTO_INCREMENT=1018 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `jobs`
--

LOCK TABLES `jobs` WRITE;
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
INSERT INTO `jobs` VALUES (1001,1,1,2,1,5000,1001,1,0,0,0,'2011-12-16 03:39:03','2011-12-16 04:16:36','2011-12-16 04:18:04',12,'2011-12-16 04:20:42',1,10,'2011-12-16 04:20:39',1,NULL,0,'12345678',NULL,1,1,NULL,'343243244',NULL,NULL,NULL,'Test',NULL,NULL,1,1,1,10,'10.00','20.00','20.00','5.00','20.00','5.00','17.50',1,3,0,'Test',0,0,NULL,'2011-12-16 04:49:06',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,1,'2011-12-16','25.00',10001,NULL,NULL,NULL,'0101510001','0101040001',NULL,NULL,NULL,NULL,NULL,0,0,0),(1002,1,1,1,4,5000,1002,1,0,0,0,'2011-12-16 04:58:38','2011-12-16 05:29:44','2011-12-16 05:30:42',12,'2011-12-16 05:30:18',1,10,'2011-12-16 05:30:55',1,NULL,0,'3532432434',NULL,1,1,NULL,'1232132323',NULL,NULL,NULL,'Test 123',NULL,NULL,1,1,1,3,'20.00','30.00','30.00','10.00','30.00','10.00','17.50',0.5,2,0,NULL,0,0,NULL,'2012-03-30 18:54:50',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,2,'2011-12-16','40.00',10002,NULL,NULL,NULL,'0101580001','0101040001',NULL,NULL,NULL,NULL,NULL,0,0,0),(1003,1,1,2,4,5000,1002,1,0,0,0,'2011-12-16 06:54:37',NULL,NULL,1,'2011-12-16 06:55:09',1,1,'2011-12-16 06:55:09',1,NULL,0,'',NULL,1,1,NULL,'123456',NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,'17.50',NULL,NULL,0,NULL,0,0,NULL,'2011-12-16 20:17:57',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1004,1,1,2,1,5000,1002,1,0,0,0,'2011-12-16 08:33:05',NULL,NULL,3,'2012-03-29 18:02:34',1,1,'2011-12-16 08:35:07',5,NULL,0,'1234',NULL,11,1,NULL,'100-200-101','Goes into sleep mode after 5 minutes',NULL,NULL,NULL,NULL,'Quote/Repair\r\nNumber Off: 1\r\nItem Desc: 1Kwe Amp',2,NULL,NULL,10,'12.50','230.00','230.00','10.00',NULL,NULL,'17.50',0.5,3,0,NULL,0,0,NULL,'2012-03-29 18:02:45',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1005,1,1,2,1,5000,1001,1,0,0,0,'2011-12-16 11:05:54','2011-12-16 11:28:30','2011-12-16 12:08:21',12,'2011-12-16 12:13:10',1,10,'2012-02-11 08:34:55',5,NULL,0,'213312',NULL,6,1,NULL,'131231231','broken screen',NULL,NULL,'psuroken',NULL,'Quote/Repair\r\nNumber Off: 1\r\nItem Desc: 1Kwe Amp',3,2,22,10,'20.00','29.00','29.00','5.00','29.00','5.00','17.50',0.1,0.5,1,NULL,0,0,NULL,'2012-03-30 17:52:16',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,3,'2012-02-11','34.00',10003,NULL,NULL,NULL,'0101610001','0101040001',NULL,NULL,NULL,NULL,NULL,0,0,0),(1006,1,1,1,1,5003,5004,1,0,0,0,'2012-02-10 12:35:18','2012-02-10 13:06:10','2012-02-10 13:09:07',12,'2012-02-10 13:33:31',5,10,'2012-02-10 13:33:04',5,NULL,0,'12345894','MS99454882',7,1,'B07','HY122344','Dog ate part of the wing',NULL,NULL,'Damage isn\'t too bad. Part of wing is missing.',NULL,'Quote/Repair\r\nNumber Off: 1\r\nItem Desc: The Blaster 3 is the long-awaited successor to the award winning Blaster line of 1.5m DLGs from Vladimir\'s Models. The Blaster 3 is a great improvement in DLG design, building upon the experience gained in development and manufacturing of the first two Bl',2,2,1,3,'100.00','310.00','310.00','15.00','310.00','15.00','20.00',1,2,1,NULL,0,1,NULL,'2012-02-11 14:44:12',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,3,'2012-02-11','325.00',10004,NULL,NULL,NULL,'0101510001','0101040001',NULL,NULL,NULL,NULL,NULL,0,0,0),(1007,1,1,1,4,5004,5006,1,0,0,0,'2012-02-10 13:34:45','2012-02-10 13:49:27','2012-02-12 09:36:14',12,'2012-02-12 09:53:43',5,10,'2012-02-12 09:53:40',5,NULL,0,'PO93484','AP12356',8,1,'B2','AP2845','Making funny noises',NULL,NULL,'Repairing on site. This guy is a rude.',NULL,'On-site Repair\r\nNumber Off: 1\r\nItem Desc: Connect your Mac with Mini DisplayPort to the LED Cinema Display for a panoramic viewing experience unlike any other. You get a huge 27-inch widescreen display with a cinematic 16:9 aspect ratio and an astonishing 2560-by-1440 resolution. And its glossy f',2,2,1,3,'2.00','200.00','200.00','10.00','200.00','10.00','20.00',2,1,1,NULL,0,0,NULL,'2012-02-12 09:54:15',NULL,'0.00','USD',1.55,'USD',1.55,'USD',1.55,'GBP',1,NULL,NULL,NULL,NULL,4,'2012-02-12','210.00',10005,NULL,NULL,NULL,'0101540001','0101040001',NULL,NULL,NULL,NULL,NULL,0,0,0),(1008,1,1,2,1,5003,5005,1,0,0,0,'2012-02-10 13:56:51',NULL,NULL,2,'2012-02-10 13:59:32',2,3,'2012-02-10 13:59:32',2,NULL,0,'',NULL,17,1,NULL,'AP823745','Badly damaged. Customer through it out the window.',NULL,NULL,'Can\'t be repaired. Very badly damaged.',NULL,'Quote/Repair\r\nNumber Off: 1\r\nItem Desc: Connect your Mac with Mini DisplayPort to the LED Cinema Display for a panoramic viewing experience unlike any other. You get a huge 27-inch widescreen display with a cinematic 16:9 aspect ratio and an astonishing 2560-by-1440 resolution. And its glossy f',2,NULL,2,10,NULL,NULL,NULL,NULL,NULL,NULL,'20.00',0.25,NULL,0,NULL,0,0,NULL,'2012-03-30 17:58:35',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1009,1,1,1,1,5003,5004,1,0,0,0,'2012-02-10 14:04:46','2012-02-10 14:12:59',NULL,2,'2012-03-23 11:45:24',1,3,'2012-03-23 11:45:24',1,NULL,0,'MS023535','MS023535',9,1,'1','DL2343434','Doesn\'t boot','Customer doesn\'t mind a a Solid State Drive being fitted.',NULL,'Doesn\'t boot. Tried new PSU no difference. I recommend replacing motherboard, CPU and hard disk.',NULL,NULL,2,2,NULL,3,'400.00','850.00','850.00','10.00',NULL,NULL,'20.00',1,3,1,NULL,0,1,NULL,'2012-03-23 12:00:21',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1010,1,1,2,1,5001,5002,1,0,0,0,'2012-02-10 14:29:39','2012-02-10 14:50:58',NULL,5,'2012-02-10 14:50:58',3,4,'2012-02-10 14:54:56',2,NULL,0,'',NULL,10,1,'DB04','HG1001234','Colours a bit off, also making funny noises.',NULL,NULL,'Caused by blown capacitor and resister.',NULL,NULL,2,NULL,NULL,10,'5.00','70.00','70.00','10.00',NULL,NULL,'20.00',0.5,0.5,1,NULL,0,1,NULL,'2012-02-10 14:54:58',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1011,1,1,1,1,5000,1002,1,1,1,0,'2012-02-11 08:13:29','2012-02-11 14:57:17',NULL,5,'2012-02-11 14:57:17',5,5,'2012-02-11 14:57:18',5,NULL,0,'LL1234','111',6,1,'DW','12345','NO O/P','NO OUTPUT','stores close at 4','NO OUTPUT BLOCKS BLOWN CAPS ETC',NULL,'Quote/Repair\r\nNumber Off: 1\r\nItem Desc: Delta ASDA-A2 Servo Drive',2,NULL,NULL,3,'150.00','699.00','699.00','16.91',NULL,NULL,'20.00',0.25,8,1,'DRAWINGS',1,1,NULL,'2012-05-23 09:54:13',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1012,1,1,3,4,5004,5006,1,0,0,0,'2012-02-12 09:58:35','2012-02-12 09:58:35',NULL,6,'2012-02-12 09:58:35',5,5,'2012-02-12 09:58:35',5,NULL,0,'PO93484','AP12356',8,1,NULL,'AP2845','Making funny noises',NULL,NULL,NULL,NULL,'Warranty On-site Repair\r\nNumber Off: 1\r\nItem Desc: LED Cinema Display (27\" flat panel) 2560-by-1440 resolution',2,NULL,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,NULL,'2012-04-25 13:56:11',NULL,'0.00','USD',1.55,'USD',1.55,'USD',1.55,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1007,1,NULL,1,0,1),(1013,1,1,3,1,5000,1002,1,1,1,0,'2012-02-13 09:50:01',NULL,NULL,3,'2012-04-06 08:23:38',5,1,'2012-02-13 09:52:21',5,NULL,0,'LL1235','123',5,1,'PJ','111111','o/ps',NULL,'stores close at 6',NULL,NULL,NULL,2,NULL,NULL,10,'32.00','281.60','281.60','16.91',NULL,NULL,'20.00',1,3,0,NULL,0,0,NULL,'2012-04-06 08:23:40',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1014,1,1,2,1,5001,5002,1,0,0,0,'2012-02-13 09:59:30','2012-02-13 09:59:30','2012-03-23 12:25:27',12,'2012-03-23 12:25:18',1,10,'2012-03-23 12:25:37',1,NULL,0,'Test','',10,1,NULL,'HG1001234','Colours a bit off, also making funny noises.',NULL,NULL,'dfgdfgdfg',NULL,NULL,3,3,1,NULL,'200.00','300.00','300.00','10.00','300.00','10.00',NULL,1,1,0,NULL,0,0,NULL,'2012-03-23 12:26:13',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,5,'2012-03-22','310.00',10006,NULL,NULL,NULL,'0101510001','0101040001',NULL,NULL,1010,1,NULL,1,0,0),(1015,1,1,3,4,5003,5005,1,0,0,0,'2012-03-23 10:56:04','2012-04-20 11:52:24',NULL,5,'2012-04-20 11:52:24',1,5,'2012-04-20 11:52:24',1,NULL,0,'',NULL,11,1,NULL,'123',NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,'20.00',NULL,NULL,0,NULL,0,0,NULL,'2012-04-20 11:57:30',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1016,1,1,3,4,5006,5009,1,0,0,0,'2012-03-30 17:50:53',NULL,NULL,1,'2012-03-30 11:45:39',1,1,'2012-03-30 11:45:39',1,NULL,0,'',NULL,19,1,NULL,'123',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,'20.00',NULL,NULL,0,NULL,0,0,NULL,'2012-03-30 17:50:53',NULL,'0.00','GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1),(1017,1,1,2,1,5003,5004,0,0,0,0,'2012-03-30 18:38:15','2012-03-30 18:38:15',NULL,11,'2012-03-30 18:38:15',1,10,'2012-03-30 18:38:15',1,NULL,0,'12345894','MS99454882',7,1,NULL,'HY122344','Dog ate part of the wing',NULL,NULL,NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'20.00',NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,'GBP',1,'GBP',1,'GBP',1,'GBP',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1006,NULL,NULL,0,1,1);
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `languages`
--

DROP TABLE IF EXISTS `languages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `languages` (
  `LanguageID` int(11) NOT NULL AUTO_INCREMENT,
  `LanguageName` varchar(40) DEFAULT NULL,
  PRIMARY KEY (`LanguageID`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `languages`
--

LOCK TABLES `languages` WRITE;
/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
INSERT INTO `languages` VALUES (1,'English'),(2,'German'),(3,'French'),(4,'Italian'),(5,'Spanish'),(6,'Polish'),(7,'Dutch'),(8,'Russian'),(9,'Swedish'),(10,'Greek'),(11,'Czech'),(12,'Portuguese'),(13,'Hungarian');
/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lock_history`
--

DROP TABLE IF EXISTS `lock_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lock_history` (
  `LockID` int(11) NOT NULL,
  `TableName` varchar(32) DEFAULT NULL,
  `RecordKey` varchar(64) DEFAULT NULL,
  `AuditID` int(11) DEFAULT NULL,
  `UserID` int(11) DEFAULT NULL,
  `UserName` varchar(40) DEFAULT NULL,
  `ComputerName` varchar(20) DEFAULT NULL,
  `IPAddress` varchar(15) DEFAULT NULL,
  `UserHost` varchar(100) DEFAULT NULL COMMENT 'MySQL USER()',
  `ConnectionID` int(11) DEFAULT NULL COMMENT 'MySQL CONNECTION_ID()',
  `Created` datetime DEFAULT NULL,
  `Released` datetime DEFAULT NULL,
  PRIMARY KEY (`LockID`),
  KEY `idxTableNameAndRecordKey` (`TableName`,`RecordKey`),
  KEY `idxUserID` (`UserID`),
  KEY `idxComputerName` (`ComputerName`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lock_history`
--

LOCK TABLES `lock_history` WRITE;
/*!40000 ALTER TABLE `lock_history` DISABLE KEYS */;
INSERT INTO `lock_history` VALUES (1,'app_lock','SURINDER-WIN7PC',2,5,'Super','SURINDER-WIN7PC','10.255.0.25','jms_demo_master@80.229.231.82',572215,'2013-07-10 17:31:03','2013-07-10 17:31:11'),(2,'app_lock','SURINDER-WIN7PC',3,5,'Super','SURINDER-WIN7PC','10.255.0.25','jms_demo_master@80.229.231.82',572967,'2013-07-10 17:57:13','2013-07-10 17:58:25'),(3,'app_lock','SURINDER-WIN7PC',4,5,'Super','SURINDER-WIN7PC','10.255.0.25','jms_demo_master@80.229.231.82',634450,'2013-07-12 18:17:33','2013-07-12 18:17:42'),(4,'app_lock','SURINDER-WIN7PC',5,5,'Super','SURINDER-WIN7PC','10.255.0.25','jms_demo_master@80.229.231.82',634490,'2013-07-12 18:20:12','2013-07-12 18:20:29'),(5,'app_lock','SURINDER-WIN7PC',6,5,'Super','SURINDER-WIN7PC','10.255.0.28','jms_demo_master@80.229.231.82',1307103,'2013-08-07 11:01:43','2013-08-07 11:02:49'),(6,'distribute_parts','1',6,5,'Super','SURINDER-WIN7PC','10.255.0.28','jms_demo_master@80.229.231.82',1307103,'2013-08-07 11:01:52','2013-08-07 11:02:09'),(7,'generate_orders','1',6,5,'Super','SURINDER-WIN7PC','10.255.0.28','jms_demo_master@80.229.231.82',1307103,'2013-08-07 11:02:38','2013-08-07 11:02:41'),(8,'app_lock','SURINDER-WIN7PC',7,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1707120,'2013-08-20 18:32:59','2013-08-20 18:33:24'),(9,'app_lock','SURINDER-WIN7PC',8,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1707156,'2013-08-20 18:34:25','2013-08-20 18:46:58'),(10,'app_lock','SURINDER-WIN7PC',9,1,'Demo','SURINDER-WIN7PC','10.0.0.53','jms_demo_master@80.229.231.82',1721798,'2013-08-21 09:59:34','2013-08-21 09:59:38'),(11,'app_lock','SURINDER-WIN7PC',10,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1721830,'2013-08-21 10:00:59','2013-08-21 10:03:01'),(12,'app_lock','SURINDER-WIN7PC',11,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1721871,'2013-08-21 10:03:21','2013-08-21 10:06:13'),(13,'app_lock','SURINDER-WIN7PC',12,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1724577,'2013-08-21 12:36:21','2013-08-21 12:38:58'),(14,'app_lock','SURINDER-WIN7PC',13,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1724716,'2013-08-21 12:44:35','2013-08-21 12:53:39'),(15,'app_lock','SURINDER-WIN7PC',14,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1724929,'2013-08-21 12:53:40','2013-08-21 14:13:14'),(16,'app_lock','SURINDER-WIN7PC',15,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1726762,'2013-08-21 14:14:18','2013-08-21 14:14:44'),(17,'app_lock','SURINDER-WIN7PC',16,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1727418,'2013-08-21 14:41:24','2013-08-21 14:42:14'),(18,'app_lock','SURINDER-WIN7PC',17,1,'Demo','SURINDER-WIN7PC','','jms_demo_master@80.229.231.82',1727827,'2013-08-21 15:06:39','2013-08-21 15:07:43'),(19,'app_lock','SURINDER-WIN7PC',18,1,'Demo','SURINDER-WIN7PC','10.255.0.28','jms_demo_master@80.229.231.82',1774502,'2013-08-23 15:39:20','2013-08-23 15:56:27'),(20,'app_lock','SURINDER-WIN7PC',19,1,'Demo','SURINDER-WIN7PC','10.255.0.41','jms_demo_master@80.229.231.82',38104,'2013-08-29 15:53:00','2013-08-29 15:54:04'),(21,'material_orders','28',19,1,'Demo','SURINDER-WIN7PC','10.255.0.41','jms_demo_master@80.229.231.82',38104,'2013-08-29 15:53:54','2013-08-29 15:54:04'),(22,'app_lock','SURINDER-WIN7PC',20,1,'Demo','SURINDER-WIN7PC','10.255.0.41','jms_demo_master@80.229.231.82',38164,'2013-08-29 15:55:48','2013-08-29 15:56:37'),(23,'app_lock','SURINDER-WIN7PC',21,1,'Demo','SURINDER-WIN7PC','10.255.0.36','jms_demo_master@80.229.231.82',52448,'2014-01-16 16:01:05','2014-01-16 16:39:19'),(24,'app_lock','SURINDER',22,1,'Demo','SURINDER','10.255.0.32','jms_demo_master@80.229.231.82',205024,'2016-03-18 11:41:32','2016-03-18 11:41:42');
/*!40000 ALTER TABLE `lock_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `locks`
--

DROP TABLE IF EXISTS `locks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `locks` (
  `LockID` int(11) NOT NULL AUTO_INCREMENT,
  `TableName` varchar(32) DEFAULT NULL,
  `RecordKey` varchar(64) DEFAULT NULL,
  `AuditID` int(11) DEFAULT NULL,
  `UserID` int(11) DEFAULT NULL,
  `UserName` varchar(40) DEFAULT NULL,
  `ComputerName` varchar(20) DEFAULT NULL,
  `IPAddress` varchar(15) DEFAULT NULL,
  `UserHost` varchar(100) DEFAULT NULL COMMENT 'MySQL USER()',
  `ConnectionID` int(11) DEFAULT NULL COMMENT 'MySQL CONNECTION_ID()',
  `Created` datetime DEFAULT NULL,
  PRIMARY KEY (`LockID`),
  KEY `idxTableNameAndRecordKey` (`TableName`,`RecordKey`),
  KEY `idxUserID` (`UserID`),
  KEY `idxComputerName` (`ComputerName`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `locks`
--

LOCK TABLES `locks` WRITE;
/*!40000 ALTER TABLE `locks` DISABLE KEYS */;
/*!40000 ALTER TABLE `locks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lookups`
--

DROP TABLE IF EXISTS `lookups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lookups` (
  `TableName` varchar(25) NOT NULL DEFAULT '',
  `MinAccessLevel` smallint(1) NOT NULL DEFAULT '1',
  `ReadOnly` tinyint(1) NOT NULL DEFAULT '0',
  `SortOrder` varchar(255) NOT NULL DEFAULT '',
  `FieldList` varchar(255) NOT NULL DEFAULT '',
  `RequiredFields` varchar(255) NOT NULL DEFAULT '',
  `ReadOnlyFields` varchar(255) NOT NULL DEFAULT '',
  `Lookups` varchar(255) NOT NULL DEFAULT '',
  `RefChecks` varchar(512) NOT NULL DEFAULT '',
  `SpecialSettings` varchar(255) NOT NULL DEFAULT '',
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`TableName`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lookups`
--

LOCK TABLES `lookups` WRITE;
/*!40000 ALTER TABLE `lookups` DISABLE KEYS */;
INSERT INTO `lookups` VALUES ('categories',8,0,'CategoryName','','CategoryName','','','CategoryID:[T=equipment],CategoryID:[T=equipment,F=AlternateCategoryID],CategoryID:[T=customer_site_survey]','PublishToWeb:[CHK=True;False]','2013-08-15 18:32:58'),('currencies',8,0,'CurrencyCode','','CurrencyCode,CurrencyName,CurrencySymbol,ExchangeRate','','','','CurrencyCode:[P=*!]','2006-06-20 02:36:54'),('customer_types',8,0,'TypeID','','TypeID,Type','','','TypeID:[T=customers,F=CustomerType]','TypeID:[P=*!]','2006-12-14 18:17:00'),('final_outcomes',8,0,'FinalOutcomeID','','FinalOutcome','','','FinalOutcomeID:[T=jobs]','RNRFlag:[CHK=True;False]','2013-06-21 11:37:16'),('part_categories',8,0,'PartCategoryName','','PartCategoryName','','','PartCategoryID:[T=parts]','','2008-04-29 17:29:05'),('job_classes',9,0,'JobClassID','','JobClass','','','JobClassID:[T=jobs]','QuoteRequired:[CHK=True;False]','2013-06-21 11:37:16'),('job_types',9,0,'JobTypeID','','JobType,JobTypeNominalCode','','','JobTypeID:[T=jobs]','QuoteRequired:[CHK=True;False],Discountable:[CHK=True;False]','2013-06-21 11:37:16'),('lookups',10,0,'TableName','','TableName,MinAccessLevel','LastUpdated','','','ReadOnly:[CHK=True;False]','2008-07-25 13:43:48'),('manufacturers',8,0,'ManufacturerName','','ManufacturerName','','','ManufacturerID:[T=equipment],ManufacturerID:[T=customer_site_survey]','PublishToWeb:[CHK=True;False]','2013-08-15 18:33:23'),('printers',8,0,'PrinterName','','PrinterName','','','PrinterID:[T=reports,F=DefaultPrinterID]','PrinterName:[W=45],Location:[W=45]','2006-11-22 11:26:34'),('report_groups',8,0,'ReportGroupName','','ReportGroupName','','','ReportGroupID:[T=reports,F=ReportGroupID]','','2006-12-14 18:17:15'),('site_survey',8,0,'SiteSurveyID','','SiteSurveyID,SiteSurveyName','','','SiteSurveyID:[T=customersitesurvey]','','2006-12-14 18:17:23'),('problem_reasons',8,0,'SortOrder','','ProblemReasonName','','','ProblemReasonID:[T=material_order_lines]','','2008-08-01 09:50:06'),('payment_types',8,0,'SortOrder','','PaymentTypeName','','','PaymentTypeID:[T=material_payments]','Ref1Required:[CHK=True;False],Ref2Required:[CHK=True;False],Ref3Required:[CHK=True;False]','2008-08-01 14:59:39'),('departments',8,0,'DepartmentNominalCode','','DepartmentName,DepartmentNominalCode','','','','SalesLedger:[CHK=True;False],PurchaseLedger:[CHK=True;False],Ref3Required:[CHK=True;False]','2008-10-31 16:21:10'),('languages',9,0,'LanguageID','','LanguageName','','','LanguageID:[T=customers],LanguageID:[T=branches],LanguageID:[T=countries]','','2008-03-04 18:47:09'),('translation',8,0,'English','','English','','','','','2007-07-23 16:11:50'),('nominal_codes',8,0,'NominalCode','','NominalCodeName,NominalCode','','','','SalesLedger:[CHK=True;False],PurchaseLedger:[CHK=True;False]','2008-12-02 15:29:59'),('business_types',8,0,'BusinessTypeNominalCode','','BusinessTypeName,BusinessTypeNominalCode','','','','','2008-11-07 03:32:05');
/*!40000 ALTER TABLE `lookups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `manufacturers`
--

DROP TABLE IF EXISTS `manufacturers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `manufacturers` (
  `ManufacturerID` int(11) NOT NULL AUTO_INCREMENT,
  `ManufacturerName` varchar(35) NOT NULL DEFAULT '',
  `PublishToWeb` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`ManufacturerID`),
  UNIQUE KEY `idxManufacturerName` (`ManufacturerName`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `manufacturers`
--

LOCK TABLES `manufacturers` WRITE;
/*!40000 ALTER TABLE `manufacturers` DISABLE KEYS */;
INSERT INTO `manufacturers` VALUES (0,'UNKNOWN',1),(1,'3M',1),(2,'3P Pacific Power Products',1),(3,'3Y Power Technology Inc.',1),(4,'A M Lock',1),(5,'A&D',1),(6,'AAEON Technology',1),(7,'ABB',1),(8,'Abus',1),(9,'Accalon AB',1),(10,'Accenta',1),(11,'Quad',1),(12,'Siemens',1),(13,'Delta',1),(14,'Vladimir',1),(15,'Apple',1),(16,'Dell',1),(17,'Hanns.G',1),(18,'Musical Fidelity',1),(19,'DANFOSS',1),(20,'Test with new manufacturer',1),(21,'Denon',1);
/*!40000 ALTER TABLE `manufacturers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_invoice_lists`
--

DROP TABLE IF EXISTS `material_invoice_lists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_invoice_lists` (
  `MaterialInvoiceListID` int(11) NOT NULL AUTO_INCREMENT,
  `DateTimeCreated` datetime DEFAULT NULL,
  `CreatedByID` int(11) DEFAULT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`MaterialInvoiceListID`),
  KEY `idxCreatedByID` (`CreatedByID`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_invoice_lists`
--

LOCK TABLES `material_invoice_lists` WRITE;
/*!40000 ALTER TABLE `material_invoice_lists` DISABLE KEYS */;
INSERT INTO `material_invoice_lists` VALUES (1,'2012-04-25 09:05:09',5,1),(2,'2012-04-25 13:48:59',5,1),(3,'2012-05-23 10:34:01',5,1),(4,'2012-05-23 10:47:32',5,1);
/*!40000 ALTER TABLE `material_invoice_lists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_invoices`
--

DROP TABLE IF EXISTS `material_invoices`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_invoices` (
  `MaterialInvoiceID` int(11) NOT NULL AUTO_INCREMENT,
  `OrderID` int(11) NOT NULL,
  `DateInvReceived` date DEFAULT NULL,
  `InvoiceDate` date DEFAULT NULL,
  `InvoiceNo` varchar(20) DEFAULT NULL,
  `Amount` decimal(11,2) DEFAULT NULL,
  `VATAmount` decimal(11,2) DEFAULT NULL,
  `EnteredByID` int(11) DEFAULT NULL,
  PRIMARY KEY (`MaterialInvoiceID`),
  KEY `idxOrderID` (`OrderID`),
  KEY `idxEnteredByID` (`EnteredByID`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_invoices`
--

LOCK TABLES `material_invoices` WRITE;
/*!40000 ALTER TABLE `material_invoices` DISABLE KEYS */;
INSERT INTO `material_invoices` VALUES (1,1,'2012-02-10','2012-02-10','123948','219.99','44.00',5),(2,18,'2012-04-25','2012-04-18','1111','11.84','2.37',5),(3,18,'2012-04-25',NULL,NULL,NULL,NULL,1),(4,26,'2012-05-23','2012-05-23','12345','12.16','2.43',5),(5,5,'2012-05-23','2012-05-23','12346','10.46','2.09',5);
/*!40000 ALTER TABLE `material_invoices` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_order_history`
--

DROP TABLE IF EXISTS `material_order_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_order_history` (
  `OrderHistoryID` int(11) NOT NULL AUTO_INCREMENT,
  `OrderID` int(11) NOT NULL,
  `DateTimeAdded` datetime NOT NULL,
  `UserID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  `OrderHistoryType` varchar(2) NOT NULL DEFAULT '',
  `Note` varchar(80) NOT NULL DEFAULT '',
  PRIMARY KEY (`OrderHistoryID`),
  KEY `idxOrderID` (`OrderID`),
  KEY `idxUserID` (`UserID`)
) ENGINE=MyISAM AUTO_INCREMENT=165 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_order_history`
--

LOCK TABLES `material_order_history` WRITE;
/*!40000 ALTER TABLE `material_order_history` DISABLE KEYS */;
INSERT INTO `material_order_history` VALUES (1,1,'2012-02-10 13:09:40',5,1,'OT','Order generated'),(2,1,'2012-02-10 13:09:40',5,1,'OT','Order lines added: 1'),(3,1,'2012-02-10 13:11:04',5,1,'OT','Order lines changed: 1'),(4,1,'2012-02-10 13:11:47',5,1,'ST','Order Status advanced to Awaiting Parts'),(5,1,'2012-02-10 13:12:34',5,1,'OT','Parts received'),(6,1,'2012-02-10 13:12:34',5,1,'ST','Order Status advanced to Awaiting Invoice'),(7,1,'2012-02-10 13:13:03',5,1,'OT','Invoice 123948 added'),(8,1,'2012-02-10 13:13:04',5,1,'ST','Order Status advanced to Awaiting Posting'),(9,2,'2012-02-10 15:02:49',4,1,'OT','Order generated'),(10,2,'2012-02-10 15:02:50',4,1,'OT','Order lines added: 1'),(11,3,'2012-02-10 15:02:50',4,1,'OT','Order generated'),(12,3,'2012-02-10 15:02:51',4,1,'OT','Order lines added: 3'),(13,3,'2012-02-10 15:03:38',4,1,'OT','Order lines deleted: 2'),(14,3,'2012-02-10 15:03:47',4,1,'ST','Order Status advanced to Awaiting Parts'),(15,3,'2012-02-10 15:03:55',4,1,'OT','Parts received'),(16,3,'2012-02-10 15:03:56',4,1,'ST','Order Status advanced to Awaiting Invoice'),(17,2,'2012-02-10 15:04:36',4,1,'ST','Order Status advanced to Awaiting Parts'),(18,2,'2012-02-10 15:04:45',4,1,'OT','Parts received'),(19,2,'2012-02-10 15:04:45',4,1,'ST','Order Status advanced to Awaiting Invoice'),(20,4,'2012-02-10 15:07:30',4,1,'OT','Order generated'),(21,4,'2012-02-10 15:07:30',4,1,'OT','Order lines added: 1'),(22,4,'2012-02-10 15:07:47',4,1,'ST','Order Status advanced to Awaiting Parts'),(23,5,'2012-02-11 14:50:21',5,1,'OT','Order entered'),(24,5,'2012-02-11 14:53:37',5,1,'OT','Order lines added: 1'),(25,6,'2012-02-11 15:01:06',5,1,'OT','Order generated'),(26,6,'2012-02-11 15:01:07',5,1,'OT','Order lines added: 1'),(27,6,'2012-02-11 15:01:54',5,1,'ST','Order Status advanced to Awaiting Parts'),(28,6,'2012-02-11 15:06:50',5,1,'OT','Order lines changed: 1'),(29,6,'2012-02-11 15:07:56',5,1,'OT','Order lines changed: 1'),(30,6,'2012-02-11 15:10:22',5,1,'OT','Order lines changed: 1'),(31,7,'2012-02-12 08:43:44',5,1,'OT','Order generated'),(32,7,'2012-02-12 08:43:44',5,1,'OT','Order lines added: 2'),(33,8,'2012-02-12 08:43:45',5,1,'OT','Order generated'),(34,8,'2012-02-12 08:43:45',5,1,'OT','Order lines added: 1'),(35,9,'2012-02-12 08:43:46',5,1,'OT','Order generated'),(36,9,'2012-02-12 08:43:46',5,1,'OT','Order lines added: 1'),(37,10,'2012-02-12 08:43:47',5,1,'OT','Order generated'),(38,10,'2012-02-12 08:43:47',5,1,'OT','Order lines added: 3'),(39,11,'2012-02-12 08:43:48',5,1,'OT','Order generated'),(40,11,'2012-02-12 08:43:48',5,1,'OT','Order lines added: 1'),(41,12,'2012-02-12 08:43:49',5,1,'OT','Order generated'),(42,12,'2012-02-12 08:43:49',5,1,'OT','Order lines added: 2'),(43,12,'2012-02-12 08:46:09',5,1,'ST','Order Status advanced to Awaiting Parts'),(44,5,'2012-02-12 08:48:18',5,1,'ST','Order Status advanced to Placing Order'),(45,10,'2012-02-12 09:21:08',5,1,'ST','Order Status advanced to Awaiting Parts'),(46,7,'2012-02-12 09:21:53',5,1,'ST','Order Status advanced to Awaiting Parts'),(47,5,'2012-02-12 09:22:19',5,1,'ST','Order Status advanced to Awaiting Parts'),(48,8,'2012-02-12 09:22:37',5,1,'ST','Order Status advanced to Awaiting Parts'),(49,9,'2012-02-12 09:22:56',5,1,'ST','Order Status advanced to Awaiting Parts'),(50,11,'2012-02-12 09:23:20',5,1,'ST','Order Status advanced to Awaiting Parts'),(51,13,'2012-02-13 09:28:16',5,1,'OT','Order generated'),(52,13,'2012-02-13 09:28:16',5,1,'OT','Order lines added: 1'),(53,13,'2012-02-13 09:28:59',5,1,'ST','Order Status advanced to Awaiting Parts'),(54,14,'2012-03-23 13:40:18',1,1,'OT','Order generated'),(55,14,'2012-03-23 13:40:19',1,1,'OT','Order lines added: 1'),(56,15,'2012-03-23 13:40:20',1,1,'OT','Order generated'),(57,15,'2012-03-23 13:40:20',1,1,'OT','Order lines added: 1'),(58,14,'2012-04-25 08:54:02',5,1,'ST','Order Status advanced to Awaiting Parts'),(59,1,'2012-04-25 09:05:09',5,1,'ST','Order Status advanced to Order Closed'),(60,1,'2012-04-25 09:05:10',5,1,'OT','Posted to MaterialInvoiceListID: 1  (1 invoice)'),(61,16,'2012-04-25 12:17:12',5,1,'OT','Order generated'),(62,16,'2012-04-25 12:17:14',5,1,'OT','Order lines added: 2'),(63,17,'2012-04-25 12:17:15',5,1,'OT','Order generated'),(64,17,'2012-04-25 12:17:15',5,1,'OT','Order lines added: 1'),(65,17,'2012-04-25 12:18:50',5,1,'ST','Order Status advanced to Awaiting Parts'),(66,15,'2012-04-25 12:20:44',5,1,'ST','Order Status advanced to Awaiting Parts'),(67,16,'2012-04-25 12:21:10',5,1,'ST','Order Status advanced to Awaiting Parts'),(68,18,'2012-04-25 13:23:38',5,1,'OT','Order generated'),(69,18,'2012-04-25 13:23:39',5,1,'OT','Order lines added: 1'),(70,18,'2012-04-25 13:26:17',5,1,'ST','Order Status advanced to Awaiting Parts'),(71,18,'2012-04-25 13:41:39',5,1,'OT','Parts received'),(72,18,'2012-04-25 13:41:41',5,1,'ST','Order Status advanced to Awaiting Invoice'),(73,18,'2012-04-25 13:45:38',5,1,'OT','Invoice 1111 added'),(74,18,'2012-04-25 13:45:40',5,1,'ST','Order Status advanced to Awaiting Posting'),(75,18,'2012-04-25 13:48:59',5,1,'ST','Order Status advanced to Order Closed'),(76,18,'2012-04-25 13:48:59',5,1,'OT','Posted to MaterialInvoiceListID: 2  (2 invoices)'),(110,4,'2012-05-23 10:38:27',5,1,'OT','Parts received'),(109,26,'2012-05-23 10:34:01',5,1,'OT','Posted to MaterialInvoiceListID: 3  (1 invoice)'),(108,26,'2012-05-23 10:34:01',5,1,'ST','Order Status advanced to Order Closed'),(81,20,'2012-05-23 09:23:59',5,1,'OT','Order generated'),(82,20,'2012-05-23 09:24:00',5,1,'OT','Order lines added: 2'),(83,21,'2012-05-23 09:26:48',5,1,'OT','Order generated'),(84,21,'2012-05-23 09:26:48',5,1,'OT','Order lines added: 1'),(85,22,'2012-05-23 09:31:33',5,1,'OT','Order generated'),(86,22,'2012-05-23 09:31:33',5,1,'OT','Order lines added: 1'),(87,22,'2012-05-23 09:33:07',5,1,'ST','Order Status advanced to Awaiting Parts'),(88,23,'2012-05-23 09:34:38',5,1,'OT','Order generated'),(89,23,'2012-05-23 09:34:39',5,1,'OT','Order lines added: 1'),(90,23,'2012-05-23 09:36:26',5,1,'ST','Order Status advanced to Awaiting Parts'),(91,20,'2012-05-23 09:37:11',5,1,'ST','Order Status advanced to Awaiting Parts'),(92,24,'2012-05-23 09:41:48',5,1,'OT','Order generated'),(93,24,'2012-05-23 09:41:48',5,1,'OT','Order lines added: 1'),(94,24,'2012-05-23 09:42:39',5,1,'ST','Order Status advanced to Awaiting Parts'),(95,21,'2012-05-23 09:45:16',5,1,'ST','Order Status advanced to Awaiting Parts'),(96,25,'2012-05-23 09:51:10',5,1,'OT','Order generated'),(97,25,'2012-05-23 09:51:10',5,1,'OT','Order lines added: 1'),(98,25,'2012-05-23 09:52:26',5,1,'ST','Order Status advanced to Awaiting Parts'),(99,26,'2012-05-23 09:54:49',5,1,'OT','Order generated'),(100,26,'2012-05-23 09:54:50',5,1,'OT','Order lines added: 1'),(101,26,'2012-05-23 09:55:18',5,1,'ST','Order Status advanced to Awaiting Parts'),(102,27,'2012-05-23 10:26:32',5,1,'OT','Order generated'),(103,27,'2012-05-23 10:26:32',5,1,'OT','Order lines added: 1'),(104,26,'2012-05-23 10:28:38',5,1,'OT','Parts received'),(105,26,'2012-05-23 10:28:38',5,1,'ST','Order Status advanced to Awaiting Invoice'),(106,26,'2012-05-23 10:31:38',5,1,'OT','Invoice 12345 added'),(107,26,'2012-05-23 10:31:38',5,1,'ST','Order Status advanced to Awaiting Posting'),(111,4,'2012-05-23 10:38:27',5,1,'ST','Order Status advanced to Awaiting Invoice'),(112,5,'2012-05-23 10:40:19',5,1,'OT','Parts received'),(113,5,'2012-05-23 10:40:19',5,1,'ST','Order Status advanced to Awaiting Invoice'),(114,5,'2012-05-23 10:46:53',5,1,'OT','Invoice 12346 added'),(115,5,'2012-05-23 10:46:53',5,1,'ST','Order Status advanced to Awaiting Posting'),(116,5,'2012-05-23 10:47:32',5,1,'ST','Order Status advanced to Order Closed'),(117,5,'2012-05-23 10:47:32',5,1,'OT','Posted to MaterialInvoiceListID: 4  (1 invoice)'),(118,28,'2012-05-23 11:08:29',5,1,'OT','Order created from Quote Request'),(119,28,'2012-05-23 11:11:06',5,1,'ST','Order Status advanced to Awaiting Parts'),(120,27,'2012-05-23 11:18:35',5,1,'ST','Order Status advanced to Awaiting Parts'),(121,10,'2012-05-23 11:23:14',5,1,'OT','Parts received'),(122,10,'2012-05-23 11:23:14',5,1,'ST','Order Status advanced to Awaiting Invoice'),(123,29,'2012-05-23 11:28:54',5,1,'OT','Order generated'),(124,29,'2012-05-23 11:28:54',5,1,'OT','Order lines added: 1'),(125,29,'2012-05-23 11:29:13',5,1,'ST','Order Status advanced to Awaiting Parts'),(126,6,'2012-05-23 11:31:24',5,1,'ST','Order Status advanced to Awaiting Invoice'),(127,7,'2012-05-23 11:31:43',5,1,'OT','Parts received'),(128,7,'2012-05-23 11:31:44',5,1,'ST','Order Status advanced to Awaiting Invoice'),(129,8,'2012-05-23 11:31:59',5,1,'OT','Parts received'),(130,8,'2012-05-23 11:31:59',5,1,'ST','Order Status advanced to Awaiting Invoice'),(131,9,'2012-05-23 11:32:10',5,1,'OT','Parts received'),(132,9,'2012-05-23 11:32:10',5,1,'ST','Order Status advanced to Awaiting Invoice'),(133,11,'2012-05-23 11:32:28',5,1,'OT','Parts received'),(134,11,'2012-05-23 11:32:29',5,1,'ST','Order Status advanced to Awaiting Invoice'),(135,12,'2012-05-23 11:32:41',5,1,'OT','Parts received'),(136,12,'2012-05-23 11:32:42',5,1,'ST','Order Status advanced to Awaiting Invoice'),(137,13,'2012-05-23 11:32:51',5,1,'OT','Parts received'),(138,13,'2012-05-23 11:32:52',5,1,'ST','Order Status advanced to Awaiting Invoice'),(139,14,'2012-05-23 11:33:03',5,1,'OT','Parts received'),(140,14,'2012-05-23 11:33:04',5,1,'ST','Order Status advanced to Awaiting Invoice'),(141,15,'2012-05-23 11:33:14',5,1,'OT','Parts received'),(142,15,'2012-05-23 11:33:15',5,1,'ST','Order Status advanced to Awaiting Invoice'),(143,16,'2012-05-23 11:33:25',5,1,'OT','Parts received'),(144,16,'2012-05-23 11:33:26',5,1,'ST','Order Status advanced to Awaiting Invoice'),(145,17,'2012-05-23 11:33:35',5,1,'OT','Parts received'),(146,17,'2012-05-23 11:33:35',5,1,'ST','Order Status advanced to Awaiting Invoice'),(147,20,'2012-05-23 11:33:45',5,1,'OT','Parts received'),(148,20,'2012-05-23 11:33:45',5,1,'ST','Order Status advanced to Awaiting Invoice'),(149,21,'2012-05-23 11:33:54',5,1,'OT','Parts received'),(150,21,'2012-05-23 11:33:54',5,1,'ST','Order Status advanced to Awaiting Invoice'),(151,22,'2012-05-23 11:34:03',5,1,'OT','Parts received'),(152,22,'2012-05-23 11:34:03',5,1,'ST','Order Status advanced to Awaiting Invoice'),(153,23,'2012-05-23 11:34:12',5,1,'OT','Parts received'),(154,23,'2012-05-23 11:34:13',5,1,'ST','Order Status advanced to Awaiting Invoice'),(155,24,'2012-05-23 11:34:21',5,1,'OT','Parts received'),(156,24,'2012-05-23 11:34:22',5,1,'ST','Order Status advanced to Awaiting Invoice'),(157,25,'2012-05-23 11:35:06',5,1,'OT','Parts received'),(158,25,'2012-05-23 11:35:07',5,1,'ST','Order Status advanced to Awaiting Invoice'),(159,27,'2012-05-23 11:35:19',5,1,'OT','Parts received'),(160,27,'2012-05-23 11:35:20',5,1,'ST','Order Status advanced to Awaiting Invoice'),(161,28,'2012-05-23 11:35:30',5,1,'OT','Parts received'),(162,28,'2012-05-23 11:35:31',5,1,'ST','Order Status advanced to Awaiting Invoice'),(163,29,'2012-05-23 11:35:42',5,1,'OT','Parts received'),(164,29,'2012-05-23 11:35:43',5,1,'ST','Order Status advanced to Awaiting Invoice');
/*!40000 ALTER TABLE `material_order_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_order_lines`
--

DROP TABLE IF EXISTS `material_order_lines`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_order_lines` (
  `OrderLineID` int(11) NOT NULL AUTO_INCREMENT,
  `OrderID` int(11) NOT NULL,
  `OrderLineType` varchar(1) DEFAULT NULL,
  `PartID` int(11) DEFAULT NULL,
  `SupplierPartNo` varchar(20) DEFAULT NULL,
  `PartDescription` varchar(40) DEFAULT NULL,
  `UnitPrice` decimal(11,4) NOT NULL DEFAULT '0.0000',
  `QtyOrdered` int(11) NOT NULL DEFAULT '0',
  `DeliveryDueDate` date DEFAULT NULL,
  `Problem` tinyint(1) NOT NULL DEFAULT '0',
  `ProblemReasonID` int(11) DEFAULT NULL,
  `QtyReceived` int(11) NOT NULL DEFAULT '0',
  `DateReceived` date DEFAULT NULL,
  `Received` tinyint(1) NOT NULL DEFAULT '0',
  `MaterialInvoiceID` int(11) DEFAULT NULL,
  `Disputed` tinyint(1) NOT NULL DEFAULT '0',
  `QtyDistributed` int(11) NOT NULL DEFAULT '0',
  `Distributed` tinyint(1) NOT NULL DEFAULT '0',
  `JobID` int(11) DEFAULT NULL,
  `JobMaterialID` int(11) DEFAULT NULL,
  `NominalCode` char(10) DEFAULT NULL,
  PRIMARY KEY (`OrderLineID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxOrderID` (`OrderID`),
  KEY `idxPartID` (`PartID`),
  KEY `idxProblemReasonID` (`ProblemReasonID`),
  KEY `idxMaterialInvoiceID` (`MaterialInvoiceID`),
  KEY `idxDistributed` (`Distributed`),
  KEY `idxJobMaterialID` (`JobMaterialID`),
  KEY `idxReceived` (`Received`)
) ENGINE=MyISAM AUTO_INCREMENT=76 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_order_lines`
--

LOCK TABLES `material_order_lines` WRITE;
/*!40000 ALTER TABLE `material_order_lines` DISABLE KEYS */;
INSERT INTO `material_order_lines` VALUES (1,1,'P',NULL,'BLASTER-3-WING','Blaster 3 Wing','215.0000',1,'2012-02-10',0,NULL,1,'2012-02-10',1,1,0,1,1,1006,4,'0101030001'),(2,1,'C',NULL,'','Delivery / Carriage','4.9900',1,NULL,0,NULL,1,NULL,1,1,0,1,1,NULL,NULL,'0101030001'),(3,2,'P',8,'RE04050','MCF 1W 1K - RESISTOR, 1W 5% 1K','0.0500',20,'2012-02-15',0,NULL,20,'2012-02-10',1,NULL,0,20,1,NULL,NULL,'0101030001'),(4,2,'D',NULL,'','Discount','-0.2000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(5,2,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(11,4,'P',9,'1713230','2N3866 - RF POWER TRANS, NPN 30V 800MHZ','5.0100',2,'2012-02-15',0,NULL,2,'2012-05-23',1,NULL,0,2,1,NULL,NULL,'0101030001'),(8,3,'P',6,'715-1798','Al cap Radial BT series 100V 220uF','1.4200',5,'2012-02-13',0,NULL,5,'2012-02-10',1,NULL,0,5,1,NULL,NULL,'0101030001'),(9,3,'D',NULL,'','Discount','-1.6900',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(10,3,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(12,4,'D',NULL,'','Discount','-0.5000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(13,4,'C',NULL,'','Delivery / Carriage','7.9900',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(14,5,'P',26,'234-564','ls741','0.2300',2,'2012-02-14',0,NULL,2,'2012-05-23',1,5,0,2,1,1005,13,'0101030001'),(15,6,'P',26,'234-564','ls741','0.2300',10,'2012-02-11',0,NULL,10,'2012-02-11',1,NULL,0,10,1,1011,15,'0101030001'),(16,7,'P',24,'CPU-I755-BX80623I727','Intel Core i7-2700K 3.50GHz Processor','209.9900',1,'2012-02-14',0,NULL,1,'2012-05-23',1,NULL,0,1,1,NULL,NULL,'0101030001'),(17,7,'P',25,'HDR-SSD-VTX3-25SAT3-','OCZ Vertex 3 120GB 2.5\" SATA-III Solid S','116.6600',2,'2012-02-14',0,NULL,2,'2012-05-23',1,NULL,0,2,1,NULL,NULL,'0101030001'),(18,7,'D',NULL,'','Discount','-44.3300',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(19,7,'C',NULL,'','Delivery / Carriage','6.9500',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(20,8,'P',4,'QL71N','Signal Diode 1N914','0.4900',10,'2012-02-16',0,NULL,10,'2012-05-23',1,NULL,0,10,1,NULL,NULL,'0101030001'),(21,8,'C',NULL,'','Delivery / Carriage','2.9900',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(22,9,'P',23,'MB-368-GI','Gigabyte Z68XP-UD3 Intel Z68 (Socket 11.','83.3200',1,'2012-02-14',0,NULL,1,'2012-05-23',1,NULL,0,1,1,NULL,NULL,'0101030001'),(23,9,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(24,10,'P',12,'82-0336','Ne555 Single Timer','0.1740',5,'2012-02-14',0,NULL,5,'2012-05-23',1,NULL,0,5,1,NULL,NULL,'0101030001'),(25,10,'P',14,'82-0734','Ne5534p Low Noise Op Amp','0.4000',5,'2012-02-14',0,NULL,5,'2012-05-23',1,NULL,0,5,1,NULL,NULL,'0101030001'),(26,10,'P',15,'56-1500','L-7113id-5v 5mm 5v He Red Led','0.1440',10,'2012-02-14',0,NULL,10,'2012-05-23',1,NULL,0,10,1,NULL,NULL,'0101030001'),(27,10,'C',NULL,'','Delivery / Carriage','4.9500',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(28,11,'P',26,'234-564','ls741','0.2300',20,'2012-02-14',0,NULL,20,'2012-05-23',1,NULL,0,20,1,NULL,NULL,'0101030001'),(29,12,'P',NULL,'L3453','ipod 2 lcd','9.0000',1,'2012-02-14',0,NULL,1,'2012-05-23',1,NULL,0,1,1,1005,1,'0101030001'),(30,12,'P',1,'74-LS-08','74LS08','0.0800',20,'2012-02-14',0,NULL,20,'2012-05-23',1,NULL,0,20,1,NULL,NULL,'0101030001'),(31,12,'D',NULL,'','Discount','-1.0600',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(32,12,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(33,13,'P',1,'74-LS-08','74LS08','0.0800',10,'2012-02-14',0,NULL,10,'2012-05-23',1,NULL,0,10,1,NULL,NULL,'0101030001'),(34,13,'D',NULL,'','Discount','-0.0800',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(35,13,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(36,14,'P',NULL,'LS5555','Unnkown timer, tried Farnell','0.0000',1,'2012-03-30',0,NULL,1,'2012-05-23',1,NULL,0,1,1,1004,25,'0101030001'),(37,14,'C',NULL,'','Delivery / Carriage','11.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(38,15,'P',5,'703-5173','Capacitor Al 105deg 10uF 450V 12.5x20','0.5780',5,'2012-03-26',0,NULL,5,'2012-05-23',1,NULL,0,5,1,NULL,NULL,'0101030001'),(39,15,'D',NULL,'','Discount','-0.2900',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(40,15,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(41,16,'P',9,'1713230','2N3866 - RF POWER TRANS, NPN 30V 800MHZ','5.0100',2,'2012-04-30',0,NULL,2,'2012-05-23',1,NULL,0,2,1,NULL,NULL,'0101030001'),(42,16,'P',10,'3952630','2N3904 - RF TRANSISTOR, NPN, 40V, 300MHZ','0.2000',10,'2012-04-30',0,NULL,10,'2012-05-23',1,NULL,0,10,1,NULL,NULL,'0101030001'),(43,16,'D',NULL,'','Discount','-0.6000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(44,16,'C',NULL,'','Delivery / Carriage','7.9900',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(45,17,'P',13,'82-1108','Lt1070ct Switching Reg 5a To-220-5','8.5200',2,'2012-04-26',0,NULL,2,'2012-05-23',1,NULL,0,2,1,NULL,NULL,'0101030001'),(46,17,'C',NULL,'','Delivery / Carriage','4.9500',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(47,18,'P',7,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',10,'2012-04-30',0,NULL,10,'2012-04-25',1,2,0,10,1,NULL,NULL,'0101030001'),(48,18,'D',NULL,'','Discount','-0.9600',1,NULL,0,NULL,1,NULL,1,2,0,1,1,NULL,NULL,'0101030001'),(49,18,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,2,0,1,1,NULL,NULL,'0101030001'),(53,20,'P',8,'RE04050','MCF 1W 1K - RESISTOR, 1W 5% 1K','0.0500',20,'2012-05-28',0,NULL,20,'2012-05-23',1,NULL,0,20,1,NULL,NULL,'0101030001'),(52,20,'P',7,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',10,'2012-05-28',0,NULL,10,'2012-05-23',1,NULL,0,10,1,NULL,NULL,'0101030001'),(54,20,'D',NULL,'','Discount','-1.1600',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(55,20,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(56,21,'P',7,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',50,'2012-05-28',0,NULL,50,'2012-05-23',1,NULL,0,50,1,NULL,NULL,'0101030001'),(57,21,'D',NULL,'','Discount','-4.8000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(58,21,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(59,22,'P',1,'74-LS-08','74LS08','0.0800',30,'2012-05-24',0,NULL,30,'2012-05-23',1,NULL,0,30,1,NULL,NULL,'0101030001'),(60,22,'D',NULL,'','Discount','-0.2400',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(61,22,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(62,23,'P',26,'234-564','ls741','0.2300',20,'2012-05-24',0,NULL,20,'2012-05-23',1,NULL,0,20,1,NULL,NULL,'0101030001'),(63,24,'P',26,'234-564','ls741','0.2300',50,'2012-05-24',0,NULL,50,'2012-05-23',1,NULL,0,50,1,NULL,NULL,'0101030001'),(64,25,'P',7,'RE03722','MF25 1K - RESISTOR, 0.25W 1% 1K','0.4800',20,'2012-05-28',0,NULL,20,'2012-05-23',1,NULL,0,20,1,NULL,NULL,'0101030001'),(65,25,'D',NULL,'','Discount','-1.9200',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(66,25,'C',NULL,'','Delivery / Carriage','8.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(67,26,'P',1,'74-LS-08','74LS08','0.0800',30,'2012-05-24',0,NULL,30,'2012-05-23',1,4,0,30,1,NULL,NULL,'0101030001'),(68,26,'D',NULL,'','Discount','-0.2400',1,NULL,0,NULL,1,NULL,1,4,0,1,1,NULL,NULL,'0101030001'),(69,26,'C',NULL,'','Delivery / Carriage','10.0000',1,NULL,0,NULL,1,NULL,1,4,0,1,1,NULL,NULL,'0101030001'),(70,27,'P',11,'61-0440','Gt Thermistor 1k 3%','0.9430',3,'2012-05-24',0,NULL,3,'2012-05-23',1,NULL,0,3,1,NULL,NULL,'0101030001'),(71,27,'C',NULL,'','Delivery / Carriage','4.9500',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(73,28,'C',NULL,'','Delivery / Carriage','12.0000',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001'),(74,29,'P',12,'82-0336','Ne555 Single Timer','0.1740',5,'2012-05-24',0,NULL,5,'2012-05-23',1,NULL,0,5,1,NULL,NULL,'0101030001'),(75,29,'C',NULL,'','Delivery / Carriage','4.9500',1,NULL,0,NULL,1,NULL,1,NULL,0,1,1,NULL,NULL,'0101030001');
/*!40000 ALTER TABLE `material_order_lines` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_order_status`
--

DROP TABLE IF EXISTS `material_order_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_order_status` (
  `OrderStatusID` smallint(6) NOT NULL,
  `OrderStatusName` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`OrderStatusID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_order_status`
--

LOCK TABLES `material_order_status` WRITE;
/*!40000 ALTER TABLE `material_order_status` DISABLE KEYS */;
INSERT INTO `material_order_status` VALUES (1,'Order Open'),(2,'Placing Order'),(3,'Awaiting Parts'),(4,'Awaiting Invoice'),(5,'In Dispute'),(6,'Awaiting Posting'),(7,'Order Closed');
/*!40000 ALTER TABLE `material_order_status` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_orders`
--

DROP TABLE IF EXISTS `material_orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_orders` (
  `OrderID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `OrderNo` int(11) NOT NULL,
  `OrderDate` date NOT NULL,
  `SupplierID` int(11) DEFAULT NULL,
  `DeliveryDueDate` date DEFAULT NULL,
  `SupplierRef` varchar(20) DEFAULT NULL,
  `Notes` mediumtext,
  `OrderInformation` mediumtext,
  `OrderedByID` int(11) DEFAULT NULL,
  `OrderStatusID` smallint(6) NOT NULL,
  `OrderStatusDateTime` datetime DEFAULT NULL,
  `OrderStatusUserID` int(11) DEFAULT NULL,
  `QuoteRequestID` int(11) DEFAULT NULL,
  `MaterialInvoiceListID` int(11) DEFAULT NULL,
  `HistoryLastUpdated` datetime DEFAULT NULL,
  PRIMARY KEY (`OrderID`),
  UNIQUE KEY `idxBranchIDOrderNo` (`BranchID`,`OrderNo`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxSupplierID` (`SupplierID`),
  KEY `idxOrderedByID` (`OrderedByID`),
  KEY `idxOrderStatusID` (`OrderStatusID`),
  KEY `idxQuoteRequestID` (`QuoteRequestID`),
  KEY `idxOrderStatusUserID` (`OrderStatusUserID`),
  KEY `idxMaterialInvoiceListID` (`MaterialInvoiceListID`)
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_orders`
--

LOCK TABLES `material_orders` WRITE;
/*!40000 ALTER TABLE `material_orders` DISABLE KEYS */;
INSERT INTO `material_orders` VALUES (1,1,2001,'2012-02-10',7,NULL,'123948',NULL,NULL,5,7,'2012-04-25 09:05:10',5,NULL,1,'2012-04-25 09:05:10'),(2,1,2002,'2012-02-10',2,NULL,'CP201213',NULL,NULL,4,4,'2012-02-10 15:04:43',4,NULL,NULL,'2012-02-10 15:04:46'),(3,1,2003,'2012-02-10',1,NULL,'RS12345',NULL,NULL,4,4,'2012-02-10 15:03:54',4,NULL,NULL,'2012-02-10 15:03:56'),(4,1,2004,'2012-02-10',4,NULL,NULL,NULL,NULL,4,4,'2012-05-23 10:38:27',5,NULL,NULL,'2012-05-23 10:38:27'),(5,1,2005,'2012-02-11',11,NULL,'',NULL,NULL,5,7,'2012-05-23 10:47:32',5,NULL,4,'2012-05-23 10:47:32'),(6,1,2006,'2012-02-11',11,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:31:24',5,NULL,NULL,'2012-05-23 11:31:24'),(7,1,2007,'2012-02-12',8,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:31:44',5,NULL,NULL,'2012-05-23 11:31:44'),(8,1,2008,'2012-02-12',6,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:32:00',5,NULL,NULL,'2012-05-23 11:32:00'),(9,1,2009,'2012-02-12',9,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:32:11',5,NULL,NULL,'2012-05-23 11:32:10'),(10,1,2010,'2012-02-12',5,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:23:15',5,NULL,NULL,'2012-05-23 11:23:14'),(11,1,2011,'2012-02-12',11,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:32:29',5,NULL,NULL,'2012-05-23 11:32:29'),(12,1,2012,'2012-02-12',1,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:32:42',5,NULL,NULL,'2012-05-23 11:32:42'),(13,1,2013,'2012-02-13',1,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:32:52',5,NULL,NULL,'2012-05-23 11:32:52'),(14,1,2014,'2012-03-23',3,NULL,NULL,NULL,NULL,1,4,'2012-05-23 11:33:04',5,NULL,NULL,'2012-05-23 11:33:04'),(15,1,2015,'2012-03-23',1,NULL,NULL,NULL,NULL,1,4,'2012-05-23 11:33:15',5,NULL,NULL,'2012-05-23 11:33:15'),(16,1,2016,'2012-04-25',4,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:33:26',5,NULL,NULL,'2012-05-23 11:33:26'),(17,1,2017,'2012-04-25',5,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:33:35',5,NULL,NULL,'2012-05-23 11:33:35'),(18,1,2018,'2012-04-25',2,NULL,NULL,NULL,NULL,5,7,'2012-04-25 13:48:59',5,NULL,2,'2012-04-25 13:49:00'),(20,1,2020,'2012-05-23',2,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:33:46',5,NULL,NULL,'2012-05-23 11:33:45'),(21,1,2021,'2012-05-23',2,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:33:54',5,NULL,NULL,'2012-05-23 11:33:54'),(22,1,2022,'2012-05-23',1,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:34:04',5,NULL,NULL,'2012-05-23 11:34:03'),(23,1,2023,'2012-05-23',11,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:34:13',5,NULL,NULL,'2012-05-23 11:34:13'),(24,1,2024,'2012-05-23',11,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:34:22',5,NULL,NULL,'2012-05-23 11:34:22'),(25,1,2025,'2012-05-23',2,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:35:07',5,NULL,NULL,'2012-05-23 11:35:07'),(26,1,2026,'2012-05-23',1,NULL,NULL,NULL,NULL,5,7,'2012-05-23 10:34:01',5,NULL,3,'2012-05-23 10:34:01'),(27,1,2027,'2012-05-23',5,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:35:20',5,NULL,NULL,'2012-05-23 11:35:20'),(28,1,2028,'2012-05-23',1,NULL,'',NULL,NULL,5,4,'2012-05-23 11:35:31',5,4,NULL,'2012-05-23 11:35:31'),(29,1,2029,'2012-05-23',5,NULL,NULL,NULL,NULL,5,4,'2012-05-23 11:35:43',5,NULL,NULL,'2012-05-23 11:35:43');
/*!40000 ALTER TABLE `material_orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_payments`
--

DROP TABLE IF EXISTS `material_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_payments` (
  `MaterialPaymentID` int(11) NOT NULL AUTO_INCREMENT,
  `OrderID` int(11) NOT NULL,
  `PaymentDate` date DEFAULT NULL,
  `Amount` decimal(11,2) DEFAULT NULL,
  `PaymentTypeID` int(11) NOT NULL,
  `Ref1` varchar(40) DEFAULT NULL,
  `Ref2` varchar(40) DEFAULT NULL,
  `Ref3` varchar(40) DEFAULT NULL,
  PRIMARY KEY (`MaterialPaymentID`),
  KEY `idxOrderID` (`OrderID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_payments`
--

LOCK TABLES `material_payments` WRITE;
/*!40000 ALTER TABLE `material_payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `material_payments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_quote_request_status`
--

DROP TABLE IF EXISTS `material_quote_request_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_quote_request_status` (
  `QuoteRequestStatusID` smallint(6) NOT NULL,
  `QuoteRequestStatusName` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`QuoteRequestStatusID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_quote_request_status`
--

LOCK TABLES `material_quote_request_status` WRITE;
/*!40000 ALTER TABLE `material_quote_request_status` DISABLE KEYS */;
INSERT INTO `material_quote_request_status` VALUES (1,'Entering'),(2,'Awaiting Quote'),(3,'Quote Received'),(4,'Order Placed '),(5,'Quote Closed');
/*!40000 ALTER TABLE `material_quote_request_status` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `material_quote_requests`
--

DROP TABLE IF EXISTS `material_quote_requests`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `material_quote_requests` (
  `QuoteRequestID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `QuoteRequestDate` date NOT NULL,
  `SupplierID` int(11) NOT NULL,
  `SupplierRef` varchar(20) DEFAULT NULL,
  `Notes` mediumtext,
  `SupplierPartNo` varchar(20) DEFAULT NULL,
  `PartDescription` varchar(40) DEFAULT NULL,
  `UnitPrice` decimal(11,4) DEFAULT NULL,
  `QtyRequired` int(11) DEFAULT NULL,
  `QuoteRequestByID` int(11) DEFAULT NULL,
  `QuoteRequestStatusID` smallint(6) NOT NULL,
  `QuoteRequestStatusDateTime` datetime DEFAULT NULL,
  `QuoteRequestStatusUserID` int(11) DEFAULT NULL,
  `DeliveryDate` date DEFAULT NULL,
  `Delivery` decimal(11,2) DEFAULT NULL,
  `Discount` decimal(11,2) DEFAULT NULL,
  `ImportDuty` decimal(11,2) DEFAULT NULL,
  `CurrencyCharge` decimal(11,2) DEFAULT NULL,
  `OtherCharge` decimal(11,2) DEFAULT NULL,
  `JobID` int(11) DEFAULT NULL,
  `OrderID` int(11) DEFAULT NULL,
  PRIMARY KEY (`QuoteRequestID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxSupplierID` (`SupplierID`),
  KEY `idxQuoteRequestByID` (`QuoteRequestByID`),
  KEY `idxQuoteRequestStatusID` (`QuoteRequestStatusID`),
  KEY `idxQuoteRequestStatusUserID` (`QuoteRequestStatusUserID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxOrderID` (`OrderID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `material_quote_requests`
--

LOCK TABLES `material_quote_requests` WRITE;
/*!40000 ALTER TABLE `material_quote_requests` DISABLE KEYS */;
INSERT INTO `material_quote_requests` VALUES (2,1,'2012-02-13',11,NULL,NULL,'74ls','ic',NULL,10,5,2,'2012-02-13 09:35:20',5,NULL,NULL,NULL,NULL,NULL,NULL,1011,NULL);
/*!40000 ALTER TABLE `material_quote_requests` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `nominal_codes`
--

DROP TABLE IF EXISTS `nominal_codes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nominal_codes` (
  `NominalCodeID` int(11) NOT NULL AUTO_INCREMENT,
  `NominalCodeName` varchar(50) NOT NULL DEFAULT '',
  `NominalCode` char(4) NOT NULL DEFAULT '',
  `SalesLedger` tinyint(1) NOT NULL DEFAULT '0',
  `PurchaseLedger` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`NominalCodeID`),
  UNIQUE KEY `idxNominalCode` (`NominalCode`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `nominal_codes`
--

LOCK TABLES `nominal_codes` WRITE;
/*!40000 ALTER TABLE `nominal_codes` DISABLE KEYS */;
INSERT INTO `nominal_codes` VALUES (1,'Sales','0001',1,0),(2,'Purchase','0002',0,1);
/*!40000 ALTER TABLE `nominal_codes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `part_categories`
--

DROP TABLE IF EXISTS `part_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `part_categories` (
  `PartCategoryID` int(11) NOT NULL AUTO_INCREMENT,
  `PartCategoryName` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`PartCategoryID`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `part_categories`
--

LOCK TABLES `part_categories` WRITE;
/*!40000 ALTER TABLE `part_categories` DISABLE KEYS */;
INSERT INTO `part_categories` VALUES (1,'Semiconductors'),(2,'Passives'),(3,'Consumables'),(4,'Wound Components'),(5,'Other'),(6,'PC Components');
/*!40000 ALTER TABLE `part_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parts`
--

DROP TABLE IF EXISTS `parts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parts` (
  `PartID` int(11) NOT NULL AUTO_INCREMENT,
  `BranchID` int(11) NOT NULL,
  `PartDescription` varchar(40) NOT NULL DEFAULT '',
  `PartCategoryID` int(11) NOT NULL,
  `SupplierID` int(11) NOT NULL,
  `SupplierPartNo` varchar(20) DEFAULT NULL,
  `Location` varchar(12) DEFAULT NULL,
  `QtyInStock` int(11) NOT NULL DEFAULT '0',
  `UnitPrice` decimal(11,4) DEFAULT NULL,
  `MinStockLevel` int(11) DEFAULT NULL COMMENT 'Zero means it''s a non-stock item',
  `PreferredOrderQty` int(11) DEFAULT NULL,
  `SupplierSupplyMultiple` int(11) DEFAULT NULL,
  `SupplyMultiple` int(11) DEFAULT NULL,
  `LastUsed` date DEFAULT NULL,
  `Discontinued` tinyint(1) NOT NULL DEFAULT '0',
  `DateDiscontinued` date DEFAULT NULL,
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `LastUpdatedUserID` int(11) DEFAULT NULL,
  `PartDescAlphanumeric` varchar(20) DEFAULT NULL,
  `PartDescNumeric` varchar(20) DEFAULT NULL,
  `SupplierPartNoAlphanumeric` varchar(20) DEFAULT NULL,
  `SupplierPartNoNumeric` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`PartID`),
  KEY `idxPartCategoryID` (`PartCategoryID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxSupplierID` (`SupplierID`),
  KEY `idxLastUpdatedUserID` (`LastUpdatedUserID`),
  KEY `idxPartDescAlphanumeric` (`PartDescAlphanumeric`),
  KEY `idxPartDescNumeric` (`PartDescNumeric`),
  KEY `idxPartDescription` (`PartDescription`),
  KEY `idxSupplierPartNo` (`SupplierPartNo`),
  KEY `idxSupplierPartNoAlphanumeric` (`SupplierPartNoAlphanumeric`),
  KEY `idxSupplierPartNoNumeric` (`SupplierPartNoNumeric`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parts`
--

LOCK TABLES `parts` WRITE;
/*!40000 ALTER TABLE `parts` DISABLE KEYS */;
INSERT INTO `parts` VALUES (1,1,'74LS08',1,1,'74-LS-08','A',46,'0.0800',10,10,10,NULL,'2012-02-12',0,NULL,NULL,1,'74LS08','7408','74LS08','7408'),(2,1,'Extra Long Life Lithium Batteries AA 4Pk',3,6,'N28GG','BBB',4,'4.9900',1,3,1,NULL,NULL,0,NULL,'2012-02-09 16:46:59',5,'ExtraLongLifeLithium','4','N28GG','28'),(3,1,'CAT 6 UTP Patch Cable Black 1m',3,6,'A80CF','CAB',5,'6.9900',1,3,1,NULL,NULL,0,NULL,'2012-02-09 16:49:27',5,'CAT6UTPPatchCableBla','61','A80CF','80'),(4,1,'Signal Diode 1N914',1,6,'QL71N','DI04',6,'0.4900',3,10,1,NULL,'2012-02-12',0,NULL,'2012-02-09 16:50:44',5,'SignalDiode1N914','1914','QL71N','71'),(5,1,'Capacitor Al 105deg 10uF 450V 12.5x20',2,1,'703-5173','CP05',8,'0.5780',3,5,5,NULL,'2012-04-25',0,NULL,'2012-02-09 16:54:34',5,'CapacitorAl105deg10u','1051045012520','7035173','7035173'),(6,1,'Al cap Radial BT series 100V 220uF',2,1,'715-1798','CP03',3,'1.4200',1,5,5,NULL,NULL,0,NULL,'2012-02-09 16:56:42',5,'AlcapRadialBTseries1','100220','7151798','7151798'),(7,1,'MF25 1K - RESISTOR, 0.25W 1% 1K',2,2,'RE03722','RS04',80,'0.4800',3,10,1,NULL,'2012-05-23',0,NULL,'2012-02-09 16:59:27',5,'MF251KRESISTOR025W11','25102511','RE03722','03722'),(8,1,'MCF 1W 1K - RESISTOR, 1W 5% 1K',2,2,'RE04050','RS07',20,'0.0500',2,20,10,NULL,'2012-05-22',0,NULL,'2012-02-09 17:04:40',5,'MCF1W1KRESISTOR1W51K','11151','RE04050','04050'),(9,1,'2N3866 - RF POWER TRANS, NPN 30V 800MHZ',1,4,'1713230','TR07',3,'5.0100',2,2,1,NULL,'2012-04-25',0,NULL,'2012-02-09 17:07:36',5,'2N3866RFPOWERTRANSNP','2386630800','1713230','1713230'),(10,1,'2N3904 - RF TRANSISTOR, NPN, 40V, 300MHZ',1,4,'3952630','TR07',10,'0.2000',3,10,1,NULL,'2012-04-25',0,NULL,'2012-02-09 17:08:38',5,'2N3904RFTRANSISTORNP','2390440300','3952630','3952630'),(11,1,'Gt Thermistor 1k 3%',2,5,'61-0440','TM01',2,'0.9430',1,3,1,NULL,'2012-05-23',0,NULL,'2012-02-09 17:11:52',5,'GtThermistor1k3','13','610440','610440'),(12,1,'Ne555 Single Timer',1,5,'82-0336','TI06',5,'0.1740',3,5,1,NULL,'2012-05-23',0,NULL,'2012-02-09 17:13:39',5,'Ne555SingleTimer','555','820336','820336'),(13,1,'Lt1070ct Switching Reg 5a To-220-5',1,5,'82-1108','VR02',2,'8.5200',1,1,1,NULL,'2012-04-25',0,NULL,'2012-02-09 17:16:16',5,'Lt1070ctSwitchingReg','107052205','821108','821108'),(14,1,'Ne5534p Low Noise Op Amp',1,5,'82-0734','OP08',5,'0.4000',3,5,1,NULL,NULL,0,NULL,'2012-02-09 17:18:12',5,'Ne5534pLowNoiseOpAmp','5534','820734','820734'),(15,1,'L-7113id-5v 5mm 5v He Red Led',1,5,'56-1500','LED04',9,'0.1440',5,10,1,NULL,'2012-02-12',0,NULL,'2012-02-09 17:21:35',5,'L7113id5v5mm5vHeRedL','7113555','561500','561500'),(16,1,'1.0mm x 1m Carbon Rod',5,7,'CARBON-ROD-1MM','CB01',2,'0.9900',1,5,1,NULL,'2012-02-10',0,NULL,'2012-02-09 17:26:29',5,'10mmx1mCarbonRod','101','CARBONROD1MM','1'),(17,1,'4mm x 1mm x 1.5m Carbon Strip',5,7,'CARBON-STRIP-410','CB01',1,'3.2500',1,3,1,NULL,NULL,0,NULL,'2012-02-09 17:42:36',5,'4mmx1mmx15mCarbonStr','4115','CARBONSTRIP410','410'),(18,1,'3.0mm x 1m Carbon Tube',5,7,'CARBON-TUBE-3MM','CB01',3,'1.9500',2,5,1,NULL,NULL,0,NULL,'2012-02-09 17:43:17',5,'30mmx1mCarbonTube','301','CARBONTUBE3MM','3'),(19,1,'18 SWG Piano Wire',5,7,'PIANO-WIRE-18','WR02',5,'0.5600',3,5,1,NULL,NULL,0,NULL,'2012-02-09 17:44:22',5,'18SWGPianoWire','18','PIANOWIRE18','18'),(20,1,'ZAP a Gap CA+ 1oz Bottle',5,7,'ZAP-A-GAP-1OZ','GL03',1,'4.6500',0,1,1,NULL,NULL,0,NULL,'2012-02-09 17:45:19',5,'ZAPaGapCA1ozBottle','1','ZAPAGAP1OZ','1'),(21,1,'1.4mm PTFE (Bondable Teflon) Pushrod Out',5,7,'PTFE-TUBE-14MM','TB04',2,'1.9500',1,3,1,NULL,NULL,0,NULL,'2012-02-09 17:47:04',5,'14mmPTFEBondableTefl','14','PTFETUBE14MM','14'),(22,1,'MSI GTX 560 Ti 1024MB DDR5 TWIN FROZR II',6,10,'280613','PC04',1,'157.0400',1,1,1,NULL,NULL,0,NULL,'2012-02-10 12:17:53',5,'MSIGTX560Ti1024MBDDR','56010245','280613','280613'),(23,1,'Gigabyte Z68XP-UD3 Intel Z68 (Socket 11.',6,9,'MB-368-GI','NONE',0,'83.3200',0,1,1,NULL,NULL,0,NULL,'2012-02-10 12:24:36',5,'GigabyteZ68XPUD3Inte','6836811','MB368GI','368'),(24,1,'Intel Core i7-2700K 3.50GHz Processor',6,8,'CPU-I755-BX80623I727','PC05',1,'209.9900',1,1,1,NULL,'2012-02-10',0,NULL,'2012-02-10 12:26:00',5,'IntelCorei72700K350G','72700350','CPUI755BX80623I727','75580623727'),(25,1,'OCZ Vertex 3 120GB 2.5\" SATA-III Solid S',6,8,'HDR-SSD-VTX3-25SAT3-','PC07',1,'116.6600',1,1,1,NULL,NULL,0,NULL,'2012-02-10 12:28:47',5,'OCZVertex3120GB25SAT','312025','HDRSSDVTX325SAT3','3253'),(26,1,'ls741',1,11,'234-564','D2D',76,'0.2300',5,10,10,NULL,'2012-02-11',0,NULL,'2012-02-11 14:41:59',5,'ls741','741','234564','234564');
/*!40000 ALTER TABLE `parts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parts_distribution_lines`
--

DROP TABLE IF EXISTS `parts_distribution_lines`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parts_distribution_lines` (
  `DistributionLineID` int(11) NOT NULL AUTO_INCREMENT,
  `DistributionListID` int(11) NOT NULL,
  `Qty` int(11) NOT NULL,
  `PartID` int(11) DEFAULT NULL,
  `JobMaterialID` int(11) DEFAULT NULL,
  `JobID` int(11) DEFAULT NULL,
  `OrderLineID` int(11) DEFAULT NULL,
  PRIMARY KEY (`DistributionLineID`),
  KEY `idxPartID` (`PartID`),
  KEY `idxDistribListID` (`DistributionListID`),
  KEY `idxJobID` (`JobID`),
  KEY `idxJobMaterialID` (`JobMaterialID`),
  KEY `idxOrderLineID` (`OrderLineID`)
) ENGINE=MyISAM AUTO_INCREMENT=75 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parts_distribution_lines`
--

LOCK TABLES `parts_distribution_lines` WRITE;
/*!40000 ALTER TABLE `parts_distribution_lines` DISABLE KEYS */;
INSERT INTO `parts_distribution_lines` VALUES (1,1,1,1,2,1003,NULL),(2,2,1,16,3,1006,NULL),(3,3,1,NULL,4,1006,1),(4,4,1,5,5,1007,NULL),(5,4,2,7,6,1007,NULL),(6,5,1,24,7,1009,NULL),(7,6,1,12,12,1004,NULL),(8,7,2,8,11,1010,3),(9,7,2,6,10,1010,8),(10,7,18,8,NULL,NULL,3),(11,7,3,6,NULL,NULL,8),(12,8,1,26,14,1011,NULL),(13,9,10,4,17,1011,NULL),(14,10,4,1,18,1011,NULL),(15,11,5,26,15,1011,15),(16,11,7,15,19,1011,NULL),(17,12,2,10,21,1009,NULL),(18,12,1,12,22,1009,NULL),(20,14,1,5,23,1004,NULL),(24,18,18,7,36,1011,NULL),(25,19,2,7,36,1011,47),(26,19,8,7,NULL,NULL,47),(29,22,1,11,48,1011,NULL),(30,23,1,1,18,1011,67),(31,23,10,1,20,1011,67),(32,23,1,1,35,1011,67),(33,23,18,1,50,1011,67),(35,24,1,9,NULL,NULL,11),(36,25,2,26,13,1005,14),(38,26,1,15,19,1011,26),(39,26,4,12,NULL,NULL,24),(40,26,5,14,NULL,NULL,25),(41,26,9,15,NULL,NULL,26),(42,28,1,NULL,1,1005,29),(43,28,1,NULL,25,1004,36),(44,28,1,25,8,1009,17),(45,28,2,4,17,1011,20),(46,28,1,4,39,1011,20),(47,28,1,4,38,1011,20),(48,28,1,23,9,1009,22),(49,28,1,11,48,1011,70),(50,28,1,26,14,1011,28),(51,28,10,26,16,1011,28),(52,28,2,26,37,1011,28),(53,28,1,26,24,1004,28),(54,28,12,1,50,1011,30),(55,28,2,1,26,1015,30),(56,28,1,24,NULL,NULL,16),(57,28,1,25,NULL,NULL,17),(58,28,6,4,NULL,NULL,20),(59,28,6,26,NULL,NULL,28),(60,28,6,1,NULL,NULL,30),(61,28,10,1,NULL,NULL,33),(62,28,5,5,NULL,NULL,38),(63,28,2,9,NULL,NULL,41),(64,28,10,10,NULL,NULL,42),(65,28,2,13,NULL,NULL,45),(66,28,10,7,NULL,NULL,52),(67,28,20,8,NULL,NULL,53),(68,28,50,7,NULL,NULL,56),(69,28,30,1,NULL,NULL,59),(70,28,20,26,NULL,NULL,62),(71,28,50,26,NULL,NULL,63),(72,28,20,7,NULL,NULL,64),(73,28,2,11,NULL,NULL,70),(74,28,5,12,NULL,NULL,74);
/*!40000 ALTER TABLE `parts_distribution_lines` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parts_distribution_lists`
--

DROP TABLE IF EXISTS `parts_distribution_lists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parts_distribution_lists` (
  `DistributionListID` int(11) NOT NULL AUTO_INCREMENT,
  `DateTimeCreated` datetime NOT NULL,
  `ListType` char(1) DEFAULT NULL,
  `CreatedByID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`DistributionListID`),
  KEY `idxBranchID` (`BranchID`),
  KEY `idxCreatedByID` (`CreatedByID`)
) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parts_distribution_lists`
--

LOCK TABLES `parts_distribution_lists` WRITE;
/*!40000 ALTER TABLE `parts_distribution_lists` DISABLE KEYS */;
INSERT INTO `parts_distribution_lists` VALUES (1,'2011-12-16 20:17:06','P',1,1),(2,'2012-02-10 12:41:49','P',5,1),(3,'2012-02-10 13:14:33','D',5,1),(4,'2012-02-10 13:41:24','P',2,1),(5,'2012-02-10 14:14:46','P',2,1),(6,'2012-02-10 14:34:11','P',2,1),(7,'2012-02-10 15:06:32','D',4,1),(8,'2012-02-11 14:59:16','P',5,1),(9,'2012-02-12 08:32:34','P',5,1),(10,'2012-02-12 08:33:58','P',5,1),(11,'2012-02-12 08:42:26','D',5,1),(12,'2012-03-23 12:00:19','P',1,1),(13,'2012-04-25 08:50:38','P',5,1),(14,'2012-04-25 08:54:18','D',5,1),(15,'2012-04-25 12:15:10','P',5,1),(16,'2012-04-25 12:16:44','P',5,1),(17,'2012-04-25 12:22:21','P',5,1),(18,'2012-04-25 12:26:17','P',5,1),(19,'2012-04-25 13:42:35','D',5,1),(20,'2012-05-22 14:23:39','P',5,1),(21,'2012-05-23 09:23:15','P',5,1),(22,'2012-05-23 09:46:47','P',5,1),(23,'2012-05-23 10:29:00','D',5,1),(24,'2012-05-23 10:39:20','D',5,1),(25,'2012-05-23 11:09:26','D',5,1),(26,'2012-05-23 11:24:04','D',5,1),(27,'2012-05-23 11:25:49','P',5,1),(28,'2013-08-07 11:01:54','D',5,1);
/*!40000 ALTER TABLE `parts_distribution_lists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parts_taken_log`
--

DROP TABLE IF EXISTS `parts_taken_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parts_taken_log` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PartID` int(11) NOT NULL,
  `DateTimeTaken` datetime NOT NULL,
  `QtyInStock` int(11) NOT NULL,
  `QtyTaken` int(11) NOT NULL,
  `JobID` int(11) NOT NULL,
  `UserID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `idxPartID` (`PartID`),
  KEY `idxJobID` (`JobID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parts_taken_log`
--

LOCK TABLES `parts_taken_log` WRITE;
/*!40000 ALTER TABLE `parts_taken_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `parts_taken_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parts_viewed_log`
--

DROP TABLE IF EXISTS `parts_viewed_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parts_viewed_log` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PartID` int(11) NOT NULL,
  `DateTimeViewed` datetime NOT NULL,
  `QtyInStock` int(11) NOT NULL,
  `UserID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `idxPartID` (`PartID`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parts_viewed_log`
--

LOCK TABLES `parts_viewed_log` WRITE;
/*!40000 ALTER TABLE `parts_viewed_log` DISABLE KEYS */;
INSERT INTO `parts_viewed_log` VALUES (1,5,'2012-02-09 16:56:47',5,5,1),(2,4,'2012-02-09 17:19:07',10,5,1),(3,14,'2012-02-09 17:20:35',0,5,1),(4,23,'2012-02-10 12:26:53',0,5,1),(5,1,'2012-02-11 14:56:20',4,5,1),(6,26,'2012-04-25 10:21:58',0,5,1),(7,10,'2012-04-25 10:22:57',2,1,1),(8,26,'2012-04-25 10:23:05',0,5,1),(9,1,'2012-04-25 10:23:59',0,5,1),(10,9,'2012-04-25 10:28:41',0,1,1),(11,9,'2012-04-25 10:31:43',0,1,1),(12,10,'2012-04-25 10:31:59',2,5,1),(13,10,'2012-04-25 10:33:10',2,1,1);
/*!40000 ALTER TABLE `parts_viewed_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `payment_types`
--

DROP TABLE IF EXISTS `payment_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_types` (
  `PaymentTypeID` int(11) NOT NULL AUTO_INCREMENT,
  `PaymentTypeName` varchar(20) DEFAULT NULL,
  `Ref1Label` varchar(40) DEFAULT NULL,
  `Ref2Label` varchar(40) DEFAULT NULL,
  `Ref3Label` varchar(40) DEFAULT NULL,
  `Ref1Required` tinyint(1) NOT NULL DEFAULT '0',
  `Ref2Required` tinyint(1) NOT NULL DEFAULT '0',
  `Ref3Required` tinyint(1) NOT NULL DEFAULT '0',
  `SortOrder` int(11) DEFAULT NULL,
  PRIMARY KEY (`PaymentTypeID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `payment_types`
--

LOCK TABLES `payment_types` WRITE;
/*!40000 ALTER TABLE `payment_types` DISABLE KEYS */;
INSERT INTO `payment_types` VALUES (1,'Credit Card','Card No (last 4 digits)','Ref',NULL,0,0,0,10),(2,'Cheque','Cheque No',NULL,NULL,1,0,0,20),(3,'Cash','',NULL,NULL,0,0,0,30),(4,'Other','Ref1','Ref2','Ref3',0,0,0,40);
/*!40000 ALTER TABLE `payment_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `printers`
--

DROP TABLE IF EXISTS `printers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `printers` (
  `PrinterID` int(11) NOT NULL AUTO_INCREMENT,
  `PrinterName` varchar(100) NOT NULL DEFAULT '',
  `Location` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`PrinterID`),
  UNIQUE KEY `PrinterName` (`PrinterName`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `printers`
--

LOCK TABLES `printers` WRITE;
/*!40000 ALTER TABLE `printers` DISABLE KEYS */;
INSERT INTO `printers` VALUES (1,'Default',''),(2,'Label',NULL),(3,'Laser',NULL),(4,'Invoice','');
/*!40000 ALTER TABLE `printers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `problem_reasons`
--

DROP TABLE IF EXISTS `problem_reasons`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `problem_reasons` (
  `ProblemReasonID` int(11) NOT NULL AUTO_INCREMENT,
  `ProblemReasonName` varchar(20) DEFAULT NULL,
  `SortOrder` int(11) DEFAULT NULL,
  PRIMARY KEY (`ProblemReasonID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `problem_reasons`
--

LOCK TABLES `problem_reasons` WRITE;
/*!40000 ALTER TABLE `problem_reasons` DISABLE KEYS */;
INSERT INTO `problem_reasons` VALUES (1,'Discontinued',10),(2,'No stock',20),(3,'Missed from order',30);
/*!40000 ALTER TABLE `problem_reasons` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `report_criteria`
--

DROP TABLE IF EXISTS `report_criteria`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_criteria` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `ReportID` int(11) NOT NULL,
  `SQLSelectNo` char(1) NOT NULL DEFAULT '',
  `TokenName` varchar(50) DEFAULT NULL,
  `SortOrder` int(11) DEFAULT NULL,
  `Prompt` varchar(100) DEFAULT NULL,
  `DefaultValue` varchar(100) DEFAULT NULL,
  `InputType` varchar(20) DEFAULT NULL,
  `ValueList` mediumtext,
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `idxSQLSelectNoReportIDTokenName` (`SQLSelectNo`,`ReportID`,`TokenName`),
  KEY `idxReportID` (`ReportID`)
) ENGINE=MyISAM AUTO_INCREMENT=206 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `report_criteria`
--

LOCK TABLES `report_criteria` WRITE;
/*!40000 ALTER TABLE `report_criteria` DISABLE KEYS */;
INSERT INTO `report_criteria` VALUES (7,1,'','START',0,'Start Name','','ComboBoxSQL','SELECT UserName FROM users ORDER BY UserName','0000-00-00 00:00:00'),(16,1,'','END',0,'End Name','','ComboBoxSQL','SELECT UserName FROM users ORDER BY UserName','0000-00-00 00:00:00'),(18,3,'','FROMJOBID',10,'From Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(19,3,'','TOJOBID',20,'To Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(24,6,'1','JOBID',10,'To Job ID','1000','Text',NULL,'2007-08-08 17:08:54'),(26,3,'','LABELTYPE',0,'Label Type','Fault Details','ComboBox','Fault Details\r\nCustomer Instruction\r\nBoth','0000-00-00 00:00:00'),(27,6,'','QUOTETYPE',0,'Quote Type','Quotation','ComboBox','Quotation\r\nQuotation Reminder\r\nOrder Number Request','0000-00-00 00:00:00'),(28,7,'','JOBID',0,'Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(32,9,'','JOBID',0,'Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(34,10,'','JOBID',0,'Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(35,6,'2','QUOTELOGID',10,'Quote Log ID','26','Text',NULL,'0000-00-00 00:00:00'),(36,11,'','JOBID',0,'JobID','100001','Text',NULL,'0000-00-00 00:00:00'),(37,12,'1','MANIFESTID',0,'Manifest ID','26','Text',NULL,'0000-00-00 00:00:00'),(38,16,'','INVOICEBATCHID',0,'Invoice Batch ID','3','Text',NULL,'2008-11-04 13:01:42'),(39,13,'','JOBID',0,'Job ID','100001','Text',NULL,'0000-00-00 00:00:00'),(40,7,'','TYPE',0,'Type','Normal','ComboBox','Normal\r\nTransferTo\r\nTransferBack','0000-00-00 00:00:00'),(41,25,'','DISTRIBUTIONLISTID',0,'Distribution List ID','1','Text',NULL,'2008-08-28 15:21:03'),(42,26,'','DISTRIBUTIONLISTID',0,'Distribution List ID','26','Text',NULL,'2008-09-04 12:55:38'),(43,27,'','DISTRIBUTIONLISTID',0,'Distribution List ID','29','Text',NULL,'2008-09-04 14:21:09'),(44,28,'','MATERIALINVOICELISTID',0,'Material Invoice List ID','56','Text',NULL,'2008-11-07 02:18:27'),(45,29,'','QUOTEREQUESTID',0,'Quote Request ID','1','Text',NULL,'2008-09-16 11:53:27'),(46,30,'','MATERIALINVOICELISTID',0,'Material Invoice List ID','56','Text',NULL,'2008-11-07 02:26:43'),(47,31,'','ORDERID',0,'Order ID','12153','Text',NULL,'2008-11-26 18:26:05'),(48,38,'','DISTRIBUTIONLISTID',0,'Distribution List ID','48','Text',NULL,'2011-04-01 16:51:20'),(53,102,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(54,102,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(55,102,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:48'),(56,103,'','JOBID',0,'Please enter Job ID',NULL,'Text',NULL,'2012-01-18 14:39:48'),(57,104,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:48'),(58,104,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(59,104,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(60,105,'','YEAR',0,'Year?','2006','Text',NULL,'2012-01-18 14:39:48'),(61,105,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:48'),(62,106,'','YEAR',0,'Year?','2009','Text',NULL,'2012-01-18 14:39:48'),(63,106,'','GROUPNAME',0,'Operations Group?',NULL,'ComboBoxSQL','SELECT GroupName FROM groups ORDER BY GroupName ASC','2012-01-18 14:39:48'),(64,107,'','BRANCHNAME',0,'Please select Commercial Branch',NULL,'ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchid ASC','2012-01-18 14:39:48'),(65,108,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:48'),(66,108,'','JOBTYPE',0,'Job Type?','Electronic Repair','ComboBoxSQL','SELECT JobType FROM job_types ORDER BY JobType ASC','2012-01-18 14:39:48'),(67,108,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(68,108,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(69,109,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(70,109,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(71,110,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(72,110,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(73,111,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(74,111,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:48'),(75,112,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:48'),(77,114,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(78,114,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(79,114,'','BRANCHIDS',0,'BranchID(s) - Comma separated','1','Text',NULL,'2012-01-18 14:39:49'),(80,115,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(81,115,'','ENDDATE',0,'End Date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(82,115,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(83,116,'','ENDDATE',0,'Select date for report to end',NULL,'Date',NULL,'2012-01-18 14:39:49'),(84,116,'','BRANCHNAME',0,'Branch?',NULL,'ComboBoxSQL','select branchname from branches order by branchid','2012-01-18 14:39:49'),(85,117,'','ENDDATE',0,'Select date for report to end',NULL,'Date',NULL,'2012-01-18 14:39:49'),(86,117,'','BRANCHNAME',0,'Select branch:',NULL,'ComboBoxSQL','select branchname from branches order by branchname asc','2012-01-18 14:39:49'),(87,118,'','BRANCHNAME',0,'Branch?',NULL,'ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(88,119,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(89,120,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','select branchname from branches order by branchname asc','2012-01-18 14:39:49'),(90,120,'','STARTDATE',0,'Start date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(91,120,'','ENDDATE',0,'End date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(92,121,'','BRANCH',0,'Branch?',NULL,'ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(93,122,'','CATEGORYNAME',0,'Equipment Category?',NULL,'ComboBoxSQL','SELECT CategoryName FROM categories ORDER BY CategoryName ASC','2012-01-18 14:39:49'),(94,122,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(95,122,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(96,123,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(97,124,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','select branchname from branches order by branchid','2012-01-18 14:39:49'),(98,125,'','BRANCHNAME',0,'Branch?',NULL,'ComboBoxSQL','select branchname from branches order by branchid','2012-01-18 14:39:49'),(102,127,'','NOWDATE',0,'Set todays date: past or futue.',NULL,'Date',NULL,'2012-01-18 14:39:49'),(103,127,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(104,128,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(105,128,'','NOWDATE',0,'Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(106,129,'1','DATENOW',0,'Enter the date to run the report as. This date can be in the future!',NULL,'Date',NULL,'2012-01-18 14:39:49'),(107,130,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(108,130,'','NOWDATE',0,'Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(109,131,'','NOWDATE',0,'Report Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(110,131,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(111,132,'','BRANCHNAME',0,'Select Branch','Aldridge','ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchname ASC','2012-01-18 14:39:49'),(112,132,'','NOWDATE',0,'Set todays date: past or futue.',NULL,'Date',NULL,'2012-01-18 14:39:49'),(113,133,'','NOWDATE',0,'Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(114,133,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(115,134,'','NOWDATE',0,'Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(116,134,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(117,135,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(118,136,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(119,137,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(120,138,'','SUPPLIERNAME',20,'Supplier Name?',NULL,'Text',NULL,'2012-01-18 14:39:49'),(121,138,'','BRANCHNAME',10,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(122,139,'','START',0,'Start Date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(123,139,'','BRANCHNAME',0,'Branch?',NULL,'ComboBoxSQL','select branchname from branches order by branchid asc','2012-01-18 14:39:49'),(124,139,'','END',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(125,140,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(126,140,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(127,140,'','BRANCHNAME',0,'Please select the branch to run this report for',NULL,'ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchID ASC','2012-01-18 14:39:49'),(128,141,'','STARTDATE',0,'Please enter start date of report',NULL,'Date',NULL,'2012-01-18 14:39:49'),(129,141,'','ENDDATE',0,'Please enter finishing date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(130,141,'','BRANCHNAME',0,'Please select branch to run this report on',NULL,'ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchname ASC','2012-01-18 14:39:49'),(131,142,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(132,142,'','ENDDATE',0,'End date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(133,142,'','BRANCHNAME',0,'Branch?',NULL,'ComboBoxSQL','select branchname from branches order by branchid','2012-01-18 14:39:49'),(134,143,'','STARTDATE',0,'Please enter start date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(135,143,'','ENDDATE',0,'Please enter finishing date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(136,143,'','BRANCHNAME',0,'Please select the branch that you want to run the report on',NULL,'ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchid ASC','2012-01-18 14:39:49'),(137,144,'','STARTDATE',0,'Please enter start date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(138,144,'','ENDDATE',0,'Please enter finishing date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(139,144,'','BRANCHNAME',0,'Please select the branch that you want to run',NULL,'ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchid','2012-01-18 14:39:49'),(140,145,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(141,146,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(142,146,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(143,146,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(144,147,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(145,147,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(146,148,'','JOBTYPE',0,'Choose Job Type',NULL,'ComboBoxSQL','SELECT jobtype FROM job_types ORDER BY jobtypeid ASC','2012-01-18 14:39:49'),(147,148,'','BRANCHNAME',0,'Choose Repairing Branch',NULL,'ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchid ASC','2012-01-18 14:39:49'),(148,148,'','STARTDATE',0,'Select start date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(149,148,'','ENDDATE',0,'Select end date',NULL,'Date',NULL,'2012-01-18 14:39:49'),(150,149,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(151,149,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(152,149,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(153,150,'','JOBID',0,'Please enter Job ID',NULL,'Text',NULL,'2012-01-18 14:39:49'),(154,152,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:49'),(155,153,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT branchname FROM branches ORDER BY branchname ASC','2012-01-18 14:39:49'),(156,154,'','CUSTOMERID',0,'CustomerID?','2660','Text',NULL,'2012-01-18 14:39:49'),(157,154,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(158,154,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:49'),(159,155,'','SALESPERSON',0,'Sales Person',NULL,'ComboBoxSQL','SELECT DISTINCT(Salesperson) FROM sales_areas WHERE Salesperson<>\"\" ORDER BY Salesperson ASC','2012-01-18 14:39:49'),(160,156,'','USEDFOR',0,'Used us for...',NULL,'ComboBoxSQL','SELECT CategoryName FROM categories ORDER BY CategoryName ASC','2012-01-18 14:39:50'),(161,156,'','NOTUSEDFOR',0,'But not used us for...',NULL,'ComboBoxSQL','SELECT CategoryName FROM categories ORDER BY CategoryName ASC','2012-01-18 14:39:50'),(162,157,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(163,157,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(164,157,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','select branchname from branches order by branchname asc','2012-01-18 14:39:50'),(165,158,'','BRANCH',0,'Select Commercial Branch','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:50'),(166,159,'','SALESAREANAME',0,'Sales Area?',NULL,'ComboBoxSQL','SELECT SalesAreaName FROM sales_areas ORDER BY SalesAreaName ASC','2012-01-18 14:39:50'),(167,159,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(168,159,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(169,160,'','BRANCHNAME',0,'Branch?','Website','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:50'),(170,160,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(171,160,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(172,161,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(173,161,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(174,162,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(175,162,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(176,163,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(177,163,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(178,164,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(179,164,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(180,165,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(181,165,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(182,166,'','CATEGORYNAME',0,'Equipment Category?',NULL,'ComboBoxSQL','SELECT CategoryName FROM categories ORDER BY CategoryName ASC','2012-01-18 14:39:50'),(183,166,'','SALESPERSON',0,'Sales Person?',NULL,'ComboBoxSQL','SELECT DISTINCT(SalesPerson) FROM sales_areas ORDER BY SalesPerson ASC','2012-01-18 14:39:50'),(184,166,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(185,166,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(186,167,'','STARTDATE',0,'Start?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(187,167,'','ENDDATE',0,'Finish?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(188,167,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','select branchname from branches order by branchname asc','2012-01-18 14:39:50'),(189,168,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(190,168,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(191,169,'','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(192,169,'','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(193,171,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(194,171,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(195,172,'','NOWDATE',0,'Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(196,172,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:50'),(197,173,'1','STARTDATE',0,'Start Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(198,173,'1','ENDDATE',0,'End Date?',NULL,'Date',NULL,'2012-01-18 14:39:50'),(199,174,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:50'),(200,175,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:39:50'),(203,12,'2','JOBID',0,'JobID','10001','Text',NULL,'2012-05-29 20:21:20'),(204,181,'','DAYS',0,'Haven\'t booked for this many days','65','Text',NULL,'2013-08-13 16:47:48'),(205,181,'','BRANCHNAME',0,'Branch?','Aldridge','ComboBoxSQL','SELECT BranchName FROM branches ORDER BY BranchName ASC','2012-01-18 14:59:48');
/*!40000 ALTER TABLE `report_criteria` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `report_groups`
--

DROP TABLE IF EXISTS `report_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_groups` (
  `ReportGroupID` int(11) NOT NULL AUTO_INCREMENT,
  `ReportGroupName` varchar(80) NOT NULL DEFAULT '',
  `ReportDatabase` enum('Primary','Secondary') NOT NULL DEFAULT 'Primary',
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ReportGroupID`),
  UNIQUE KEY `ReportGroupName` (`ReportGroupName`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `report_groups`
--

LOCK TABLES `report_groups` WRITE;
/*!40000 ALTER TABLE `report_groups` DISABLE KEYS */;
INSERT INTO `report_groups` VALUES (1,'Internal','Primary',5),(2,'Other','Primary',10),(3,'Test','Primary',0),(4,'Accounts Department','Primary',0),(5,'Budget','Primary',0),(6,'Incoming Jobs','Primary',0),(7,'Material Orders','Primary',0),(8,'Month End','Primary',0),(9,'Overdue Jobs','Primary',0),(10,'Overdue Quotes','Primary',0),(11,'Parts Stock','Primary',0),(12,'Productivity','Primary',0),(13,'Sales','Primary',0),(14,'Warranties','Primary',0);
/*!40000 ALTER TABLE `report_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `report_multi`
--

DROP TABLE IF EXISTS `report_multi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_multi` (
  `MultiReportID` int(11) NOT NULL AUTO_INCREMENT,
  `ReportID` int(11) DEFAULT NULL,
  `BranchID` int(11) DEFAULT NULL,
  `LanguageID` int(11) DEFAULT NULL,
  `ReportFile` longblob,
  `EmailSubject` varchar(100) DEFAULT NULL,
  `EmailTemplate` mediumtext,
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`MultiReportID`),
  UNIQUE KEY `idxReportIDBranchIDLanguageID` (`ReportID`,`BranchID`,`LanguageID`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `report_multi`
--

LOCK TABLES `report_multi` WRITE;
/*!40000 ALTER TABLE `report_multi` DISABLE KEYS */;
INSERT INTO `report_multi` VALUES (19,8,1,1,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.9\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40560.8118974653\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C22000000204E616D653D227374724272616E6368507265666978222056616C75653D2227272200010C20000000204E616D653D227374724272616E63684E616D65222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"135.6141\" Height=\"24\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Default Report\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"41.57483\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsCustomerOrderNo\" Left=\"0\" Top=\"3.77953\" Width=\"279.68522\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerChasing\" Left=\"328.81911\" Top=\"3.77953\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CustomerChasing\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerChasing&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','Test','Just testing','2011-01-17 19:30:58');
/*!40000 ALTER TABLE `report_multi` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `reports`
--

DROP TABLE IF EXISTS `reports`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reports` (
  `ReportID` int(11) NOT NULL AUTO_INCREMENT,
  `ReportName` varchar(100) NOT NULL DEFAULT '',
  `SortOrder` smallint(6) NOT NULL DEFAULT '0',
  `ReportGroupID` int(11) DEFAULT NULL,
  `MinAccessLevel` smallint(6) NOT NULL DEFAULT '0',
  `ShowInMenu` tinyint(1) NOT NULL DEFAULT '1',
  `ShowPreview` tinyint(1) NOT NULL DEFAULT '1',
  `PrintIfEmpty` tinyint(1) NOT NULL DEFAULT '0',
  `LargeReportCheck` tinyint(1) NOT NULL DEFAULT '1',
  `DefaultPrinterID` int(11) DEFAULT NULL,
  `MinRecsLarge` int(11) DEFAULT NULL,
  `MinRecsVeryLarge` int(11) DEFAULT NULL,
  `SQLSelect1` mediumtext,
  `SQLSelect2` mediumtext,
  `ReportFile` longblob,
  `EmailType` enum('None','Plain','HTML','Plain with PDF','HTML with PDF') NOT NULL DEFAULT 'None',
  `EmailSubject` varchar(100) DEFAULT NULL,
  `EmailTemplate` mediumtext,
  `MultiEnabled` tinyint(1) NOT NULL DEFAULT '0',
  `MultiBranchField` varchar(32) DEFAULT NULL,
  `MultiLanguageField` varchar(32) DEFAULT NULL,
  `Notes` mediumtext,
  `UsageCount` int(11) NOT NULL DEFAULT '0',
  `LastRun` datetime DEFAULT NULL,
  `LastUpdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ReportID`),
  UNIQUE KEY `idxReportName` (`ReportName`)
) ENGINE=MyISAM AUTO_INCREMENT=182 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `reports`
--

LOCK TABLES `reports` WRITE;
/*!40000 ALTER TABLE `reports` DISABLE KEYS */;
INSERT INTO `reports` VALUES (1,'User List',0,2,5,0,1,0,1,1,NULL,NULL,'SELECT * FROM users WHERE UserName >= \"[START]\" AND UserName <= \"[END]\"\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40863.5595222338\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1B000000204E616D653D22746B6E5354415254222056616C75653D2227272200010C19000000204E616D653D22746B6E454E44222056616C75653D2227272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"548.03185\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"7.55906\" Width=\"279.68522\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"User List\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"56.69295\" Width=\"162.51979\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"User Name\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"291.02381\" Top=\"56.69295\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Rate A\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"381.73253\" Top=\"56.69295\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Rate B\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"476.22078\" Top=\"56.69295\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Rate C\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"570.70903\" Top=\"56.69295\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Abbrev\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"653.85869\" Top=\"56.69295\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Active\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"170.07885\" Top=\"56.69295\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Branch ID\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"7.55906\" Top=\"79.37013\" Width=\"351.49629\" Height=\"461.10266\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haBlock\" ParentFont=\"False\" Text=\"Delphi became the site of a major temple to Phoebus Apollo, as well as the Pythian Games and the famous prehistoric oracle. Even in Roman times, hundreds of votive statues remained, described by Pliny the Younger and seen by Pausanias. Supposedly carved into the temple were three phrases: γνῶθι σεαυτόν (gnothi seauton = &#34;know thyself&#34;) and μηδὲν ἄγαν (meden agan = &#34;nothing in excess&#34;), as well as a large letter E.[3] Among other things epsilon signifies the number 5. Plutarch\'s essay on the meaning of the “E at Delphi&#34; is the only literary source for the inscription.&#13;&#10;&#13;&#10;From a late myth that deviates from much older ones, when young, Apollo killed the chthonic serpent Python, named Pythia in older myths, but according to some later accounts his wife, Pythia, who lived beside the Castalian Spring, according to some because Python had attempted to rape Leto while she was pregnant with Apollo and Artemis. The bodies of the pair were draped around his Rod, which, with the wings created the caduceus symbolic of the god. This spring flowed toward the temple but disappeared beneath, creating a cleft which emitted vapors that caused the Oracle at Delphi to give her prophecies. Apollo killed Python but had to be punished for it, since she was a child of Gaia. The shrine dedicated to Apollo was originally dedicated to Gaia and then, possibly to Poseidon. The name Pythia remained as the title of the Delphic Oracle. As punishment for this murder Apollo was sent to serve in menial tasks for eight years. A festival, the Septeria, was performed annually portraying the slaying of the serpent, the flight, the atonment and the return of the God. The Pythian Games took place every four years to commemorate his victory [1].&#13;&#10;&#13;&#10;Erwin Rohde wrote that the Python was an earth spirit, who was conquered by Apollo, and buried under the Omphalos, and that it is a case of one deity setting up a temple on the grave of another.[4] Another view holds that Apollo was a fairly recent addition to the Greek pantheon coming originally from Lydia. The Etruscans coming from northern Anatolia also worshiped Apollo, and it may be that he was originally identical with Mesopotamian Aplu, an Akkadian title meaning &#34;son&#34;, originally given to the plague God Nergal, son of Enlil. Apollo Smintheus (Greek Απόλλων Σμινθεύς), the mouse killer[5] eliminates mice, a primary cause of disease, hence he promotes preventive medicine.\"/>\r\n      <TfrxMemoView Name=\"strReportTitle\" Left=\"306.14193\" Top=\"7.55906\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strReportTitle]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"400.63018\" Top=\"3.77953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxMemoView Name=\"strBranchPrefix\" Left=\"506.45702\" Top=\"3.77953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchPrefix]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"600.94527\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"tknSTART\" Left=\"306.14193\" Top=\"34.01577\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[tknSTART]\"/>\r\n      <TfrxMemoView Name=\"tknEND\" Left=\"400.63018\" Top=\"34.01577\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[tknEND]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"627.40198\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"113.3859\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;UserName&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"328.81911\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"RateA\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;RateA&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"419.52783\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"RateB\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;RateB&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"514.01608\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"RateC\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;RateC&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"600.94527\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Abbrev\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Abbrev&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"653.85869\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Active\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"_,x\" DisplayFormat.Kind=\"fkBoolean\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;Active&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"230.55133\" Top=\"0\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"BranchID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;BranchID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"124.72449\" Top=\"0\" Width=\"132.28355\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial Narrow\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[\'#\' + Translate(&#60;ds.&#34;UserName&#34;&#62;, 2, 0) + \'#\']\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"710.55164\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','HTML with PDF','Test',NULL,0,'','',NULL,0,NULL,'2011-11-16 13:28:54'),(3,'Job Label',0,1,3,0,0,0,1,1,NULL,NULL,'SELECT * FROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID\r\nLEFT JOIN groups g ON g.GroupID = c.GroupID\r\nWHERE JobID >= \"[FROMJOBID]\" AND JobID <= \"[TOJOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39205.5580658681\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;tknLABELTYPE&#62; = \'Fault Details\' then&#13;&#10;   chdCustomerInstruction.Visible := False&#13;&#10;  else if &#60;tknLABELTYPE&#62; = \'Customer Instruction\' then&#13;&#10;   chdFaultDetails.Visible := False&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2C000000204E616D653D22746B6E4C4142454C54595045222056616C75653D22274661756C742044657461696C73272200010C25000000204E616D653D22746B6E46524F4D4A4F424944222056616C75653D2227313030303031272200010C23000000204E616D653D22746B6E544F4A4F424944222056616C75653D222731303030303127220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D22302200010C8A000000204E616D653D224E6F726D616C20426F6C642220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2231220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"16.2519685\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\" Child=\"Child1\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" KeepChild=\"True\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"45.35436\" Top=\"0\" Width=\"86.92919\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"0\" Width=\"45.35436\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"Job No:\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"177.63791\" Top=\"0\" Width=\"22.67718\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;JobClassID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"136.06308\" Top=\"0\" Width=\"37.7953\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"Class:\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"207.87415\" Top=\"0\" Width=\"37.7953\" Height=\"16.251968503937\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"Type:\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"249.44898\" Top=\"0\" Width=\"132.28355\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;JobType&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"389.29159\" Top=\"0\" Width=\"64.25201\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxChild Name=\"Child1\" Height=\"16.2519685\" Left=\"0\" Top=\"56.69295\" Width=\"718.1107\" Child=\"Child2\" PrintChildIfInvisible=\"True\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Customer Addr:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child2\" Height=\"16.2519685\" Left=\"0\" Top=\"94.48825\" Width=\"718.1107\" Child=\"Child3\" PrintChildIfInvisible=\"True\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"1.4210854715202E-14\" Width=\"117.16543\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetContact]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child3\" Height=\"16.2519685\" Left=\"0\" Top=\"132.28355\" Width=\"718.1107\" Child=\"chdCustomerInstruction\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"chdCustomerInstruction\" Height=\"16.2519685\" Left=\"0\" Top=\"170.07885\" Width=\"718.1107\" Child=\"chdFaultDetails\" PrintChildIfInvisible=\"True\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;CustomerInstruction&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Customer Inst:\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child5\" Height=\"16.2519685\" Left=\"0\" Top=\"245.66945\" Width=\"718.1107\" Child=\"Child6\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Advice Note:\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" DataSetName=\"frxDBDataset1\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child6\" Height=\"16.2519685\" Left=\"0\" Top=\"283.46475\" Width=\"718.1107\" Child=\"Child7\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Item Desc:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child7\" Height=\"16.2519685\" Left=\"0\" Top=\"321.26005\" Width=\"718.1107\" Child=\"Child8\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"0\" Top=\"5.6843418860808E-14\" Width=\"117.16543\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child8\" Height=\"16.2519685\" Left=\"0\" Top=\"359.05535\" Width=\"718.1107\" Child=\"Child9\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"0\" Top=\"5.6843418860808E-14\" Width=\"117.16543\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"98.26778\" Top=\"5.6843418860808E-14\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child9\" Height=\"16.2519685\" Left=\"0\" Top=\"396.85065\" Width=\"718.1107\" Child=\"Child10\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"0\" Top=\"5.6843418860808E-14\" Width=\"83.14966\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Number Off:\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"68.03154\" Top=\"5.6843418860808E-14\" Width=\"26.45671\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"98.26778\" Top=\"5.6843418860808E-14\" Width=\"94.48825\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Engineer Report?\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"192.75603\" Top=\"0\" Width=\"41.57483\" Height=\"16.2519685\" DataField=\"j.EngineerReportRequired\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"No,Yes\" DisplayFormat.Kind=\"fkBoolean\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;j.EngineerReportRequired&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"238.11039\" Top=\"5.6843418860808E-14\" Width=\"94.48825\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"QuoteRequired?\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"328.81911\" Top=\"0\" Width=\"41.57483\" Height=\"16.2519685\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"No,Yes\" DisplayFormat.Kind=\"fkBoolean\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;j.QuoteRequired&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"Child10\" Height=\"38.9291485\" Left=\"0\" Top=\"434.64595\" Width=\"718.1107\" PrintChildIfInvisible=\"True\">\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"0\" Top=\"0\" Width=\"83.14966\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"Group:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Style=\"Normal Bold\" Text=\"[ds.&#34;GroupName&#34;]\"/>\r\n    </TfrxChild>\r\n    <TfrxChild Name=\"chdFaultDetails\" Height=\"16.2519685\" Left=\"0\" Top=\"207.87415\" Width=\"718.1107\" Child=\"Child5\" PrintChildIfInvisible=\"True\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"98.26778\" Top=\"0\" Width=\"355.27582\" Height=\"16.2519685\" StretchMode=\"smActualHeight\" DataSetName=\"frxDBDataset1\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;FaultDetails&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"0\" Top=\"0\" Width=\"117.16543\" Height=\"16.2519685\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Fault Details:\"/>\r\n    </TfrxChild>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','Test','\r\n=====================================\r\n\r\nLektronix CZ, s.r.o. : Cenová nabídka\r\n\r\n=====================================\r\n\r\nKontaktní osoba: {Title} {FirstName} {Surname}\r\nSpoleènost: {CustomerName}\r\nDatum cenové nabídky: {strToday}\r\nÈíslo Vaší zakázky: {JobID}\r\nMnožství: {NumberOff}\r\nPoložka k opravì: {ManufacturerName} {ModelNumber} ({Description})\r\n\r\nSériové èíslo: {SerialNo}\r\n\r\n{quote_lines}\r\n\r\nCena dopravy: {quoted_delivery} {QuoteCurrencyCode}\r\nTermín dodání: {DeliveryDays} dní\r\n\r\nCeny jsou uvedeny bez DPH. Záruka je 12 mìsícù.\r\n\r\nPlatnost nabídky je 14 dní.\r\n\r\nMáte-li další dotazy, kontaktujte nás co nejdøíve na telefonním èísle 544 528 660.\r\n\r\nUvìdomte nás laskavì o dalším postupu, pro který jste se rozhodli, a to buï telefonicky na èísle 544 528 660, nebo vybráním jedné z níže uvedených možností a zasláním na faxové èíslo 544 501 132.\r\n\r\n[  ] Objednaváme. Èíslo objednávky: _______\r\n[  ] Žádáme o vrácení bez opravy.\r\n[  ] Žádáme o likvidaci.\r\n\r\nS pozdravem a pøáním pøíjemného dne\r\n\r\n{strUserName}\r\n',0,'','',NULL,23,'2012-04-21 16:28:25','2008-02-26 16:05:20'),(6,'Quotation',0,1,5,0,1,0,1,1,NULL,NULL,'SELECT\r\nj.JobID, j.BranchID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID,\r\nj.NumberOff, j.SellPrice, j.QuotedPrice, j.QuotedDelivery, j.CustomerOrderNo, j.AdviceNoteNo, j.FaultDetails, j.CustomerInstruction, j.SerialNo, j.DiscountRate, j.QuoteCurrencyCode, j.QuoteCurrencyRate,\r\ne.Description, m.ManufacturerName, e.ModelNumber,\r\nc.CustomerName, c.LanguageID, c.DeliveryFax, cc.Title, cc.FirstName, cc.Surname, cc.Fax, cr.CurrencySymbol, \r\nbr.CompanyName, br.Address1, br.Address2, br.Address3, br.Address4, br.Address5, br.Postcode,\r\nbr.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail\r\nFROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = j.QuoteCurrencyCode \r\nLEFT JOIN branches br ON br.BranchID = j.BranchID\r\nWHERE JobID = \"[JOBID]\"','SELECT \r\nj.JobID, j.BranchID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID,\r\nq.NumberOff, q.SellPrice, q.QuotedPrice, q.QuotedDelivery, q.CustomerOrderNo, q.AdviceNoteNo, q.FaultDetails, q.CustomerInstruction, q.SerialNo, q.DiscountRate, q.QuoteCurrencyCode, q.QuoteCurrencyRate,\r\ne.Description, m.ManufacturerName, e.ModelNumber,\r\nc.CustomerName, c.LanguageID, c.DeliveryFax, cc.Title, cc.FirstName, cc.Surname, cc.Fax, cr.CurrencySymbol,\r\nbr.CompanyName, br.Address1, br.Address2, br.Address3, br.Address4, br.Address5, br.Postcode,\r\nbr.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail\r\nFROM job_quote_log q\r\nINNER JOIN jobs j ON j.JobID = q.JobID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = q.QuoteCurrencyCode\r\nLEFT JOIN branches br ON br.BranchID = j.BranchID\r\nWHERE QuoteLogID = \"[QUOTELOGID]\"','<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39035.7740109375\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"41507.6123501273\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;tknQUOTETYPE&#62; = \'Order Number Request\' then&#13;&#10;  begin&#13;&#10;    mmMessageQuotation.Visible := False;&#13;&#10;    mmMessageOrderNoRequest.Visible := True;&#13;&#10;    chdReply.Visible := False;&#13;&#10;    mmTitle.Text := UpperCase(&#60;tknQUOTETYPE&#62;);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    mmMessageQuotation.Visible := True;&#13;&#10;    mmMessageOrderNoRequest.Visible := False;&#13;&#10;    chdReply.Visible := True;&#13;&#10;    {&#13;&#10;    if &#60;ds.&#34;JobTypeID&#34;&#62; = 2 then&#13;&#10;      mmTitle.Text := \'Supply Quotation\'&#13;&#10;    else&#13;&#10;      mmTitle.Text := \'Repair Quotation\';&#13;&#10;    }&#13;&#10;    mmTitle.Text := UpperCase(&#60;tknQUOTETYPE&#62;);&#13;&#10;&#13;&#10;  end;&#13;&#10;&#13;&#10;  // (SS,14/8/13) changed &#34;&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0&#34; to &#34;&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0&#34; to show surcharge (positive discount), also added Abs to prevent negative for surcharge                                                                                                                                                                                                                                                                                                                 &#13;&#10;  mmPriceEach.Text := &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;SellPrice&#34;&#62;);&#13;&#10;  mmDiscountAmount.Text := IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * Abs((&#60;ds.&#34;SellPrice&#34;&#62; - &#60;ds.&#34;QuotedPrice&#34;&#62;))) , \'\');  &#13;&#10;  mmQuotedPrice.Text := IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedPrice&#34;&#62;), \'\');  &#13;&#10;  mmDelivery.Text := &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedDelivery&#34;&#62;);  &#13;&#10;              &#13;&#10;  // pass values to email                                                                                        &#13;&#10;  SetEmailVar(\'evPriceEach\', mmPriceEach.Text);&#13;&#10;  SetEmailVar(\'evDiscountAmount\', mmDiscountAmount.Text);      &#13;&#10;  SetEmailVar(\'evQuotedPrice\', mmQuotedPrice.Text);      &#13;&#10;  SetEmailVar(\'evDelivery\', mmDelivery.Text);&#13;&#10;      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetFax: String;&#13;&#10;begin&#13;&#10;  // if Fax from contact record is blank then use the one from customer record                                                                                                                                                                                                                 &#13;&#10;  if Trim(&#60;ds.&#34;Fax&#34;&#62;) = \'\' then&#13;&#10;    Result := &#60;ds.&#34;DeliveryFax&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;Fax&#34;&#62;;                                                                             &#13;&#10;end;    &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"783.49605322\" Left=\"0\" Top=\"151.1812\" Width=\"699.21305\" Child=\"chdReply\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"4.15747787000001\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"To:\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"27.9685015\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Company:\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"51.77952512\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Fax No:\"/>\r\n      <TfrxMemoView Name=\"mmMessageQuotation\" Left=\"11.33858268\" Top=\"109.60626992\" Width=\"676.53587\" Height=\"79.37013\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"We would be grateful if you could advise at your earliest convenience how you would like to proceed. You can do this by phone on [ds.&#34;BranchTel&#34;] or by selecting one of the options below and faxing us on [ds.&#34;BranchFax&#34;].&#13;&#10;&#13;&#10;You can also email your confirmation to [ds.&#34;BranchSalesEmail&#34;].\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"11.33859\" Top=\"216.56691449\" Width=\"676.53587\" Height=\"185.19697\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"18.8976378\" Top=\"224.50392236\" Width=\"188.9765\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Important Information:\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"18.89765\" Top=\"248.69289874\" Width=\"657.63822\" Height=\"143.62214\" ShowHint=\"False\" DataField=\"CustomerInstruction\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerInstruction&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"109.60637\" Top=\"3.77952999999999\" Width=\"278.55120551\" Height=\"26.45671\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[Trim(&#60;ds.&#34;Title&#34;&#62; + \' \' + Trim(&#60;ds.&#34;FirstName&#34;&#62; + \' \' + &#60;ds.&#34;Surname&#34;&#62;))]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"109.60637\" Top=\"27.9685015\" Width=\"287.24428\" Height=\"24.56692913\" ShowHint=\"False\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"109.60637\" Top=\"51.77952512\" Width=\"249.44898\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetFax]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"359.05512055\" Top=\"4.15747787000001\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"From:\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"359.05535\" Top=\"27.9685015\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"359.05535\" Top=\"51.77952512\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Your Ref:\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"468.66172\" Top=\"27.9685015\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd mmmm yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"468.66172\" Top=\"51.77952512\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"468.66172\" Top=\"3.77952999999999\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"11.33858268\" Top=\"419.52783\" Width=\"677.29135079\" Height=\"336.37795276\" ShowHint=\"False\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"83.1496063\" Top=\"419.52783\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"196.53543307\" Top=\"419.52783\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"563.1496063\" Top=\"419.52783\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"11.33858268\" Top=\"483.77951291\" Width=\"677.29133858\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"22.67718\" Top=\"438.42548\" Width=\"45.35429409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"QTY\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"86.92919\" Top=\"430.86642\" Width=\"98.26771409\" Height=\"43.46457913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"OUR JOB REF\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"204.09462\" Top=\"438.42548\" Width=\"355.27575409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"DESCRIPTION OF ITEM\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"574.48856\" Top=\"423.30707197\" Width=\"98.26771409\" Height=\"43.46457913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"PRICE EACH\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"574.48856\" Top=\"464.88187512\" Width=\"102.04724409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"(excluding VAT)\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"18.89765\" Top=\"498.89796\" Width=\"49.13389\" Height=\"26.45669291\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"90.70872\" Top=\"498.89796\" Width=\"94.48825\" Height=\"26.45669291\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"204.09462\" Top=\"498.89796\" Width=\"143.62205213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"204.09462\" Top=\"529.1342\" Width=\"143.62205213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Part No:\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"204.09462\" Top=\"559.37044\" Width=\"143.62205213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Description:\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"204.09462\" Top=\"608.50433\" Width=\"143.62205213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Serial No(s):\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"355.27582\" Top=\"498.89796\" Width=\"200.31509\" Height=\"26.45671\" ShowHint=\"False\" DataField=\"ManufacturerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"355.27582\" Top=\"529.1342\" Width=\"200.31509\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"355.27582\" Top=\"559.37044\" Width=\"200.31509\" Height=\"45.35436\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"mmPriceEach\" Left=\"566.9295\" Top=\"498.89762315\" Width=\"109.60637\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Price Each\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"355.27582\" Top=\"608.50433\" Width=\"200.31509\" Height=\"64.2519685\" ShowHint=\"False\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"207.87415\" Top=\"672.75634\" Width=\"347.71667213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Less Discount at \' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + \'%\', IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#62; 0, \'Surcharge\', \'\'))]\"/>\r\n      <TfrxMemoView Name=\"mmDiscountAmount\" Left=\"566.9295\" Top=\"672.75634\" Width=\"109.60637\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Discount Amount\"/>\r\n      <TfrxMemoView Name=\"Memo35\" Left=\"207.87415\" Top=\"699.21305\" Width=\"347.71667213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, \'Net Price\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"Memo36\" Left=\"207.87415\" Top=\"725.66976\" Width=\"98.26769213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery:\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"313.70099\" Top=\"725.66976\" Width=\"241.88983213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IntToStr(&#60;ds.&#34;DeliveryDays&#34;&#62;) + \' days\']\"/>\r\n      <TfrxMemoView Name=\"mmQuotedPrice\" Left=\"566.9295\" Top=\"699.21305\" Width=\"109.60637\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Quoted Price\"/>\r\n      <TfrxMemoView Name=\"mmDelivery\" Left=\"566.9295\" Top=\"725.66976\" Width=\"109.60637\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Delivery\"/>\r\n      <TfrxMemoView Name=\"Memo40\" Left=\"11.33858268\" Top=\"759.68502472\" Width=\"676.53587\" Height=\"16.2519685\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;QuoteCurrencyCode&#34;&#62; &#60;&#62; \'GBP\',&#13;&#10;\'The exchange rate is set at quote time and this is the exchange rate that will be used for invoicing.\'&#13;&#10;, \'\')]\"/>\r\n      <TfrxMemoView Name=\"mmMessageOrderNoRequest\" Left=\"11.33859\" Top=\"109.60637\" Width=\"676.53587\" Height=\"79.37013\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"We have recently repaired and returned the item(s) listed below and would be grateful if you provide us with a Purchase Order Number to cover this work, as soon as possible.&#13;&#10;&#13;&#10;Please phone the number through to [ds.&#34;BranchTel&#34;], fax it to [ds.&#34;BranchFax&#34;] or alternatively you can also email your Purchase Order Number to [ds.&#34;BranchSalesEmail&#34;].\"/>\r\n    </TfrxMasterData>\r\n    <TfrxChild Name=\"chdReply\" Height=\"156.0945785\" Left=\"0\" Top=\"956.22109\" Width=\"699.21305\">\r\n      <TfrxShapeView Name=\"Shape3\" Left=\"11.33858268\" Top=\"7.55906000000004\" Width=\"23.81102362\" Height=\"23.81102362\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo41\" Left=\"49.13389\" Top=\"11.33859\" Width=\"313.70092409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Proceed with repair using order number:\"/>\r\n      <TfrxMemoView Name=\"Memo46\" Left=\"366.61441\" Top=\"11.33859\" Width=\"215.43321\" Height=\"18.8976378\" ShowHint=\"False\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"15\" GapX=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo47\" Left=\"49.13389\" Top=\"34.0152183499999\" Width=\"638.74050409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[\'For nett price of \' +&#13;&#10;&#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;)&#13;&#10;+ \' + \' + &#13;&#10;&#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat(\'#0.00\', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedDelivery&#34;&#62;)&#13;&#10;+ \' p&#38;p\']\"/>\r\n      <TfrxShapeView Name=\"Shape4\" Left=\"11.33859\" Top=\"68.0315399999999\" Width=\"23.81102362\" Height=\"23.81102362\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"49.13389732\" Top=\"71.81107\" Width=\"287.24421409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Return the item un-repaired. Reason:\"/>\r\n      <TfrxShapeView Name=\"Shape5\" Left=\"11.33859\" Top=\"120.94496\" Width=\"23.81102362\" Height=\"23.81102362\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo43\" Left=\"49.13389732\" Top=\"124.72449\" Width=\"139.84254409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Scrap the item\"/>\r\n      <TfrxShapeView Name=\"Shape6\" Left=\"343.93723\" Top=\"71.81107\" Width=\"340.1577\" Height=\"18.89765\" ShowHint=\"False\"/>\r\n    </TfrxChild>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"16.2519685\" Left=\"0\" Top=\"1171.6543\" Width=\"699.21305\"/>\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"435.77997913\" Top=\"10.96062748\" Width=\"263.43307087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n      <TfrxMemoView Name=\"mmTitle\" Left=\"0\" Top=\"15.11812\" Width=\"423.30736\" Height=\"37.7953\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-27\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Title\"/>\r\n    </TfrxPageHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','HTML with PDF','Quotation for Job ID {JobID}','<html>Quotation for Job {JobID}\r\n<head>\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\n<table>\r\n<tr><td>To</td><td><b>{Title} {FirstName} {Surname}</b></td></tr>\r\n<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>\r\n<tr><td>Date</td><td><b>{strToday}</b></td></tr>\r\n<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>\r\n<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>\r\n<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>\r\n<!-- {JobID} = 109772 -->\r\n<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>\r\n<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>\r\n<!---->\r\n<tr><td>Description</td><td><b>{Description}</b></td></tr>\r\n<!-- {JobID} != 109772 -->\r\n<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>\r\n<!---->\r\n<tr><td>Delivery Days</td><td><b>{DeliveryDays}</b></td></tr>\r\n</table>\r\n<br/>\r\nPlease see attached quotation for further details.\r\n<br/><br/>\r\n{strEmailSignatureHTML}\r\n</body>\r\n</html>',0,'BranchID','LanguageID',NULL,44,'2013-08-21 12:58:27','2011-10-13 18:51:39'),(7,'Delivery Note',0,1,3,0,1,0,1,1,NULL,NULL,'SELECT j.*, c.*, cc.*, e.*, m.*, f.*,\r\nb1.CompanyName, b1.Address1, b1.Address2, b1.Address3, b1.Address4, b1.Address5, b1.Postcode, b1.LanguageID,\r\nb2.CompanyName, b2.Address1, b2.Address2, b2.Address3, b2.Address4, b2.Address5, b2.Postcode,\r\n\"[TYPE]\" AS DeliveryNoteType\r\nFROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nINNER JOIN branches b1 ON b1.BranchID = j.BranchID\r\nINNER JOIN branches b2 ON b2.BranchID = j.RepairBranchID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID\r\nWHERE JobID = \"[JOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40932.513446331\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;DeliveryNoteType&#34;&#62; = \'TransferBack\' Then&#13;&#10;  begin&#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;b1.CompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Postcode&#34;&#62;, False, True);      &#13;&#10;  end&#13;&#10;  else&#13;&#10;  if &#60;ds.&#34;DeliveryNoteType&#34;&#62; = \'TransferTo\' Then                        &#13;&#10;  begin&#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;b2.CompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Postcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else // \'Normal\'                          &#13;&#10;  begin              &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2C000000204E616D653D22737472557365724E616D65222056616C75653D2227416E6472657720466F6C6C616E74272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313030303031272200010C20000000204E616D653D22746B6E54595045222056616C75653D22274E6F726D616C272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"215.9\" PaperHeight=\"279.4\" PaperSize=\"1\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"294.80316913\" Left=\"0\" Top=\"18.89765\" Width=\"721.512277\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"75.59055118\" Top=\"136.06299213\" Width=\"566.9295\" Height=\"120.94496\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"260.78739913\" Width=\"721.89023\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-21\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"DELIVERY / ADVICE NOTE\"/>\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"464.88219\" Top=\"45.35436\" Width=\"233.19683087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"661.41762551\" Left=\"0\" Top=\"374.17347\" Width=\"721.512277\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"7.55905999999999\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job Number:\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"113.3859\" Top=\"7.55905999999999\" Width=\"170.07885\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"30.23624\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order Number:\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"113.3859\" Top=\"30.23624\" Width=\"302.3624\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"52.91342\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"113.3859\" Top=\"52.91342\" Width=\"170.07885\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"75.5906\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"0\" Top=\"120.94496\" Width=\"94.48825\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"154.96073\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"0\" Top=\"177.63791\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Quantity:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"113.3859\" Top=\"154.96073\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"113.3859\" Top=\"75.5906\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"113.3859\" Top=\"177.63791\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"200.31509\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"113.3859\" Top=\"200.31509\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"0\" Top=\"222.99227\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"113.3859\" Top=\"222.99227\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"0\" Top=\"245.66945\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"113.3859\" Top=\"245.66945\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"0\" Top=\"268.34663\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"113.3859\" Top=\"268.34663\" Width=\"495.11843\" Height=\"56.69291827\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"0\" Top=\"332.59864\" Width=\"521.57480315\" Height=\"192.75590551\" ShowHint=\"False\" DataField=\"InvoiceText\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceText&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"0\" Top=\"540.47279\" Width=\"139.84261\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-17\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Final Outcome:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"143.62214\" Top=\"538.58267717\" Width=\"536.69326\" Height=\"26.45671\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[Translate(&#60;ds.&#34;FinalOutcome&#34;&#62;,&#60;ds.&#34;c.LanguageID&#34;&#62;,&#60;ds.&#34;b1.LanguageID&#34;&#62;)]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"1096.0637\" Width=\"721.512277\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"355.27582\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[\'Branch: \' + &#60;strBranchName&#62;]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,69,'2012-05-22 15:32:28','2007-07-23 16:31:33'),(8,'Invoice',0,1,5,0,0,0,1,1,NULL,NULL,'SELECT i.*, j.*,\r\nc.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,\r\ncc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,\r\ne.ModelNumber, e.Description, m.ManufacturerName,\r\nbc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,\r\nbr.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,\r\nci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,\r\nca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,\r\ncr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,\r\ncra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName\r\nFROM invoice_print_list i\r\nINNER JOIN jobs j ON j.JobID = i.IPL_JobID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nINNER JOIN branches bc ON bc.BranchID = j.BranchID\r\nINNER JOIN branches br ON br.BranchID = j.RepairBranchID\r\nLEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode\r\nLEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode\r\nLEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"41507.6299790394\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it\'s a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer\'s address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = \'\' then                                        &#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'C\';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'A\';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'R\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'RA\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := \'CREDIT NOTE\'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := \'RECHARGE INVOICE\'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := \'INVOICE\'&#13;&#10;      else         &#13;&#10;        Result := \'ZERO INVOICE\';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);                 &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = \'GBP\';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Code undetermined\');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Rate undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Symbol undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Name undetermined\');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat(\'#0.00\', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there\'s no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;                                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := \'\'&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := \'This invoice was generated using the exchange rate \' + FormatFloat(\'#0.0000\', GetCurrencyRate) + \' which was set at the time of \';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + \'invoicing.\'&#13;&#10;    else&#13;&#10;      Result := Result + \'quotation.\';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := \'Accounts Copy\'                        &#13;&#10;  else&#13;&#10;    LLabel := \'\';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = \'\', \'Copy\', \'\') + \' \' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"119.43307086\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"366.61417323\" Top=\"36.28345724\" Width=\"332.5984252\" Height=\"71.81102362\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"914.64626\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"34.01577\" Top=\"0\" Width=\"321.26005\" Height=\"147.40167\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"147.40159433\" Width=\"699.21305\" Height=\"27.5905585\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-24\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[GetInvoiceTitle]\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"188.97658787\" Width=\"699.21305\" Height=\"86.92919\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"79.37013\" Top=\"196.53564787\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"7.55906\" Top=\"196.53564787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Tax Point:\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"7.55906\" Top=\"215.43329787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"79.37013\" Top=\"215.43329787\" Width=\"306.14193\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"7.55906\" Top=\"234.33094787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"79.37013\" Top=\"234.33094787\" Width=\"306.14193\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"419.52783\" Top=\"196.53564787\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job No:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"514.01608\" Top=\"196.53564787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"419.52783\" Top=\"215.43329787\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Reg No:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"514.01608\" Top=\"215.43329787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetVATRegNo]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"419.52783\" Top=\"234.33094787\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Account Code:\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"419.52783\" Top=\"253.22859787\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = \'\', \'\', \'VAT ID No:\')]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"514.01608\" Top=\"253.22859787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"VATIDNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;VATIDNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"514.01608\" Top=\"234.33094787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AccountNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"298.58295787\" Width=\"699.21305\" Height=\"347.71676\" ShowHint=\"False\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"325.03966787\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"582.04762\" Top=\"298.58295787\" Width=\"0\" Height=\"347.71676\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"7.55906\" Top=\"302.36248787\" Width=\"113.3859\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"597.16574\" Top=\"302.36248787\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Price\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"7.55906\" Top=\"336.37825787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"7.55906\" Top=\"393.07120787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Quantity:\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"117.16543\" Top=\"336.37825787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"117.16543\" Top=\"393.07120787\" Width=\"117.16543\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"7.55906\" Top=\"355.27590787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"117.16543\" Top=\"355.27590787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"7.55906\" Top=\"374.17355787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"117.16543\" Top=\"374.17355787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"7.55906\" Top=\"430.86650787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"117.16543\" Top=\"430.86650787\" Width=\"449.76407\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"7.55906\" Top=\"449.76415787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"117.16543\" Top=\"449.76415787\" Width=\"449.76407\" Height=\"56.69291827\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"7.55906\" Top=\"506.45710787\" Width=\"487.55903315\" Height=\"68.03141551\" ShowHint=\"False\" DataField=\"InvoiceText\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceText&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"7.55906\" Top=\"411.96885787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Price Each:\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"117.16543\" Top=\"411.96885787\" Width=\"117.16543\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetQuotedPriceAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDiscountRate\" Left=\"7.55906\" Top=\"582.04770787\" Width=\"563.14963315\" Height=\"18.89752551\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Less Discount at \' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + \'%\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mDiscount\" Left=\"585.82715\" Top=\"582.04770787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDiscountAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscountTitle\" Left=\"7.55906\" Top=\"600.94535787\" Width=\"563.14988213\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Net Price\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscount\" Left=\"585.82715\" Top=\"600.94535787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetPriceIfDiscountAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDeliveryTitle\" Left=\"7.55906\" Top=\"619.84300787\" Width=\"241.88983213\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery\"/>\r\n      <TfrxMemoView Name=\"mDelivery\" Left=\"585.82715\" Top=\"619.84300787\" Width=\"105.82684\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDeliveryAsCurrency]\"/>\r\n      <TfrxShapeView Name=\"Shape3\" Left=\"0\" Top=\"661.41783787\" Width=\"699.21305\" Height=\"86.92914118\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo39\" Left=\"7.55906\" Top=\"668.97689787\" Width=\"328.81911\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Payment terms strictly 30 days from date of invoice.\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"7.55906\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Rate:\"/>\r\n      <TfrxMemoView Name=\"Memo46\" Left=\"7.55906\" Top=\"706.77219787\" Width=\"328.81911\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[\'All values shown are in \' + GetCurrencyName + \'.\']\"/>\r\n      <TfrxMemoView Name=\"Memo47\" Left=\"173.85838\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + \'%\']\"/>\r\n      <TfrxMemoView Name=\"Memo48\" Left=\"7.55906\" Top=\"725.66984787\" Width=\"684.09493\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetExchangeRateMessage]\"/>\r\n      <TfrxMemoView Name=\"Memo49\" Left=\"7.55906\" Top=\"759.68561787\" Width=\"684.09493\" Height=\"30.23624\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request.\"/>\r\n      <TfrxMemoView Name=\"Memo50\" Left=\"7.55906\" Top=\"797.48091787\" Width=\"684.09493\" Height=\"41.57483\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"\"/>\r\n      <TfrxMemoView Name=\"Memo52\" Left=\"476.22078\" Top=\"668.97689787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Invoice Net =\"/>\r\n      <TfrxMemoView Name=\"Memo53\" Left=\"476.22078\" Top=\"687.87454787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT =\"/>\r\n      <TfrxMemoView Name=\"Memo54\" Left=\"476.22078\" Top=\"706.77219787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Total =\"/>\r\n      <TfrxMemoView Name=\"Memo55\" Left=\"585.82715\" Top=\"668.97689787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo56\" Left=\"585.82715\" Top=\"687.87454787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetVATAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo57\" Left=\"585.82715\" Top=\"706.77219787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetTotalAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo51\" Left=\"291.02381\" Top=\"873.07151787\" Width=\"404.40971\" Height=\"15.11812\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[GetLabel]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"491.3389\" Top=\"0\" Width=\"204.09462\" Height=\"139.84261\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetBranchAddress]\"/>\r\n      <TfrxMemoView Name=\"mInvoicePrice\" Left=\"585.82715\" Top=\"336.37817\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetInvoicePriceIncDiscountAsCurrency]\"/>\r\n    </TfrxMasterData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','HTML with PDF','Invoice for Order No {CustomerOrderNo} (Invoice No {InvoiceNo})','<html>\r\n<head>\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\nDear\r\n\r\n<!-- {InvoiceCustomerName} !=  -->\r\n{InvoiceCustomerName},\r\n<!---->\r\n<!-- {InvoiceCustomerName} =  -->\r\n{CustomerName},\r\n<!---->\r\n\r\n<br /><br />\r\nPlease find attached the invoice for Order No  {CustomerOrderNo}.\r\n<br /><br />\r\nYour order details:\r\n<br/>\r\n<table>\r\n<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>\r\n<tr><td>Date</td><td><b>{strToday}</b></td></tr>\r\n<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>\r\n<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>\r\n<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>\r\n<tr><td>Invoice No</td><td><b>{InvoiceNo}</b></td></tr>\r\n<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>\r\n<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>\r\n<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>\r\n<tr><td>Description</td><td><b>{Description}</b></td></tr>\r\n<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>\r\n</table>\r\n<br />\r\n{strEmailSignatureHTML}\r\n</body>\r\n</html>',0,'BranchID','',NULL,31,'2013-07-10 17:58:20','2011-01-17 19:38:39'),(9,'Engineer Service Report',0,1,3,0,1,0,1,1,NULL,NULL,'SELECT *\r\nFROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nWHERE JobID = \"[JOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40928.8499811806\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetFax: String;&#13;&#10;begin&#13;&#10;  // if Fax from contact record is blank then use the one from customer record                                                                                                                                                                                                                 &#13;&#10;  if Trim(&#60;ds.&#34;Fax&#34;&#62;) = \'\' then&#13;&#10;    Result := &#60;ds.&#34;DeliveryFax&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;Fax&#34;&#62;;    &#13;&#10;end;          &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"204.09444913\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"222.99227\" Top=\"162.51961913\" Width=\"253.22851\" Height=\"30.23624\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-24\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"15\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"SERVICE REPORT\"/>\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"445.98454\" Top=\"18.89765\" Width=\"233.19683087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"767.24459\" Left=\"0\" Top=\"283.46475\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"79.37013\" Width=\"143.62214\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Our Job Ref:\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"162.51979\" Top=\"79.37013\" Width=\"302.3624\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"26.45671\" Width=\"143.62214\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"215.43321\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"113.3859\" Top=\"215.43321\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"162.51979\" Top=\"26.45671\" Width=\"559.37044\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"238.11039\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"113.3859\" Top=\"238.11039\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"0\" Top=\"260.78757\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"113.3859\" Top=\"260.78757\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"0\" Top=\"287.24428\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"113.3859\" Top=\"287.24428\" Width=\"495.11843\" Height=\"56.69291827\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"0\" Top=\"389.29159\" Width=\"687.87412315\" Height=\"374.1732552\" ShowHint=\"False\" DataField=\"ExternalReport\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ExternalReport&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"143.62214\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer:\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"162.51979\" Top=\"0\" Width=\"559.37044\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"0\" Top=\"52.91342\" Width=\"143.62214\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Fax No:\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"162.51979\" Top=\"52.91342\" Width=\"442.20501\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetFax]\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"0\" Top=\"105.82684\" Width=\"151.1812\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo35\" Left=\"162.51979\" Top=\"105.82684\" Width=\"559.37044\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo36\" Left=\"0\" Top=\"132.28355\" Width=\"151.1812\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"162.51979\" Top=\"132.28355\" Width=\"559.37044\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\" Frame.Width=\"2\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"0\" Top=\"177.63791\" Width=\"196.53556\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-17\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description of Repair:\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"355.27582\" Width=\"196.53556\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-17\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Action:\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"1111.18182\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"0\" Top=\"7.55906000000004\" Width=\"434.64595\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Engineer:\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"487.55937\" Top=\"7.55906000000004\" Width=\"177.63791\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"41.57483\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\" Frame.Width=\"2\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,49,'2012-05-22 15:32:32','0000-00-00 00:00:00'),(10,'Engineer On-site Report',0,1,3,0,1,0,1,1,NULL,NULL,'SELECT * FROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nWHERE JobID = \"[JOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40928.8495265394\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"215.43303913\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"75.59055118\" Top=\"18.89756213\" Width=\"566.9295\" Height=\"170.07885\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"249.44898\" Top=\"181.41726913\" Width=\"196.53556\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-21\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"15\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"ON-SITE REPORT\"/>\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"457.32313\" Top=\"7.55906\" Width=\"233.19683087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"793.70117551\" Left=\"0\" Top=\"294.80334\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"434.64595\" Top=\"7.55905999999999\" Width=\"94.48825\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job Number:\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"532.91373\" Top=\"7.55905999999999\" Width=\"166.29932\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"34.01577\" Width=\"75.5906\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"79.37013\" Top=\"34.01577\" Width=\"351.49629\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"434.64595\" Top=\"34.01577\" Width=\"94.48825\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"532.91373\" Top=\"34.01577\" Width=\"166.29932\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"60.47248\" Width=\"75.5906\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"79.37013\" Top=\"60.47248\" Width=\"351.49629\" Height=\"22.67718\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"434.64595\" Top=\"60.47248\" Width=\"94.48825\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note:\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"532.91373\" Top=\"60.47248\" Width=\"166.29932\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"0\" Top=\"755.906\" Width=\"272.12616\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Signed __________________________\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"279.68522\" Top=\"755.906\" Width=\"260.78757\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Name __________________________\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"548.03185\" Top=\"755.906\" Width=\"147.40167\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date ____________\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"7.55905999999999\" Width=\"75.5906\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Customer:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"79.37013\" Top=\"7.55905999999999\" Width=\"351.49629\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"105.82684\" Width=\"699.21305\" Height=\"257.007874015748\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"113.3859\" Width=\"128.50402\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Work carried out:\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"385.51206\" Top=\"381.73253\" Width=\"302.3624\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Signed _____________________________\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"0\" Top=\"381.73253\" Width=\"377.95278031\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Name of engineer ______________________________\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"423.30736\" Width=\"699.21305\" Height=\"302.36222913\" ShowHint=\"False\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"498.89796\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"555.59091\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"612.28386\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"0\" Top=\"668.97681\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line5\" Left=\"188.9765\" Top=\"423.30736\" Width=\"0\" Height=\"302.3624\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line6\" Left=\"359.05535\" Top=\"423.30736\" Width=\"0\" Height=\"245.66945\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line7\" Left=\"529.1342\" Top=\"423.30736\" Width=\"0\" Height=\"245.66945\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"207.87415\" Top=\"438.42548\" Width=\"132.28355\" Height=\"45.35436\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"BETWEEN&#13;&#10;07:00 & 17:00\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"374.17347\" Top=\"434.64595\" Width=\"132.28355\" Height=\"56.69295\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"BETWEEN&#13;&#10;17:00 &#38; 22:00 &#38;&#13;&#10;All day Saturday\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"548.03185\" Top=\"434.64595\" Width=\"132.28355\" Height=\"56.69295\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"BETWEEN&#13;&#10;22:00 &#38; 07:00 &#38;&#13;&#10;All day Sunday\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"11.33859\" Top=\"517.79561\" Width=\"166.29932\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"TRAVELLING Time:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"11.33859\" Top=\"574.48856\" Width=\"166.29932\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"ENGINEERING Time:\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"11.33859\" Top=\"631.18151\" Width=\"166.29932\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"CALL OUT:\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"11.33859\" Top=\"687.87446\" Width=\"166.29932\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Additional Costs:\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"238.11039\" Top=\"631.18151\" Width=\"71.81107\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"N/A\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"408.18924\" Top=\"631.18151\" Width=\"71.81107\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"N/A\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"578.26809\" Top=\"631.18151\" Width=\"71.81107\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"£100.00\"/>\r\n    </TfrxMasterData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,5,'2012-02-02 13:29:58','0000-00-00 00:00:00'),(11,'Customer Message',0,1,3,0,1,1,0,1,NULL,NULL,'SELECT \r\nj.JobID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID, \r\nIF(cc.Fax IS NULL OR TRIM(cc.Fax) = \"\", c.DeliveryFax, cc.Fax) AS QuoteFax,\r\nj.NumberOff, j.QuotedPrice, j.QuotedDelivery, j.CustomerOrderNo, j.AdviceNoteNo, j.FaultDetails, j.CustomerInstruction, j.SerialNo, j.DiscountRate, j.QuoteCurrencyCode, j.QuoteCurrencyRate,\r\ne.Description, m.ManufacturerName, e.ModelNumber,\r\nc.CustomerName, cc.Title, cc.FirstName, cc.Surname, cr.CurrencySymbol\r\nFROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = j.QuoteCurrencyCode\r\nWHERE JobID = \"[JOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39205.5345215972\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1B000000204E616D653D22746B6E4A4F424944222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"20\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"18.89765\" Width=\"680.3154\"/>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"396.85065\" Left=\"0\" Top=\"124.72449\" Width=\"680.3154\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"68.03154\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"From:\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"75.5906\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"41.57483\" Width=\"680.3154\" Height=\"45.35436\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Courier New\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strMessage1]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"102.04731\" Width=\"680.3154\" Height=\"128.50402\" StretchMode=\"smMaxHeight\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Courier New\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strMessage2]\"/>\r\n    </TfrxMasterData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'0000-00-00 00:00:00'),(12,'Delivery Manifest',0,1,3,0,1,0,1,1,NULL,NULL,'SELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,\r\nc.DeliveryAddr1, c.DeliveryAddr2, c.DeliveryAddr3, c.DeliveryAddr4, c.DeliveryAddr5, c.DeliveryPostCode,\r\ncc.Title, cc.FirstName, cc.Surname, cc.Tel, fo.FinalOutcome\r\nFROM delivery_manifests d\r\nINNER JOIN users u ON u.UserID = d.CreatedByID\r\nINNER JOIN jobs j ON j.ManifestID = d.ManifestID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON j.ContactID = cc.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nINNER JOIN final_outcomes fo ON j.FinalOutcomeID = fo.FinalOutcomeID\r\nWHERE d.ManifestID = [MANIFESTID]\r\nORDER BY j.JobID\r\n','SELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,\r\nj.CustomerOrderNo, j.AdviceNoteNo, cc.Title, cc.FirstName, cc.Surname, m.ManufacturerName, \r\ne.ModelNumber, j.SerialNo\r\nFROM delivery_manifests d\r\nINNER JOIN users u ON u.UserID = d.CreatedByID\r\nINNER JOIN jobs j ON j.ManifestID = d.ManifestID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nINNER JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nWHERE j.JobID = [JOBID]','<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"41655.6932306713\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"// (SS,16/01/14) improved version from KontrolTek (code below has been added by KontrolTek)                                                                                                                                                                                                              &#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;       ca: string;&#13;&#10;       con: string;                                  &#13;&#10;begin&#13;&#10;       ca:=\'\';                     &#13;&#10;       ca:=&#60;ds.&#34;DeliveryAddr1&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr2&#34;&#62; &#60;&#62; \'\' then ca:=ca+\', \'+&#60;ds.&#34;DeliveryAddr2&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr3&#34;&#62; &#60;&#62; \'\' then ca:=ca+\', \'+&#60;ds.&#34;DeliveryAddr3&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr4&#34;&#62; &#60;&#62; \'\' then ca:=ca+\', \'+&#60;ds.&#34;DeliveryAddr4&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr5&#34;&#62; &#60;&#62; \'\' then ca:=ca+\', \'+&#60;ds.&#34;DeliveryAddr5&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryPostcode&#34;&#62; &#60;&#62; \'\' then ca:=ca+\', \'+&#60;ds.&#34;DeliveryPostcode&#34;&#62;;  &#13;&#10;       mmCustAddr.Text:=ca;&#13;&#10;&#13;&#10;       con:=\'\';                        &#13;&#10;       if &#60;ds.&#34;Title&#34;&#62; &#60;&#62; \'\' then con:=con+&#60;ds.&#34;Title&#34;&#62;+\' \';&#13;&#10;       if &#60;ds.&#34;FirstName&#34;&#62; &#60;&#62; \'\' then con:=con+&#60;ds.&#34;FirstName&#34;&#62;+\' \';&#13;&#10;       if &#60;ds.&#34;Surname&#34;&#62; &#60;&#62; \'\' then con:=con+&#60;ds.&#34;Surname&#34;&#62;+\' \';&#13;&#10;       if &#60;ds.&#34;Tel&#34;&#62; &#60;&#62; \'\' then con:=con+\'Tel: \'+&#60;ds.&#34;Tel&#34;&#62;;                                                                                                                           &#13;&#10;       mmContact.Text:=con;  &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4D414E49464553544944222056616C75653D22273236272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"136.06308\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"373.72449\" Height=\"31.55906\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-24\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Delivery Manifest\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"45.35436\" Width=\"506.45702\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"Please sign and print to confirm receipt of consignment\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"102.04731\" Top=\"75.5906\" Width=\"79.37013\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"ManifestID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;ManifestID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"75.5906\" Width=\"495.11843\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"d.Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;d.Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"75.5906\" Width=\"102.04731\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Manifest ID:\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"109.60637\" Top=\"102.04731\" Width=\"188.9765\" Height=\"22.67718\" ShowHint=\"False\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"102.04731\" Width=\"109.60637\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Date Created:\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"325.03958\" Top=\"102.04731\" Width=\"98.26778\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Created By:\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"423.30736\" Top=\"102.04731\" Width=\"268.34663\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;UserName&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"136.06308\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\" Frame.Width=\"2\"/>\r\n      <TfrxPictureView Name=\"Picture2\" Left=\"464.88219\" Top=\"0\" Width=\"233.19683087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"105.82684\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"102.04731\" Top=\"3.77952999999999\" Width=\"215.43321\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"321.26005\" Top=\"3.77952999999999\" Width=\"340.1577\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;e.Description&#34;&#62;]\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"64.25201\" Width=\"253.22851\" Height=\"34.01577\" ShowHint=\"False\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"268.34663\" Top=\"64.25201\" Width=\"253.22851\" Height=\"34.01577\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"0\" Top=\"64.25201\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"SIGN\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"268.34663\" Top=\"64.25201\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"PRINT\"/>\r\n      <TfrxShapeView Name=\"Shape3\" Left=\"536.69326\" Top=\"64.25201\" Width=\"162.51979\" Height=\"34.01577\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"536.69326\" Top=\"64.25201\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"DATE\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"105.82684\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\" Frame.Width=\"2\"/>\r\n      <TfrxMemoView Name=\"dsNumberOff\" Left=\"665.19728\" Top=\"3.77952999999999\" Width=\"34.01577\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"mmCustAddr\" Left=\"102.04731\" Top=\"22.67718\" Width=\"597.16574\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"mmCustAddr\"/>\r\n      <TfrxMemoView Name=\"mmContact\" Left=\"102.04731\" Top=\"41.57483\" Width=\"291.02381\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"mmContact\"/>\r\n      <TfrxMemoView Name=\"dsFinalOutcome\" Left=\"472.44125\" Top=\"41.57483\" Width=\"226.7718\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"FinalOutcome\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;FinalOutcome&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"393.07112\" Top=\"41.57483\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Outcome:\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"381.73253\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"168.30705\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"551.81138\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"173.85838\" Top=\"0\" Width=\"370.39394\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','HTML','Delivery of Order No {CustomerOrderNo} (Job {JobID})','<html>\r\n<head>\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\nDear {Title} {FirstName} {Surname},\r\n<br /><br />\r\n<!-- {ExternalCourier} = True -->\r\nYour tracking number is {TrackingNo}\r\nYour order number  {CustomerOrderNo} will be delivered via {CourierName} on the next working day and you can track your parcel via {TrackingURL}. Consignment/Tracking No is {TrackingNo}.\r\n<!---->\r\n<!-- {ExternalCourier} != True -->\r\nYour order number {CustomerOrderNo} will be delivered via a Kontroltek driver on the next working day.\r\n<!---->\r\n<br /><br />\r\nYour order details:\r\n<br/>\r\n<table>\r\n<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>\r\n<tr><td>Date</td><td><b>{strToday}</b></td></tr>\r\n<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>\r\n<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>\r\n<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>\r\n<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>\r\n<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>\r\n<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>\r\n<tr><td>Description</td><td><b>{e.Description}</b></td></tr>\r\n<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>\r\n</table>\r\n<br />\r\n{strEmailSignatureHTML}\r\n</body>\r\n</html>\r\n',0,NULL,NULL,NULL,9,'2012-02-02 09:05:43','0000-00-00 00:00:00'),(13,'Service Exchange Form',0,1,3,0,1,0,1,1,NULL,NULL,'SELECT * FROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nLEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID\r\nWHERE JobID = \"[JOBID]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40928.8490666667\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"215.9\" PaperHeight=\"279.4\" PaperSize=\"1\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"294.80316913\" Left=\"0\" Top=\"18.89765\" Width=\"721.512277\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"75.59055118\" Top=\"136.06299213\" Width=\"566.9295\" Height=\"120.94496\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"260.78739913\" Width=\"721.89023\" Height=\"26.45671\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-21\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"SERVICE EXCHANGE FORM\"/>\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"487.55937\" Top=\"41.57483\" Width=\"233.19683087\" Height=\"48\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"661.41762551\" Left=\"0\" Top=\"374.17347\" Width=\"721.512277\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"7.55905999999999\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job Number:\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"113.3859\" Top=\"7.55905999999999\" Width=\"170.07885\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"30.23624\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order Number:\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"113.3859\" Top=\"30.23624\" Width=\"302.3624\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"52.91342\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"113.3859\" Top=\"52.91342\" Width=\"170.07885\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"75.5906\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"0\" Top=\"120.94496\" Width=\"94.48825\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"154.96073\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"0\" Top=\"177.63791\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Quantity:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"113.3859\" Top=\"154.96073\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"113.3859\" Top=\"75.5906\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"113.3859\" Top=\"177.63791\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"200.31509\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"113.3859\" Top=\"200.31509\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"0\" Top=\"222.99227\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"113.3859\" Top=\"222.99227\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"0\" Top=\"245.66945\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"113.3859\" Top=\"245.66945\" Width=\"495.11843\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"0\" Top=\"268.34663\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"113.3859\" Top=\"268.34663\" Width=\"495.11843\" Height=\"56.69291827\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"0\" Top=\"332.59864\" Width=\"521.57480315\" Height=\"192.75590551\" ShowHint=\"False\" DataField=\"InvoiceText\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceText&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"0\" Top=\"544.25232\" Width=\"192.75603\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Received In Good Condition:\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"0\" Top=\"608.50433\" Width=\"272.12616\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Signed _____________________________\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"279.68522\" Top=\"608.50433\" Width=\"264.5671\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Print ______________________________\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"551.81138\" Top=\"608.50433\" Width=\"162.51979\" Height=\"22.67718\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date ______________\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"0\" Top=\"574.48856\" Width=\"200.31509\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Dynamic Date requested by Jim:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"207.87415\" Top=\"574.48856\" Width=\"128.50402\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-15\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[Date + 7]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"1096.0637\" Width=\"721.512277\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"355.27582\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[\'Branch: \' + &#60;strBranchName&#62;]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'0000-00-00 00:00:00'),(14,'WIP Manager',-10,1,5,0,1,0,1,3,NULL,NULL,'SELECT JobID, JobClassID, c.CustomerName, DateTimeOfEntry, DateTimeGoAheadGiven, u1.Abbrev AS QuotedByEngineer, u2.Abbrev AS RepairedByEngineer,\r\ne.Description, Location, f.RNRFlag, CustomerChasing, PartsRequiredToBeOrdered, HistoryLastUpdated, ct.CategoryName AS Category,\r\nb1.BranchPrefix AS Branch, b2.BranchPrefix AS RepairBranch\r\nFROM jobs j\r\nLEFT JOIN customers c ON c.CustomerID = j.CustomerID\r\nLEFT JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN categories ct ON ct.CategoryID = e.CategoryID\r\nLEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID\r\nLEFT JOIN users u1 ON u1.UserID = j.QuotedByID\r\nLEFT JOIN users u2 ON u2.UserID = j.RepairedByID\r\nLEFT JOIN branches b1 ON b1.BranchID = j.BranchID\r\nLEFT JOIN branches b2 ON b2.BranchID = j.RepairBranchID\r\nWHERE WIP = TRUE AND (j.BranchID = 1 OR j.RepairBranchID = 1) AND JobTypeID = 1 AND ComStatusID = 8 ORDER BY JobID, DateTimeGoAheadGiven ASC, DateTimeOfEntry ASC\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39286.7252453125\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"5\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"60.47248\" Left=\"0\" Top=\"18.89765\" Width=\"737.00835\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"120.49598\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"WIP Manager\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"37.7953\" Width=\"45.35436\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"41.57483\" Top=\"37.7953\" Width=\"34.01577\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Class\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"71.81107\" Top=\"37.7953\" Width=\"154.96073\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"230.55133\" Top=\"37.7953\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Booked\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"283.46475\" Top=\"37.7953\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"GoAhead\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"336.37817\" Top=\"37.7953\" Width=\"30.23624\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Q/E\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"370.39394\" Top=\"37.7953\" Width=\"30.23624\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"R/E\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"404.40971\" Top=\"37.7953\" Width=\"170.07885\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Item Description\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"578.26809\" Top=\"37.7953\" Width=\"30.23624\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Loc\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"668.97681\" Top=\"37.7953\" Width=\"68.03154\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Category\"/>\r\n      <TfrxMemoView Name=\"strReportSubtitle\" Left=\"192.75603\" Top=\"5.10235\" Width=\"544.25232\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[strReportSubtitle]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"612.28386\" Top=\"37.7953\" Width=\"22.67718\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Brn\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"638.74057\" Top=\"37.7953\" Width=\"30.23624\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"RBrn\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"139.84261\" Width=\"737.00835\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"47.62204724\" Height=\"15.11812\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsJobClassID\" Left=\"52.91342\" Top=\"0\" Width=\"18.14173228\" Height=\"15.11812\" DataField=\"JobClassID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobClassID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"71.81107\" Top=\"0\" Width=\"155.71653299\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"230.55133\" Top=\"0\" Width=\"49.13385827\" Height=\"15.11812\" DataField=\"DateTimeOfEntry\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeGoAheadGiven\" Left=\"283.46475\" Top=\"0\" Width=\"49.13385827\" Height=\"15.11812\" DataField=\"DateTimeGoAheadGiven\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeGoAheadGiven&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQuotedByEngineer\" Left=\"336.37817\" Top=\"0\" Width=\"31.7480315\" Height=\"15.11812\" DataField=\"QuotedByEngineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;QuotedByEngineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsRepairedByEngineer\" Left=\"370.39394\" Top=\"0\" Width=\"31.7480315\" Height=\"15.11812\" DataField=\"RepairedByEngineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;RepairedByEngineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDescription\" Left=\"404.40971\" Top=\"0\" Width=\"167.43307087\" Height=\"15.11812\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsLocation\" Left=\"578.26809\" Top=\"0\" Width=\"26.45669291\" Height=\"15.11812\" DataField=\"Location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Location&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCategory\" Left=\"668.97681\" Top=\"0\" Width=\"72.1889715\" Height=\"15.11812\" DataField=\"Category\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Category&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsBranch\" Left=\"612.28386\" Top=\"0\" Width=\"26.45671\" Height=\"15.11811024\" DataField=\"Branch\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Branch&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsRepairBranch\" Left=\"638.74057\" Top=\"0\" Width=\"26.45671\" Height=\"15.11812\" DataField=\"RepairBranch\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;RepairBranch&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"215.43321\" Width=\"737.00835\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"126.73222\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"128.50402\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','','SQL is built on the fly by WIP Manager and passed here. SQL Select 1 has been entered here for design/test purposes.',3,'2012-01-20 18:34:04','2011-11-14 19:52:48'),(16,'Invoice Batch Summary',0,1,5,0,1,0,1,1,NULL,NULL,'# (SS,21/2/12) added JobType, and some changes to the report, no longer showing separate figures for delivery\r\n\r\n(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, InvoiceNo, \'S\' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType, \r\nInvoiceNet * AccountsCurrencyRate AS InvoiceNet, j.VATRate, \'N\' AS Recharge, \'N\' AS NominalType, j.SalesNominalCode AS NominalCode, InvoicePrice * AccountsCurrencyRate AS NominalNet\r\nFROM jobs j\r\nLEFT JOIN customers c ON c.CustomerID = j.CustomerID\r\nLEFT JOIN branches b ON b.BranchID = j.BranchID\r\nLEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID\r\nWHERE InvoiceBatchID = [INVOICEBATCHID])\r\n\r\nUNION ALL\r\n\r\n(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, RechargeInvoiceNo, \'S\' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType, \r\nRechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, \'Y\' AS Recharge, \'N\' AS NominalType, j.RechargeSalesNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet\r\nFROM jobs j\r\nLEFT JOIN customers c ON c.CustomerID = j.CustomerID\r\nLEFT JOIN branches b ON b.BranchID = j.RepairBranchID\r\nLEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID\r\nWHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)\r\n\r\nUNION ALL\r\n\r\n(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, jt.JobType AS JobType, \r\nRechargeInvoiceNo, \'P\' AS InvoiceType, CustomerOrderNo, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, \'Y\' AS Recharge, \'N\' AS NominalType, j.RechargePurchaseNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet\r\nFROM jobs j\r\nLEFT JOIN customers c ON c.CustomerID = j.CustomerID\r\nLEFT JOIN branches b ON b.BranchID = j.RepairBranchID\r\nLEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID\r\nWHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)\r\n\r\nORDER BY InvoiceType DESC, Recharge, BranchID, InvoiceNo, NominalType DESC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40960.6487043056\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function GetAccountNo: String;                                                                  &#13;&#10;begin          &#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = \'N\' then&#13;&#10;    Result := &#60;ds.&#34;AccountNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;BranchName&#34;&#62;;                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDetails: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = \'N\' then&#13;&#10;    Result := &#60;ds.&#34;CustomerOrderNo&#34;&#62;      &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;JobID&#34;&#62;;                    &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E494E564F49434542415443484944222056616C75653D222735272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"37.7953\" Left=\"0\" ParentFont=\"False\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"214.98423\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Invoice Batch Summary\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"396.85065\" Top=\"0\" Width=\"301.91342\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[\'Invoice Batch ID: \' + IntToStr(&#60;tknINVOICEBATCHID&#62;)]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"15.11812\" Left=\"0\" ParentFont=\"False\" Top=\"257.00804\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"22.67718\" Left=\"0\" ParentFont=\"False\" Top=\"438.42548\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"551.81138\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"75.5906\" Left=\"0\" ParentFont=\"False\" Top=\"117.16543\" Width=\"699.21305\" Condition=\"&#60;ds.&#34;Recharge&#34;&#62;+&#60;ds.&#34;InvoiceType&#34;&#62;\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"15.11812\" Width=\"377.953\" Height=\"24.18897638\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;Recharge&#34;&#62;=\'Y\', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;=\'S\',\'Recharge Sales Invoices\', \'Recharge Purchase Invoices\'), \'Sales Invoices\')]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"45.35436\" Width=\"75.5906\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"A/C\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"45.35436\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Date\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"147.40167\" Top=\"45.35436\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Invoice No\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"219.21274\" Top=\"45.35436\" Width=\"45.35436\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"272.12616\" Top=\"45.35436\" Width=\"105.82684\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"385.51206\" Top=\"45.35436\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Order No\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"464.88219\" Top=\"45.35436\" Width=\"75.5906\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Net\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"548.03185\" Top=\"45.35436\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"VAT\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"627.40198\" Top=\"45.35436\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Total\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"18.89765\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\" Condition=\"&#60;ds.&#34;BranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)\">\r\n      <TfrxMemoView Name=\"dsAccountNo\" Left=\"0\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetAccountNo]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"83.14966\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNo\" Left=\"147.40167\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;BranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerOrderNo\" Left=\"385.51206\" Top=\"0\" Width=\"75.5906\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetDetails]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNet\" Left=\"461.10266\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"InvoiceNet\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNet&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"551.81138\" Top=\"0\" Width=\"68.03154\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"219.21274\" Top=\"0\" Width=\"45.35436\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"272.12616\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;JobType&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"631.18151\" Top=\"0\" Width=\"68.03154\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1)]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"11.33859\" Left=\"0\" Top=\"294.80334\" Width=\"699.21305\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"49.13389\" Left=\"0\" Top=\"328.81911\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"461.10266\" Top=\"11.33859\" Width=\"79.37013\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"548.03185\" Top=\"11.33859\" Width=\"71.81107\" Height=\"15.11811024\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(Round(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62;) / 100)]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"0\" Top=\"11.33859\" Width=\"264.5671\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[\'Totals for \' + IIF(&#60;ds.&#34;Recharge&#34;&#62;=\'Y\', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;=\'S\',\'Recharge Sales Invoices\', \'Recharge Purchase Invoices\'), \'Sales Invoices\')]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"272.12616\" Top=\"11.33859\" Width=\"109.60637\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"No. of Invoices: [COUNT(MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"627.40198\" Top=\"11.33859\" Width=\"71.81107\" Height=\"15.11811024\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(Round(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1) * 100) / 100)]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','','<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39756.183303669\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function GetAccountNo: String;                                                                  &#13;&#10;begin          &#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = \'N\' then&#13;&#10;    Result := &#60;ds.&#34;AccountNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;BranchName&#34;&#62;;                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDetails: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = \'N\' then&#13;&#10;    Result := &#60;ds.&#34;CustomerOrderNo&#34;&#62;      &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;JobID&#34;&#62;;                    &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E494E564F49434542415443484944222056616C75653D2227333031313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"37.7953\" Left=\"0\" ParentFont=\"False\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"214.98423\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Invoice Batch Summary\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"396.85065\" Top=\"0\" Width=\"301.91342\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"5\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[\'Invoice Batch ID: \' + IntToStr(&#60;tknINVOICEBATCHID&#62;)]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"15.11812\" Left=\"0\" ParentFont=\"False\" Top=\"257.00804\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"430.86642\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" StretchMode=\"smActualHeight\" DataField=\"NominalCode\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NominalCode&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"514.01608\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataField=\"NominalNet\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;NominalNet&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"362.83488\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Nominal\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"22.67718\" Left=\"0\" ParentFont=\"False\" Top=\"366.61441\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"551.81138\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Height=\"75.5906\" Left=\"0\" ParentFont=\"False\" Top=\"117.16543\" Width=\"699.21305\" Condition=\"&#60;ds.&#34;Recharge&#34;&#62;+&#60;ds.&#34;InvoiceType&#34;&#62;\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"15.11812\" Width=\"377.953\" Height=\"24.18897638\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;Recharge&#34;&#62;=\'Y\', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;=\'S\',\'Recharge Sales Invoices\', \'Recharge Purchase Invoices\'), \'Sales Invoices\')]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"45.35436\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"A/C\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"45.35436\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Date\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"147.40167\" Top=\"45.35436\" Width=\"64.25201\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Ref\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"219.21274\" Top=\"45.35436\" Width=\"64.25201\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Ex Ref\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"291.02381\" Top=\"45.35436\" Width=\"64.25201\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Dept\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"362.83488\" Top=\"45.35436\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Project Ref\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"430.86642\" Top=\"45.35436\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Details\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"514.01608\" Top=\"45.35436\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Net\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"582.04762\" Top=\"45.35436\" Width=\"52.91342\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"T/C\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"642.5201\" Top=\"45.35436\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"VAT\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"18.89765\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\" Condition=\"&#60;ds.&#34;BranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)\">\r\n      <TfrxMemoView Name=\"dsAccountNo\" Left=\"0\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetAccountNo]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"83.14966\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNo\" Left=\"147.40167\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;BranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerOrderNo\" Left=\"430.86642\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[GetDetails]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNet\" Left=\"514.01608\" Top=\"0\" Width=\"60.47248\" Height=\"18.89765\" DataField=\"InvoiceNet\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNet&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"638.74057\" Top=\"0\" Width=\"60.47248\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"11.33859\" Left=\"0\" Top=\"294.80334\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n',0,'','',NULL,12,'2012-03-23 12:27:41','2008-11-04 13:13:00'),(24,'Inv - Credit Note',0,1,5,0,0,0,1,1,NULL,NULL,'SELECT i.*, j.*,\r\nc.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,\r\ncc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,\r\ne.ModelNumber, e.Description, m.ManufacturerName,\r\nbc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,\r\nbr.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,\r\nci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,\r\nca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,\r\ncr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,\r\ncra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName\r\nFROM invoice_print_list i\r\nINNER JOIN jobs j ON j.JobID = i.IPL_JobID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nINNER JOIN branches bc ON bc.BranchID = j.BranchID\r\nINNER JOIN branches br ON br.BranchID = j.RepairBranchID\r\nLEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode\r\nLEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode\r\nLEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39619.6611051157\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it\'s a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer\'s address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = \'\' then                                        &#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);  &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'C\';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'A\';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'R\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'RA\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := \'CREDIT NOTE\'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := \'RECHARGE INVOICE\'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := \'INVOICE\'&#13;&#10;      else         &#13;&#10;        Result := \'ZERO INVOICE\';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);                 &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = \'GBP\';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Code undetermined\');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Rate undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Symbol undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Name undetermined\');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat(\'#0.00\', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there\'s no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;                                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := \'\'&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := \'This invoice was generated using the exchange rate \' + FormatFloat(\'#0.0000\', GetCurrencyRate) + \' which was set at the time of \';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + \'invoicing.\'&#13;&#10;    else&#13;&#10;      Result := Result + \'quotation.\';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := \'Accounts Copy\'                        &#13;&#10;  else&#13;&#10;    LLabel := \'\';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = \'\', \'Copy\', \'\') + \' \' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"119.43307086\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"366.61417323\" Top=\"47.62204724\" Width=\"332.5984252\" Height=\"71.81102362\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"7.55906\" Width=\"188.9765\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Inv - Credit Note\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"914.64626\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"34.01577\" Top=\"0\" Width=\"321.26005\" Height=\"147.40167\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"147.40159433\" Width=\"699.21305\" Height=\"27.5905585\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-24\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[GetInvoiceTitle]\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"188.97658787\" Width=\"699.21305\" Height=\"86.92919\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"79.37013\" Top=\"196.53564787\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"7.55906\" Top=\"196.53564787\" Width=\"64.25201\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Tax Point:\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"7.55906\" Top=\"215.43329787\" Width=\"64.25201\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"79.37013\" Top=\"215.43329787\" Width=\"306.14193\" Height=\"18.89765\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"7.55906\" Top=\"234.33094787\" Width=\"64.25201\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"79.37013\" Top=\"234.33094787\" Width=\"306.14193\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"419.52783\" Top=\"196.53564787\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job No:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"514.01608\" Top=\"196.53564787\" Width=\"173.85838\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"419.52783\" Top=\"215.43329787\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Reg No:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"514.01608\" Top=\"215.43329787\" Width=\"173.85838\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetVATRegNo]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"419.52783\" Top=\"234.33094787\" Width=\"86.92919\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Account Code:\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"419.52783\" Top=\"253.22859787\" Width=\"86.92919\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = \'\', \'\', \'VAT ID No:\')]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"514.01608\" Top=\"253.22859787\" Width=\"173.85838\" Height=\"18.89765\" DataField=\"VATIDNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;VATIDNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"514.01608\" Top=\"234.33094787\" Width=\"173.85838\" Height=\"18.89765\" DataField=\"AccountNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"298.58295787\" Width=\"699.21305\" Height=\"347.71676\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"325.03966787\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"582.04762\" Top=\"298.58295787\" Width=\"0\" Height=\"347.71676\" Frame.Typ=\"1\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"7.55906\" Top=\"302.36248787\" Width=\"113.3859\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"597.16574\" Top=\"302.36248787\" Width=\"94.48825\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Price\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"7.55906\" Top=\"336.37825787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"7.55906\" Top=\"393.07120787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Quantity:\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"117.16543\" Top=\"336.37825787\" Width=\"461.10266\" Height=\"18.89765\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"117.16543\" Top=\"393.07120787\" Width=\"117.16543\" Height=\"18.89765\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"7.55906\" Top=\"355.27590787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"117.16543\" Top=\"355.27590787\" Width=\"461.10266\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"7.55906\" Top=\"374.17355787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"117.16543\" Top=\"374.17355787\" Width=\"461.10266\" Height=\"18.89765\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"7.55906\" Top=\"430.86650787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"117.16543\" Top=\"430.86650787\" Width=\"449.76407\" Height=\"18.89765\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"7.55906\" Top=\"449.76415787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"117.16543\" Top=\"449.76415787\" Width=\"449.76407\" Height=\"56.69291827\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"7.55906\" Top=\"506.45710787\" Width=\"487.55903315\" Height=\"68.03141551\" DataField=\"InvoiceText\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceText&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"7.55906\" Top=\"411.96885787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Price Each:\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"117.16543\" Top=\"411.96885787\" Width=\"117.16543\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetQuotedPriceAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDiscountRate\" Left=\"7.55906\" Top=\"582.04770787\" Width=\"563.14963315\" Height=\"18.89752551\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Less Discount at \' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + \'%\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mDiscount\" Left=\"585.82715\" Top=\"582.04770787\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDiscountAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscountTitle\" Left=\"7.55906\" Top=\"600.94535787\" Width=\"563.14988213\" Height=\"18.8976378\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Net Price\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscount\" Left=\"585.82715\" Top=\"600.94535787\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetPriceIfDiscountAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDeliveryTitle\" Left=\"7.55906\" Top=\"619.84300787\" Width=\"241.88983213\" Height=\"18.8976378\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery\"/>\r\n      <TfrxMemoView Name=\"mDelivery\" Left=\"585.82715\" Top=\"619.84300787\" Width=\"105.82684\" Height=\"18.8976378\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDeliveryAsCurrency]\"/>\r\n      <TfrxShapeView Name=\"Shape3\" Left=\"0\" Top=\"661.41783787\" Width=\"699.21305\" Height=\"86.92914118\"/>\r\n      <TfrxMemoView Name=\"Memo39\" Left=\"7.55906\" Top=\"668.97689787\" Width=\"328.81911\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Payment terms strictly 30 days from date of invoice.\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"7.55906\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Rate:\"/>\r\n      <TfrxMemoView Name=\"Memo46\" Left=\"7.55906\" Top=\"706.77219787\" Width=\"328.81911\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[\'All values shown are in \' + GetCurrencyName + \'.\']\"/>\r\n      <TfrxMemoView Name=\"Memo47\" Left=\"173.85838\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + \'%\']\"/>\r\n      <TfrxMemoView Name=\"Memo48\" Left=\"7.55906\" Top=\"725.66984787\" Width=\"684.09493\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetExchangeRateMessage]\"/>\r\n      <TfrxMemoView Name=\"Memo49\" Left=\"7.55906\" Top=\"759.68561787\" Width=\"684.09493\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request.\"/>\r\n      <TfrxMemoView Name=\"Memo50\" Left=\"7.55906\" Top=\"797.48091787\" Width=\"684.09493\" Height=\"41.57483\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"The debt shown on this invoice has been assigned to The Royal Bank of Scotland Commercial Services Limited and only they or their appointed agent can give a valid discharge. Until further notice, your remittance payable to The Royal Bank of Scotland Commercial Services Limited should be sent via us, as their duly appointed collection agent, to our address shown on this invoice.\"/>\r\n      <TfrxMemoView Name=\"Memo52\" Left=\"476.22078\" Top=\"668.97689787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Invoice Net =\"/>\r\n      <TfrxMemoView Name=\"Memo53\" Left=\"476.22078\" Top=\"687.87454787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT =\"/>\r\n      <TfrxMemoView Name=\"Memo54\" Left=\"476.22078\" Top=\"706.77219787\" Width=\"102.04731\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Total =\"/>\r\n      <TfrxMemoView Name=\"Memo55\" Left=\"585.82715\" Top=\"668.97689787\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo56\" Left=\"585.82715\" Top=\"687.87454787\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetVATAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo57\" Left=\"585.82715\" Top=\"706.77219787\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetTotalAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo51\" Left=\"291.02381\" Top=\"873.07151787\" Width=\"404.40971\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[GetLabel]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"491.3389\" Top=\"0\" Width=\"204.09462\" Height=\"139.84261\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetBranchAddress]\"/>\r\n      <TfrxMemoView Name=\"mInvoicePrice\" Left=\"585.82715\" Top=\"336.37817\" Width=\"105.82684\" Height=\"18.89763291\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetInvoicePriceIncDiscountAsCurrency]\"/>\r\n    </TfrxMasterData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,0,NULL,'2008-06-20 14:51:04'),(25,'Pick List',0,1,5,0,0,0,0,1,NULL,NULL,'SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, parts_distribution_lists.CreatedByID,\r\nparts.PartDescription, parts.SupplierPartNo, parts.Location, jobs.QuotedByID, jobs.RepairedByID,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nINNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID\r\nINNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID\r\nLEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID \r\nLEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]\r\n\r\n\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40633.6313498958\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D222731272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"128.50402\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"82.70068\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Pick List\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"124.72449\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DistributionListID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DistributionListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsUserName\" Left=\"37.7953\" Top=\"64.25201\" Width=\"136.06308\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;UserName&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"529.1342\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"529.1342\" Top=\"68.03154\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"102.04731\" Width=\"52.91342\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"60.47248\" Top=\"102.04731\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Location\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"162.51979\" Top=\"102.04731\" Width=\"158.74026\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"328.81911\" Top=\"102.04731\" Width=\"370.39394\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"37.7953\" Width=\"120.94496\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Distribution List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"264.5671\" Top=\"64.25201\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Bench&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"0\" Top=\"64.25201\" Width=\"30.23624\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"For:\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"211.65368\" Top=\"64.25201\" Width=\"49.13389\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Bench:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"472.44125\" Top=\"37.7953\" Width=\"49.13389\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"211.65368\" Top=\"37.7953\" Width=\"86.92919\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Date Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"302.3624\" Top=\"37.7953\" Width=\"143.62214\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"472.44125\" Top=\"68.03154\" Width=\"49.13389\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job ID:\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"207.87415\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"52.91342\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Qty\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Qty&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"162.51979\" Top=\"0\" Width=\"158.74026\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsLocation\" Left=\"60.47248\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Location&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"328.81911\" Top=\"0\" Width=\"370.39394\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"291.02381\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,17,'2012-05-23 09:23:16','2011-03-31 14:12:00'),(26,'Distribution to Jobs List',0,1,5,0,1,0,0,1,NULL,NULL,'SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, \r\nmaterial_order_lines.PartDescription, material_order_lines.SupplierPartNo, \r\nmaterial_orders.OrderNo, suppliers.SupplierName, CONCAT(\"Order: \", material_orders.OrderNo) AS Location, \r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nINNER JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID\r\nINNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID\r\nINNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nINNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID\r\nLEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID \r\nLEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]\r\n\r\nUNION ALL\r\n\r\nSELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, \r\nparts.PartDescription, parts.SupplierPartNo, NULL AS OrderNo, suppliers.SupplierName, parts.Location, \r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nINNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID \r\nINNER JOIN suppliers ON suppliers.SupplierID = parts.SupplierID\r\nINNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID\r\nLEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID \r\nLEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]\r\n\r\nORDER BY Bench, UserName, JobID, OrderNo, JobMaterialID\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40633.6490065278\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273430272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"102.04731\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"207.42517\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Distribution to Jobs List\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"124.72449\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DistributionListID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DistributionListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"525.35467\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"275.90569\" Top=\"75.5906\" Width=\"30.23624\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"158.74026\" Top=\"75.5906\" Width=\"60.47248\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Bench\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"362.83488\" Top=\"75.5906\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"457.32313\" Top=\"75.5906\" Width=\"177.63791\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"37.7953\" Width=\"120.94496\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Distribution List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"472.44125\" Top=\"37.7953\" Width=\"49.13389\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"211.65368\" Top=\"37.7953\" Width=\"86.92919\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Date Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"298.58287\" Top=\"37.7953\" Width=\"143.62214\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"79.37013\" Top=\"75.5906\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Engineer\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"226.7718\" Top=\"75.5906\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"642.5201\" Top=\"75.5906\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"75.5906\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Location\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"313.70099\" Top=\"75.5906\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Part ID\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"275.90569\" Top=\"0\" Width=\"30.23624\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Qty\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Qty&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"362.83488\" Top=\"0\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsLocation\" Left=\"158.74026\" Top=\"0\" Width=\"60.47248\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"Bench\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Bench&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"457.32313\" Top=\"0\" Width=\"177.63791\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"79.37013\" Top=\"0\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"UserName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;UserName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"226.7718\" Top=\"0\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"642.5201\" Top=\"0\" Width=\"56.69295\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartID\" Left=\"0\" Top=\"0\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Location&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"313.70099\" Top=\"0\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"PartID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;PartID&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"264.5671\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,0,NULL,'2011-03-31 18:28:00'),(27,'Restocking List',0,1,5,0,1,0,0,1,NULL,NULL,'SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, material_order_lines.PartDescription, material_order_lines.SupplierPartNo, parts.Location, material_orders.OrderNo, suppliers.SupplierName, users.Bench, users.UserName\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nINNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID\r\nINNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID\r\nINNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nINNER JOIN users ON users.UserID = parts_distribution_lists.CreatedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]\r\nORDER BY OrderNo, OrderLineID',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39703.4858308912\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D2227323927220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"102.04731\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"135.6141\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Restocking List\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"124.72449\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"DistributionListID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DistributionListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"532.91373\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"139.84261\" Top=\"75.5906\" Width=\"34.01577\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"75.5906\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Location\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"181.41744\" Top=\"75.5906\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"287.24428\" Top=\"75.5906\" Width=\"219.21274\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"638.74057\" Top=\"75.5906\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Order No\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"37.7953\" Width=\"120.94496\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Distribution List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"476.22078\" Top=\"37.7953\" Width=\"52.91342\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"219.21274\" Top=\"37.7953\" Width=\"86.92919\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Date Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"306.14193\" Top=\"37.7953\" Width=\"143.62214\" Height=\"18.89765\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"83.14966\" Top=\"75.5906\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part ID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"514.01608\" Top=\"75.5906\" Width=\"117.16543\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"dsPartID\" Left=\"638.74057\" Top=\"0\" Width=\"56.69295\" Height=\"18.89765\" DataField=\"OrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;OrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"139.84261\" Top=\"0\" Width=\"34.01577\" Height=\"18.89765\" DataField=\"Qty\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Qty&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" StretchMode=\"smActualHeight\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsLocation\" Left=\"0\" Top=\"0\" Width=\"75.5906\" Height=\"18.89765\" StretchMode=\"smActualHeight\" DataField=\"Location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Location&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"287.24428\" Top=\"0\" Width=\"219.21274\" Height=\"18.89765\" StretchMode=\"smActualHeight\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"83.14966\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataField=\"PartID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;PartID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"514.01608\" Top=\"0\" Width=\"117.16543\" Height=\"18.89765\" StretchMode=\"smActualHeight\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"264.5671\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,0,NULL,'2008-09-12 10:38:59'),(28,'Material Invoice List',0,1,5,0,1,0,1,1,NULL,NULL,'SELECT material_orders.MaterialInvoiceListID,\r\n       material_invoice_lists.DateTimeCreated,\r\n       material_orders.OrderNo,\r\n       suppliers.SupplierName,\r\n       material_invoices.*,\r\n       material_order_lines.NominalCode,\r\n       material_payments.MaterialPaymentID,\r\n       SUM(material_order_lines.UnitPrice * material_order_lines.QtyOrdered) AS NominalCodeTotal\r\nFROM material_orders\r\nINNER JOIN material_invoice_lists ON material_invoice_lists.MaterialInvoiceListID = material_orders.MaterialInvoiceListID\r\nINNER JOIN material_invoices ON material_invoices.OrderID = material_orders.OrderID\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nINNER JOIN material_order_lines ON material_order_lines.OrderID = material_orders.OrderID\r\nLEFT JOIN material_payments ON material_payments.OrderID = material_orders.OrderID\r\nWHERE material_orders.MaterialInvoiceListID = [MATERIALINVOICELISTID]\r\nGROUP BY material_order_lines.NominalCode\r\nORDER BY OrderNo, MaterialInvoiceID, NominalCodeTotal DESC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39759.109979919\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"var      &#13;&#10;  FPreviousMaterialInvoiceID: Integer;&#13;&#10;  FPreviousOrderID: Integer;                                                &#13;&#10;  FMaterialPaymentIDsPrinted: String;                           &#13;&#10;&#13;&#10;procedure frxReport1OnStartReport(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  FPreviousMaterialInvoiceID := 0;&#13;&#10;  FPreviousOrderID := 0;                           &#13;&#10;  FMaterialPaymentIDsPrinted := \',\';                    &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetNominalCode: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;UCode&#34;&#62; = \'\' then                                        &#13;&#10;    Result := &#60;ds.&#34;NominalCodeJobID&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;UCode&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetPaymentRef: String;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;Ref1&#34;&#62;;      &#13;&#10;  if &#60;ds.&#34;Ref2&#34;&#62; &#60;&#62; \'\' then Result := Result + iif(Result = \'\', \'\', \', \') + &#60;ds.&#34;Ref2&#34;&#62;;&#13;&#10;  if &#60;ds.&#34;Ref3&#34;&#62; &#60;&#62; \'\' then Result := Result + iif(Result = \'\', \'\', \', \') + &#60;ds.&#34;Ref3&#34;&#62;;&#13;&#10;end;&#13;&#10;    &#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;&#13;&#10;  LPaymentID: String;                                                     &#13;&#10;begin&#13;&#10;{    &#13;&#10;  LVisible := FPreviousMaterialInvoiceID &#60;&#62; &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;&#13;&#10;  // hide certain fields if same order no, allows more than payment to be listed neatly                                                                                                                                                                                                                 &#13;&#10;  mOrderNo.Visible := LVisible;&#13;&#10;  mSupplierName.Visible := LVisible;                                    &#13;&#10;  mInvoiceNo.Visible := LVisible;&#13;&#10;  mInvoiceDate.Visible := LVisible;          &#13;&#10;  mAmount.Visible := LVisible;  &#13;&#10;  mVAT.Visible := LVisible;  &#13;&#10;  mNominalCode.Visible := LVisible;    &#13;&#10;  FPreviousMaterialInvoiceID := &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;  &#13;&#10;                                         &#13;&#10;  // make sure same payment is only printed once&#13;&#10;  // otherwise due to the recordset, when an order has more than one invoice, the payment will print as many times&#13;&#10;  // as there are invoices for the same order, and if there are two payments for the order then it prints two per invoice&#13;&#10;  if &#60;ds.&#34;OrderID&#34;&#62; &#60;&#62; FPreviousOrderID then&#13;&#10;  begin            &#13;&#10;    FPreviousOrderID := &#60;ds.&#34;OrderID&#34;&#62;;&#13;&#10;    FMaterialPaymentIDsPrinted := \',\';                                &#13;&#10;  end;                  &#13;&#10;  LPaymentID := &#60;ds.&#34;MaterialPaymentID&#34;&#62;;&#13;&#10;    &#13;&#10;  LVisible := Pos(\',\' + LPaymentID + \',\', FMaterialPaymentIDsPrinted) = 0;                                                                                                                                                                                                                                                                                                  &#13;&#10;  mPaymentType.Visible := LVisible;&#13;&#10;  mPaymentAmount.Visible := LVisible;&#13;&#10;  mPaymentRef.Visible := LVisible;                      &#13;&#10;    &#13;&#10;  if LPaymentID &#60;&#62; \'\' then FMaterialPaymentIDsPrinted := FMaterialPaymentIDsPrinted + LPaymentID + \',\';&#13;&#10;  }      &#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" OnStartReport=\"frxReport1OnStartReport\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273236272200010C2E000000204E616D653D22746B6E4D4154455249414C494E564F49434542415443484944222056616C75653D22273136272200010C2D000000204E616D653D22746B6E4D4154455249414C494E564F4943454C4953544944222056616C75653D2227353627220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" PrintIfEmpty=\"False\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"83.14966\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"286.7953\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Material Invoice List for Accounts\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"464.88219\" Top=\"3.77953\" Width=\"60.47248\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;MaterialInvoiceListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"597.16574\" Top=\"3.77953\" Width=\"94.48825\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"487.55937\" Top=\"60.47248\" Width=\"71.81107\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Amount\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"79.37013\" Top=\"60.47248\" Width=\"211.65368\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"634.96104\" Top=\"60.47248\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Payment\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"313.70099\" Top=\"3.77953\" Width=\"147.40167\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Material Invoice List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"544.25232\" Top=\"3.77953\" Width=\"49.13389\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"313.70099\" Top=\"26.45671\" Width=\"124.72449\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Date / Time Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"464.88219\" Top=\"26.45671\" Width=\"132.28355\" Height=\"18.89765\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"298.58287\" Top=\"60.47248\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Invoice No\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"396.85065\" Top=\"60.47248\" Width=\"83.14966\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Invoice Date\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"60.47248\" Width=\"68.03154\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Order No\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"570.70903\" Top=\"60.47248\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"VAT\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89764024\" Left=\"0\" Top=\"207.87415\" Width=\"699.21305\" OnAfterPrint=\"MasterData1OnAfterPrint\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"396.85065\" Top=\"0\" Width=\"83.14966\" Height=\"18.89764024\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%g\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NominalCode&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"487.55937\" Top=\"0\" Width=\"71.81107\" Height=\"18.89764024\" DataField=\"NominalCodeTotal\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;NominalCodeTotal&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"298.58287\" Top=\"0\" Width=\"90.70872\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Nominal Code\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"287.24428\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"551.81101386\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67717024\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" Condition=\"ds.&#34;MaterialInvoiceID&#34;\">\r\n      <TfrxMemoView Name=\"mPaymentType\" Left=\"634.96104\" Top=\"3.77952999999999\" Width=\"56.69295\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;MaterialPaymentID&#34;&#62;= 0, \'\', \'Yes\')]\"/>\r\n      <TfrxMemoView Name=\"mAmount\" Left=\"487.55937\" Top=\"3.77952999999999\" Width=\"71.81107\" Height=\"18.89764024\" DataField=\"Amount\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Amount&#34;]\"/>\r\n      <TfrxMemoView Name=\"mInvoiceNo\" Left=\"298.58287\" Top=\"3.77952999999999\" Width=\"90.70872\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataField=\"InvoiceNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"mInvoiceDate\" Left=\"396.85065\" Top=\"3.77952999999999\" Width=\"83.14966\" Height=\"18.89764024\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"mVAT\" Left=\"570.70903\" Top=\"3.77952999999999\" Width=\"56.69295\" Height=\"18.89764024\" DataField=\"VATAmount\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;VATAmount&#34;]\"/>\r\n      <TfrxMemoView Name=\"mSupplierName\" Left=\"79.37013\" Top=\"3.77952999999999\" Width=\"211.65368\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"mOrderNo\" Left=\"0\" Top=\"3.77952999999999\" Width=\"68.03154\" Height=\"18.89764024\" DataField=\"OrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;OrderNo&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,5,'2012-05-23 10:47:36','2008-11-07 02:37:54'),(29,'Quote Request',0,1,5,0,1,0,0,1,NULL,NULL,'SELECT * FROM material_quote_requests\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_quote_requests.SupplierID\r\nWHERE QuoteRequestID = [QUOTEREQUESTID]',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39035.7740109375\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40892.5951441782\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313833353536272200010C25000000204E616D653D22746B6E51554F5445524551554553544944222056616C75653D222731272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"783.49605322\" Left=\"0\" Top=\"151.1812\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"4.15747787000001\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"To:\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"27.9685015\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Company:\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"51.77952512\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Fax No:\"/>\r\n      <TfrxMemoView Name=\"mmMessageQuotation\" Left=\"11.33858268\" Top=\"109.60626992\" Width=\"676.53587\" Height=\"79.37013\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"We would be grateful if you could quote for the following part.&#13;&#10;&#13;&#10;You can do this by phone on XXXXX XXXXXX or by faxing us on XXXXX XXXXXX.&#13;&#10;&#13;&#10;You can also email your quote to xxx@xxx.co.uk.&#13;&#10;&#13;&#10;&#13;&#10;\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"109.60637\" Top=\"3.77952999999999\" Width=\"278.55120551\" Height=\"26.45671\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;Contact&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"109.60637\" Top=\"27.9685015\" Width=\"287.24428\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"109.60637\" Top=\"51.77952512\" Width=\"249.44898\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;Fax&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"359.05512055\" Top=\"4.15747787000001\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"From:\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"359.05535\" Top=\"27.9685015\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"359.05535\" Top=\"51.77952512\" Width=\"102.04724409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Our Ref:\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"468.66172\" Top=\"27.9685015\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd mmmm yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"468.66172\" Top=\"51.77952512\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;] / [ds.&#34;QuoteRequestID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"468.66172\" Top=\"3.77952999999999\" Width=\"230.55133\" Height=\"24.56692913\" ShowHint=\"False\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"11.33858268\" Top=\"207.87415\" Width=\"677.29135079\" Height=\"336.37795276\" ShowHint=\"False\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"83.1496063\" Top=\"207.87415\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"196.53543307\" Top=\"207.87415\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"563.1496063\" Top=\"207.87415\" Width=\"0\" Height=\"336.37817\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"11.33858268\" Top=\"272.12583291\" Width=\"677.29133858\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"22.67718\" Top=\"226.7718\" Width=\"45.35429409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"QTY\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"86.92919\" Top=\"219.21274\" Width=\"98.26771409\" Height=\"43.46457913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"OUR JOB REF\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"204.09462\" Top=\"226.7718\" Width=\"355.27575409\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"DESCRIPTION OF PART\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"574.48856\" Top=\"211.65339197\" Width=\"98.26771409\" Height=\"43.46457913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"PRICE EACH\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"574.48856\" Top=\"253.22819512\" Width=\"102.04724409\" Height=\"17.00786913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"(excluding VAT)\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"18.89765\" Top=\"287.24428\" Width=\"49.13389\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Style=\"Normal\" Text=\"[ds.&#34;QtyRequired&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"90.70872\" Top=\"287.24428\" Width=\"94.48825\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"204.09462\" Top=\"287.24428\" Width=\"86.92910213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Part No:\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"204.09462\" Top=\"317.48052\" Width=\"86.92910213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"Desc:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"294.80334\" Top=\"287.24428\" Width=\"260.78757\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"294.80334\" Top=\"317.48052\" Width=\"260.78757\" Height=\"98.26778\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"mmPriceEach\" Left=\"566.9295\" Top=\"287.24394315\" Width=\"109.60637\" Height=\"26.45669291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;UnitPrice&#34;&#62; &#60;= 0, \'TBA\', &#60;ds.&#34;UnitPrice&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo36\" Left=\"207.87415\" Top=\"514.01608\" Width=\"147.40158213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery Date:\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"366.61441\" Top=\"514.01608\" Width=\"147.40158213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DeliveryDate&#34;&#62; &#60;= 0, \'ASAP\', &#60;ds.&#34;DeliveryDate&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"207.87415\" Top=\"430.86642\" Width=\"147.40158213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery Cost:\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"366.61441\" Top=\"430.86642\" Width=\"147.40158213\" Height=\"24.56692913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;Delivery&#34;&#62; &#60;= 0, \'TBA\', &#60;ds.&#34;Delivery&#34;&#62;)]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"16.2519685\" Left=\"0\" Top=\"994.01639\" Width=\"699.21305\"/>\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"434.26772386\" Top=\"10.96062748\" Width=\"263.43307087\" Height=\"48\" ShowHint=\"False\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n      <TfrxMemoView Name=\"mmTitle\" Left=\"0\" Top=\"15.11812\" Width=\"423.30736\" Height=\"37.7953\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-27\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quote Request\"/>\r\n    </TfrxPageHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,5,'2012-05-23 11:03:51','2008-12-02 16:31:57'),(30,'Material Payment List',0,1,5,0,1,0,1,1,NULL,NULL,'SELECT material_orders.MaterialInvoiceListID,\r\n       material_invoice_lists.DateTimeCreated,\r\n       material_orders.OrderNo,\r\n       suppliers.SupplierName,\r\n       material_payments.*,\r\n       payment_types.*\r\nFROM material_orders\r\nINNER JOIN material_invoice_lists ON material_invoice_lists.MaterialInvoiceListID = material_orders.MaterialInvoiceListID\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nINNER JOIN material_payments ON material_payments.OrderID = material_orders.OrderID\r\nINNER JOIN payment_types ON payment_types.PaymentTypeID = material_payments.PaymentTypeID\r\nWHERE material_orders.MaterialInvoiceListID = [MATERIALINVOICELISTID]\r\nORDER BY OrderNo, MaterialPaymentID',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39759.1138049768\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"var      &#13;&#10;  FPreviousMaterialInvoiceID: Integer;&#13;&#10;  FPreviousOrderID: Integer;                                                &#13;&#10;  FMaterialPaymentIDsPrinted: String;                           &#13;&#10;&#13;&#10;procedure frxReport1OnStartReport(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  FPreviousMaterialInvoiceID := 0;&#13;&#10;  FPreviousOrderID := 0;                           &#13;&#10;  FMaterialPaymentIDsPrinted := \',\';                    &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetNominalCode: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;UCode&#34;&#62; = \'\' then                                        &#13;&#10;    Result := &#60;ds.&#34;NominalCodeJobID&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;UCode&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetPaymentRef: String;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;Ref1&#34;&#62;;      &#13;&#10;  if &#60;ds.&#34;Ref2&#34;&#62; &#60;&#62; \'\' then Result := Result + iif(Result = \'\', \'\', \', \') + &#60;ds.&#34;Ref2&#34;&#62;;&#13;&#10;  if &#60;ds.&#34;Ref3&#34;&#62; &#60;&#62; \'\' then Result := Result + iif(Result = \'\', \'\', \', \') + &#60;ds.&#34;Ref3&#34;&#62;;&#13;&#10;end;&#13;&#10;    &#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;&#13;&#10;  LPaymentID: String;                                                     &#13;&#10;begin&#13;&#10;{    &#13;&#10;  LVisible := FPreviousMaterialInvoiceID &#60;&#62; &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;&#13;&#10;  // hide certain fields if same order no, allows more than payment to be listed neatly                                                                                                                                                                                                                 &#13;&#10;  mOrderNo.Visible := LVisible;&#13;&#10;  mSupplierName.Visible := LVisible;                                    &#13;&#10;  mInvoiceNo.Visible := LVisible;&#13;&#10;  mInvoiceDate.Visible := LVisible;          &#13;&#10;  mAmount.Visible := LVisible;  &#13;&#10;  mVAT.Visible := LVisible;  &#13;&#10;  mNominalCode.Visible := LVisible;    &#13;&#10;  FPreviousMaterialInvoiceID := &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;  &#13;&#10;                                         &#13;&#10;  // make sure same payment is only printed once&#13;&#10;  // otherwise due to the recordset, when an order has more than one invoice, the payment will print as many times&#13;&#10;  // as there are invoices for the same order, and if there are two payments for the order then it prints two per invoice&#13;&#10;  if &#60;ds.&#34;OrderID&#34;&#62; &#60;&#62; FPreviousOrderID then&#13;&#10;  begin            &#13;&#10;    FPreviousOrderID := &#60;ds.&#34;OrderID&#34;&#62;;&#13;&#10;    FMaterialPaymentIDsPrinted := \',\';                                &#13;&#10;  end;                  &#13;&#10;  LPaymentID := &#60;ds.&#34;MaterialPaymentID&#34;&#62;;&#13;&#10;    &#13;&#10;  LVisible := Pos(\',\' + LPaymentID + \',\', FMaterialPaymentIDsPrinted) = 0;                                                                                                                                                                                                                                                                                                  &#13;&#10;  mPaymentType.Visible := LVisible;&#13;&#10;  mPaymentAmount.Visible := LVisible;&#13;&#10;  mPaymentRef.Visible := LVisible;                      &#13;&#10;    &#13;&#10;  if LPaymentID &#60;&#62; \'\' then FMaterialPaymentIDsPrinted := FMaterialPaymentIDsPrinted + LPaymentID + \',\';&#13;&#10;  }      &#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" OnStartReport=\"frxReport1OnStartReport\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273236272200010C2E000000204E616D653D22746B6E4D4154455249414C494E564F49434542415443484944222056616C75653D22273136272200010C2D000000204E616D653D22746B6E4D4154455249414C494E564F4943454C4953544944222056616C75653D2227353627220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" PrintIfEmpty=\"False\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"83.14966\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"301.91342\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Material Payment List for Accounts\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"464.88219\" Top=\"3.77953\" Width=\"60.47248\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;MaterialInvoiceListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"585.82715\" Top=\"3.77953\" Width=\"109.60637\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"442.20501\" Top=\"60.47248\" Width=\"64.25201\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"79.37013\" Top=\"60.47248\" Width=\"185.19697\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Name\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"313.70099\" Top=\"3.77953\" Width=\"147.40167\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Material Invoice List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"536.69326\" Top=\"3.77953\" Width=\"49.13389\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"313.70099\" Top=\"26.45671\" Width=\"124.72449\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Date / Time Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"464.88219\" Top=\"26.45671\" Width=\"132.28355\" Height=\"18.89765\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"272.12616\" Top=\"60.47248\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Payment Date\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"359.05535\" Top=\"60.47248\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Amount\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"60.47248\" Width=\"68.03154\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Order No\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"514.01608\" Top=\"60.47248\" Width=\"181.41744\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Ref erence\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89764024\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" OnAfterPrint=\"MasterData1OnAfterPrint\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"359.05535\" Top=\"0\" Width=\"75.5906\" Height=\"18.89764024\" DataField=\"Amount\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Amount&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"442.20501\" Top=\"0\" Width=\"64.25201\" Height=\"18.89764024\" DataField=\"PaymentTypeName\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;PaymentTypeName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataField=\"PaymentDate\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;PaymentDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"mSupplierName\" Left=\"79.37013\" Top=\"0\" Width=\"185.19697\" Height=\"18.89764024\" StretchMode=\"smActualHeight\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"mOrderNo\" Left=\"0\" Top=\"1.38777878078145E-17\" Width=\"68.03154\" Height=\"18.89764024\" DataField=\"OrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;OrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"514.01608\" Top=\"0\" Width=\"181.41744\" Height=\"18.89764024\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;Ref1&#34;] [ds.&#34;Ref2&#34;] [ds.&#34;Ref3&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"241.88992\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"551.81098945\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,0,NULL,'2008-11-07 04:00:53'),(31,'Material Order',0,1,5,0,1,0,0,1,NULL,NULL,'SELECT *, GetOrderPaymentDetails([ORDERID]) AS PaymentDetails FROM material_orders\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nINNER JOIN material_order_lines ON material_order_lines.OrderID = material_orders.OrderID\r\nINNER JOIN branches ON branches.BranchID = material_orders.BranchID\r\nWHERE material_orders.OrderID = [ORDERID]',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.CreateDate=\"39035.7740109375\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40892.5898977894\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313833353536272200010C25000000204E616D653D22746B6E51554F5445524551554553544944222056616C75653D222731272200010C22000000204E616D653D22746B6E4F524445524944222056616C75653D22273132313533272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"20.03099322\" Left=\"0\" Top=\"423.30736\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsPartID\" Left=\"45.35436\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"PartID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"132.28355\" Top=\"0\" Width=\"158.74026\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQtyOrdered\" Left=\"0\" Top=\"0\" Width=\"37.7953\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"QtyOrdered\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;QtyOrdered&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"298.58287\" Top=\"0\" Width=\"309.92146\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsUnitPrice\" Left=\"616.06339\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"UnitPrice\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;UnitPrice&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"16.2519685\" Left=\"0\" Top=\"502.67749\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo44\" Left=\"0\" Top=\"0\" Width=\"532.91373\" Height=\"16.2519685\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"IMPORTANT! PURCHASE ORDER NO MUST BE QUOTED ON ALL CORRESPONDENCE\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"381.73253\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Condition=\"ds.&#34;material_orders.OrderID&#34;\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"mmTitle\" Left=\"264.94532614\" Top=\"4.15749252\" Width=\"430.86642\" Height=\"37.7953\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-27\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" WordWrap=\"False\" Text=\"Purchase Order No: [ds.&#34;OrderNo&#34;]\"/>\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"0\" Top=\"0\" Width=\"263.43307087\" Height=\"48\" ShowHint=\"False\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"52.91342\" Width=\"230.55126409\" Height=\"20.78739913\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice & Delivery To:\"/>\r\n      <TfrxMemoView Name=\"dsCompanyName\" Left=\"0\" Top=\"75.5906\" Width=\"230.55133\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CompanyName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CompanyName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesAddress1\" Left=\"0\" Top=\"94.48825\" Width=\"309.92125984252\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Address1\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Address1&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesAddress2\" Left=\"0\" Top=\"113.3859\" Width=\"309.92125984252\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Address2\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Address2&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesAddress3\" Left=\"0\" Top=\"132.28355\" Width=\"309.92125984252\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Address3\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Address3&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesAddress4\" Left=\"0\" Top=\"151.1812\" Width=\"309.92125984252\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Address4\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Address4&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesAddress5\" Left=\"0\" Top=\"170.07885\" Width=\"192.75603\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Address5\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Address5&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsbranchesPostcode\" Left=\"196.53556\" Top=\"170.07885\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"branches.Postcode\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Postcode&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssuppliersSupplierID\" Left=\"457.32313\" Top=\"75.5906\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"suppliers.SupplierID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;suppliers.SupplierID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierName\" Left=\"457.32313\" Top=\"94.48825\" Width=\"400.63018\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"321.26005\" Top=\"75.5906\" Width=\"109.60637\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier ID:\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"321.26005\" Top=\"94.48825\" Width=\"109.60637\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Name:\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"457.32313\" Top=\"113.3859\" Width=\"400.63018\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;Contact&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"321.26005\" Top=\"113.3859\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"457.32313\" Top=\"132.28355\" Width=\"400.63018\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;suppliers.Tel&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"321.26005\" Top=\"132.28355\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Tel:\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"457.32313\" Top=\"151.1812\" Width=\"400.63018\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;suppliers.Fax&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo35\" Left=\"321.26005\" Top=\"151.1812\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Fax:\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"457.32313\" Top=\"170.07885\" Width=\"400.63018\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;Email&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"321.26005\" Top=\"170.07885\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Email:\"/>\r\n      <TfrxMemoView Name=\"Memo39\" Left=\"49.13389\" Top=\"196.53556\" Width=\"245.66945\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Tel&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo40\" Left=\"0\" Top=\"196.53556\" Width=\"34.01577\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Tel:\"/>\r\n      <TfrxMemoView Name=\"Memo41\" Left=\"49.13389\" Top=\"215.43321\" Width=\"245.66945\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branches.Fax&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"0\" Top=\"215.43321\" Width=\"34.01577\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Fax:\"/>\r\n      <TfrxMemoView Name=\"Memo43\" Left=\"49.13389\" Top=\"234.33086\" Width=\"245.66945\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SalesEmail&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo46\" Left=\"0\" Top=\"234.33086\" Width=\"49.13389\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Email:\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"325.03958\" Width=\"128.50402\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Payment Details:\"/>\r\n      <TfrxMemoView Name=\"dsPaymentDetails\" Left=\"132.28355\" Top=\"325.03958\" Width=\"563.14997\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"PaymentDetails\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;PaymentDetails&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"268.34663\" Width=\"105.82684\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date of Order:\"/>\r\n      <TfrxMemoView Name=\"dsOrderDate\" Left=\"132.28355\" Top=\"268.34663\" Width=\"113.3859\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"OrderDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;OrderDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"287.24428\" Width=\"105.82684\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Supplier Ref:\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"132.28355\" Top=\"287.24428\" Width=\"245.66945\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierRef&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo47\" Left=\"0\" Top=\"306.14193\" Width=\"105.82684\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Account No:\"/>\r\n      <TfrxMemoView Name=\"Memo48\" Left=\"132.28355\" Top=\"306.14193\" Width=\"245.66945\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"45.35436\" Top=\"359.05535\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part ID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"359.05535\" Width=\"37.7953\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"132.28355\" Top=\"359.05535\" Width=\"158.74026\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"298.58287\" Top=\"359.05535\" Width=\"309.92146\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"616.06339\" Top=\"359.05535\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Unit Price\"/>\r\n      <TfrxMemoView Name=\"dsOrderInformation\" Left=\"457.32313\" Top=\"196.53556\" Width=\"238.11039\" Height=\"124.72449\" ShowHint=\"False\" DataField=\"OrderInformation\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;OrderInformation&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"321.26005\" Top=\"196.53556\" Width=\"132.28355\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order Information:\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','Plain with PDF','Purchase Order {OrderNo}','Please find attached our purchase order {OrderNo}.',0,'','',NULL,96,'2012-05-23 11:29:03','2011-03-28 12:08:18'),(32,'Pro Forma Invoice',0,1,5,0,1,0,1,1,NULL,NULL,'SELECT i.*, j.*,\r\nc.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,\r\ncc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,\r\ne.ModelNumber, e.Description, m.ManufacturerName,\r\nbc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,\r\nbr.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,\r\nci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,\r\nca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,\r\ncr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,\r\ncra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName\r\nFROM invoice_print_list i\r\nINNER JOIN jobs j ON j.JobID = i.IPL_JobID\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nINNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID\r\nINNER JOIN equipment e ON e.EquipmentID = j.EquipmentID\r\nLEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID\r\nINNER JOIN branches bc ON bc.BranchID = j.BranchID\r\nINNER JOIN branches br ON br.BranchID = j.RepairBranchID\r\nLEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode\r\nLEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode\r\nLEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode\r\nLEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"41507.6301556019\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; \'\' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; \'\' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + \', \'&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + \' \'&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it\'s a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer\'s address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = \'\' then                                        &#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField(\'\', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, \'Accounts Payable\', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField(\'\', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField(\'\', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; \'\' then                                            &#13;&#10;      Result := AddField(Result, \'Tel: \' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; \'\' then                                                 &#13;&#10;    Result := AddField(Result, \'Fax: \' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'C\';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'A\';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'R\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = \'RA\';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;{    &#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := \'CREDIT NOTE\'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := \'RECHARGE INVOICE\'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := \'INVOICE\'&#13;&#10;      else         &#13;&#10;        Result := \'ZERO INVOICE\';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + \'  \' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + \' \' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);&#13;&#10;}&#13;&#10;  Result := \'PRO FORMA INVOICE\'; // (SS,21/12/2010)                                                                                                                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = \'GBP\';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Code undetermined\');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Rate undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Symbol undetermined\');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage(\'Currency Name undetermined\');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat(\'#0.00\', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there\'s no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;;                                          &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                                                       &#13;&#10;function GetDiscountForProForma: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := GetSellPriceTotal * (-&#60;ds.&#34;DiscountRate&#34;&#62; / 100);&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := 0;    &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetDiscountAsCurrency]                                                                                        &#13;&#10;function GetDiscountForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscountForProForma)    &#13;&#10;  else&#13;&#10;    Result := \'\';     &#13;&#10;end;                   &#13;&#10;  &#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) added for proforma, doesn\'t have discount deducted like QuotePrice, replaces [GetQuotedPriceAsCurrency]                                                                                                                                                                                                                                                     &#13;&#10;function GetSellPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;SellPrice&#34;&#62;);  &#13;&#10;end;    &#13;&#10;&#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice, this one has discount deducted                                                                                                &#13;&#10;function GetQuotedPriceTotal: Double;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;QuotedPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;;  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/12/12) added for proforma, this doesn\'t have discount deducted                                                                                                                                                                                             &#13;&#10;function GetSellPriceTotal: Double;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;SellPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;;  &#13;&#10;end;    &#13;&#10;      &#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice                                                                                                                          &#13;&#10;function GetQuotedPriceTotalAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetQuotedPriceTotal);  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice, replacing [GetInvoicePriceIncDiscountAsCurrency]                                                                                                                          &#13;&#10;function GetSellPriceTotalAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetSellPriceTotal);  &#13;&#10;end;    &#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := \'\';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                              &#13;&#10;function GetNetPriceForProForma: Double;  &#13;&#10;begin&#13;&#10;  Result := GetSellPriceTotal - GetDiscountForProForma;                            &#13;&#10;end;          &#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetNetPriceIfDiscountAsCurrency]        &#13;&#10;function GetNetPriceIfDiscountForProFormaAsCurrency: String;  &#13;&#10;begin            &#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetNetPriceForProForma)                     &#13;&#10;  else&#13;&#10;    Result := \'\';                    &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                              &#13;&#10;function GetNetPriceIncDeliveryForProForma: Double;  &#13;&#10;begin&#13;&#10;  Result := GetNetPriceForProForma + &#60;ds.&#34;QuotedDelivery&#34;&#62;;                            &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetNetAsCurrency]                                                                                                                &#13;&#10;function GetNetPriceIncDeliveryForProFormaAsCurrency: String;  &#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetNetPriceIncDeliveryForProForma);                            &#13;&#10;end;    &#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;    &#13;&#10;// (SS,3/2/12) added following for ProForma, replaces GetDeliveryAsCurrency                                                                                                                                &#13;&#10;function GetDeliveryForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedDelivery&#34;&#62;);       &#13;&#10;end;             &#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                                                     &#13;&#10;function GetVATForProForma: Double;&#13;&#10;begin&#13;&#10;  Result := GetNetPriceIncDeliveryForProForma * &#60;ds.&#34;VATRate&#34;&#62; / 100;                                                           &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma, replaces [GetVATAsCurrency]                                                                                                     &#13;&#10;function GetVATForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetVATForProForma);                                                           &#13;&#10;end;&#13;&#10;    &#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma, replaces [GetTotalAsCurrency]&#13;&#10;function GetTotalForProFormaAsCurrency: String;                                                                                      &#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetNetPriceIncDeliveryForProForma + GetVATForProForma);                                    &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := \'\'&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := \'This invoice was generated using the exchange rate \' + FormatFloat(\'#0.0000\', GetCurrencyRate) + \' which was set at the time of \';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + \'invoicing.\'&#13;&#10;    else&#13;&#10;      Result := Result + \'quotation.\';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := \'Accounts Copy\'                        &#13;&#10;  else&#13;&#10;    LLabel := \'\';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = \'\', \'Copy\', \'\') + \' \' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" LargeDesignHeight=\"True\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"119.43307086\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxPictureView Name=\"Picture1\" Left=\"366.61441\" Top=\"45.35436\" Width=\"332.5984252\" Height=\"71.81102362\" ShowHint=\"False\" DataField=\"Logo\" DataSet=\"frxDBDatasetReport\" DataSetName=\"dsReportSettings\" HightQuality=\"False\" Transparent=\"False\" TransparentColor=\"16777215\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"914.64626\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\" OnBeforePrint=\"MasterData1OnBeforePrint\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"34.01577\" Top=\"0\" Width=\"321.26005\" Height=\"147.40167\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetAddress]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"147.40159433\" Width=\"699.21305\" Height=\"27.5905585\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-24\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[GetInvoiceTitle]\"/>\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"188.97658787\" Width=\"699.21305\" Height=\"86.92919\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"79.37013\" Top=\"196.53564787\" Width=\"120.94496\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"7.55906\" Top=\"196.53564787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Tax Point:\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"7.55906\" Top=\"215.43329787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Order No:\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"79.37013\" Top=\"215.43329787\" Width=\"306.14193\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"7.55906\" Top=\"234.33094787\" Width=\"64.25201\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Contact:\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"79.37013\" Top=\"234.33094787\" Width=\"306.14193\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetContact]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"419.52783\" Top=\"196.53564787\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Job No:\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"514.01608\" Top=\"196.53564787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"419.52783\" Top=\"215.43329787\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Reg No:\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"514.01608\" Top=\"215.43329787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetVATRegNo]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"419.52783\" Top=\"234.33094787\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Account Code:\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"419.52783\" Top=\"253.22859787\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = \'\', \'\', \'VAT ID No:\')]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"514.01608\" Top=\"253.22859787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"VATIDNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;VATIDNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"514.01608\" Top=\"234.33094787\" Width=\"173.85838\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AccountNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"298.58295787\" Width=\"699.21305\" Height=\"347.71676\" ShowHint=\"False\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"325.03966787\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"582.04762\" Top=\"298.58295787\" Width=\"0\" Height=\"347.71676\" ShowHint=\"False\" Frame.Typ=\"1\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"7.55906\" Top=\"302.36248787\" Width=\"113.3859\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"597.16574\" Top=\"302.36248787\" Width=\"94.48825\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Price\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"7.55906\" Top=\"336.37825787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Description:\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"7.55906\" Top=\"393.07120787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Item Quantity:\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"117.16543\" Top=\"336.37825787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"117.16543\" Top=\"393.07120787\" Width=\"117.16543\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"NumberOff\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"7.55906\" Top=\"355.27590787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Manufacturer:\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"117.16543\" Top=\"355.27590787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"7.55906\" Top=\"374.17355787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Model Number:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"117.16543\" Top=\"374.17355787\" Width=\"461.10266\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"7.55906\" Top=\"430.86650787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Advice Note No:\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"117.16543\" Top=\"430.86650787\" Width=\"449.76407\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"AdviceNoteNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AdviceNoteNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"7.55906\" Top=\"449.76415787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Serial Number(s):\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"117.16543\" Top=\"449.76415787\" Width=\"449.76407\" Height=\"56.69291827\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" DataField=\"SerialNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SerialNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"7.55906\" Top=\"506.45710787\" Width=\"487.55903315\" Height=\"68.03141551\" ShowHint=\"False\" DataField=\"InvoiceText\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceText&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"7.55906\" Top=\"411.96885787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Price Each:\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"117.16543\" Top=\"411.96885787\" Width=\"117.16543\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetSellPriceAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDiscountRate\" Left=\"7.55906\" Top=\"582.04770787\" Width=\"563.14963315\" Height=\"18.89752551\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Less Discount at \' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + \'%\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mDiscount\" Left=\"585.82715\" Top=\"582.04770787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDiscountForProFormaAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscountTitle\" Left=\"7.55906\" Top=\"600.94535787\" Width=\"563.14988213\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, \'Net Price\', \'\')]\"/>\r\n      <TfrxMemoView Name=\"mNetPriceIfDiscount\" Left=\"585.82715\" Top=\"600.94535787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetPriceIfDiscountForProFormaAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"mDeliveryTitle\" Left=\"7.55906\" Top=\"619.84300787\" Width=\"241.88983213\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"Delivery\"/>\r\n      <TfrxMemoView Name=\"mDelivery\" Left=\"585.82715\" Top=\"619.84300787\" Width=\"105.82684\" Height=\"18.8976378\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetDeliveryForProFormaAsCurrency]\"/>\r\n      <TfrxShapeView Name=\"Shape3\" Left=\"0\" Top=\"661.41783787\" Width=\"699.21305\" Height=\"86.92914118\" ShowHint=\"False\"/>\r\n      <TfrxMemoView Name=\"Memo39\" Left=\"7.55906\" Top=\"668.97689787\" Width=\"328.81911\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-12\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Payment terms strictly 30 days from date of invoice.\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"7.55906\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT Rate:\"/>\r\n      <TfrxMemoView Name=\"Memo46\" Left=\"7.55906\" Top=\"706.77219787\" Width=\"328.81911\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[\'All values shown are in \' + GetCurrencyName + \'.\']\"/>\r\n      <TfrxMemoView Name=\"Memo47\" Left=\"173.85838\" Top=\"687.87454787\" Width=\"162.51979\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + \'%\']\"/>\r\n      <TfrxMemoView Name=\"Memo48\" Left=\"7.55906\" Top=\"725.66984787\" Width=\"684.09493\" Height=\"18.89765\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[GetExchangeRateMessage]\"/>\r\n      <TfrxMemoView Name=\"Memo49\" Left=\"7.55906\" Top=\"759.68561787\" Width=\"684.09493\" Height=\"30.23624\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request.\"/>\r\n      <TfrxMemoView Name=\"Memo52\" Left=\"476.22078\" Top=\"668.97689787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Invoice Net =\"/>\r\n      <TfrxMemoView Name=\"Memo53\" Left=\"476.22078\" Top=\"687.87454787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"VAT =\"/>\r\n      <TfrxMemoView Name=\"Memo54\" Left=\"476.22078\" Top=\"706.77219787\" Width=\"102.04731\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Total =\"/>\r\n      <TfrxMemoView Name=\"Memo55\" Left=\"585.82715\" Top=\"668.97689787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetNetPriceIncDeliveryForProFormaAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo56\" Left=\"585.82715\" Top=\"687.87454787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetVATForProFormaAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo57\" Left=\"585.82715\" Top=\"706.77219787\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetTotalForProFormaAsCurrency]\"/>\r\n      <TfrxMemoView Name=\"Memo51\" Left=\"291.02381\" Top=\"873.07151787\" Width=\"404.40971\" Height=\"15.11812\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[GetLabel]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"491.3389\" Top=\"0\" Width=\"204.09462\" Height=\"139.84261\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetBranchAddress]\"/>\r\n      <TfrxMemoView Name=\"mInvoicePrice\" Left=\"585.82715\" Top=\"336.37817\" Width=\"105.82684\" Height=\"18.89763291\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Style=\"Normal\" Text=\"[GetSellPriceTotalAsCurrency]\"/>\r\n    </TfrxMasterData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','Plain with PDF','Pro Forma Invoice','Just testing',0,'','',NULL,22,'2012-05-22 15:23:03','2010-12-21 17:01:56'),(38,'Distribution List',0,1,5,0,1,0,0,1,NULL,NULL,'# parts from actual orders to jobs or to stock\r\nSELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, \r\nmaterial_order_lines.PartDescription, material_order_lines.SupplierPartNo, \r\nmaterial_orders.OrderNo, suppliers.SupplierName,\r\nIF(jobs.JobID IS NULL, parts.Location, NULL) AS Location,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nLEFT JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID\r\nINNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID\r\nINNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID\r\nINNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID\r\nLEFT JOIN parts ON parts.PartID = parts_distribution_lines.PartID\r\nLEFT JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID\r\nLEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID \r\nLEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID] AND parts_distribution_lines.OrderLineID IS NOT NULL\r\n\r\nUNION ALL\r\n\r\n# parts from stock to jobs\r\nSELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, \r\nparts.PartDescription, parts.SupplierPartNo, \r\nNULL AS OrderNo, suppliers.SupplierName,\r\nparts.Location,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,\r\nIF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench\r\nFROM parts_distribution_lines\r\nINNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID\r\nLEFT JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID\r\nINNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID\r\nINNER JOIN suppliers ON suppliers.SupplierID = parts.SupplierID\r\nINNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID\r\nLEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID \r\nLEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID \r\nWHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID] AND parts_distribution_lines.OrderLineID IS NULL',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40634.7948891204\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273438272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"102.04731\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"143.17316\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Distribution List\"/>\r\n      <TfrxMemoView Name=\"dsDistributionListID\" Left=\"124.72449\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DistributionListID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DistributionListID&#34;]\"/>\r\n      <TfrxMemoView Name=\"strBranchName\" Left=\"525.35467\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strBranchName]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"302.3624\" Top=\"75.5906\" Width=\"30.23624\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"340.1577\" Top=\"75.5906\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"434.64595\" Top=\"75.5906\" Width=\"177.63791\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"37.7953\" Width=\"120.94496\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Distribution List ID:\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"472.44125\" Top=\"37.7953\" Width=\"49.13389\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Branch:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"211.65368\" Top=\"37.7953\" Width=\"86.92919\" Height=\"22.67718\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"0\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Date Created:\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"298.58287\" Top=\"37.7953\" Width=\"143.62214\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"136.06308\" Top=\"75.5906\" Width=\"109.60637\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Engineer / Bench\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"253.22851\" Top=\"75.5906\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"619.84292\" Top=\"75.5906\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"56.69295\" Top=\"75.5906\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Location\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"0\" Top=\"75.5906\" Width=\"49.13389\" Height=\"18.89765\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Order No\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\" Stretched=\"True\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"302.3624\" Top=\"0\" Width=\"30.23624\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Qty\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;Qty&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"340.1577\" Top=\"0\" Width=\"86.92919\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"434.64595\" Top=\"0\" Width=\"177.63791\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"136.06308\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;UserName&#34;&#62; + IIF(&#60;ds.&#34;Bench&#34;&#62; = \'\', \'\', \' / \' + &#60;ds.&#34;Bench&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"253.22851\" Top=\"0\" Width=\"41.57483\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"619.84292\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" ShowHint=\"False\" StretchMode=\"smActualHeight\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsPartID\" Left=\"56.69295\" Top=\"0\" Width=\"71.81107\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"Location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Location&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"0\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" ShowHint=\"False\" DataField=\"OrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;OrderNo&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"264.5671\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None','',NULL,0,'','',NULL,34,'2013-08-07 11:02:04','2011-04-01 18:09:02'),(102,'Intrastat Report including Repairs',0,4,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	InvoiceDate,\r\n	countries.GeoIPCountryCode AS country_code,\r\n	JobID,\r\n	customers.CustomerName AS customer_name,	\r\n	InvoiceNet\r\nFROM\r\n	jobs\r\nJOIN branches ON jobs.BranchID=branches.BranchID\r\nJOIN customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN countries ON customers.DeliveryCountryID=countries.CountryID\r\nWHERE\r\n	countries.GeoIPCountryCode IN (\"AT\",\"BE\",\"BG\",\"CY\",\"CZ\",\"DK\",\"EE\",\"FI\",\"FR\",\"DE\",\"GR\",\"HU\",\"IE\",\"IT\",\"LV\",\"LT\",\"LU\",\"MT\",\"NL\",\"PL\",\"PT\",\"RO\",\"SK\",\"SI\",\"ES\",\"SE\",\"GB\")\r\nAND\r\n	InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND \r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nORDER BY\r\n	InvoiceDate ASC,\r\n	country_code ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39800.6555553704\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D31322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D31322D3138272200010C2D000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227496E7465726E6174696F6E616C27220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Intrastat Report for [tknBRANCHNAME] between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"204.09462\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"45.35436\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"132.28355\" Top=\"0\" Width=\"343.93723\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNet\" Left=\"487.55937\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"InvoiceNet\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNet&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"400.63018\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" Condition=\"ds.&#34;InvoiceDate&#34;\">\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"0\" Top=\"0\" Width=\"200.31509\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Date: [ds.&#34;InvoiceDate&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"22.67718\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" Condition=\"ds.&#34;country_code&#34;\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"18.89765\" Top=\"0\" Width=\"196.53556\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Country [ds.&#34;country_code&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"298.58287\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dscountry_code\" Left=\"287.24428\" Top=\"0\" Width=\"196.53556\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;] Total:\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"487.55937\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"26.45671\" Width=\"695.43352\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"30.23624\" Left=\"0\" Top=\"245.66945\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"487.55937\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"83.14966\" Top=\"0\" Width=\"400.63018\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Country [ds.&#34;country_code&#34;] total for [ds.&#34;InvoiceDate&#34;]:\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2013-07-10 17:57:39','2012-01-18 14:39:48'),(103,'Materials Report by Job',0,4,7,1,1,0,1,1,NULL,NULL,'SELECT\r\n	order_items.*,\r\n	suppliers.SupplierName,\r\n	(QuantityOrdered*UnitPrice) AS subtotal\r\nFROM\r\n	order_items\r\nJOIN\r\n	orders ON order_items.OrderID=orders.OrderID\r\nJOIN\r\n	suppliers ON suppliers.SupplierID=orders.SupplierID\r\nWHERE \r\n	JobID=\"[JOBID]\"\r\n\r\nORDER BY order_items.ItemDeliveryDate ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40379.5402358333\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222732393633393027220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"540.02381\" Height=\"35.33859\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-27\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Materials Report for [tknJOBID]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"177.63791\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsSupplierName\" Left=\"691.65399\" Top=\"0\" Width=\"264.5671\" Height=\"15.11812\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsOrderID\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"OrderID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;OrderID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"79.37013\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsUnitPrice\" Left=\"438.42548\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"UnitPrice\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;UnitPrice&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQuantityOrdered\" Left=\"396.85065\" Top=\"0\" Width=\"41.57483\" Height=\"15.11812\" DataField=\"QuantityOrdered\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;QuantityOrdered&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsItemDeliveryDate\" Left=\"597.16574\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataField=\"ItemDeliveryDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ItemDeliveryDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsItemDesc\" Left=\"238.11039\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataField=\"ItemDesc\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ItemDesc&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssubtotal\" Left=\"517.79561\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"subtotal\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;subtotal&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"253.22851\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"880.63049\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"18.89765\" Left=\"0\" Top=\"136.06308\" Width=\"1028.03216\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"PO Number\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"79.37013\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Part Number\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"438.42548\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Unit Price\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"396.85065\" Top=\"0\" Width=\"41.57483\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"597.16574\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date Delivered\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"691.65399\" Top=\"0\" Width=\"264.5671\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier Name\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"15.11812\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"238.11039\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"517.79561\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Subtotal\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(104,'Sage Sales Invoice Matching Report',0,4,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	InvoiceDate,\r\n	customers.AccountNo,\r\n	InvoiceNo,\r\n	InvoiceNet,\r\n	RechargeInvoiceNo,\r\n	RechargeInvoiceNet,\r\n	CustomerOrderNo,\r\n                jobs.BranchID AS commercial_branch,\r\n                jobs.RepairBranchID AS repair_branch,\r\n                (SELECT BranchID FROM branches WHERE BranchName=\"[BRANCHNAME]\") AS report_branch\r\nFROM\r\n	jobs\r\nJOIN customers ON jobs.CustomerID=customers.CustomerID\r\nWHERE\r\n                (InvoiceNo IS NOT NULL OR RechargeInvoiceNo IS NOT NULL)\r\nAND\r\n	InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	(jobs.BranchID=(SELECT BranchID FROM branches WHERE BranchName=\"[BRANCHNAME]\") OR jobs.RepairBranchID=(SELECT BranchID FROM branches WHERE BranchName=\"[BRANCHNAME]\"))\r\nAND\r\n	WIP=0\r\nORDER BY\r\n	InvoiceDate ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39591.6320158102\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"&#13;&#10;function GetInvoiceNet: Double;&#13;&#10;begin&#13;&#10;if (&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; &#60;&#62; nil) and (&#60;ds.&#34;repair_branch&#34;&#62; = &#60;ds.&#34;report_branch&#34;&#62;) then Result:=&#60;ds.&#34;rechargeInvoiceNet&#34;&#62; else Result:=&#60;ds.&#34;InvoiceNet&#34;&#62;;&#13;&#10;end;          &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30342D333027220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"543.80334\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sage Invoicing Match Report\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsAccountNo\" Left=\"83.14966\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataField=\"AccountNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNo\" Left=\"283.46475\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"InvoiceNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNet\" Left=\"453.5436\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"1\" Highlight.Condition=\"&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; &#60;&#62; nil\" ParentFont=\"False\" Text=\"[GetInvoiceNet]\"/>\r\n      <TfrxMemoView Name=\"dsRechargeInvoiceNo\" Left=\"370.39394\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"RechargeInvoiceNo\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;RechargeInvoiceNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerOrderNo\" Left=\"151.1812\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"CustomerOrderNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerOrderNo&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"283.46475\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"26.45671\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Inv Date\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Acc\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"151.1812\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Details\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"283.46475\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Inv No\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"453.5436\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"370.39394\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Rec Inv\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"453.5436\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(GetInvoiceNet,MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(105,'Customer Activity Report',0,5,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	sales_areas.SalesAreaName AS sales_area,\r\n	SUBSTR(customers.CustomerName,1,20) AS customer_name,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%m\') AS mnth,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%b\') AS mnth_string,\r\n	SUM(jobs.InvoiceNet) AS invoice_value,\r\n	COUNT(jobs.JobID) AS job_count\r\nFROM\r\n	jobs\r\nJOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	branches ON customers.BranchID=branches.BranchID\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nWHERE\r\n	jobs.InvoiceDate BETWEEN \"[YEAR]-01-01\" AND \"[YEAR]-12-31\"\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n	WIP=0\r\nGROUP BY\r\n	sales_areas.SalesAreaName,\r\n	customers.CustomerName,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%Y-%m\')\r\nORDER BY\r\n	sales_area ASC,\r\n	customer_name ASC,\r\n	mnth ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39410.7419142824\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1E000000204E616D653D22746B6E59454152222056616C75653D222732303036272200010C1F000000204E616D653D22746B6E4252414E43484944222056616C75653D222731272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"5\" RightMargin=\"0\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"37.7953\" Left=\"0\" Top=\"18.89765\" Width=\"1103.62276\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"668.52783\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customer Activity Report for [tknBRANCHNAME] in [tknYEAR]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"117.16543\" Width=\"1103.62276\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" KeepFooter=\"True\" KeepHeader=\"True\" KeepTogether=\"True\" RowCount=\"0\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"209.11812\" Left=\"0\" Top=\"139.84261\" Width=\"1103.62276\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxDBCrossView Name=\"DBCross1\" Left=\"0\" Top=\"0\" Width=\"329\" Height=\"189\" AddHeight=\"0\" AddWidth=\"0\" Border=\"False\" CellLevels=\"2\" DownThenAcross=\"False\" NextCrossGap=\"0\" RowLevels=\"2\" ShowCorner=\"False\" ShowTitle=\"False\" CellFields.Text=\"invoice_value&#13;&#10;job_count\" ColumnFields.Text=\"mnth\" DataSet=\"ds\" DataSetName=\"ds\" RowFields.Text=\"sales_area&#13;&#10;customer_name\" PropData=\"054D656D6F730A672100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223137382E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E306D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223139372E3834323631222057696474683D22343422204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223338222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223630222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223237302E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223238392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223137382E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223139372E3834323631222057696474683D22333722204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223338222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223630222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223237302E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223238392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223139342220546F703D223137382E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223139372E3834323631222057696474683D22333422204865696768743D22373322205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223338222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22696E766F6963655F76616C7565222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223630222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D226A6F625F636F756E74222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223237302E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223238392E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223237322220546F703D223135392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22383122204865696768743D223022205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D226D6E7468222F3E3C546672784D656D6F56696577204C6566743D223131302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2273616C65735F61726561222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22637573746F6D65725F6E616D65222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137382E3834323631222057696474683D22373122204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C73652220526F746174696F6E3D2239302220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2239312220546F703D223137382E3834323631222057696474683D2231303322204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C73652220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223237302E3834323631222057696474683D2231373422204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C73652220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2237332220546F703D223338222057696474683D2231313022204865696768743D22343422205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E\"/>\r\n    </TfrxDetailData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(106,'Customer Activity Report by Operations Group',0,5,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	sales_areas.SalesAreaName AS sales_area,\r\n	SUBSTR(customers.CustomerName,1,20) AS customer_name,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%m\') AS mnth,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%b\') AS mnth_string,\r\n	SUM(jobs.InvoiceNet) AS invoice_value,\r\n	COUNT(jobs.JobID) AS job_count\r\nFROM\r\n	jobs\r\nJOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	groups ON customers.GroupID=groups.GroupID\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nWHERE\r\n	jobs.InvoiceDate BETWEEN \"[YEAR]-01-01\" AND \"[YEAR]-12-31\"\r\nAND\r\n	groups.GroupName=\"[GROUPNAME]\"\r\nAND\r\n	WIP=0\r\nAND\r\n                JobTypeID NOT IN (5,6,14)\r\nGROUP BY\r\n	sales_areas.SalesAreaName,\r\n	customers.CustomerName,\r\n	DATE_FORMAT(jobs.InvoiceDate,\'%Y-%m\')\r\nORDER BY\r\n	sales_area ASC,\r\n	customer_name ASC,\r\n	mnth ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40167.7003262384\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227455350272200010C25000000204E616D653D227374724272616E63684E616D65222056616C75653D2227537061696E272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1E000000204E616D653D22746B6E59454152222056616C75653D222732303039272200010C1F000000204E616D653D22746B6E4252414E43484944222056616C75653D222731272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C2D000000204E616D653D22746B6E47524F55504E414D45222056616C75653D22275061756C612043616D6F6573617327220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"5\" RightMargin=\"0\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"37.7953\" Left=\"0\" Top=\"18.89765\" Width=\"1103.62276\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"668.52783\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customer Activity Report for [tknGROUPNAME] in [tknYEAR]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"117.16543\" Width=\"1103.62276\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" KeepFooter=\"True\" KeepHeader=\"True\" KeepTogether=\"True\" RowCount=\"0\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"209.11812\" Left=\"0\" Top=\"139.84261\" Width=\"1103.62276\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxDBCrossView Name=\"DBCross1\" Left=\"0\" Top=\"0\" Width=\"329\" Height=\"189\" AddHeight=\"0\" AddWidth=\"0\" Border=\"False\" CellLevels=\"2\" DownThenAcross=\"False\" NextCrossGap=\"0\" RowLevels=\"2\" ShowCorner=\"False\" ShowTitle=\"False\" CellFields.Text=\"invoice_value&#13;&#10;job_count\" ColumnFields.Text=\"mnth\" DataSet=\"ds\" DataSetName=\"ds\" RowFields.Text=\"sales_area&#13;&#10;customer_name\" PropData=\"054D656D6F730A672100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223137382E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E306D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223139372E3834323631222057696474683D22343422204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223338222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223630222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223237302E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223238392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223137382E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223139372E3834323631222057696474683D22333722204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223338222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223630222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223237302E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223238392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223139342220546F703D223137382E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223139372E3834323631222057696474683D22333422204865696768743D22373322205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223338222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22696E766F6963655F76616C7565222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223630222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D226A6F625F636F756E74222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223237302E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223238392E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223237322220546F703D223135392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22383122204865696768743D223022205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D226D6E7468222F3E3C546672784D656D6F56696577204C6566743D223131302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2273616C65735F61726561222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22637573746F6D65725F6E616D65222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137382E3834323631222057696474683D22373122204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C73652220526F746174696F6E3D2239302220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2239312220546F703D223137382E3834323631222057696474683D2231303322204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C73652220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223237302E3834323631222057696474683D2231373422204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C73652220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2237332220546F703D223338222057696474683D2231313022204865696768743D22343422205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E\"/>\r\n    </TfrxDetailData>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(107,'Await Go-ahead Reserves',0,6,7,1,1,0,1,1,NULL,NULL,'SELECT SUM(jobs.QuotedPrice*jobs.NumberOff) AS VALUE,\r\n       SUM(jobs.NumberOff) AS NUMBER,\r\n       job_types.JobType\r\n       \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN branches ON jobs.BranchID=branches.BranchID\r\n\r\nWHERE jobs.EngStatusID=3\r\nAND branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nGROUP BY job_types.jobtype',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39525.6961540741\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"31.55906\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Await Go-ahead Reserves for [tknBranchName]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"207.87415\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsJobType\" Left=\"0\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataField=\"JobType\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobType&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"491.3389\" Top=\"0\" Width=\"117.16543\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;VALUE&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsNUMBER\" Left=\"302.3624\" Top=\"0\" Width=\"105.82684\" Height=\"18.89765\" DataField=\"NUMBER\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NUMBER&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"351.49629\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"71.81107\" Left=\"0\" Top=\"113.3859\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"45.35436\" Width=\"718.1107\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"302.3624\" Top=\"45.35436\" Width=\"105.82684\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Number Off\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"491.3389\" Top=\"45.35436\" Width=\"117.16543\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"0\" Top=\"0\" Width=\"188.9765\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[DATE] [TIME]\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"41.57483\" Left=\"0\" Top=\"249.44898\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"7.55905999999999\" Width=\"718.1107\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"4\" ParentFont=\"False\" VAlign=\"vaCenter\" Text=\"Totals\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"302.3624\" Top=\"7.55905999999999\" Width=\"105.82684\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaCenter\" Text=\"[SUM(&#60;ds.&#34;NUMBER&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"491.3389\" Top=\"7.55905999999999\" Width=\"117.16543\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaCenter\" Text=\"[SUM(&#60;ds.&#34;VALUE&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2013-07-10 17:57:21','2012-01-18 14:39:48'),(108,'Incoming Jobs by Branch, Date Range, Job Type and Sales Person',0,6,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	sales_areas.Salesperson,\r\n	job_types.JobType,\r\n	DATE_FORMAT(SUBSTRING(jobs.DateTimeOfEntry,1,10),\"%b %Y\") AS period,\r\n	COUNT(JobID) AS job_count,\r\n                SUM(jobs.NumberOff) AS item_count\r\nFROM\r\n	sales_areas\r\nJOIN\r\n	customers ON sales_areas.SalesAreaID=customers.SalesAreaID\r\nJOIN\r\n	jobs ON customers.CustomerID=jobs.CustomerID\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nJOIN\r\n	branches ON customers.BranchID=branches.BranchID	\r\nWHERE\r\n	jobs.DateTimeOfEntry BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND \r\n	job_types.JobType=\"[JOBTYPE]\"\r\nAND\r\n               jobs.Warranty=0\r\nGROUP BY\r\n	sales_areas.Salesperson,\r\n	job_types.JobType,\r\n	SUBSTRING(jobs.DateTimeOfEntry,1,7)\r\nORDER BY\r\n	sales_areas.Salesperson ASC,\r\n	job_types.JobType ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40487.6325023958\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C2E000000204E616D653D22746B6E4A4F4254595045222056616C75653D2227456C656374726F6E696320526570616972272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D31312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31312D303527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Incoming jobs by Branch, Date Range, Job Type and Sales Person\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"192.75603\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsperiod\" Left=\"11.33859\" Top=\"0\" Width=\"147.40167\" Height=\"15.11812\" DataField=\"period\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;period&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_count\" Left=\"351.49629\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_count&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"dsitem_count\" Left=\"249.44898\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;item_count&#34;] items\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"332.59864\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" Condition=\"ds.&#34;Salesperson&#34;\" KeepChild=\"True\">\r\n      <TfrxMemoView Name=\"dsSalesperson\" Left=\"0\" Top=\"7.55906\" Width=\"608.50433\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;JobType&#34;] jobs from [ds.&#34;Salesperson&#34;] customers\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"11.33859\" Top=\"37.7953\" Width=\"147.40167\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Month / Year\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"351.49629\" Top=\"37.7953\" Width=\"120.94496\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Count\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"11.33859\" Top=\"52.91342\" Width=\"461.10266\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"249.44898\" Top=\"37.7953\" Width=\"94.48825\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Item Count\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"230.55133\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"351.49629\" Top=\"7.55906\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;job_count&#34;&#62;,MasterData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"11.33859\" Top=\"3.77953\" Width=\"461.10266\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"249.44898\" Top=\"7.55906\" Width=\"94.48825\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;item_count&#34;&#62;,MasterData1)] items\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-13 10:13:03','2012-01-18 14:39:48'),(109,'Incoming Jobs by Customer',0,6,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	incoming_jobs.JobID,\r\n	incoming_jobs.DateTimeOfEntry,\r\n	funcGetJobType(JobID) AS job_type,\r\n	incoming_jobs.NumberOff,\r\n	funcGetEquipString(JobID) AS equip_string,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	sales_areas.Salesperson,\r\n                incoming_jobs.QuotedPrice\r\nFROM\r\n	incoming_jobs\r\nLEFT JOIN\r\n	equipment ON incoming_jobs.EquipmentID=equipment.EquipmentID\r\nLEFT JOIN\r\n	manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID\r\nLEFT JOIN\r\n	customers ON incoming_jobs.CustomerID=customers.CustomerID\r\nLEFT JOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nWHERE\r\n	incoming_jobs.DateTimeOfEntry BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\"\r\nORDER BY\r\n	sales_areas.Salesperson,incoming_jobs.CustomerID',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40220.4713795833\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30312D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"691.20501\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Incoming Jobs by Customer between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"249.44898\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"37.7953\" Top=\"3.77952999999999\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"83.14966\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34; #ddd/mm/yy]\"/>\r\n      <TfrxMemoView Name=\"dsManufacturerName\" Left=\"340.1577\" Top=\"3.77952999999999\" Width=\"245.66945\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;NumberOff&#34;] x [ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"207.87415\" Top=\"3.77953000000005\" Width=\"124.72449\" Height=\"18.89765\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQuotedPrice\" Left=\"589.60668\" Top=\"3.77952999999999\" Width=\"109.60637\" Height=\"18.89765\" DataField=\"QuotedPrice\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;QuotedPrice&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"35.11812\" Left=\"0\" Top=\"449.76407\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"11.33859\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"491.3389\" Top=\"11.33859\" Width=\"205.25201\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"279.68522\" Top=\"11.33859\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953000000002\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"26.45671\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" Condition=\"ds.&#34;Salesperson&#34;\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsSalesperson\" Left=\"0\" Top=\"3.77952999999999\" Width=\"298.58287\" Height=\"18.89765\" DataField=\"Salesperson\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;Salesperson&#34;]\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"64.25201\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" Condition=\"ds.&#34;customer_name&#34;\">\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"22.67718\" Top=\"11.33859\" Width=\"480.00031\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"37.7953\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"120.94496\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date In\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"340.1577\" Top=\"37.7953\" Width=\"222.99227\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"37.7953\" Top=\"60.47248\" Width=\"661.41775\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"207.87415\" Top=\"37.7953\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"589.60668\" Top=\"37.7953\" Width=\"109.60637\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"347.71676\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"37.7953\" Top=\"15.11812\" Width=\"151.1812\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(0,0)] Jobs\"/>\r\n      <TfrxLineView Name=\"Line5\" Left=\"0\" Top=\"3.77953000000002\" Width=\"702.99258\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"340.1577\" Top=\"15.11812\" Width=\"200.31509\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;NumberOff&#34;&#62;,MasterData1)] Items\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"589.60668\" Top=\"11.33859\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;QuotedPrice&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"30.23624\" Left=\"0\" Top=\"294.80334\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"COUNT\" Left=\"37.7953\" Top=\"7.55905999999999\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(0,0)] Jobs\"/>\r\n      <TfrxMemoView Name=\"dsNumberOff\" Left=\"340.1577\" Top=\"7.55905999999999\" Width=\"200.31509\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;NumberOff&#34;&#62;,MasterData1)] Items\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"37.7953\" Top=\"3.77953000000002\" Width=\"661.41775\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"589.60668\" Top=\"7.55905999999999\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;QuotedPrice&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(110,'Incoming Jobs by Job Type',0,6,3,1,1,0,1,1,NULL,NULL,'SELECT COUNT(incoming_jobs.JobID) AS jobs, SUM(incoming_jobs.NumberOff) AS items,SUM(incoming_jobs.Warranty) AS warr,SUM(incoming_jobs.CreditNote) AS credit,job_types.JobType AS jt FROM incoming_jobs LEFT JOIN job_types ON incoming_jobs.JobTypeID=job_types.JobTypeID WHERE incoming_jobs.DateTimeOfEntry BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\" GROUP BY incoming_jobs.JobTypeID',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39189.3787949074\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3136272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"672.30736\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Incoming Jobs by Job Type between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"170.07885\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77953\" Width=\"177.63791\" Height=\"18.89765\" DataField=\"jt\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jt&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"181.41744\" Top=\"3.77953\" Width=\"60.47248\" Height=\"18.89765\" DataField=\"jobs\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobs&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"249.44898\" Top=\"3.77953\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"items\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;items&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"453.5436\" Top=\"3.77953\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"warr\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;warr&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscredit\" Left=\"566.9295\" Top=\"3.77953\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"credit\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;credit&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"306.14193\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"15.11812\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"480.00031\" Top=\"15.11812\" Width=\"220.37013\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"294.80334\" Top=\"15.11812\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"34.01577\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"30.23624\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"3.77953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"181.41744\" Top=\"3.77953\" Width=\"45.35436\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"249.44898\" Top=\"3.77953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Items\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"453.5436\" Top=\"3.77953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranties\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"566.9295\" Top=\"3.77953\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Credit Notes\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"30.23624\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"11.33859\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"181.41744\" Top=\"11.33859\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;jobs&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"249.44898\" Top=\"11.33859\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"453.5436\" Top=\"11.33859\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"566.9295\" Top=\"11.33859\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:48'),(111,'Incoming Jobs by Sales Person',0,6,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	sales_areas.Salesperson AS sp,\r\n	(SUM(incoming_jobs.NumberOff)-SUM(incoming_jobs.Warranty)-SUM(incoming_jobs.CreditNote)-SUM(funcIsJobQuotation(JobID))) AS items,\r\n                SUM(funcIsJobQuotation(JobID)) AS quotation_items,\r\n	SUM(incoming_jobs.Warranty) AS warr,\r\n	SUM(incoming_jobs.CreditNote) AS credit,\r\n	SUM(incoming_jobs.QuotedPrice) AS value\r\nFROM\r\n	incoming_jobs\r\nJOIN\r\n	customers ON incoming_jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nJOIN \r\n	branches ON customers.BranchID=branches.BranchID\r\nWHERE\r\n	incoming_jobs.DateTimeOfEntry BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\"\r\nAND\r\n               sales_areas.Salesperson<>\"U Codes\"\r\nGROUP BY\r\n	sales_areas.Salesperson\r\nORDER BY\r\n	branches.BranchName ASC,\r\n                sales_areas.Salesperson ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40343.4892787847\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;       Day,Month,Year: String;&#13;&#10;       Title: String;                                                                            &#13;&#10;begin&#13;&#10;Title:=\'Incoming Jobs by Sales Person between \';                                                                                                            &#13;&#10;Day:=Copy(&#60;tknSTARTDATE&#62;,9,2);&#13;&#10;Month:=Copy(&#60;tknSTARTDATE&#62;,6,2);&#13;&#10;Year:=Copy(&#60;tknSTARTDATE&#62;,0,4);&#13;&#10;Title:=Title+Day+\'/\'+Month+\'/\'+Year+\' and \';&#13;&#10;Day:=Copy(&#60;tknENDDATE&#62;,9,2);&#13;&#10;Month:=Copy(&#60;tknENDDATE&#62;,6,2);&#13;&#10;Year:=Copy(&#60;tknENDDATE&#62;,0,4);    &#13;&#10;Title:=Title+Day+\'/\'+Month+\'/\'+Year;      &#13;&#10;TitleMemo.Text:=Title;                                                &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30362D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30362D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\" OnBeforePrint=\"Page1OnBeforePrint\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"TitleMemo\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"TitleMemo\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"192.75603\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"166.29932\" Height=\"18.89765\" DataField=\"sp\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;sp&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"188.9765\" Top=\"0\" Width=\"60.47248\" Height=\"18.89765\" DataField=\"items\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;items&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"374.17347\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"warr\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;warr&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscredit\" Left=\"480.00031\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"credit\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;credit&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"264.5671\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;quotation_items&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"589.60668\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;value&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"438.42548\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"120.94496\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"30.23624\" Width=\"166.29932\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Sales Person\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"264.5671\" Top=\"30.23624\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quotations\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"188.9765\" Top=\"30.23624\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Items\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"374.17347\" Top=\"30.23624\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranties\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"480.00031\" Top=\"30.23624\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Credit Notes\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"49.13389\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"7.55906\" Width=\"238.11039\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;] Branch\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"589.60668\" Top=\"30.23624\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"234.33086\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"188.9765\" Top=\"0\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"374.17347\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"480.00031\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"0\" Top=\"0\" Width=\"166.29932\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"264.5671\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;quotation_items&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"589.60668\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;value&#34;&#62;,0,0)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"79.37013\" Left=\"0\" Top=\"336.37817\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"37.7953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"0\" Top=\"41.57483\" Width=\"162.51979\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"All Branches:\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"188.9765\" Top=\"41.57483\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"374.17347\" Top=\"41.57483\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"480.00031\" Top=\"41.57483\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"0\" Top=\"64.25201\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"188.9765\" Top=\"18.89765\" Width=\"60.47248\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Items\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"374.17347\" Top=\"18.89765\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranties\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"480.00031\" Top=\"18.89765\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Credit Notes\"/>\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"18.89765\" Width=\"162.51979\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Summary\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"264.5671\" Top=\"41.57483\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;quotation_items&#34;&#62;,0,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"264.5671\" Top=\"18.89765\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quotations\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"589.60668\" Top=\"18.89765\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"589.60668\" Top=\"41.57483\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;value&#34;&#62;,0,0)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,5,'2012-04-25 09:15:53','2012-01-18 14:39:48'),(112,'WIP Value by Branch, Sales Person & Status',0,6,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	jobs.BranchID,\r\n	branches.BranchName AS branch_name,\r\n	sales_areas.Salesperson AS sales_person,\r\n	EngStatusID,\r\n	status_eng.StatusName AS status_name,\r\n	COUNT(JobID) AS jobs,\r\n	SUM((NumberOff*QuotedPrice)+QuotedDelivery) AS quoted_value\r\nFROM\r\n	jobs\r\nJOIN\r\n	status_eng ON jobs.EngStatusID=status_eng.StatusID\r\nJOIN \r\n	branches ON jobs.BranchID=branches.BranchID\r\nJOIN \r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nWHERE \r\n	EngStatusID>=3\r\nAND\r\n	WIP=1\r\nAND\r\n                branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n                jobs.JobTypeID IN (\"1\",\"2\",\"3\",\"4\",\"6\",\"8\",\"12\")\r\n\r\nAND jobs.jobid NOT IN (SELECT jobid\r\nFROM jobs \r\nWHERE (CustomerOrderNo LIKE \"%RNR%\" OR CustomerOrderNo LIKE \"%RCR%\" OR CustomerOrderNo LIKE \"%RUR%\" OR CustomerOrderNo LIKE \"%SCRAP%\")\r\nAND BranchID = 1\r\nAND wip = 1\r\nAND engstatusid >= 3)\r\n\r\nGROUP BY\r\n	sales_areas.SalesPerson,\r\n	EngStatusID\r\nORDER BY \r\n                EngStatusID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39617.3832083449\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"50.17316\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"31.55906\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"WIP Value in [tknBRANCHNAME] by Sales Person &#38; Status on [&#60;DATE&#62;]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"128.50402\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"884.41002\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxDBCrossView Name=\"DBCross1\" Left=\"0\" Top=\"75.5906\" Width=\"354\" Height=\"156\" AddHeight=\"0\" AddWidth=\"0\" CellLevels=\"2\" DownThenAcross=\"False\" NextCrossGap=\"0\" CellFields.Text=\"&#60;ds.&#34;jobs&#34;&#62;&#13;&#10;&#60;ds.&#34;quoted_value&#34;&#62;\" ColumnFields.Text=\"&#60;ds.&#34;status_name&#34;&#62;\" DataSet=\"ds\" DataSetName=\"ds\" RowFields.Text=\"sales_person\" PropData=\"054D656D6F730AE01800003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223134362220546F703D223133352E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223135342E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223137332E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223139322E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223133352E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223135342E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223137332E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223139322E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223130362220546F703D223133352E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223135342E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2256616C7565222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223137332E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223139322E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2256616C7565222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223134362220546F703D223131362E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223239312220546F703D223131362E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C73222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D2239352E35393036222057696474683D2231323622204865696768743D22323122205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D22322220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D2239352E35393036222057696474683D2231383822204865696768743D22323122205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22456E67696E656572696E672053746174757320506F696E7473222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223131362E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D2232302220546F703D223131362E35393036222057696474683D22383622204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2253616C657320506572736F6E222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223133352E35393036222057696474683D22383622204865696768743D22333822205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137332E35393036222057696474683D22383622204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C73222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20322F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,'This report does not show:\r\n\r\nJobs with Eng Status < 3\r\nJobs that are scrap / RNR etc\r\n\r\nThis report DOES show:\r\n\r\nJob Types 1,2,3,4,5,6,8,12 only\r\n\r\n',0,NULL,'2012-01-18 14:39:48'),(114,'Sales Breakdown by Postcode',0,8,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	SUBSTRING(customers.DeliveryPostCode,1,2) AS postcode,\r\n                customers.Area,\r\n	sales_areas.Salesperson AS sales_person,\r\n	job_types.JobTypeID AS job_type_id,\r\n	job_types.JobType AS job_type,\r\n	InvoiceNet AS invoice_net,\r\n    InvoiceDelivery AS invoice_delivery,\r\n    (InvoiceNet-InvoiceDelivery) AS invoice_price,\r\n	funcGetMaterialCostNew(jobs.JobID) AS material_cost,\r\n	(InvoiceNet-funcGetMaterialCostNew(jobs.JobID)) AS margin,\r\n	funcGetAdjustedSalesValue(InvoiceNet,\r\n    (InvoiceNet-funcGetMaterialCostNew(jobs.JobID)),\r\n    job_types.JobTypeID) AS adjusted_sales_value,\r\n    jobs.InvoiceCurrencyCode AS currency_code,\r\n    jobs.InvoiceCurrencyRate AS currency_rate\r\nFROM\r\n	jobs\r\nINNER JOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nINNER JOIN \r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nINNER JOIN \r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nINNER JOIN\r\n    branches ON customers.BranchID=branches.BranchID\r\nWHERE\r\n	(jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\")\r\nAND\r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n   	branches.BranchID IN ([BRANCHIDS])\r\nAND\r\n    jobs.Warranty=0\r\nORDER BY\r\n	postcode ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40084.4525168171\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030392D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D30392D3238272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C22000000204E616D653D22746B6E4252414E4348494453222056616C75653D2227312C3427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"936.87446\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales Breakdown by Postcode ([tknSTARTDATE] to [tknENDDATE])\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"15.11812\" Top=\"49.13389\" Width=\"60.47248\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Postcode\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"15.11812\" Top=\"68.03154\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"650.07916\" Top=\"49.13389\" Width=\"90.70872\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"759.68553\" Top=\"49.13389\" Width=\"90.70872\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"873.07143\" Top=\"49.13389\" Width=\"143.62214\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Adjusted Sales Value\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"532.91373\" Top=\"49.13389\" Width=\"117.16543\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Price\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"264.5671\" Top=\"49.13389\" Width=\"128.50402\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Sales Person\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"94.48825\" Top=\"49.13389\" Width=\"60.47248\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Area\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"173.85838\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"298.58287\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"884.41002\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"151.1812\" Width=\"1028.03216\" Condition=\"ds.&#34;postcode&#34;\" KeepTogether=\"True\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"196.53556\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"532.91373\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"650.07916\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"759.68553\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"873.07143\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dspostcode\" Left=\"18.89765\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"postcode\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;postcode&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssales_person\" Left=\"264.5671\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"sales_person\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;sales_person&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"94.48825\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataField=\"Area\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Area&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"15.11812\" Top=\"37.7953\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,2,'2012-02-12 09:56:28','2012-01-18 14:39:49'),(115,'Sales Breakdown by Sales Person',0,8,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	sales_areas.Salesperson AS sales_person,\r\n	job_types.JobTypeID AS job_type_id,\r\n	job_types.JobType AS job_type,\r\n	InvoiceNet AS invoice_net,\r\n                InvoiceDelivery AS invoice_delivery,\r\n                (InvoiceNet-InvoiceDelivery) AS invoice_price,\r\n	funcGetMaterialCostNew(jobs.JobID) AS material_cost,\r\n	(InvoiceNet-funcGetMaterialCostNew(jobs.JobID)) AS margin,\r\n	funcGetAdjustedSalesValue(InvoiceNet,\r\n                (InvoiceNet-funcGetMaterialCostNew(jobs.JobID)),\r\n                job_types.JobTypeID) AS adjusted_sales_value,\r\n                jobs.InvoiceCurrencyCode AS currency_code,\r\n                jobs.InvoiceCurrencyRate AS currency_rate\r\nFROM\r\n	jobs\r\nINNER JOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nINNER JOIN \r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nINNER JOIN \r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nINNER JOIN\r\n                branches ON customers.BranchID=branches.BranchID\r\nWHERE\r\n	(jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\")\r\nAND\r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n                branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n                jobs.Warranty=0\r\nORDER BY\r\n	sales_areas.Salesperson ASC,\r\n	jobs.JobTypeID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39604.5390957639\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227504C272200010C26000000204E616D653D227374724272616E63684E616D65222056616C75653D2227506F6C616E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30352D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30362D3330272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales Breakdown by Sales Person ([tknSTARTDATE] to [tknENDDATE])\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"0\" Top=\"34.01577\" Width=\"317.48052\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Branch only\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"245.66945\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"400.63018\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"151.1812\" Width=\"1028.03216\" Condition=\"ds.&#34;sales_person&#34;\" KeepTogether=\"True\">\r\n      <TfrxMemoView Name=\"dssales_person\" Left=\"0\" Top=\"0\" Width=\"158.74026\" Height=\"18.89765\" DataField=\"sales_person\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;sales_person&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"15.11812\" Top=\"34.01577\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"15.11812\" Top=\"49.13389\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"434.64595\" Top=\"34.01577\" Width=\"90.70872\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Net\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"551.81138\" Top=\"34.01577\" Width=\"90.70872\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"661.41775\" Top=\"34.01577\" Width=\"90.70872\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"774.80365\" Top=\"34.01577\" Width=\"143.62214\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Adjusted Sales Value\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"298.58287\" Top=\"34.01577\" Width=\"109.60637\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Delivery\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"162.51979\" Top=\"34.01577\" Width=\"117.16543\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Price\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"34.01577\" Left=\"0\" Top=\"306.14193\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"434.64595\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"551.81138\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"661.41775\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"774.80365\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"15.11812\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"15.11812\" Top=\"0\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"162.51979\" Top=\"0\" Width=\"117.16543\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"298.58287\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"222.99227\" Width=\"1028.03216\" Condition=\"ds.&#34;job_type_id&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"15.11812\" Left=\"0\" Top=\"268.34663\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"15.11812\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"434.64595\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"551.81138\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"661.41775\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"774.80365\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_delivery\" Left=\"298.58287\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_price\" Left=\"162.51979\" Top=\"0\" Width=\"117.16543\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,2,'2012-02-06 16:13:29','2012-01-18 14:39:49'),(116,'WIP Report (ALL)',0,8,3,1,1,0,1,1,250,500,'SELECT jobs.jobid AS jobid,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       MaterialCost AS material_cost,\r\n       SUM(order_items.QuantityOrdered*order_items.UnitPrice) AS material_order,\r\n       funcGetLabourHoursByRate(jobs.jobid,\"A\") AS labour_a,\r\n       funcGetLabourHoursByRate(jobs.jobid,\"B\") AS labour_b,\r\n       funcGetLabourHoursByRate(jobs.jobid,\"C\") AS labour_c,\r\n       job_types.JobType AS jobtype\r\n\r\nFROM jobs\r\n\r\nJOIN job_types ON jobs.jobtypeid=job_types.jobtypeid\r\nJOIN branches ON jobs.branchid=branches.branchid\r\nJOIN order_items ON jobs.JobID=order_items.JobID\r\n\r\nWHERE jobs.wip=\"1\"\r\n      AND jobs.DateTimeGoAheadGiven<\"[STARTDATE] 23:59:59\"\r\n      AND branches.branchname=\"[BRANCHNAME]\"\r\n      AND ((jobs.DateTimeRepairComplete IS NULL) OR (jobs.DateTimeRepairComplete>\"[ENDDATE] 23:59:59\"))\r\nGROUP BY\r\n	jobs.JobID\r\nORDER BY\r\n	jobs.JobTypeID ASC,jobs.DateTimeGoAheadGiven ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40128.699587419\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D31302D3331272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"944.43352\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"WIP Report for Month Ending [tknENDDATE] at [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"188.9765\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"jobid\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"86.92919\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_a\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_a\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_a&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_b\" Left=\"359.05535\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_b\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_b&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_c\" Left=\"442.20501\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_c\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_c&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"623.62245\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataField=\"material_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"525.35467\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;labour_a&#34;&#62;+&#60;ds.&#34;labour_b&#34;&#62;+&#60;ds.&#34;labour_c&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_order\" Left=\"721.89023\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataField=\"material_order\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;material_order&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"823.93754\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;material_order&#34;&#62;*1.40]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"400.63018\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"899.52814\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;jobtype&#34;\">\r\n      <TfrxMemoView Name=\"dsjobtype\" Left=\"-3.77953\" Top=\"3.77952999999999\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"jobtype\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;jobtype&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"34.01577\" Width=\"52.91342\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"86.92919\" Top=\"34.01577\" Width=\"105.82684\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"272.12616\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate A\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"359.05535\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate B\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"442.20501\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate C\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"525.35467\" Top=\"34.01577\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Total Hours\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"623.62245\" Top=\"34.01577\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Material Est\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"721.89023\" Top=\"34.01577\" Width=\"98.26778\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"823.93754\" Top=\"34.01577\" Width=\"98.26778\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Material Sell\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"30.23624\" Left=\"0\" Top=\"226.7718\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"181.41744\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"359.05535\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo4\" Left=\"442.20501\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"525.35467\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo5\" Left=\"623.62245\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo11\" Left=\"721.89023\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_order&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo13\" Left=\"823.93754\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_order&#34;&#62;*1.40,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"60.47248\" Left=\"0\" Top=\"317.48052\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"3.77953\" Top=\"3.77953000000002\" Width=\"105.82684\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Month Summary\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo6\" Left=\"3.77953\" Top=\"30.23624\" Width=\"132.28355\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs in Progress\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo7\" Left=\"272.12616\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo8\" Left=\"359.05535\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo9\" Left=\"442.20501\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo10\" Left=\"627.40198\" Top=\"30.23624\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"525.35467\" Top=\"30.23624\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo12\" Left=\"721.89023\" Top=\"30.23624\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_order&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo14\" Left=\"823.93754\" Top=\"30.23624\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_order&#34;&#62;*1.40,MasterData1)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(117,'WIP Report (In progress with value)',0,8,3,1,1,0,1,1,NULL,150,'SELECT jobid AS jobid,\r\n               funcGetCustomerName(jobid) AS customer_name,\r\n               funcMonthEndMaterialCost(jobid,\"[ENDDATE]\") AS material_cost,\r\n               funcGetLabourHoursByRateEOM(jobid,\"A\",\"[ENDDATE]\") AS labour_a,\r\n               funcGetLabourHoursByRateEOM(jobid,\"B\",\"[ENDDATE]\") AS labour_b,\r\n               funcGetLabourHoursByRateEOM(jobid,\"C\",\"[ENDDATE]\") AS labour_c,\r\n               job_types.jobtype AS jobtype\r\n\r\nFROM jobs\r\n\r\nJOIN job_types ON jobs.jobtypeid=job_types.jobtypeid\r\nJOIN branches ON jobs.branchid=branches.branchid\r\n\r\nWHERE jobs.engstatusid>3\r\n      AND jobs.DateTimeGoAheadGiven<\"[ENDDATE] 23:59:59\"\r\n      AND jobs.jobtypeid IN (\"1\",\"2\",\"3\",\"4\",\"6\",\"8\",\"12\")\r\n      AND branches.branchname=\"[BRANCHNAME]\"\r\n      AND ((jobs.DateTimeRepairComplete IS NULL) OR (jobs.DateTimeRepairComplete>\"[ENDDATE] 23:59:59\"))\r\n     AND WIP=1\r\n\r\nORDER BY jobs.jobtypeid ASC,jobs.DateTimeGoAheadGiven ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39337.3593942824\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30392D3132272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"WIP Report for Month Ending [tknENDDATE] at [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"jobid\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"86.92919\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_a\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_a\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_a&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_b\" Left=\"359.05535\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_b\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_b&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_c\" Left=\"442.20501\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_c\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;labour_c&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"627.40198\" Top=\"0\" Width=\"90.70872\" Height=\"15.11812\" DataField=\"material_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"525.35467\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;labour_a&#34;&#62;+&#60;ds.&#34;labour_b&#34;&#62;+&#60;ds.&#34;labour_c&#34;&#62;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"400.63018\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"113.3859\" Width=\"718.1107\" Condition=\"ds.&#34;jobtype&#34;\">\r\n      <TfrxMemoView Name=\"dsjobtype\" Left=\"-3.77953\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"jobtype\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;jobtype&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"34.01577\" Width=\"52.91342\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"86.92919\" Top=\"34.01577\" Width=\"105.82684\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"272.12616\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate A\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"359.05535\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate B\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"442.20501\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Rate C\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"525.35467\" Top=\"34.01577\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Total Hours\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"623.62245\" Top=\"34.01577\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"30.23624\" Left=\"0\" Top=\"226.7718\" Width=\"718.1107\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"11.33859\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"359.05535\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo4\" Left=\"442.20501\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"525.35467\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo5\" Left=\"623.62245\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"60.47248\" Left=\"0\" Top=\"317.48052\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"3.77953\" Top=\"3.77953000000002\" Width=\"105.82684\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Month Summary\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo6\" Left=\"3.77953\" Top=\"30.23624\" Width=\"132.28355\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs in Progress\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo7\" Left=\"272.12616\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo8\" Left=\"359.05535\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo9\" Left=\"442.20501\" Top=\"30.23624\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo10\" Left=\"627.40198\" Top=\"30.23624\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"525.35467\" Top=\"30.23624\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(118,'Assigned Jobs in Progress',0,2,7,1,1,0,1,1,NULL,NULL,'select jobid, \r\n          job_types.jobtype AS job_type,\r\n          funcGetCustomerName(jobid), \r\n          funcGetEquipString(jobid), \r\n          funcGetRepairEngineer(jobid)\r\n\r\nfrom jobs\r\n\r\njoin job_types on jobs.jobtypeid=job_types.jobtypeid\r\nJOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n\r\nwhere jobs.WIP=\"1\"\r\nand engstatusid=\"5\"\r\nand branches.BranchName=\"[BRANCHNAME]\"\r\nand jobs.jobtypeid IN (\"1\",\"2\",\"3\",\"4\",\"8\")\r\nand jobs.repairedbyid IS NOT NULL\r\n\r\norder by funcGetRepairEngineer(jobid) ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39568.6770279282\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"672.30736\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Assigned Jobs in Progress at [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"jobid\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"79.37013\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsfuncGetCustomerNamejobid\" Left=\"211.65368\" Top=\"0\" Width=\"559.37044\" Height=\"15.11812\" DataField=\"funcGetCustomerName(jobid)\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;funcGetCustomerName(jobid)&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsfuncGetEquipStringjobid\" Left=\"498.89796\" Top=\"0\" Width=\"340.1577\" Height=\"15.11812\" DataField=\"funcGetEquipString(jobid)\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;funcGetEquipString(jobid)&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"279.68522\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" Condition=\"ds.&#34;funcGetRepairEngineer(jobid)&#34;\">\r\n      <TfrxMemoView Name=\"dsfuncGetRepairEngineerjobid\" Left=\"0\" Top=\"0\" Width=\"476.22078\" Height=\"18.89765\" DataField=\"funcGetRepairEngineer(jobid)\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;funcGetRepairEngineer(jobid)&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(119,'Customers on Stop by Branch',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	*\r\nFROM\r\n	customers\r\nJOIN\r\n	branches ON customers.BranchID=branches.BranchID\r\nWHERE\r\n	Stopped=1\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39681.5641838426\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;        &#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"649.63018\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customers on Stop for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"49.13389\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsCustomerID\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"CustomerID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"86.92919\" Top=\"0\" Width=\"510.23655\" Height=\"15.11812\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsAccountNo\" Left=\"604.7248\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataField=\"AccountNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;AccountNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"15.11812\" Width=\"699.21305\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;DeliveryAddr1&#34;&#62;+\', \'+&#60;ds.&#34;DeliveryAddr2&#34;&#62;+\', \'+&#60;ds.&#34;DeliveryAddr3&#34;&#62;+\', \'+&#60;ds.&#34;DeliveryAddr4&#34;&#62;+\', \'+&#60;ds.&#34;DeliveryAddr5&#34;&#62;+\', \'+&#60;ds.&#34;DeliveryPostcode&#34;&#62;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"45.35436\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"222.99227\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(120,'Engineer\'s Appraisal Data (Part 1)',0,2,7,1,1,0,1,1,NULL,NULL,'SELECT SUM(funcGetWorkshopInvoiceValue(jobid,\"[BRANCHNAME]\")) AS invoice_value,\r\n               SUM(funcGetContractValue(jobid)) AS contract_value,\r\n               SUM(funcGetLabourMaterialTotal(jobid)) AS costs,\r\n               SUM(jobs.NumberOff) AS no_items,\r\n               SUM(IF(jobs.warranty=\"1\",1,0)) AS warranties,\r\n               job_types.JobType AS job_type,\r\n               users.username AS engineer,\r\n               DATE_FORMAT(jobs.InvoiceDate,\'%m/%Y\') AS date_invoiced\r\n\r\nFROM jobs\r\n\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN users ON jobs.RepairedByID=users.userID\r\nLEFT JOIN job_types ON jobs.jobtypeid=job_types.JobTypeID\r\nLEFT JOIN branches ON jobs.repairbranchid=branches.branchid\r\n\r\nWHERE jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND final_outcomes.RNRFlag=\"0\"\r\nAND branches.branchname=\"[BRANCHNAME]\"\r\nAND jobs.jobtypeid<16\r\nAND (users.usertypeid=\"5\" OR users.username IN (\"Paul Braathen\",\"Mark Ballantyne\",\"Clyde Rennalls\",\"Colin Homer\",\"Mark Lawton\",\"Dave Timmins\",\"Paul Richards\",\"Clive Williams\",\"Simon Shepherd\",\"Gary Bird\",\"Simon Stokes\",\"Ian Brownsword\",\"Tony Skidmore\",\"Matthew King\"))\r\nAND users.username<>\".\"\r\nAND users.username<>\"Put Down\"\r\n\r\n\r\nGROUP BY jobs.RepairedByID ASC, DATE_FORMAT(jobs.InvoiceDate,\'%m/%Y\') ASC, job_types.JobType ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39435.4232142361\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D31322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D31322D313927220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"5\" RightMargin=\"5\" TopMargin=\"5\" BottomMargin=\"5\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" Height=\"52.91342\" Left=\"0\" ParentFont=\"False\" Top=\"18.89765\" Width=\"1084.72511\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"581.59864\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Engineer\'s Appraisal Data (Part 1)\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"3.77953\" Top=\"30.23624\" Width=\"529.1342\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Color=\"16777215\" ParentFont=\"False\" VAlign=\"vaCenter\" Text=\"[tknBRANCHNAME] for [tknSTARTDATE] to [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"421.55906\" Left=\"0\" Top=\"177.63791\" Width=\"1084.72511\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxDBCrossView Name=\"DBCross1\" Left=\"3.77953\" Top=\"0\" Width=\"439\" Height=\"414\" AddHeight=\"0\" AddWidth=\"0\" CellLevels=\"5\" DownThenAcross=\"False\" NextCrossGap=\"0\" RowLevels=\"2\" CellFields.Text=\"invoice_value&#13;&#10;contract_value&#13;&#10;no_items&#13;&#10;warranties&#13;&#10;costs\" ColumnFields.Text=\"date_invoiced\" DataSet=\"ds\" DataSetName=\"ds\" RowFields.Text=\"engineer&#13;&#10;job_type\" PropData=\"054D656D6F730A815100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223234312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223236332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223238352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223330372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223332392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223335312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223337332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223339352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223431372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223433392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223436312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223438332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223530352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223532372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223534392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223234312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223236332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223238352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223330372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223332392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223335312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223337332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223339352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223431372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223433392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223436312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223438332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223530352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223532372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223534392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223234312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223236332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223238352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223330372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223332392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223335312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223337332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223339352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223431372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223433392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223436312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223438332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223530352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223532372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223534392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223231392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223231392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224772616E6420546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223139372E3633373931222057696474683D2232323322204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223139372E3633373931222057696474683D2231373622204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224461746520496E766F69636564222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223231392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223231392E3633373931222057696474683D22363522204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22456E67696E656572222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223231392E3633373931222057696474683D22363422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F622054797065222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223234312E3633373931222057696474683D22363522204865696768743D2232323022205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223234312E3633373931222057696474683D22363422204865696768743D2231313022205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223436312E3633373931222057696474683D2231323922204865696768743D2231313022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223335312E3633373931222057696474683D22363422204865696768743D2231313022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"684.09493\" Width=\"1084.72511\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"132.28355\" Width=\"1084.72511\" Condition=\"ds.&#34;engineer&#34;\" StartNewPage=\"True\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"0\" Left=\"0\" Top=\"623.62245\" Width=\"1084.72511\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-04-25 09:19:30','2012-01-18 14:39:49'),(121,'Incomplete Delivery Manifests',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	delivery_manifests.*,\r\n	COUNT(jobs.JobID) AS cnt,\r\n                users.Username AS created_by\r\nFROM \r\n	delivery_manifests\r\nLEFT JOIN jobs ON delivery_manifests.ManifestID=jobs.ManifestID\r\nJOIN branches ON delivery_manifests.BranchID=branches.BranchID\r\nJOIN users ON delivery_manifests.CreatedByID=users.UserID\r\nWHERE \r\n	delivery_manifests.Completed=0\r\nAND\r\n	branches.BranchName=\'[BRANCH]\'\r\nGROUP BY delivery_manifests.ManifestID\r\nORDER BY delivery_manifests.DateTimeCreated ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39359.6949614468\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22746B6E4252414E4348222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"687.42548\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Incomplete Delivery Manifests at [tknBRANCH]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"177.63791\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsManifestID\" Left=\"0\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataField=\"ManifestID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManifestID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeCreated\" Left=\"90.70872\" Top=\"0\" Width=\"132.28355\" Height=\"15.11812\" DataField=\"DateTimeCreated\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeCreated&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscreated_by\" Left=\"230.55133\" Top=\"0\" Width=\"117.16543\" Height=\"15.11812\" DataField=\"created_by\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;created_by&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDescription\" Left=\"351.49629\" Top=\"0\" Width=\"279.68522\" Height=\"15.11812\" DataField=\"Description\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Description&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"646.29963\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" DataField=\"cnt\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;cnt&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"298.58287\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"215.43321\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"0\" Width=\"154.96073\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] manifests\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"646.29963\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;cnt&#34;&#62;,MasterData1)] jobs\"/>\r\n    </TfrxFooter>\r\n    <TfrxColumnHeader Name=\"ColumnHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"94.48825\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"7.55906\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"ManifestID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"90.70872\" Top=\"7.55906\" Width=\"132.28355\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Created At\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"230.55133\" Top=\"7.55906\" Width=\"117.16543\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Created By\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"351.49629\" Top=\"7.55906\" Width=\"279.68522\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"646.29963\" Top=\"7.55906\" Width=\"52.91342\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n    </TfrxColumnHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,2,'2012-02-06 08:28:38','2012-01-18 14:39:49'),(122,'Invoice Jobs by Equipment Category',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	JobID,\r\n	funcGetCustomerName(JobID) AS customer,\r\n	funcGetEquipString(JobID) AS equip_string,\r\n	funcGetInvoiceValue(JobID) AS invoice_value,\r\n	funcGetLabourMaterialTotal(JobID) AS total_cost\r\nFROM\r\n	jobs\r\nJOIN\r\n	equipment ON jobs.EquipmentID=equipment.EquipmentID\r\nJOIN\r\n	categories ON equipment.CategoryID=categories.CategoryID\r\nWHERE \r\n	jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	categories.CategoryName=\"[CATEGORYNAME]\"\r\nORDER BY\r\n	jobs.DateTimeOfEntry ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39517.3923089236\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E43415445474F52594E414D45222056616C75653D22274472697665272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30322D323927220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknCATEGORYNAME] jobs invoiced between [tknSTARTDATE] &#38; [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"302.3624\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer\" Left=\"64.25201\" Top=\"0\" Width=\"188.9765\" Height=\"15.11812\" DataField=\"customer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"257.00804\" Top=\"0\" Width=\"279.68522\" Height=\"15.11812\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"544.25232\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"invoice_value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_value&#34;]\"/>\r\n      <TfrxMemoView Name=\"dstotal_cost\" Left=\"631.18151\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataField=\"total_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_cost&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"136.06308\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"7.55906\" Width=\"60.47248\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"64.25201\" Top=\"7.55906\" Width=\"188.9765\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"257.00804\" Top=\"7.55906\" Width=\"279.68522\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"544.25232\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoiced\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"631.18151\" Top=\"7.55906\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Cost\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"219.21274\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"544.25232\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"631.18151\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(123,'Job Locations',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT\r\njobs.Location,\r\njobs.JobID,\r\ncustomers.CustomerName,\r\nequipment.ModelNumber,\r\nmanufacturers.ManufacturerName\r\nFROM jobs\r\nJOIN branches ON (jobs.BranchID=branches.BranchID OR jobs.RepairBranchID=branches.BranchID)\r\nJOIN customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN equipment ON jobs.EquipmentID=equipment.EquipmentID\r\nJOIN manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID\r\nWHERE Location<>\"\"\r\nAND branches.BranchName=\"[BRANCHNAME]\"\r\nAND WIP=1 ORDER BY Location ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39751.3542887037\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"660.96877\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job Locations in [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"325.03958\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" Condition=\"ds.&#34;Location&#34;\">\r\n      <TfrxMemoView Name=\"dsLocation\" Left=\"0\" Top=\"0\" Width=\"177.63791\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Location: [ds.&#34;Location&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"204.09462\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"7.55906\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"94.48825\" Top=\"0\" Width=\"215.43321\" Height=\"15.11812\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsModelNumber\" Left=\"317.48052\" Top=\"0\" Width=\"370.39394\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;] [ds.&#34;ModelNumber&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"241.88992\" Width=\"699.21305\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(124,'Overdue Orders',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	suppliers.SupplierName AS supplier_name,\r\n	orders.OrderDate AS order_date,\r\n	order_items.ItemDeliveryDate AS delivery_date,\r\n	orders.OrderNo AS order_no,\r\n	order_items.JobID AS job_id,\r\n	order_items.QuantityOrdered AS quantity_ordered,\r\n	order_items.QuantityReceived AS quantity_receieved,\r\n	order_items.SupplierPartNo AS part_no,\r\n	order_items.ItemDesc AS item_desc,\r\n	order_items.UnitPrice AS unit_price\r\n\r\nFROM orders\r\n\r\n\r\nJOIN order_items ON orders.OrderID=order_items.OrderID\r\nJOIN jobs ON order_items.JobID=jobs.JobID\r\nJOIN suppliers ON orders.SupplierID=suppliers.SupplierID\r\nJOIN branches ON orders.BranchID=branches.BranchID\r\n\r\n\r\nWHERE orders.DeliveryDate<CURRENT_DATE\r\nAND order_items.QuantityOrdered>order_items.QuantityReceived\r\nAND	UnitPrice>0\r\nAND	jobs.EngStatusID<6\r\nAND	suppliers.SupplierName<>\"Stock Usagegross\"\r\nAND	suppliers.SupplierName<>\"International Parts Supply Usage\"\r\nAND         suppliers.SupplierName<>\"365 Express Couriers\"\r\nAND        suppliers.SupplierName<>\"STOCK USAGE - BRIDGEND\"\r\nAND        branches.branchname=\"[BRANCHNAME]\"\r\n\r\n\r\nORDER BY suppliers.SupplierName ASC,orders.OrderNo ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39301.5080237037\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"596.71676\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Orders\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"185.19697\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsorder_date\" Left=\"7.55906\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"order_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;order_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsdelivery_date\" Left=\"90.70872\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"delivery_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;delivery_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsorder_no\" Left=\"173.85838\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"order_no\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;order_no&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"257.00804\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsquantity_ordered\" Left=\"340.1577\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"quantity_ordered\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;quantity_ordered&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsquantity_receieved\" Left=\"423.30736\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"quantity_receieved\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;quantity_receieved&#34;]\"/>\r\n      <TfrxMemoView Name=\"dspart_no\" Left=\"506.45702\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataField=\"part_no\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;part_no&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsitem_desc\" Left=\"668.97681\" Top=\"0\" Width=\"260.78757\" Height=\"15.11812\" DataField=\"item_desc\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;item_desc&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsunit_price\" Left=\"941.10297\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;unit_price&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"294.80334\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"884.41002\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"113.3859\" Width=\"1028.03216\" Condition=\"ds.&#34;supplier_name&#34;\">\r\n      <TfrxMemoView Name=\"dssupplier_name\" Left=\"0\" Top=\"7.55906\" Width=\"400.63018\" Height=\"18.89765\" DataField=\"supplier_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;supplier_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"7.55906\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Order Date\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"90.70872\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Del Date\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"173.85838\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Order No\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"257.00804\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"340.1577\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Ordered\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"423.30736\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Delivered\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"506.45702\" Top=\"34.01577\" Width=\"158.74026\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier Part No\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"668.97681\" Top=\"34.01577\" Width=\"260.78757\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Item Description\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"941.10297\" Top=\"34.01577\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Unit Price\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"7.55906\" Top=\"49.13389\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"11.33859\" Left=\"0\" Top=\"222.99227\" Width=\"1028.03216\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(125,'RNR Jobs ready to go',0,2,7,1,1,0,1,1,50,100,'SELECT jobs.jobid AS job_id,\r\n               jobs.oldjobid AS old_job_id,\r\n               jobs.repairbranchid AS repair_branch,\r\n               jobs.jobtypeid AS job_type_id,\r\n               job_types.jobtype AS job_type_text,\r\n               funcGetCustomerName(jobid) AS customer_name,\r\n               funcGetEquipString(jobid) AS equip_string,\r\n               jobs.engstatusid AS eng_status,\r\n               jobs.location AS location,\r\n               jobs.finaloutcomeid AS final_outcome_id,\r\n               final_outcomes.finaloutcome AS final_outcome_text,\r\n               final_outcomes.rnrflag AS rnr_flag\r\nFROM jobs\r\nJOIN final_outcomes ON jobs.finaloutcomeid=final_outcomes.finaloutcomeid\r\nJOIN job_types ON jobs.jobtypeid=job_types.jobtypeid\r\nJOIN branches ON jobs.repairbranchid=branches.branchid\r\nWHERE final_outcomes.rnrflag=\"1\" AND jobs.engstatusid=\"5\" AND jobs.repairbranchid = \"1\"\r\nAND jobs.jobtypeid IN (\"1\",\"8\",\"12\")\r\nAND branches.branchname=\"[BRANCHNAME]\"\r\nORDER BY jobs.jobtypeid ASC, jobs.location ASC\r\n               ',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39308.5321052778\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"264.11812\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"RNR jobs ready to go\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"3.77953\" Top=\"26.45671\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"215.43321\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"211.65368\" Top=\"0\" Width=\"219.21274\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"430.86642\" Top=\"0\" Width=\"377.953\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsfinal_outcome_text\" Left=\"808.81942\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"final_outcome_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;final_outcome_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsold_job_id\" Left=\"94.48825\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"old_job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;old_job_id&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"343.93723\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"899.52814\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"0\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"170.07885\" Width=\"1046.92981\" Condition=\"ds.&#34;location&#34;\">\r\n      <TfrxMemoView Name=\"dslocation\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"18.89765\" DataField=\"location\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"[ds.&#34;location&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"0\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\"/>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"22.67718\" Left=\"0\" Top=\"124.72449\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"0\" Left=\"0\" Top=\"283.46475\" Width=\"1046.92981\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(127,'Overdue Jobs (Unassigned)',0,9,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n\r\nWHERE \r\n	funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	(jobs.RepairedByID=\"\" OR jobs.RepairedByID IS NULL)\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40141.4312859028\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Unassigned Overdue Jobs in Current WIP for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"192.75603\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"423.30736\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\" KeepTogether=\"True\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"37.7953\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"26.45671\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"347.71676\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"0\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(128,'Overdue Jobs by Equipment Category',0,9,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days,\r\n       categories.CategoryName\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN equipment ON jobs.EquipmentID=equipment.EquipmentID\r\nLEFT JOIN categories ON equipment.CategoryID=categories.CategoryID\r\n\r\nWHERE \r\n	funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nORDER BY\r\n	categories.CategoryName ASC,\r\n    jobs.JobTypeID ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39830.6607437732\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D30312D313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"808.37044\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Jobs for [tknBRANCHNAME] by Equipment Category\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"22.67718\" Top=\"0\" Width=\"1024.25263\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"26.45671\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"105.82684\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"207.87415\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"321.26005\" Top=\"0\" Width=\"287.24428\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"627.40198\" Top=\"0\" Width=\"287.24428\" Height=\"15.11812\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"22.67718\" Top=\"18.89765\" Width=\"1024.25263\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"555.59091\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"181.41744\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"11.33859\" Top=\"3.77953\" Width=\"188.9765\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"26.45671\" Top=\"37.7953\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"105.82684\" Top=\"37.7953\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"207.87415\" Top=\"37.7953\" Width=\"109.60637\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"321.26005\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"627.40198\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"37.7953\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"26.45671\" Left=\"0\" Top=\"328.81911\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"26.45671\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue in [ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"480.00031\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"37.7953\" Top=\"11.33859\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"37.7953\" Left=\"0\" Top=\"120.94496\" Width=\"1046.92981\" Condition=\"ds.&#34;CategoryName&#34;\">\r\n      <TfrxMemoView Name=\"dsCategoryName\" Left=\"0\" Top=\"3.77953\" Width=\"502.67749\" Height=\"18.89765\" DataField=\"CategoryName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;CategoryName&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"41.57483\" Left=\"0\" Top=\"377.953\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"22.67718\" Top=\"0\" Width=\"657.63822\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue for [ds.&#34;CategoryName&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"26.45671\" Width=\"1046.92981\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(129,'Overdue Jobs by Job Type',0,9,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	status_eng.StatusID AS status_id,\r\n	status_eng.StatusName AS status_name,\r\n	jobs.JobID AS job_id,\r\n	funcGetCustomerName(jobs.JobID) AS customer_name,\r\n	jobs.EquipmentID AS equipment_id,\r\n	funcGetEquipString(jobs.JobID) AS equipment,\r\n                funcGetRepairEngineer(jobs.JobID) AS repair_engineer,\r\n	funcGetDueDate(jobs.JobID) AS due_date	\r\nFROM \r\n	jobs \r\nLEFT JOIN branches ON jobs.BranchID=branches.BranchID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN status_eng ON jobs.EngStatusID=status_eng.StatusID\r\nWHERE\r\n	funcIsJobOverdue(JobID,\"[DATENOW]\")=\"TRUE\"\r\n	AND\r\n	jobs.WIP=1\r\n                AND\r\n               funcGetEquipString(jobs.JobID) NOT LIKE \"%U Code%\"\r\nORDER BY\r\n	branches.BranchName ASC,\r\n	job_types.JobType ASC,\r\n	jobs.EngStatusID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39198.7873318056\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E444154454E4F57222056616C75653D2227323030372D30342D333027220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Jobs by Job Type on [tknDATENOW]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"124.72449\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"442.20501\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"11.33859\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"502.67749\" Top=\"11.33859\" Width=\"197.69295\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"302.3624\" Top=\"11.33859\" Width=\"120.94496\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"147.40167\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"18.89765\" Left=\"0\" Top=\"192.75603\" Width=\"699.21305\" Condition=\"ds.&#34;job_type&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"15.11812\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"272.12616\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"45.35436\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"249.44898\" Top=\"0\" Width=\"147.40167\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"400.63018\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsdue_date\" Left=\"582.04762\" Top=\"0\" Width=\"117.16543\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Due on [ds.&#34;due_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsrepair_engineer\" Left=\"105.82684\" Top=\"0\" Width=\"139.84261\" Height=\"15.11812\" DataField=\"repair_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;repair_engineer&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"7.55906\" Left=\"0\" Top=\"374.17347\" Width=\"699.21305\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"7.55906\" Left=\"0\" Top=\"343.93723\" Width=\"699.21305\"/>\r\n    <TfrxGroupHeader Name=\"GroupHeader3\" Height=\"15.11812\" Left=\"0\" Top=\"234.33086\" Width=\"699.21305\" Condition=\"ds.&#34;status_name&#34;\">\r\n      <TfrxMemoView Name=\"dsstatus_name\" Left=\"30.23624\" Top=\"0\" Width=\"411.96877\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Eng Status [ds.&#34;status_id&#34;]: [ds.&#34;status_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter3\" Height=\"11.33859\" Left=\"0\" Top=\"309.92146\" Width=\"699.21305\"/>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(130,'Overdue Jobs by Operations Group',0,9,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days,\r\n       groups.GroupName\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN customers ON jobs.CustomerID=customers.CustomerID\r\nLEFT JOIN groups ON customers.GroupID=groups.GroupID\r\n\r\nWHERE \r\n	funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nORDER BY\r\n    groups.GroupName ASC,\r\n    jobs.JobTypeID ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39830.6565846065\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D30312D313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"808.37044\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Jobs for [tknBRANCHNAME] by Operations Group\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"22.67718\" Top=\"0\" Width=\"1024.25263\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"26.45671\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"105.82684\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"207.87415\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"321.26005\" Top=\"0\" Width=\"287.24428\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"627.40198\" Top=\"0\" Width=\"287.24428\" Height=\"15.11812\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"22.67718\" Top=\"18.89765\" Width=\"1024.25263\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"555.59091\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"181.41744\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"11.33859\" Top=\"3.77953\" Width=\"188.9765\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"26.45671\" Top=\"37.7953\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"105.82684\" Top=\"37.7953\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"207.87415\" Top=\"37.7953\" Width=\"109.60637\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"321.26005\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"627.40198\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"37.7953\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"26.45671\" Left=\"0\" Top=\"328.81911\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"26.45671\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue in [ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"480.00031\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"15.11812\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"37.7953\" Left=\"0\" Top=\"120.94496\" Width=\"1046.92981\" Condition=\"ds.&#34;GroupName&#34;\">\r\n      <TfrxMemoView Name=\"dsGroupName\" Left=\"0\" Top=\"7.55906\" Width=\"400.63018\" Height=\"18.89765\" DataField=\"GroupName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;GroupName&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"41.57483\" Left=\"0\" Top=\"377.953\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"22.67718\" Top=\"0\" Width=\"657.63822\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue for [ds.&#34;GroupName&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"26.45671\" Width=\"1046.92981\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(131,'Overdue Jobs by Repair Engineer',0,9,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       users.Username AS engineer,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN users ON jobs.RepairedByID=users.UserID\r\n\r\nWHERE \r\n	funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n                users.Username<>\"\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    users.Username ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40141.4364197801\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Jobs by Repair Engineer for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"241.88992\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"483.77984\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"37.7953\" Left=\"0\" Top=\"309.92146\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"408.18924\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"0\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"49.13389\" Left=\"0\" Top=\"170.07885\" Width=\"1046.92981\" Condition=\"ds.&#34;engineer&#34;\" KeepTogether=\"True\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsengineer\" Left=\"-3.77953\" Top=\"0\" Width=\"321.26005\" Height=\"18.89765\" DataField=\"engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"26.45671\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"26.45671\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(132,'Overdue Jobs in Current WIP',0,9,7,1,1,0,1,1,75,150,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n\r\nWHERE \r\n	funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39364.4740410069\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030372D31302D303927220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Jobs in Current WIP for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"192.75603\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"411.96877\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"37.7953\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"15.11812\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"15.11812\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"336.37817\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"15.11812\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-01-31 15:34:46','2012-01-18 14:39:49'),(133,'Overdue Quotes (Unassigned)',0,10,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n\r\nWHERE \r\n	funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	(jobs.QuotedByID=\"\" OR jobs.QuotedByID IS NULL)\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"1\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40144.4670477431\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Unassigned Overdue Quotes in Current WIP for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"192.75603\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"423.30736\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\" KeepTogether=\"True\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"37.7953\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"37.7953\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"37.7953\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"26.45671\" Left=\"0\" Top=\"260.78757\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Quotes Overdue\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"347.71676\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"0\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Quotes Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(134,'Overdue Quotes by Quoted Engineer',0,10,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       users.Username AS engineer,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN users ON jobs.QuotedByID=users.UserID\r\n\r\nWHERE \r\n	funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\")<>0\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"1\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n                users.Username<>\"\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    users.Username ASC,\r\n    funcGetDaysOverdueQuote(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40144.4625484259\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Overdue Quotes by Quote Engineer for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"241.88992\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"483.77984\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"37.7953\" Left=\"0\" Top=\"309.92146\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Quotes Overdue\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"408.18924\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"0\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Quotes Overdue Total\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"49.13389\" Left=\"0\" Top=\"170.07885\" Width=\"1046.92981\" Condition=\"ds.&#34;engineer&#34;\" KeepTogether=\"True\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsengineer\" Left=\"-3.77953\" Top=\"0\" Width=\"321.26005\" Height=\"18.89765\" DataField=\"engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"26.45671\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"26.45671\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(135,'Month End Parts Value',0,11,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	COUNT(*) AS record_count,\r\n	SUM(QtyInStock*UnitPrice) AS stock_value\r\nFROM\r\n	parts\r\nJOIN\r\n	branches ON parts.BranchID=branches.BranchID\r\nWHERE\r\n	branches.BranchName=\"[BRANCHNAME]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39681.5692804745\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"694.98454\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Stock Value for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsrecord_count\" Left=\"325.03958\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"record_count\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;record_count&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date:\"/>\r\n      <TfrxMemoView Name=\"Date\" Left=\"49.13389\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[Date]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"253.22851\" Top=\"0\" Width=\"71.81107\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Records:\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"521.57514\" Top=\"0\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value:\"/>\r\n      <TfrxMemoView Name=\"dsstock_value\" Left=\"578.26809\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"stock_value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;stock_value&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-01-25 14:59:35','2012-01-18 14:39:49'),(136,'Parts by Supplier',0,11,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	suppliers.SupplierName,\r\n	COUNT(parts.PartID) AS cnt \r\nFROM\r\n	parts\r\nJOIN\r\n	suppliers ON parts.SupplierID=suppliers.SupplierID\r\nJOIN\r\n	branches ON parts.BranchID=branches.BranchID\r\nWHERE\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nGROUP BY\r\n	parts.SupplierID\r\nORDER BY cnt DESC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39715.3634056944\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"524.90569\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Parts by Supplier for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" Height=\"15.11812\" Left=\"0\" ParentFont=\"False\" Top=\"158.74026\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsSupplierName\" Left=\"11.33859\" Top=\"0\" Width=\"400.63018\" Height=\"15.11812\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"434.64595\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataField=\"cnt\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;cnt&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"234.33086\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"11.33859\" Top=\"7.55906\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"434.64595\" Top=\"7.55906\" Width=\"196.53556\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Number of Parts from Supplier\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,2,'2012-02-03 14:13:59','2012-01-18 14:39:49'),(137,'Parts Stock End of Year Report',0,11,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	PartDescription,\r\n	suppliers.SupplierName,\r\n 	SupplierPartNo,\r\n 	QtyInStock,\r\n 	UnitPrice\r\nFROM\r\n 	parts\r\nJOIN\r\n	suppliers ON parts.SupplierID=suppliers.SupplierID\r\nJOIN\r\n 	branches ON parts.BranchID=branches.BranchID\r\nWHERE\r\n 	BranchName=\"[BRANCHNAME]\"\r\nORDER BY \r\n 	PartDescription ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39896.8652787963\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Parts Stock End of Year Report for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"151.1812\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"0\" Top=\"0\" Width=\"234.33086\" Height=\"15.11812\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierName\" Left=\"238.11039\" Top=\"0\" Width=\"185.19697\" Height=\"15.11812\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"427.08689\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQtyInStock\" Left=\"551.81138\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" DataField=\"QtyInStock\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;QtyInStock&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsUnitPrice\" Left=\"612.28386\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"UnitPrice\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;UnitPrice&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"272.12616\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"15.11812\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"234.33086\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Description\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"238.11039\" Top=\"0\" Width=\"185.19697\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"427.08689\" Top=\"0\" Width=\"120.94496\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Part Number\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"551.81138\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"612.28386\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Price Each\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"15.11812\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"22.67718\" Left=\"0\" Top=\"226.7718\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"449.76407\" Top=\"3.77953\" Width=\"249.44898\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Parts Stock Value: [SUM(&#60;ds.&#34;QtyInStock&#34;&#62;*&#60;ds.&#34;UnitPrice&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,3,'2012-01-25 15:06:11','2012-01-18 14:39:49'),(138,'Parts Stock Shopping List',0,11,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	PartDescription,\r\n	suppliers.SupplierName,\r\n	SupplierPartNo,\r\n	UnitPrice,\r\n	(CEILING((MinStockLevel-QtyInStock)/SupplyMultiple))*SupplyMultiple AS QtyToOrder,\r\n                ((CEILING((MinStockLevel-QtyInStock)/SupplyMultiple))*SupplyMultiple*UnitPrice) AS subtotal\r\nFROM \r\n	parts \r\nJOIN\r\n	suppliers ON parts.SupplierID=suppliers.SupplierID\r\nJOIN\r\n                branches ON parts.BranchID=branches.BranchID\r\nWHERE\r\n	QtyInStock<MinStockLevel\r\nAND\r\n                Discontinued=0\r\nAND\r\n	suppliers.SupplierName LIKE \"[SUPPLIERNAME]%\"\r\nAND\r\n                 branches.BranchName=\"[BRANCHNAME]\"\r\nORDER BY\r\n                suppliers.SupplierName ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40087.5946500579\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E535550504C4945524E414D45222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"75.5906\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Parts Stock Shopping List\"/>\r\n      <TfrxMemoView Name=\"dsSupplierName1\" Left=\"0\" Top=\"26.45671\" Width=\"502.67749\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier: [ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"45.35436\" Width=\"502.67749\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Branch: [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsPartDescription\" Left=\"0\" Top=\"0\" Width=\"260.78757\" Height=\"15.11812\" DataField=\"PartDescription\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;PartDescription&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierName\" Left=\"260.78757\" Top=\"0\" Width=\"143.62214\" Height=\"15.11812\" DataField=\"SupplierName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSupplierPartNo\" Left=\"404.40971\" Top=\"0\" Width=\"124.72449\" Height=\"15.11812\" DataField=\"SupplierPartNo\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SupplierPartNo&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsQtyToOrder\" Left=\"600.94527\" Top=\"0\" Width=\"30.23624\" Height=\"15.11812\" DataField=\"QtyToOrder\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;QtyToOrder&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsUnitPrice1\" Left=\"536.69326\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataField=\"UnitPrice\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;UnitPrice&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssubtotal\" Left=\"631.18151\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataField=\"subtotal\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;subtotal&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"31.33859\" Left=\"0\" Top=\"321.26005\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"15.11812\" Width=\"225\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"15.11812\" Width=\"144.77953\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"154.96073\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"0\" Width=\"260.78757\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Part Description\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"260.78757\" Top=\"0\" Width=\"143.62214\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supplier\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"404.40971\" Top=\"0\" Width=\"124.72449\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Part Number\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"536.69326\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Each\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"600.94527\" Top=\"0\" Width=\"30.23624\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"631.18151\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Subtotal\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"22.67718\" Left=\"0\" Top=\"275.90569\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"631.18151\" Top=\"7.55906\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;subtotal&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,4,'2012-02-03 14:12:48','2012-01-18 14:39:49'),(139,'All Completed Jobs by Date',0,12,7,1,1,0,0,1,NULL,NULL,'SELECT\r\n          JobID AS job_id,\r\n          DateTimeRepairComplete,\r\n          funcGetCustomerName(JobID) AS customer_name,\r\n          funcGetEquipString(JobID) AS equip_string,\r\n          funcGetRepairEngineer(JobID) AS repair_engineer,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(JobID,\"[BRANCHNAME]\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\n          \r\nFROM jobs\r\n\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN branches ON jobs.repairbranchid=branches.branchid\r\n\r\nWHERE (DateTimeRepairComplete BETWEEN \"[START] 00:00:00\" AND \"[END] 23:59:59\")\r\nAND jobs.EngStatusID >= \"6\"\r\nAND jobs.JobTypeID IN (\"1\",\"2\",\"3\",\"4\",\"6\",\"8\",\"12\",\"17\",\"18\",\"19\",\"20\")\r\nAND (final_outcomes.RNRFlag=\"0\" OR jobs.creditnote=\"1\")\r\nAND branches.branchname=\"[BRANCHNAME]\"\r\n\r\n\r\nORDER BY jobs.JobTypeID ASC,repair_engineer ASC,jobs.DateTimeRepairComplete ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39519.6976586343\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E544F444159222056616C75653D2227323030382D30332D3132272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C25000000204E616D653D22746B6E5354415254222056616C75653D2227323030382D30332D3132272200010C23000000204E616D653D22746B6E454E44222056616C75653D2227323030382D30332D313227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"54.23624\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Traffic Completed between [tknStart] to [tknEnd]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"3.77953\" Top=\"30.23624\" Width=\"506.45702\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Report ran on [DATE] at [TIME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"249.44898\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"181.41744\" Top=\"0\" Width=\"173.85838\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" WordWrap=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"359.05535\" Top=\"0\" Width=\"204.09462\" Height=\"15.11812\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"64.25201\" Top=\"0\" Width=\"113.3859\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"566.9295\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"650.07916\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_value&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"502.67749\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"498.89796\" Top=\"0\" Width=\"220.37013\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"0\" Top=\"0\" Width=\"188.9765\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"177.63791\" Width=\"718.1107\" Condition=\"ds.&#34;repair_engineer&#34;\" KeepTogether=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"26.45671\" Width=\"60.47248\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"64.25201\" Top=\"26.45671\" Width=\"113.3859\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"181.41744\" Top=\"26.45671\" Width=\"83.14966\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"359.05535\" Top=\"26.45671\" Width=\"83.14966\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"566.9295\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Mat Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"650.07916\" Top=\"26.45671\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"45.35436\" Width=\"718.1107\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"dsrepair_engineer\" Left=\"0\" Top=\"0\" Width=\"801.26036\" Height=\"18.89765\" DataField=\"repair_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;repair_engineer&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"30.23624\" Left=\"0\" Top=\"287.24428\" Width=\"718.1107\" AllowSplit=\"True\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"7.55905999999999\" Width=\"272.12616\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"650.07916\" Top=\"7.55905999999999\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"3.77953000000002\" Width=\"718.1107\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"566.9295\" Top=\"7.55905999999999\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"56.69295\" Left=\"0\" Top=\"423.30736\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"0\" Top=\"3.77953000000002\" Width=\"718.1107\" Height=\"49.13389\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-19\" Font.Name=\"verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs completed, with a total invoice value of £[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"22.67718\" Left=\"0\" Top=\"132.28355\" Width=\"718.1107\" Condition=\"ds.&#34;job_type&#34;\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type1\" Left=\"0\" Top=\"0\" Width=\"400.63018\" Height=\"18.89765\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"22.67718\" Left=\"0\" Top=\"340.1577\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"3.77953000000002\" Width=\"272.12616\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"566.9295\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"646.29963\" Top=\"3.77953000000002\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"0\" Width=\"718.1107\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,2,'2012-02-03 17:36:10','2012-01-18 14:39:49'),(140,'Completed Electronic and Site Visit Jobs by Date Range',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT          \r\n          DATE_FORMAT(DateTimeRepairComplete,\'%d/%m/%Y\') AS completion_date,\r\n          JobID AS job_id,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(JobID,\"[BRANCHNAME]\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\nFROM jobs\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n           WHERE (DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\")\r\n           AND jobs.EngStatusID >= \"6\"\r\n           AND jobs.JobTypeID IN (\"1\",\"4\",\"6\")\r\n           AND branches.BranchName = \"[BRANCHNAME]\"\r\n           AND (final_outcomes.RNRFlag=\"0\" OR jobs.creditnote=\"1\")\r\nORDER BY\r\n	completion_date ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39504.4184408449\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30322D3236272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30322D3236272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"679.86642\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"34.01577\" Width=\"483.77984\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Electronic Repairs, Site Visits, Manufacturing\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" Condition=\"ds.&#34;completion_date&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"dscompletion_date\" Left=\"0\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"completion_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;completion_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"3.77952999999999\" Width=\"136.06308\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"347.71676\" Top=\"3.77952999999999\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"18.89765\" Left=\"0\" Top=\"275.90569\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-02 11:37:11','2012-01-18 14:39:49'),(141,'Completed Motor Jobs by Date Range',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT          \r\n          DATE_FORMAT(DateTimeRepairComplete,\'%d/%m/%Y\') AS completion_date,\r\n          JobID AS job_id,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(JobID,\"[BRANCHNAME]\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\nFROM jobs\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n           WHERE (DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\")\r\n           AND jobs.EngStatusID >= \"6\"\r\n           AND jobs.JobTypeID =\"8\"\r\n           AND branches.BranchName = \"[BRANCHNAME]\"\r\n           AND (final_outcomes.RNRFlag=\"0\" OR jobs.creditnote=\"1\")\r\nORDER BY\r\n	completion_date ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39309.6009834838\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30382D3135272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"679.86642\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"34.01577\" Width=\"483.77984\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Motor Repairs\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" Condition=\"ds.&#34;completion_date&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"dscompletion_date\" Left=\"0\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"completion_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;completion_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"3.77952999999999\" Width=\"136.06308\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"347.71676\" Top=\"3.77952999999999\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"18.89765\" Left=\"0\" Top=\"275.90569\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(142,'Completed Stock Work for International',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT    \r\n          DATE_FORMAT(DateTimeRepairComplete,\'%d/%m/%Y\') AS completion_date,\r\n          JobID AS job_id,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(jobid,\"Aldridge\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\nFROM jobs\r\nJOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nJOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n           WHERE (DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\")\r\n           AND jobs.EngStatusID >= \"6\"\r\n           AND jobs.JobTypeID IN (\"17\",\"18\",\"19\",\"20\")\r\n           AND branches.BranchName = \"[BRANCHNAME]\"\r\n           AND final_outcomes.RNRFlag=\"0\"\r\nORDER BY\r\n	completion_date ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39351.5957348264\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30392D3236272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30392D3236272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"679.86642\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"34.01577\" Width=\"483.77984\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Stock Work for International (counted at the appropriate rate)\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" Condition=\"ds.&#34;completion_date&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"dscompletion_date\" Left=\"0\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"completion_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;completion_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"3.77952999999999\" Width=\"136.06308\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"347.71676\" Top=\"3.77952999999999\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"18.89765\" Left=\"0\" Top=\"275.90569\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(143,'Completed Subcontract Jobs by Date Range',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT          \r\n          DATE_FORMAT(DateTimeRepairComplete,\'%d/%m/%Y\') AS completion_date,\r\n          JobID AS job_id,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(JobID,\"[BRANCHNAME]\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\nFROM jobs\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n           WHERE (DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\")\r\n           AND jobs.EngStatusID >= \"6\"\r\n           AND jobs.JobTypeID=\"12\"\r\n           AND branches.BranchName = \"[BRANCHNAME]\"\r\n           AND (final_outcomes.RNRFlag=\"0\" OR jobs.creditnote=\"1\")\r\nORDER BY\r\n	completion_date ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39309.4017414815\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30382D3135272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"679.86642\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"34.01577\" Width=\"483.77984\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Subcontract Work\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" Condition=\"ds.&#34;completion_date&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"dscompletion_date\" Left=\"0\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"completion_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;completion_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"3.77952999999999\" Width=\"136.06308\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"347.71676\" Top=\"3.77952999999999\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"18.89765\" Left=\"0\" Top=\"275.90569\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(144,'Completed Supply & Service Exchange Jobs by Date Range',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT          \r\n          DATE_FORMAT(DateTimeRepairComplete,\'%d/%m/%Y\') AS completion_date,\r\n          JobID AS job_id,\r\n          funcGetMaterialCostNew(JobID) AS material_cost,\r\n          funcGetWorkshopInvoiceValue(JobID,\"[BRANCHNAME]\") AS invoice_value,\r\n          funcGetJobType(JobID) AS job_type\r\nFROM jobs\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\n           WHERE (DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\")\r\n           AND jobs.EngStatusID >= \"6\"\r\n           AND jobs.JobTypeID IN (\"2\",\"3\")\r\n           AND branches.BranchName = \"[BRANCHNAME]\"\r\n           AND (final_outcomes.RNRFlag=\"0\" OR jobs.creditnote=\"1\")\r\nORDER BY\r\n	completion_date ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39518.6926288426\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30332D3037272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30332D3037272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"679.86642\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"7.55906\" Top=\"30.23624\" Width=\"483.77984\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Supply & Service Exchange\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" Condition=\"ds.&#34;completion_date&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"18.89765\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"dscompletion_date\" Left=\"0\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"completion_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;completion_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"120.94496\" Top=\"3.77952999999999\" Width=\"49.13389\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"3.77952999999999\" Width=\"136.06308\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"347.71676\" Top=\"3.77952999999999\" Width=\"124.72449\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Costs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"18.89765\" Left=\"0\" Top=\"275.90569\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"120.94496\" Top=\"0\" Width=\"49.13389\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"181.41744\" Top=\"0\" Width=\"136.06308\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"347.71676\" Top=\"0\" Width=\"124.72449\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-02 11:41:36','2012-01-18 14:39:49'),(145,'Current In Progress Summaries',0,12,5,1,1,0,1,1,NULL,NULL,'SELECT \r\n       SUM(NumberOff*QuotedPrice) AS total_quoted_price,\r\n       SUM(funcGetLabourMaterialTotal(jobid)) AS total_costs,\r\n       job_types.jobtype AS job_type_text,\r\n       COUNT(JobID) AS number_of_jobs,\r\n       SUM(NumberOff) AS number_of_items\r\nFROM\r\n	jobs\r\n\r\nJOIN job_types ON jobs.jobtypeid=job_types.JobTypeID\r\nJOIN branches ON jobs.repairbranchid=branches.branchid\r\n\r\nWHERE\r\n	jobs.jobtypeid IN (\"1\",\"2\",\"3\",\"4\",\"8\",\"12\")\r\nAND\r\n	jobs.engstatusid IN (\"1\",\"4\",\"5\")\r\nAND\r\n	(jobs.FinalOutcomeID=\"\"\r\n	OR\r\n	jobs.FinalOutcomeID IS NULL\r\n	OR\r\n	jobs.FinalOutcomeID=1\r\n	OR\r\n	jobs.FinalOutcomeID=2\r\n	OR\r\n	jobs.FinalOutcomeID=3\r\n	OR\r\n	jobs.FinalOutcomeID=4\r\n	OR\r\n	jobs.FinalOutcomeID=5\r\n	OR\r\n	jobs.FinalOutcomeID=6\r\n	OR\r\n	jobs.FinalOutcomeID=7\r\n	OR\r\n	jobs.FinalOutcomeID=13\r\n	)\r\nAND\r\n	branches.branchname=\"[BRANCHNAME]\"\r\nGROUP BY\r\n	jobs.jobtypeID\r\nORDER BY\r\n	jobs.jobtypeid ASC,\r\n	jobs.branchid ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40326.3797256019\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"475.7718\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Current In Progress Summaries by Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"3.77953\" Top=\"34.01577\" Width=\"343.93723\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Showing all jobs for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"215.43321\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dstotal_quoted_price\" Left=\"415.7483\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"total_quoted_price\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_quoted_price&#34;]\"/>\r\n      <TfrxMemoView Name=\"dstotal_costs\" Left=\"555.59091\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"total_costs\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_costs&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"0\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsnumber_of_items\" Left=\"328.81911\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"number_of_items\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;number_of_items&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsnumber_of_jobs\" Left=\"238.11039\" Top=\"0\" Width=\"75.5906\" Height=\"18.89765\" DataField=\"number_of_jobs\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;number_of_jobs&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"340.1577\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"56.69295\" Left=\"0\" Top=\"136.06308\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"328.81911\" Top=\"37.7953\" Width=\"56.69295\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Items\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"555.59091\" Top=\"37.7953\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Costs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"415.7483\" Top=\"37.7953\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quoted Value\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"238.11039\" Top=\"37.7953\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"257.00804\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"238.11039\" Top=\"0\" Width=\"75.5906\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;number_of_jobs&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"328.81911\" Top=\"0\" Width=\"75.5906\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;number_of_items&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"415.7483\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_quoted_price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"555.59091\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_costs&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"0\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(146,'Daily Invoicing Summary by Branch and Date Range',0,12,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	InvoiceDate,\r\n	COUNT(JobID) AS jobs_invoiced,\r\n	SUM(InvoiceNet) AS invoice_net\r\nFROM\r\n	jobs\r\nJOIN\r\n	branches ON jobs.BranchID=branches.BranchID\r\nWHERE\r\n	InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nGROUP BY\r\n	InvoiceDate\r\nORDER BY\r\n	InvoiceDate ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39687.3453473495\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30382D323727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Invoicing Summary for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"7.55906\" Top=\"0\" Width=\"105.82684\" Height=\"18.89765\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjobs_invoiced\" Left=\"128.50402\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobs_invoiced&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_net\" Left=\"279.68522\" Top=\"0\" Width=\"162.51979\" Height=\"18.89765\" DataField=\"invoice_net\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_net&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"283.46475\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"7.55906\" Top=\"3.77953\" Width=\"105.82684\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Date\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"128.50402\" Top=\"3.77953\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs Invoiced\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"279.68522\" Top=\"3.77953\" Width=\"162.51979\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Value Invoiced\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"7.55906\" Top=\"22.67718\" Width=\"434.64595\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"200.31509\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"279.68522\" Top=\"0\" Width=\"162.51979\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"128.50402\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;jobs_invoiced&#34;&#62;,MasterData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"7.55906\" Top=\"0\" Width=\"434.64595\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"7.55906\" Top=\"0\" Width=\"105.82684\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] days\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,3,'2012-02-06 16:13:52','2012-01-18 14:39:49'),(147,'Job Type P & L by Branch',0,12,3,1,1,0,1,1,NULL,NULL,'SELECT\r\nusers.Username AS user_name,\r\nuser_types.UserTypeName AS user_type,\r\njobs.JobID AS job_id,\r\njob_types.JobType AS job_type,\r\n(jobs.NumberOff*jobs.QuotedPrice)+jobs.QuotedDelivery AS invoice_value,\r\njobs.InvoiceDate AS invoice_date,\r\nfuncGetLossOnJob(jobs.JobID) AS loss_on_job,\r\nfuncGetProfitOnJob(jobs.JobID) AS profit_on_job,\r\n(funcGetProfitOnJob(jobs.JobID)-funcGetLossOnJob(jobs.JobID)) AS nett_gain_loss,\r\nfuncGetWarrantyCosts(jobs.JobID) AS warranty_cost,\r\nbranches.BranchName AS branch_name\r\nFROM jobs\r\nLEFT JOIN users ON (jobs.RepairedByID=users.UserID OR jobs.QuotedByID=users.UserID)\r\nLEFT JOIN user_types ON users.UserTypeID=user_types.UserTypeID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN branches ON users.BranchID=branches.BranchID\r\nLEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nWHERE \r\n	user_types.UserTypeName=\"Engineer\"\r\n                AND users.Active=1\r\n	AND jobs.WIP=0 \r\n	AND jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\n	AND users.Username<>\".\"\r\n	AND users.Username<>\"Put Down\"\r\nORDER BY branches.BranchID ASC,job_types.JobType ASC,users.UserID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39197.6168548611\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job Type P &#38; L by Branch between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"430.86642\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"3.77953\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"18.89765\" Top=\"34.01577\" Width=\"109.60637\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"132.28355\" Top=\"34.01577\" Width=\"109.60637\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Throughput\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"245.66945\" Top=\"34.01577\" Width=\"105.82684\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Loss on Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"355.27582\" Top=\"34.01577\" Width=\"102.04731\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Profit on Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"461.10266\" Top=\"34.01577\" Width=\"98.26778\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranty Costs\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"563.14997\" Top=\"34.01577\" Width=\"136.06308\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Nett Profit / Loss\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"18.89765\" Top=\"52.91342\" Width=\"680.3154\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"238.11039\" Width=\"699.21305\" Condition=\"ds.&#34;job_type&#34;\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"260.78757\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" Height=\"49.13389\" Left=\"0\" ParentFont=\"False\" Top=\"321.26005\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"132.28355\" Top=\"7.55906\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"245.66945\" Top=\"7.55906\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;loss_on_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"355.27582\" Top=\"7.55906\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;profit_on_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"461.10266\" Top=\"7.55906\" Width=\"98.26778\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"1\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"563.14997\" Top=\"7.55906\" Width=\"136.06308\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)+1))*100 #n%0.0f]%)\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"18.89765\" Top=\"3.77953\" Width=\"680.3154\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"15.11812\" Left=\"0\" Top=\"283.46475\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"18.89765\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"132.28355\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"245.66945\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;loss_on_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"355.27582\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;profit_on_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"dswarranty_cost\" Left=\"461.10266\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"563.14997\" Top=\"0\" Width=\"136.06308\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)+1))*100 #n%0.0f]%)\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(148,'Jobs Invoiced for a Repair Branch',0,12,7,1,1,0,1,1,100,200,'SELECT jobs.jobid AS jobid,\r\n       funcGetCustomerName(jobid) AS customer,\r\n       funcGetEquipString(jobid) AS equipment,\r\n       funcGetRepairEngineer(jobid) AS engineer,\r\n       funcGetWorkshopInvoiceValue(jobid, \"[BRANCHNAME]\") AS invoice_value\r\n       \r\nFROM jobs\r\n\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN final_outcomes ON jobs.finaloutcomeid = final_outcomes.finaloutcomeid\r\n\r\nWHERE job_types.JobType=\"[JOBTYPE]\"\r\nAND branches.BranchName=\"[BRANCHNAME]\"\r\nAND jobs.wip = 0\r\nAND jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND final_outcomes.rnrflag = 0\r\n\r\n\r\nORDER BY engineer ASC, jobs.invoicedate ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39570.415726088\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2E000000204E616D653D22746B6E4A4F4254595045222056616C75653D2227456C656374726F6E696320526570616972272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30342D3239272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30352D303227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"&#34;[tknJOBTYPE]&#34; Jobs Invoiced for Repair Branch [tknBRANCHNAME]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"3.77953\" Top=\"30.23624\" Width=\"317.48052\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"30.23624\" Left=\"0\" Top=\"219.21274\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"jobid\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;jobid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer\" Left=\"83.14966\" Top=\"0\" Width=\"302.3624\" Height=\"18.89765\" DataField=\"customer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"389.29159\" Top=\"0\" Width=\"234.33086\" Height=\"26.45671\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"631.18151\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"invoice_value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_value&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"400.63018\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"3\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"3\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"132.28355\" Width=\"718.1107\" Condition=\"ds.&#34;engineer&#34;\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"83.14966\" Top=\"45.35436\" Width=\"302.3624\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"389.29159\" Top=\"45.35436\" Width=\"234.33086\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"631.18151\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice\"/>\r\n      <TfrxMemoView Name=\"dsengineer\" Left=\"3.77953\" Top=\"3.77952999999999\" Width=\"173.85838\" Height=\"22.67718\" DataField=\"engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;engineer&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"272.12616\" Width=\"718.1107\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"631.18151\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"dsengineer1\" Left=\"415.7483\" Top=\"0\" Width=\"211.65368\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Total for [ds.&#34;engineer&#34;]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"22.67718\" Left=\"0\" Top=\"355.27582\" Width=\"718.1107\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"631.18151\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"415.7483\" Top=\"0\" Width=\"211.65368\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Total for\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-07 08:13:29','2012-01-18 14:39:49'),(149,'Scrapped Jobs by Branch & Date Range',0,12,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	customers.CustomerName,\r\n	jobs.JobID,\r\n	jobs.DateTimeOfEntry,\r\n	jobs.DateTimeRepairComplete,\r\n	manufacturers.ManufacturerName,\r\n	equipment.ModelNumber,\r\n	final_outcomes.FinalOutcome\r\nFROM\r\n	jobs\r\nJOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	branches ON jobs.BranchID=branches.BranchID\r\nJOIN\r\n	final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID\r\nJOIN\r\n	equipment ON jobs.EquipmentID=equipment.EquipmentID\r\nJOIN\r\n	manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID\r\nWHERE\r\n	jobs.FinalOutcomeID IN (9,11)\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n	DateTimeRepairComplete BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40252.5990468403\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30332D313527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1004.906\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Scrapped Jobs at [tknBRANCHNAME] between [tknSTARTDATE] &#38; [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"158.74026\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"177.63791\" Top=\"0\" Width=\"177.63791\" Height=\"18.89765\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"83.14966\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"DateTimeOfEntry\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeRepairComplete\" Left=\"672.75634\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataField=\"DateTimeRepairComplete\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeRepairComplete&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsFinalOutcome\" Left=\"789.92177\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"FinalOutcome\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;FinalOutcome&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsManufacturerName\" Left=\"366.61441\" Top=\"0\" Width=\"298.58287\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ManufacturerName&#34;] [ds.&#34;ModelNumber&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"238.11039\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"1028.03216\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"83.14966\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date In\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"672.75634\" Top=\"0\" Width=\"113.3859\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Repair Complete\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"789.92177\" Top=\"0\" Width=\"151.1812\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Final Outcome\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"366.61441\" Top=\"0\" Width=\"151.1812\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"177.63791\" Top=\"0\" Width=\"151.1812\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(150,'Timesheet Report by Job',0,12,7,1,1,0,1,1,NULL,NULL,'SELECT jobs.jobid AS jobid,\r\n       users.username AS userid,\r\n       timesheets.WorkDate AS workdate,\r\n       timesheets.WorkStartTime AS workstart,\r\n       timesheets.WorkEndTime AS workend,\r\n       timesheets.ChargeRate AS chargerate\r\n       \r\nFROM timesheets\r\n\r\nLEFT JOIN jobs ON timesheets.JobID=jobs.JobID\r\nLEFT JOIN users ON timesheets.userid=users.userid\r\n\r\nWHERE jobs.jobid=\"[JOBID]\"\r\n\r\nORDER BY workdate ASC','SELECT jobs.jobid AS JobID,\r\n       order_items.OrderID AS purchase_order,\r\n       order_items.SupplierPartNo AS part_number,\r\n       order_items.UnitPrice AS unit_price,\r\n       order_items.QuantityOrdered AS quantity,\r\n       order_items.ItemDeliveryDate AS date_delivered\r\n\r\nFROM jobs\r\n\r\nLEFT JOIN order_items ON jobs.jobid=order_items.JobID\r\n\r\nWHERE jobs.jobid=\"146059\"\r\n\r\nORDER BY order_items.ItemDeliveryDate ASC   ','<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39470.4462450231\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222731373930313827220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"471.99227\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Timesheet Summary Report for [tknJOBID]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsuserid\" Left=\"3.77953\" Top=\"0\" Width=\"170.07885\" Height=\"18.89765\" DataField=\"userid\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;userid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsworkdate\" Left=\"177.63791\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"workdate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;workdate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsworkstart\" Left=\"279.68522\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"workstart\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;workstart&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsworkend\" Left=\"381.73253\" Top=\"0\" Width=\"98.26778\" Height=\"18.89765\" DataField=\"workend\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;workend&#34;]\"/>\r\n      <TfrxMemoView Name=\"dschargerate\" Left=\"495.11843\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"chargerate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;chargerate&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"264.5671\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" Condition=\"ds.&#34;jobid&#34;\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"3.77953\" Top=\"22.67718\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"User Name\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"177.63791\" Top=\"22.67718\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Work Date\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"279.68522\" Top=\"22.67718\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Time Start\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"381.73253\" Top=\"22.67718\" Width=\"98.26778\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Time End\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"495.11843\" Top=\"22.67718\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Charge Rate\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(152,'Unpriced Jobs being repaired on WIP',0,12,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	JobID AS job_id,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	funcGetEquipString(JobID) AS equipment_string,\r\n	funcGetFinalOutcome(JobID) AS final_outcome\r\nFROM\r\n	jobs\r\nLEFT JOIN\r\n	final_outcomes ON jobs.FInalOutcomeID=final_outcomes.FinalOutComeID\r\nLEFT JOIN\r\n                branches ON jobs.RepairBranchID=branches.BranchID\r\nWHERE \r\n                funcGetCustomerName(JobID)<>\"Non Prod Codes\"\r\nAND\r\n	WIP=1\r\nAND\r\n                Warranty=0\r\nAND\r\n	(SellPrice IS NULL OR SellPrice=\"\" OR SellPrice=\"0.00\")\r\nAND\r\n	(EngStatusID=4 OR EngStatusID=5)\r\nAND \r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nORDER BY\r\n	jobs.DateTimeRepairComplete ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39915.5663927546\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"664.7483\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Unpriced Jobs being repaired\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"128.50402\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"68.03154\" Top=\"0\" Width=\"257.00804\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment_string\" Left=\"328.81911\" Top=\"0\" Width=\"181.41744\" Height=\"15.11812\" DataField=\"equipment_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsfinal_outcome\" Left=\"514.01608\" Top=\"0\" Width=\"185.19697\" Height=\"15.11812\" DataField=\"final_outcome\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;final_outcome&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"204.09462\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2013-07-10 17:57:55','2012-01-18 14:39:49'),(153,'Unpriced Jobs in Current WIP',0,12,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	JobID AS job_id,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	funcGetEquipString(JobID) AS equipment_string,\r\n	funcGetFinalOutcome(JobID) AS final_outcome\r\nFROM\r\n	jobs\r\nJOIN\r\n	final_outcomes ON jobs.FInalOutcomeID=final_outcomes.FinalOutComeID\r\nJOIN\r\n                branches ON jobs.RepairBranchID=branches.BranchID\r\nWHERE \r\n	WIP=1\r\nAND\r\n	RNRFlag=0\r\nAND\r\n	QuotedPrice IS NULL\r\nAND\r\n	EngStatusID>=6\r\nAND\r\n                Warranty=0\r\nAND \r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nORDER BY jobs.DateTimeRepairComplete ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39309.6077276852\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"373.72449\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Unpriced Jobs\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"128.50402\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"68.03154\" Top=\"0\" Width=\"257.00804\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment_string\" Left=\"328.81911\" Top=\"0\" Width=\"181.41744\" Height=\"15.11812\" DataField=\"equipment_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsfinal_outcome\" Left=\"514.01608\" Top=\"0\" Width=\"185.19697\" Height=\"15.11812\" DataField=\"final_outcome\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;final_outcome&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"204.09462\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(154,'Customer Activity Summary',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\njobs.JobID,\r\njobs.DateTimeOfEntry,\r\ncustomers.CustomerName,\r\nequipment.ModelNumber,\r\njobs.InvoiceNet,\r\nfuncGetLabourMaterialTotal(jobs.JobID) AS costs,\r\n(jobs.InvoiceNet-funcGetLabourMaterialTotal(jobs.JobID)) AS margin\r\nFROM\r\njobs\r\nJOIN customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN equipment ON jobs.EquipmentID=equipment.EquipmentID\r\nWHERE jobs.CustomerID=\"[CUSTOMERID]\" AND (jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\")',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40623.4500403357\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22746B6E435553544F4D45524944222056616C75653D222731343535272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30332D323127220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"672.30736\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" Frame.Typ=\"1\" ParentFont=\"False\" Text=\"Customer Activity Report for [ds.&#34;CustomerName&#34;]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"158.74026\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"136.06308\" Top=\"0\" Width=\"151.1812\" Height=\"15.11812\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsModelNumber\" Left=\"287.24428\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"ModelNumber\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;ModelNumber&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceNet\" Left=\"464.88219\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"InvoiceNet\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceNet&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"544.25232\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"costs\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;costs&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmargin\" Left=\"623.62245\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"margin\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;margin&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"56.69295\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"DateTimeOfEntry\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"279.68522\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"464.88219\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"544.25232\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"623.62245\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"3.77953\" Width=\"695.43352\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"3.77953\" Width=\"56.69295\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"136.06308\" Top=\"3.77953\" Width=\"151.1812\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"287.24428\" Top=\"3.77953\" Width=\"177.63791\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Model Number\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"464.88219\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoiced\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"544.25232\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Costs\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"623.62245\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"56.69295\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date In\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(155,'Customer Listing by Sales Person',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	*\r\nFROM\r\n	customers\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nWHERE\r\n	sales_areas.Salesperson=\"[SALESPERSON]\"\r\nORDER BY\r\n	customers.CustomerName ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40393.4601990509\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227494E44272200010C25000000204E616D653D227374724272616E63684E616D65222056616C75653D2227496E646961272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2E000000204E616D653D22746B6E53414C4553504552534F4E222056616C75653D2227436F6C696E204C6179636F636B27220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"4\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"687.42548\" Height=\"27.77953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"All Customers handled by [tknSALESPERSON]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"166.29932\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsCustomerID\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataField=\"CustomerID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"68.03154\" Top=\"0\" Width=\"222.99227\" Height=\"15.11812\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"302.3624\" Top=\"0\" Width=\"222.99227\" Height=\"15.11812\" DataField=\"Area\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Area&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"241.88992\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"18.89765\" Left=\"0\" Top=\"124.72449\" Width=\"699.21305\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"CID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"68.03154\" Top=\"0\" Width=\"222.99227\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"302.3624\" Top=\"0\" Width=\"222.99227\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Geographic Area\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"15.11812\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,4,'2012-02-07 08:13:49','2012-01-18 14:39:49'),(156,'Customers who used us for ... but not ...',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	CustomerID,CustomerName,DeliveryTel,\r\n	funcJobsInCategoryForCustomer(\"[USEDFOR]\",CustomerID) AS used_for,\r\n	funcJobsInCategoryForCustomer(\"[NOTUSEDFOR]\",CustomerID) AS not_used_for\r\nFROM\r\n	customers\r\nWHERE\r\n	funcJobsInCategoryForCustomer(\"[USEDFOR]\",CustomerID)>0\r\nAND\r\n	funcJobsInCategoryForCustomer(\"[NOTUSEDFOR]\",CustomerID)=0	\r\nORDER BY \r\n	CustomerName ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39450.486361713\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E55534544464F52222056616C75653D2227496E766572746572272200010C25000000204E616D653D22746B6E4E4F5455534544464F52222056616C75653D22274D6F746F7227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"694.98454\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customers who\'ve used us for [tknUSEDFOR] but not [tknNOTUSEDFOR]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"257.00804\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"181.41744\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"60.47248\" Top=\"0\" Width=\"245.66945\" Height=\"15.11812\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsused_for\" Left=\"464.88219\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataField=\"used_for\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;used_for&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsnot_used_for\" Left=\"593.38621\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"not_used_for\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;not_used_for&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerID\" Left=\"0\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" DataField=\"CustomerID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDeliveryTel\" Left=\"309.92146\" Top=\"0\" Width=\"143.62214\" Height=\"15.11812\" DataField=\"DeliveryTel\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;DeliveryTel&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"136.06308\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"60.47248\" Top=\"7.55906\" Width=\"245.66945\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"464.88219\" Top=\"7.55906\" Width=\"120.94496\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[tknUSEDFOR] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"593.38621\" Top=\"7.55906\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[tknNOTUSEDFOR] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"7.55906\" Width=\"52.91342\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"CID\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"309.92146\" Top=\"7.55906\" Width=\"120.94496\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Telephone\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:49'),(157,'Invoiced Sales by Job Type (Detailed)',0,13,3,1,1,0,1,1,NULL,NULL,'select\r\n	JobType AS job_type,\r\n	JobID AS job_id,\r\n	NumberOff AS items,\r\n	QuotedPrice AS quoted_price,\r\n	QuotedDelivery AS quoted_delivery,\r\n	InvoiceDate AS invoice_date,\r\n                InvoiceNo AS invoice_no,\r\n                InvoiceNet AS invoice_price,\r\n                RechargeInvoiceNet AS recharge_invoice_price,\r\n                RechargeInvoiceNo AS recharge_invoice_no,\r\n	funcGetMaterialCostNew(JobID) AS material_cost,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n                funcGetCustomerName(JobID) AS customer_name\r\nFROM \r\n	jobs\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nJOIN\r\n                branches ON (jobs.branchid=branches.branchid OR jobs.repairbranchid=branches.branchid)\r\nWHERE \r\n                jobs.InvoiceDate BETWEEN \'[STARTDATE]\' AND \'[ENDDATE]\'\r\nAND \r\n                WIP=0\r\nAND\r\n                branches.branchname=\"[BRANCHNAME]\"\r\nAND\r\n                jobs.InvoiceNo<>\"\"\r\nORDER BY\r\n	job_types.JobType ASC,jobs.InvoiceNo ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39800.3821683912\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"    &#13;&#10;begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227435A272200010C2E000000204E616D653D227374724272616E63684E616D65222056616C75653D2227437A6563682052657075626C6963272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D31312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D31312D3330272200010C16000000204E616D653D22204A4D53207661726961626C65732200010C2E000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227437A6563682052657075626C696327220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1023.80365\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Invoiced Sales by Job Type for [tknBRANCHNAME] (Detailed) between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"238.11039\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"321.26005\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"128.50402\" Top=\"0\" Width=\"64.25201\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"404.40971\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;quoted_delivery&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"642.5201\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;material_cost&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"805.03989\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"559.37044\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_no\" Left=\"0\" Top=\"0\" Width=\"60.47248\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;invoice_no&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_date\" Left=\"60.47248\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataField=\"invoice_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"192.75603\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_price\" Left=\"476.22078\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;invoice_price&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"725.66976\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"dsrecharge_invoice_price\" Left=\"888.18955\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;recharge_invoice_price&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"472.44125\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"406.41744\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"805.03989\" Top=\"0\" Width=\"220.37013\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"143.62214\" Width=\"1028.03216\" Condition=\"ds.&#34;job_type&#34;\" KeepTogether=\"True\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"0\" Top=\"0\" Width=\"313.70099\" Height=\"22.67718\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"321.26005\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quoted&#13;&#10;Price\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"404.40971\" Top=\"34.01577\" Width=\"68.03154\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quoted&#13;&#10;Delivery\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"476.22078\" Top=\"34.01577\" Width=\"75.5906\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice&#13;&#10;Nett\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"642.5201\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material&#13;&#10;Costs\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"555.59091\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour&#13;&#10;Costs\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"805.03989\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Profit&#13;&#10;Margin\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"128.50402\" Top=\"34.01577\" Width=\"64.25201\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Lektronix&#13;&#10;JobID\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"64.25201\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo35\" Left=\"0\" Top=\"34.01577\" Width=\"60.47248\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice&#13;&#10;Number\"/>\r\n      <TfrxMemoView Name=\"Memo37\" Left=\"60.47248\" Top=\"34.01577\" Width=\"68.03154\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice&#13;&#10;Date\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"192.75603\" Top=\"34.01577\" Width=\"128.50402\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"&#13;&#10;Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"721.89023\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Gross Margin\"/>\r\n      <TfrxMemoView Name=\"Memo43\" Left=\"888.18955\" Top=\"34.01577\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Recharge&#13;&#10;Amount\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"275.90569\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"dsinvoice_net\" Left=\"321.26005\" Top=\"7.55905999999999\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"dsquoted_delivery\" Left=\"404.40971\" Top=\"7.55905999999999\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;quoted_delivery&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"476.22078\" Top=\"7.55905999999999\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"642.5201\" Top=\"7.55905999999999\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"555.59091\" Top=\"7.55905999999999\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,0)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"3.77953000000002\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo36\" Left=\"0\" Top=\"11.33859\" Width=\"71.81107\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%g\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo42\" Left=\"888.18955\" Top=\"7.55905999999999\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;recharge_invoice_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo41\" Left=\"725.66976\" Top=\"7.55905999999999\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"805.03989\" Top=\"7.55905999999999\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"0\" Left=\"0\" Top=\"120.94496\" Width=\"1028.03216\"/>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"68.03154\" Left=\"0\" Top=\"343.93723\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"321.26005\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"404.40971\" Top=\"45.35436\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;quoted_delivery&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"476.22078\" Top=\"45.35436\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"642.5201\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,0)]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"37.7953\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"559.37044\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"0\" Top=\"45.35436\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo34\" Left=\"0\" Top=\"15.11812\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo38\" Left=\"805.03989\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Profit&#13;&#10;Margin\"/>\r\n      <TfrxMemoView Name=\"Memo33\" Left=\"642.5201\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material&#13;&#10;Costs\"/>\r\n      <TfrxMemoView Name=\"Memo39\" Left=\"559.37044\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour&#13;&#10;Costs\"/>\r\n      <TfrxMemoView Name=\"Memo40\" Left=\"476.22078\" Top=\"3.77953000000002\" Width=\"75.5906\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice&#13;&#10;Nett\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"404.40971\" Top=\"3.77953000000002\" Width=\"68.03154\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quoted&#13;&#10;Delivery\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"321.26005\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Quoted&#13;&#10;Price\"/>\r\n      <TfrxMemoView Name=\"Memo31\" Left=\"721.89023\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Gross &#13;&#10;Margin\"/>\r\n      <TfrxMemoView Name=\"Memo44\" Left=\"888.18955\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Recharge&#13;&#10;Amount\"/>\r\n      <TfrxMemoView Name=\"Memo45\" Left=\"888.18955\" Top=\"45.35436\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;recharge_invoice_price&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"725.66976\" Top=\"45.35436\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo32\" Left=\"805.03989\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,4,'2012-02-08 08:16:05','2012-01-18 14:39:50');
INSERT INTO `reports` VALUES (158,'Invoicing Clean Up',0,13,7,1,1,0,1,1,NULL,NULL,'SELECT groups.groupname AS group_name,\r\n               jobs.jobid AS jobid,\r\n               customers.customername AS customer,\r\n               funcGetEquipString(jobid) AS equipment,\r\n               (jobs.quotedprice*jobs.numberoff) AS price,\r\n               funcGetLabourMaterialTotal(jobid) AS costs,\r\n               ((jobs.quotedprice*jobs.numberoff)-(funcGetLabourMaterialTotal(jobid))) AS margin,\r\n               DATE_FORMAT(jobs.DateTimeRepairComplete, \'%d %M %y\') AS completed_on\r\n\r\nFROM jobs\r\n\r\nJOIN customers ON jobs.customerid=customers.customerid\r\nJOIN groups ON customers.groupid=groups.groupid\r\nJOIN final_outcomes ON jobs.finaloutcomeid=final_outcomes.finaloutcomeid\r\nJOIN branches ON jobs.branchid=branches.branchid\r\n\r\nWHERE jobs.WIP=\"1\"\r\nAND jobs.DateTimeRepairComplete<=NOW()\r\nAND jobs.engstatusid>=6\r\nAND branches.branchname=\"[BRANCH]\"\r\nAND final_outcomes.RNRFlag=\"0\"\r\n\r\nORDER BY group_name ASC, customers.CustomerName ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39909.6714472917\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227504C272200010C26000000204E616D653D227374724272616E63684E616D65222056616C75653D2227506F6C616E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4252414E4348222056616C75653D2227506F6C616E6427220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"770.57514\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoicing Clean Up - all jobs prior to [DATE] - [tknBRANCH]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"177.63791\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"0\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Color=\"65535\" Highlight.Condition=\"&#60;ds.&#34;price&#34;&#62; &#60;= 0\" ParentFont=\"False\" Text=\"[ds.&#34;jobid&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer\" Left=\"79.37013\" Top=\"0\" Width=\"260.78757\" Height=\"18.89765\" DataField=\"customer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"343.93723\" Top=\"0\" Width=\"260.78757\" Height=\"18.89765\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"642.5201\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"price\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;price&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"737.00835\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"costs\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;costs&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmargin\" Left=\"831.4966\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"1\" Highlight.Condition=\"&#60;ds.&#34;margin&#34;&#62; &#60;= 0\" ParentFont=\"False\" Text=\"[ds.&#34;margin&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscompleted_on\" Left=\"925.98485\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;completed_on&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"468.66172\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"222.99227\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"4\" ParentFont=\"False\" Text=\"Group Totals\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"336.37817\" Top=\"0\" Width=\"268.34663\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Non-Invoiced Jobs\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"642.5201\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"737.00835\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo4\" Left=\"831.4966\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;group_name&#34;\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsgroup_name\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"18.89765\" DataField=\"group_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"[ds.&#34;group_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"0\" Top=\"22.67718\" Width=\"75.5906\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"79.37013\" Top=\"22.67718\" Width=\"260.78757\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"343.93723\" Top=\"22.67718\" Width=\"260.78757\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Description\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"642.5201\" Top=\"22.67718\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Price\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"737.00835\" Top=\"22.67718\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Costs\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"831.4966\" Top=\"22.67718\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"925.98485\" Top=\"22.67718\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Completed On\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"139.84261\" Left=\"0\" Top=\"306.14193\" Width=\"1046.92981\" StartNewPage=\"True\">\r\n      <TfrxSysMemoView Name=\"SysMemo5\" Left=\"491.3389\" Top=\"98.26778\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Margin: [SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo6\" Left=\"491.3389\" Top=\"79.37013\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Costs: [SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo7\" Left=\"491.3389\" Top=\"60.47248\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Value: [SUM(&#60;ds.&#34;price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo8\" Left=\"491.3389\" Top=\"41.57483\" Width=\"287.24428\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Non-Invoiced Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"0\" Top=\"0\" Width=\"166.29932\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Branch Summary\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(159,'Sales Area Report',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	customers.CustomerName AS customer_name,\r\n	jobs.JobID AS job_id,\r\n	funcGetEquipString(jobs.JobID) AS equip_string,\r\n	InvoiceNet AS invoice_value\r\nFROM\r\n	customers\r\nJOIN\r\n	jobs ON customers.CustomerID=jobs.CustomerID\r\nJOIN\r\n	sales_areas ON sales_areas.SalesAreaID=customers.SalesAreaID\r\nWHERE \r\n	sales_areas.SalesAreaName=\"[SALESAREANAME]\"\r\nAND\r\n	jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nORDER BY\r\n	customers.CustomerName ASC,\r\n	jobs.JobID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39449.6099759491\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C23000000204E616D653D22746B6E53414C4553415245414944222056616C75653D22273335272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30332D3331272200010C2D000000204E616D653D22746B6E53414C4553415245414E414D45222056616C75653D22274269726D696E6768616D27220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales Area Report for [tknSALESAREANAME] - [tknSTARTDATE] to [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"351.49629\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"185.19697\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"34.01577\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"120.94496\" Top=\"0\" Width=\"370.39394\" Height=\"15.11812\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_value\" Left=\"502.67749\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"invoice_value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_value&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"26.45671\" Left=\"0\" Top=\"136.06308\" Width=\"699.21305\" Condition=\"ds.&#34;customer_name&#34;\">\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"0\" Top=\"3.77953\" Width=\"480.00031\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"222.99227\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"502.67749\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"34.01577\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] job(s)\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"22.67718\" Left=\"0\" Top=\"268.34663\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"502.67749\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"34.01577\" Top=\"3.77953\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] job(s)\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"34.01577\" Top=\"0\" Width=\"548.03185\" Height=\"0\" Diagonal=\"True\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(160,'Sales By Branch & Sales Area - Date Ranged',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	branches.BranchName AS branch_name,\r\n	jobs.BranchID,\r\n	sales_areas.SalesAreaName,\r\n	JobID,\r\n	InvoicePrice AS invoice_price,\r\n                InvoiceDelivery AS invoice_delivery,\r\n	funcGetMaterialCostNew(jobid) AS mat_cost,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n	((InvoicePrice+InvoiceDelivery)-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID))) AS profit,\r\n                jobs.InvoiceDate	\r\nFROM\r\n	jobs\r\nJOIN\r\n	customers ON jobs.CustomerID=customers.CustomerID\r\nJOIN\r\n	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nJOIN\r\n	branches ON sales_areas.BranchID=branches.BranchID\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n	job_types.JobType<>\"Quotation\"\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nORDER BY\r\n	sales_areas.SalesAreaName ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39848.6075338773\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D222757656273697465272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030392D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D30312D333127220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"600.49629\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Arial\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Branch &#38; Sales Area for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"188.9765\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"94.48825\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsInvoiceDate\" Left=\"7.55906\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"InvoiceDate\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;InvoiceDate&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssell_price\" Left=\"181.41744\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_price&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmat_cost\" Left=\"355.27582\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"mat_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;mat_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"445.98454\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"labour_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsprofit\" Left=\"540.47279\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"profit\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;profit&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_delivery&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"362.83488\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"45.35436\" Left=\"0\" Top=\"120.94496\" Width=\"699.21305\" Condition=\"ds.&#34;SalesAreaName&#34;\">\r\n      <TfrxMemoView Name=\"dsSalesAreaName\" Left=\"0\" Top=\"0\" Width=\"400.63018\" Height=\"18.89765\" DataField=\"SalesAreaName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SalesAreaName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"7.55906\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Date\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"94.48825\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"181.41744\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Price\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"355.27582\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"445.98454\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"540.47279\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"272.12616\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Del\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" Height=\"30.23624\" Left=\"0\" ParentFont=\"False\" Top=\"226.7718\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"181.41744\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"355.27582\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"445.98454\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"540.47279\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;profit&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"7.55906\" Top=\"0\" Width=\"166.29932\" Height=\"18.89765\" DataField=\"SalesAreaName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;SalesAreaName&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"272.12616\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"22.67718\" Left=\"0\" Top=\"317.48052\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"355.27582\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"445.98454\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"540.47279\" Top=\"3.77953000000002\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;profit&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"7.55906\" Top=\"3.77953000000002\" Width=\"166.29932\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Grand Total\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"7.55906\" Top=\"0\" Width=\"612.28386\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"272.12616\" Top=\"3.77952999999997\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"181.41744\" Top=\"3.77952999999997\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-02 11:47:14','2012-01-18 14:39:50'),(161,'Sales by Branch and Job Type',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	JobID,\r\n	InvoicePrice AS sell_price,\r\n	InvoiceDelivery AS delivery,\r\n                RechargeInvoiceNet AS recharge_invoice,\r\n	funcGetMaterialCostNew(jobid) AS mat_cost,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n	InvoicePrice-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID)) AS profit,\r\n	jobs.BranchID	\r\nFROM\r\n	jobs\r\nJOIN\r\n	branches ON jobs.BranchID=branches.BranchID\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n	job_types.JobType<>\"Quotation\"\r\nORDER BY\r\n	branches.BranchName ASC,\r\n	job_type ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39612.4931817361\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30352D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30352D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"694.98454\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Branch &#38; Job Type between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"37.7953\" Left=\"0\" Top=\"400.63018\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"7.55906\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"816.37848\" Top=\"7.55906\" Width=\"212.81107\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"434.64595\" Top=\"7.55906\" Width=\"166.29932\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"56.69295\" Left=\"0\" Top=\"136.06308\" Width=\"1028.03216\" Condition=\"ds.&#34;branch_name&#34;\" KeepTogether=\"True\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"3.77953\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"15.11812\" Top=\"41.57483\" Width=\"128.50402\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"15.11812\" Top=\"56.69295\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"154.96073\" Top=\"41.57483\" Width=\"102.04731\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Sales\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"555.59091\" Top=\"41.57483\" Width=\"154.96073\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour Cost (%)\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"714.33117\" Top=\"41.57483\" Width=\"158.74026\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost (%)\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"876.85096\" Top=\"41.57483\" Width=\"151.1812\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Margin (%)\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"370.39394\" Top=\"41.57483\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Delivery\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"457.32313\" Top=\"41.57483\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Invoice Net\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"268.34663\" Top=\"41.57483\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Recharge\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"215.43321\" Width=\"1028.03216\" Condition=\"ds.&#34;job_type&#34;\" KeepTogether=\"True\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"238.11039\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"298.58287\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"154.96073\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"15.11812\" Top=\"0\" Width=\"1012.91404\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"555.59091\" Top=\"0\" Width=\"154.96073\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"714.33117\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"876.85096\" Top=\"0\" Width=\"151.1812\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"370.39394\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"457.32313\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;+&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"15.11812\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"268.34663\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;recharge_invoice&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"15.11812\" Left=\"0\" Top=\"260.78757\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"15.11812\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssell_price\" Left=\"154.96073\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"555.59091\" Top=\"0\" Width=\"154.96073\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"714.33117\" Top=\"0\" Width=\"158.74026\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"876.85096\" Top=\"0\" Width=\"151.1812\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)&#60;0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"370.39394\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"457.32313\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;+&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"268.34663\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;recharge_invoice&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-02 11:16:28','2012-01-18 14:39:50'),(162,'Sales by Branch Summary',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n	branches.BranchName AS branch_name,\r\n	jobs.BranchID,\r\n	JobID,\r\n	(InvoicePrice+InvoiceDelivery) AS sell_price,\r\n	funcGetMaterialCostNew(jobid) AS mat_cost,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n	((InvoicePrice+InvoiceDelivery)-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID))) AS profit	\r\nFROM\r\n	jobs\r\nJOIN\r\n	branches ON jobs.BranchID=branches.BranchID\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\nAND\r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n	job_types.JobType<>\"Quotation\"\r\nORDER BY\r\n	BranchID ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39302.5271553704\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30372D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30372D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Branch Summary between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"166.29932\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"359.05535\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"11.33859\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"480.00031\" Top=\"11.33859\" Width=\"216.5906\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"260.78757\" Top=\"11.33859\" Width=\"154.96073\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"211.65368\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"0\" Left=\"0\" Top=\"188.9765\" Width=\"699.21305\" Condition=\"ds.&#34;BranchID&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"15.11812\" Left=\"0\" Top=\"234.33086\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"128.50402\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"238.11039\" Top=\"0\" Width=\"154.96073\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"396.85065\" Top=\"0\" Width=\"143.62214\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"544.25232\" Top=\"0\" Width=\"154.96073\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"124.72449\" Height=\"15.11812\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"120.94496\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"7.55906\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Branch\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"128.50402\" Top=\"7.55906\" Width=\"105.82684\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Sales\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"238.11039\" Top=\"7.55906\" Width=\"154.96073\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour Cost (%)\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"396.85065\" Top=\"7.55906\" Width=\"143.62214\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost (%)\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"544.25232\" Top=\"7.55906\" Width=\"154.96073\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Profit (%)\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"26.45671\" Left=\"0\" Top=\"272.12616\" Width=\"699.21305\">\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"128.50402\" Top=\"0\" Width=\"105.82684\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"238.11039\" Top=\"0\" Width=\"154.96073\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"396.85065\" Top=\"0\" Width=\"143.62214\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"544.25232\" Top=\"0\" Width=\"154.96073\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-02 11:49:04','2012-01-18 14:39:50'),(163,'Sales by Job Type & Equipment Category',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT * FROM sales_by_job_type_and_equipment_category WHERE invoice_date BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39189.6085245949\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"49.13389\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"524.90569\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Job Type &#38; Equipment Category\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"26.45671\" Width=\"548.03185\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"Date Ranged between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"37.7953\" Left=\"0\" Top=\"355.27582\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"11.33859\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"517.79561\" Top=\"11.33859\" Width=\"182.57483\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"268.34663\" Top=\"11.33859\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"7.55906\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"128.50402\" Width=\"699.21305\" Condition=\"ds.&#34;job_type&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"0\" Top=\"3.77953\" Width=\"128.50402\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;] Jobs\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"34.01577\" Left=\"0\" Top=\"260.78757\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"207.87415\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"321.26005\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"415.7483\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"498.89796\" Top=\"0\" Width=\"253.22851\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"18.89765\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals:\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"173.85838\" Width=\"699.21305\" Condition=\"ds.&#34;category_name&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"18.89765\" Left=\"0\" Top=\"219.21274\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dscategory_name\" Left=\"18.89765\" Top=\"0\" Width=\"158.74026\" Height=\"18.89765\" DataField=\"category_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;category_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_date\" Left=\"321.26005\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"207.87415\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"498.89796\" Top=\"0\" Width=\"196.53556\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"415.7483\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-01-31 15:05:13','2012-01-18 14:39:50'),(164,'Sales by Sales Person & Customer',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT * FROM sales_by_sales_person_and_customer WHERE invoice_date BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40266.750470544\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30332D3239272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Sales Person &#38; Customer\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"22.67718\" Width=\"362.83488\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"Date Ranged between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"49.13389\" Left=\"0\" Top=\"366.61441\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"15.11812\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"506.45702\" Top=\"15.11812\" Width=\"193.91342\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"7.55906\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"283.46475\" Top=\"15.11812\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"18.89765\" Left=\"0\" Top=\"132.28355\" Width=\"699.21305\" Condition=\"ds.&#34;sales_person&#34;\" KeepTogether=\"True\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dssales_person\" Left=\"0\" Top=\"0\" Width=\"204.09462\" Height=\"18.89765\" DataField=\"sales_person\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;sales_person&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"173.85838\" Width=\"699.21305\" Condition=\"ds.&#34;customer_name&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"260.78757\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"196.53556\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"309.92146\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"393.07112\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"476.22078\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"0\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals:\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"18.89765\" Left=\"0\" Top=\"219.21274\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dssales_value\" Left=\"196.53556\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"393.07112\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_date\" Left=\"309.92146\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"476.22078\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"0\" Top=\"0\" Width=\"192.75603\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,3,'2012-02-07 08:11:58','2012-01-18 14:39:50'),(165,'Sales by Sales Person & Equipment Category',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT * FROM sales_by_sales_person_and_equipment_category WHERE invoice_date BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39189.6247610301\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"52.91342\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales by Sales Person &#38; Equipment Category\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"0\" Top=\"22.67718\" Width=\"362.83488\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"Date Ranged between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"49.13389\" Left=\"0\" Top=\"366.61441\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"15.11812\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"506.45702\" Top=\"15.11812\" Width=\"193.91342\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"7.55906\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"283.46475\" Top=\"15.11812\" Width=\"79.37013\" Height=\"18.89765\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"18.89765\" Left=\"0\" Top=\"132.28355\" Width=\"699.21305\" Condition=\"ds.&#34;sales_person&#34;\" KeepTogether=\"True\">\r\n      <TfrxMemoView Name=\"dssales_person\" Left=\"0\" Top=\"0\" Width=\"204.09462\" Height=\"18.89765\" DataField=\"sales_person\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;sales_person&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"173.85838\" Width=\"699.21305\" Condition=\"ds.&#34;category_name&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"260.78757\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"196.53556\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"309.92146\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"393.07112\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"476.22078\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"26.45671\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Totals:\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"0\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"18.89765\" Left=\"0\" Top=\"219.21274\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dscategory_name\" Left=\"26.45671\" Top=\"0\" Width=\"166.29932\" Height=\"18.89765\" DataField=\"category_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;category_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssales_value\" Left=\"196.53556\" Top=\"0\" Width=\"109.60637\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"393.07112\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_date\" Left=\"309.92146\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"476.22078\" Top=\"0\" Width=\"226.7718\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,1,'2012-02-01 14:57:27','2012-01-18 14:39:50'),(166,'Sales by Sales Person & Equipment Category with Top 50 Customers',0,13,3,1,1,0,1,1,NULL,NULL,'SELECT\r\nsales_areas.salesperson,\r\ncustomers.customername,\r\ncount(jobs.jobid) as job_count,\r\nsum(jobs.invoicenet) as sales_value\r\nFROM customers\r\nJOIN jobs ON customers.customerid=jobs.customerid\r\nJOIN equipment ON jobs.equipmentid=equipment.equipmentid\r\nJOIN categories ON equipment.categoryid=categories.categoryid\r\nJOIN sales_areas ON customers.salesareaid=sales_areas.salesareaid\r\nWHERE categories.categoryname=\"[CATEGORYNAME]\"\r\nAND sales_areas.salesperson=\"[SALESPERSON]\"\r\nAND (jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\")\r\nGROUP BY customers.customerid\r\nORDER BY sales_value DESC LIMIT 50',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40443.444510625\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E43415445474F52594E414D45222056616C75653D22274D6F746F72272200010C2C000000204E616D653D22746B6E53414C4553504552534F4E222056616C75653D2227446F6E6E61204176657279272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30392D323227220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Sales Value by Equipment Category from [tknSALESPERSON]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"34.01577\" Width=\"461.10266\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"Date Range: [tknSTARTDATE] &#38; [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"18.89765\" Left=\"0\" Top=\"196.53556\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dscustomername\" Left=\"0\" Top=\"0\" Width=\"257.00804\" Height=\"18.89765\" DataField=\"customername\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customername&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_count\" Left=\"313.70099\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"job_count\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_count&#34;]\"/>\r\n      <TfrxMemoView Name=\"dssales_value\" Left=\"502.67749\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DataField=\"sales_value\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;sales_value&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"275.90569\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"151.1812\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"0\" Width=\"257.00804\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"313.70099\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job Count\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"502.67749\" Top=\"0\" Width=\"120.94496\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Invoice Value\"/>\r\n    </TfrxHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(167,'Zero-Value Invoices (Detailed) by Job Type',0,13,7,1,1,0,1,1,NULL,NULL,'select\r\n	JobType AS job_type,\r\n	JobID AS job_id,\r\n                funcGetBranchNameByBranchID(RepairBranchID) AS repair_branch,\r\n	NumberOff AS items,\r\n	QuotedPrice AS quoted_price,\r\n	QuotedDelivery AS quoted_delivery,\r\n	InvoiceDate AS invoice_date,\r\n                InvoiceNo AS invoice_no,\r\n                InvoicePrice AS invoice_price,\r\n	funcGetMaterialCostNew(JobID) AS material_cost,\r\n	funcGetLabourCostsForBranch(JobID,jobs.BranchID) AS comm_labour_cost,\r\n                funcGetLabourCostsNotForBranch(JobID,jobs.BranchID) AS repair_labour_cost,\r\n                funcGetCustomerName(JobID) AS customer_name,\r\n# (SS,2/2/12)  removed following two lines, replaced with 0.0\r\n#                funcGetMaterialCostNotBranchID(jobs.JobID,jobs.RepairBranchID) AS comm_material_cost,\r\n#               funcGetMaterialCostWithBranchID(jobs.JobID,jobs.RepairBranchID) AS rep_material_cost\r\n                0.0 AS comm_material_cost,\r\n                0.0 AS rep_material_cost\r\n\r\nFROM \r\n	jobs\r\nJOIN\r\n	job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nJOIN\r\n                branches ON jobs.branchid=branches.branchid\r\nWHERE \r\n	job_types.JobType<>\"Administration\"\r\nAND\r\n                jobs.InvoiceDate BETWEEN \'[STARTDATE]\' AND \'[ENDDATE]\'\r\nAND \r\n                WIP=0\r\nAND\r\n                invoiceprice<\"0.01\"\r\nAND\r\n                invoiceprice>\"-0.01\"\r\nAND\r\n                branches.branchname=\"[BRANCHNAME]\"\r\nGROUP BY\r\n	jobs.JobID\r\nORDER BY\r\n	job_types.JobType ASC,jobs.invoiceno ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40514.4898094676\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D31302D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31302D3331272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1042.7013\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Zero-Value Invoices for [tknBRANCHNAME] (Detailed) by Job Type [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"15.11812\" Left=\"0\" Top=\"207.87415\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsinvoice_date\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"invoice_date\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_date&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"83.14966\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"151.1812\" Top=\"0\" Width=\"241.88992\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"495.11843\" Top=\"0\" Width=\"26.45671\" Height=\"15.11812\" DataField=\"items\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;items&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsinvoice_price\" Left=\"525.35467\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"invoice_price\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;invoice_price&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"608.50433\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;rep_material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"948.66203\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"691.65399\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;comm_material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsrepair_branch\" Left=\"396.85065\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" DataField=\"repair_branch\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;repair_branch&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"774.80365\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;repair_labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscomm_labour_cost\" Left=\"854.17378\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataField=\"comm_labour_cost\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;comm_labour_cost&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"461.10266\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"71.81107\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type&#34;\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"26.45671\" Width=\"79.37013\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Invoice No\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"83.14966\" Top=\"26.45671\" Width=\"60.47248\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Lektronix JobID\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"151.1812\" Top=\"26.45671\" Width=\"241.88992\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"495.11843\" Top=\"26.45671\" Width=\"26.45671\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Qty\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"525.35467\" Top=\"26.45671\" Width=\"79.37013\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Invoice Price\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"608.50433\" Top=\"26.45671\" Width=\"79.37013\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Repair Material Costs\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"854.17378\" Top=\"26.45671\" Width=\"79.37013\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Comm Labour Costs\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"948.66203\" Top=\"26.45671\" Width=\"94.48825\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Profit Margin\"/>\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"691.65399\" Top=\"26.45671\" Width=\"79.37013\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Comm Material Costs\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"396.85065\" Top=\"26.45671\" Width=\"94.48825\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Repair Branch\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"68.03154\" Width=\"1046.92981\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"774.80365\" Top=\"26.45671\" Width=\"75.5906\" Height=\"37.7953\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"Repair Labour Costs\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"245.66945\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"83.14966\" Top=\"11.33859\" Width=\"132.28355\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"608.50433\" Top=\"11.33859\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;rep_material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo3\" Left=\"774.80365\" Top=\"11.33859\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;repair_labour_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo4\" Left=\"948.66203\" Top=\"11.33859\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo9\" Left=\"691.65399\" Top=\"11.33859\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;comm_material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo10\" Left=\"854.17378\" Top=\"11.33859\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;comm_labour_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo6\" Left=\"525.35467\" Top=\"11.33859\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"3.77953\" Width=\"1046.92981\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"90.70872\" Left=\"0\" Top=\"347.71676\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo5\" Left=\"83.14966\" Top=\"45.35436\" Width=\"188.9765\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Jobs\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"3.77953\" Top=\"3.77953000000002\" Width=\"411.96877\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[tknBRANCHNAME] Zero-Invoicing Summary\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo7\" Left=\"525.35467\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo8\" Left=\"608.50433\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;rep_material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo11\" Left=\"774.80365\" Top=\"45.35436\" Width=\"75.5906\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;repair_labour_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo12\" Left=\"948.66203\" Top=\"45.35436\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo13\" Left=\"691.65399\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;comm_material_cost&#34;&#62;,MasterData1)]\"/>\r\n      <TfrxSysMemoView Name=\"SysMemo14\" Left=\"854.17378\" Top=\"45.35436\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;comm_labour_cost&#34;&#62;,MasterData1)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,3,'2012-02-02 13:38:29','2012-01-18 14:39:50'),(168,'Job Type Warranty Claim Analysis',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,\r\n	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,\r\n	jobs.JobID AS job_id,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	funcGetEquipString(JobID) AS equipment,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n	funcGetMaterialCostNew(JobID) AS material_cost,\r\n	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,\r\n	funcDaysToComplete(JobID) AS days_to_complete,\r\n	jobs.InvoiceDate AS invoice_date	\r\nFROM\r\n	jobs\r\nLEFT JOIN branches ON jobs.BranchID=branches.BranchID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	jobs.CWJobID<>\"\"\r\n	AND jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\n	AND funcGetRepairEngineer(JobID)<>\"\"\r\nORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40800.5599099537\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30392D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1027.58318\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job Type Warranty Claim Analysis between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"23.77953\" Left=\"0\" Top=\"442.20501\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"7.55906\" Width=\"334.60637\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"835.27613\" Top=\"7.55906\" Width=\"193.91342\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"427.08689\" Top=\"15.11812\" Width=\"0\" Height=\"0\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxMemoView Name=\"strUserName1\" Left=\"438.42548\" Top=\"7.55906\" Width=\"162.51979\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"18.89765\" Left=\"0\" Top=\"136.06308\" Width=\"1028.03216\" Condition=\"ds.&#34;branch_name&#34;\" KeepTogether=\"True\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"49.13389\" Left=\"0\" Top=\"177.63791\" Width=\"1028.03216\" Condition=\"ds.&#34;job_type&#34;\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"18.89765\" Top=\"7.55906\" Width=\"283.46475\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"37.7953\" Top=\"26.45671\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Created By\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"139.84261\" Top=\"26.45671\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Repaired By\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"245.66945\" Top=\"26.45671\" Width=\"56.69295\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"306.14193\" Top=\"26.45671\" Width=\"177.63791\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"487.55937\" Top=\"26.45671\" Width=\"211.65368\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"702.99258\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour Cost\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"786.14224\" Top=\"26.45671\" Width=\"86.92919\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"895.74861\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"990.23686\" Top=\"26.45671\" Width=\"37.7953\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Days\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"37.7953\" Top=\"45.35436\" Width=\"990.23686\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"249.44898\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dscreated_engineer\" Left=\"37.7953\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataField=\"created_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;created_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsrepair_engineer\" Left=\"139.84261\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataField=\"repair_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;repair_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"245.66945\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"306.14193\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"487.55937\" Top=\"0\" Width=\"211.65368\" Height=\"15.11812\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"702.99258\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"786.14224\" Top=\"0\" Width=\"86.92919\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dstotal_cost\" Left=\"895.74861\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsdays_to_complete\" Left=\"990.23686\" Top=\"0\" Width=\"37.7953\" Height=\"15.11812\" DataField=\"days_to_complete\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;days_to_complete&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"41.57483\" Left=\"0\" Top=\"340.1577\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"702.99258\" Top=\"15.11812\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"786.14224\" Top=\"15.11812\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"895.74861\" Top=\"15.11812\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"990.23686\" Top=\"15.11812\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"245.66945\" Top=\"15.11812\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"3.77953\" Top=\"7.55906\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"3.77953\" Top=\"15.11812\" Width=\"188.9765\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;] Totals:\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"30.23624\" Left=\"0\" Top=\"287.24428\" Width=\"1028.03216\">\r\n      <TfrxLineView Name=\"Line2\" Left=\"37.7953\" Top=\"3.77953\" Width=\"990.23686\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"702.99258\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"786.14224\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"895.74861\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"990.23686\" Top=\"7.55906\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"245.66945\" Top=\"7.55906\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"37.7953\" Top=\"7.55906\" Width=\"128.50402\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type Totals:\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(169,'Job Type Warranty Claim Analysis Summary',0,14,5,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,\r\n	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,\r\n	jobs.JobID AS job_id,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	funcGetEquipString(JobID) AS equipment,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n                funcGetLabourHours(JobID) AS labour_hours,\r\n	funcGetMaterialCostNew(JobID) AS material_cost,\r\n	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,\r\n	funcDaysToComplete(JobID) AS days_to_complete,\r\n	jobs.InvoiceDate AS invoice_date	\r\nFROM\r\n	jobs\r\nLEFT JOIN branches ON jobs.BranchID=branches.BranchID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	jobs.CWJobID<>\"\"\r\n	AND jobs.InvoiceDate BETWEEN \"[STARTDATE]\" AND \"[ENDDATE]\"\r\n	AND funcGetRepairEngineer(JobID)<>\"\"\r\nORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40800.5762906366\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30392D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1027.58318\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Job Type Warranty Claim Analysis Summary between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"23.77953\" Left=\"0\" Top=\"491.3389\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"7.55906\" Width=\"334.60637\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"506.45702\" Top=\"7.55906\" Width=\"193.91342\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"427.08689\" Top=\"15.11812\" Width=\"0\" Height=\"0\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxMemoView Name=\"strUserName1\" Left=\"306.14193\" Top=\"3.77953\" Width=\"162.51979\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"26.45671\" Left=\"0\" Top=\"136.06308\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\" KeepTogether=\"True\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"147.40167\" Height=\"15.11812\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"151.1812\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Count\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"298.58287\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour Cost\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"408.18924\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"517.79561\" Top=\"0\" Width=\"132.28355\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"657.63822\" Top=\"0\" Width=\"37.7953\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Days\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo27\" Left=\"222.99227\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Hours\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"185.19697\" Width=\"699.21305\" Condition=\"ds.&#34;job_type&#34;\" ReprintOnNewPage=\"True\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"207.87415\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dscreated_engineer\" Left=\"37.7953\" Top=\"0\" Width=\"98.26778\" Height=\"0\" DataField=\"created_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;created_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsrepair_engineer\" Left=\"139.84261\" Top=\"0\" Width=\"102.04731\" Height=\"0\" DataField=\"repair_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;repair_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"245.66945\" Top=\"0\" Width=\"56.69295\" Height=\"0\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"306.14193\" Top=\"0\" Width=\"177.63791\" Height=\"0\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"487.55937\" Top=\"0\" Width=\"211.65368\" Height=\"0\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"702.99258\" Top=\"0\" Width=\"79.37013\" Height=\"0\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"786.14224\" Top=\"0\" Width=\"86.92919\" Height=\"0\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dstotal_cost\" Left=\"895.74861\" Top=\"0\" Width=\"79.37013\" Height=\"0\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsdays_to_complete\" Left=\"990.23686\" Top=\"0\" Width=\"37.7953\" Height=\"0\" DataField=\"days_to_complete\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;days_to_complete&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_hours\" Left=\"249.44898\" Top=\"0\" Width=\"79.37013\" Height=\"0\" DataField=\"labour_hours\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_hours&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"71.81107\" Left=\"0\" Top=\"272.12616\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo18\" Left=\"298.58287\" Top=\"15.11812\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo19\" Left=\"408.18924\" Top=\"15.11812\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo20\" Left=\"517.79561\" Top=\"15.11812\" Width=\"132.28355\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo21\" Left=\"657.63822\" Top=\"15.11812\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo22\" Left=\"151.1812\" Top=\"15.11812\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line4\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo23\" Left=\"0\" Top=\"15.11812\" Width=\"147.40167\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;] Totals:\"/>\r\n      <TfrxMemoView Name=\"Memo29\" Left=\"222.99227\" Top=\"15.11812\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"18.89765\" Left=\"0\" Top=\"230.55133\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"298.58287\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"408.18924\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"517.79561\" Top=\"0\" Width=\"132.28355\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"657.63822\" Top=\"0\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"151.1812\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo24\" Left=\"37.7953\" Top=\"0\" Width=\"109.60637\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;] Totals:\"/>\r\n      <TfrxMemoView Name=\"Memo28\" Left=\"222.99227\" Top=\"0\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"64.25201\" Left=\"0\" Top=\"404.40971\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"298.58287\" Top=\"22.67718\" Width=\"102.04731\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"408.18924\" Top=\"22.67718\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"517.79561\" Top=\"22.67718\" Width=\"132.28355\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"657.63822\" Top=\"22.67718\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo25\" Left=\"151.1812\" Top=\"22.67718\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"11.33859\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\" Frame.Width=\"2\"/>\r\n      <TfrxMemoView Name=\"Memo26\" Left=\"0\" Top=\"22.67718\" Width=\"147.40167\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Report Totals:\"/>\r\n      <TfrxMemoView Name=\"Memo30\" Left=\"222.99227\" Top=\"22.67718\" Width=\"68.03154\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2f\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxReportSummary>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(170,'Outstanding Warranty Analysis',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,\r\n	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,\r\n	jobs.JobID AS job_id,\r\n	funcGetCustomerName(JobID) AS customer_name,\r\n	funcGetEquipString(JobID) AS equipment,\r\n	funcGetLabourCost(JobID) AS labour_cost,\r\n	funcGetMaterialCostNew(JobID) AS material_cost,\r\n	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,\r\n	funcDaysToComplete(JobID) AS days_to_complete,\r\n	jobs.InvoiceDate AS invoice_date	\r\nFROM\r\n	jobs\r\nLEFT JOIN branches ON jobs.BranchID=branches.BranchID\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nWHERE\r\n	jobs.CWJobID<>\"\"\r\n	AND jobs.WIP=1\r\nORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39197.7130879514\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"1027.58318\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Outstanding Warranty Analysis\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"113.3859\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"23.77953\" Left=\"0\" Top=\"400.63018\" Width=\"1028.03216\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"7.55906\" Width=\"334.60637\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"835.27613\" Top=\"7.55906\" Width=\"193.91342\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"1028.03216\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"427.08689\" Top=\"15.11812\" Width=\"0\" Height=\"0\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxMemoView Name=\"strUserName1\" Left=\"438.42548\" Top=\"7.55906\" Width=\"162.51979\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"18.89765\" Left=\"0\" Top=\"136.06308\" Width=\"1028.03216\" Condition=\"ds.&#34;branch_name&#34;\" KeepTogether=\"True\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"49.13389\" Left=\"0\" Top=\"177.63791\" Width=\"1028.03216\" Condition=\"ds.&#34;job_type&#34;\" ReprintOnNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"18.89765\" Top=\"7.55906\" Width=\"283.46475\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;] jobs\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"37.7953\" Top=\"26.45671\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Created By\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"139.84261\" Top=\"26.45671\" Width=\"94.48825\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Repaired By\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"245.66945\" Top=\"26.45671\" Width=\"56.69295\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"306.14193\" Top=\"26.45671\" Width=\"177.63791\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"487.55937\" Top=\"26.45671\" Width=\"211.65368\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"702.99258\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Labour Cost\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"786.14224\" Top=\"26.45671\" Width=\"86.92919\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Material Cost\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"895.74861\" Top=\"26.45671\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Total Cost\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"990.23686\" Top=\"26.45671\" Width=\"37.7953\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Days\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"37.7953\" Top=\"45.35436\" Width=\"990.23686\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"15.11812\" Left=\"0\" Top=\"249.44898\" Width=\"1028.03216\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dscreated_engineer\" Left=\"37.7953\" Top=\"0\" Width=\"98.26778\" Height=\"15.11812\" DataField=\"created_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;created_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsrepair_engineer\" Left=\"139.84261\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" DataField=\"repair_engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;repair_engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"245.66945\" Top=\"0\" Width=\"56.69295\" Height=\"15.11812\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"306.14193\" Top=\"0\" Width=\"177.63791\" Height=\"15.11812\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequipment\" Left=\"487.55937\" Top=\"0\" Width=\"211.65368\" Height=\"15.11812\" DataField=\"equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dslabour_cost\" Left=\"702.99258\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;labour_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsmaterial_cost\" Left=\"786.14224\" Top=\"0\" Width=\"86.92919\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;material_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dstotal_cost\" Left=\"895.74861\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;total_cost&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsdays_to_complete\" Left=\"990.23686\" Top=\"0\" Width=\"37.7953\" Height=\"15.11812\" DataField=\"days_to_complete\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;days_to_complete&#34;]\"/>\r\n    </TfrxDetailData>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"0\" Left=\"0\" Top=\"340.1577\" Width=\"1028.03216\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"30.23624\" Left=\"0\" Top=\"287.24428\" Width=\"1028.03216\">\r\n      <TfrxLineView Name=\"Line2\" Left=\"37.7953\" Top=\"3.77953\" Width=\"990.23686\" Height=\"0\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"702.99258\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"786.14224\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo15\" Left=\"895.74861\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%2.2m\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo16\" Left=\"990.23686\" Top=\"7.55906\" Width=\"37.7953\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]\"/>\r\n      <TfrxMemoView Name=\"Memo17\" Left=\"245.66945\" Top=\"7.55906\" Width=\"90.70872\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)] jobs\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(171,'Warranties by Incoming Jobs',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	job_types.JobType AS job_type,\r\n	jobs.JobID AS job_id,\r\n	jobs.NumberOff AS items,\r\n	funcJobBecomesWarranty(jobs.JobID) AS warranty_job,\r\n	funcJobBecomesWarrantyItemCount(jobs.JobID) AS warranty_items	\r\nFROM\r\n	jobs\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN branches ON branches.BranchID=jobs.BranchID\r\nWHERE\r\n	DateTimeOfEntry BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\"\r\nAND\r\n                job_types.JobType<>\"\"\r\nAND\r\n                jobs.JobTypeID IN (1,2,3,4,6,8,12,21)\r\nORDER BY\r\n	branches.BranchName ASC,\r\n	job_types.JobType ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40465.6268352315\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30372D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31302D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Warranties by Incoming Jobs between [tknSTARTDATE] and [tknENDDATE]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"120.94496\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"27.55906\" Left=\"0\" Top=\"419.52783\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"7.55906\" Width=\"225\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"517.79561\" Top=\"7.55906\" Width=\"182.57483\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n      <TfrxMemoView Name=\"strUserName\" Left=\"321.26005\" Top=\"7.55906\" Width=\"98.26778\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[strUserName]\"/>\r\n      <TfrxLineView Name=\"Line3\" Left=\"0\" Top=\"3.77953\" Width=\"699.21305\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"143.62214\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"170.07885\" Top=\"26.45671\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Repair&#13;&#10;Jobs In\"/>\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"257.00804\" Top=\"26.45671\" Width=\"79.37013\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Repair&#13;&#10;Items In\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"343.93723\" Top=\"26.45671\" Width=\"105.82684\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranty&#13;&#10;Jobs In (%)\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"457.32313\" Top=\"26.45671\" Width=\"105.82684\" Height=\"26.45671\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranty&#13;&#10;Items In (%)\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"30.23624\" Top=\"37.7953\" Width=\"79.37013\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"30.23624\" Top=\"60.47248\" Width=\"668.97681\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"0\" Left=\"0\" Top=\"230.55133\" Width=\"699.21305\" Condition=\"ds.&#34;job_type&#34;\"/>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"253.22851\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"45.35436\" Left=\"0\" Top=\"313.70099\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"170.07885\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"257.00804\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"343.93723\" Top=\"7.55906\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1))/COUNT(DetailData1))*100 #n%0.2f]%)\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"457.32313\" Top=\"7.55906\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1))/SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1))*100 #n%0.2f]%)\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"30.23624\" Top=\"3.77953\" Width=\"668.97681\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"15.11812\" Left=\"0\" Top=\"275.90569\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"dsjob_type\" Left=\"30.23624\" Top=\"0\" Width=\"128.50402\" Height=\"15.11812\" DataField=\"job_type\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;job_type&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"170.07885\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"257.00804\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"dswarranty_job\" Left=\"343.93723\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1))/COUNT(DetailData1))*100 #n%0.2f]%)\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"457.32313\" Top=\"0\" Width=\"105.82684\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1))/SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1))*100 #n%0.2f]%)\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(172,'Warranties by Repair Engineer',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT\r\n       jobs.JobID AS job_id,\r\n       job_types.JobType AS job_type_text,\r\n       users.Username AS engineer,\r\n       job_classes.JobClass AS class_text,\r\n       funcGetCustomerName(jobs.JobID) AS customer_name,\r\n       funcGetEquipString(jobs.JobID) AS equip_string,\r\n       funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") AS overdue_days\r\n           \r\nFROM jobs\r\n\r\nLEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID\r\nLEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID\r\nLEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID\r\nLEFT JOIN users ON jobs.RepairedByID=users.UserID\r\n\r\nWHERE \r\n	Warranty=\"1\"\r\nAND\r\n	WIP=1\r\nAND\r\n	jobs.JobTypeID IN (\"1\",\"8\")\r\nAND\r\n	jobs.EngStatusID IN (\"4\",\"5\")\r\nAND\r\n	branches.BranchName=\"[BRANCHNAME]\"\r\nAND\r\n                users.Username<>\"\"\r\n\r\nORDER BY\r\n    jobs.JobTypeID ASC,\r\n    users.Username ASC,\r\n    funcGetDaysOverdue(jobs.JobID,\"[NOWDATE]\") ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40144.4804765393\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" Orientation=\"poLandscape\" PaperWidth=\"297\" PaperHeight=\"210\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"717.66172\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Warranties by Repair Engineer for [tknBRANCHNAME]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"45.35436\" Left=\"0\" Top=\"241.88992\" Width=\"1046.92981\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxShapeView Name=\"Shape1\" Left=\"0\" Top=\"0\" Width=\"1046.92981\" Height=\"37.7953\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"0\" Top=\"0\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"job_id\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_id&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_type_text\" Left=\"83.14966\" Top=\"0\" Width=\"94.48825\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsclass_text\" Left=\"181.41744\" Top=\"0\" Width=\"102.04731\" Height=\"18.89765\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;class_text&#34;]\"/>\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"287.24428\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"customer_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsequip_string\" Left=\"585.82715\" Top=\"0\" Width=\"287.24428\" Height=\"18.89765\" DataField=\"equip_string\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;equip_string&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsoverdue_days\" Left=\"933.54391\" Top=\"0\" Width=\"90.70872\" Height=\"18.89765\" DataField=\"overdue_days\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;overdue_days&#34;]\"/>\r\n      <TfrxShapeView Name=\"Shape2\" Left=\"0\" Top=\"18.89765\" Width=\"1046.92981\" Height=\"18.89765\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"483.77984\" Width=\"1046.92981\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"903.30767\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Times New Roman\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"34.01577\" Left=\"0\" Top=\"113.3859\" Width=\"1046.92981\" Condition=\"ds.&#34;job_type_text&#34;\">\r\n      <TfrxMemoView Name=\"dsjob_type_text1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"188.9765\" Height=\"18.89765\" DataField=\"job_type_text\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;job_type_text&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"37.7953\" Left=\"0\" Top=\"309.92146\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"0\" Width=\"483.77984\" Height=\"15.11812\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Warranties\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxReportSummary Name=\"ReportSummary1\" Height=\"52.91342\" Left=\"0\" Top=\"408.18924\" Width=\"1046.92981\">\r\n      <TfrxSysMemoView Name=\"SysMemo2\" Left=\"0\" Top=\"26.45671\" Width=\"570.70903\" Height=\"26.45671\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(MasterData1)] Warranties Total\"/>\r\n    </TfrxReportSummary>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"49.13389\" Left=\"0\" Top=\"170.07885\" Width=\"1046.92981\" Condition=\"ds.&#34;engineer&#34;\" KeepTogether=\"True\" StartNewPage=\"True\">\r\n      <TfrxMemoView Name=\"dsengineer\" Left=\"-3.77953\" Top=\"0\" Width=\"321.26005\" Height=\"18.89765\" DataField=\"engineer\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Arial\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;engineer&#34;]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"26.45671\" Width=\"79.37013\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"JobID\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"83.14966\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Job Type\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"181.41744\" Top=\"26.45671\" Width=\"94.48825\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Priority\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"287.24428\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"585.82715\" Top=\"26.45671\" Width=\"287.24428\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"933.54391\" Top=\"26.45671\" Width=\"90.70872\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"Days Overdue\"/>\r\n    </TfrxGroupHeader>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(173,'Warranties by Sales Area',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT \r\n	branches.BranchName AS branch_name,\r\n	customers.CustomerName AS customer_name,\r\n	sales_areas.SalesAreaName AS sales_area,\r\n	sales_areas.SalesPerson AS sales_person,\r\n	jobs.JobID AS job_id,\r\n	jobs.NumberOff AS items,\r\n	funcJobBecomesWarranty(jobs.JobID) AS warranty_job,\r\n	funcJobBecomesWarrantyItemCount(jobs.JobID) AS warranty_items	\r\nFROM\r\n	jobs\r\nLEFT JOIN customers ON jobs.CustomerID=customers.CustomerID\r\nLEFT JOIN sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID\r\nLEFT JOIN branches ON branches.BranchID=jobs.BranchID\r\nWHERE\r\n	DateTimeOfEntry BETWEEN \"[STARTDATE] 00:00:00\" AND \"[ENDDATE] 23:59:59\"\r\nORDER BY\r\n	branches.BranchName ASC,\r\n	sales_areas.SalesAreaName ASC\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39198.7241092824\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;                 &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader4OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;//   if &#60;ds.&#34;warranty_job&#34;&#62; &#62; 0 then GroupHeader2.Visible:=True;&#13;&#10;//   if &#60;ds.&#34;warranty_job&#34;&#62; = 0 then GroupHeader2.Visible:=False;  &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupFooter4OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;   if &#60;ds.&#34;warranty_job&#34;&#62; &#62; 0 then GroupFooter4.Visible:=True;&#13;&#10;   if &#60;ds.&#34;warranty_job&#34;&#62; = 0 then GroupFooter4.Visible:=False;  &#13;&#10;end;&#13;&#10;&#13;&#10;begin  &#13;&#10;      &#13;&#10;&#13;&#10;end.                \" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323627220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"41.57483\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-16\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Warranties by Sales Area\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"0\" Left=\"0\" Top=\"120.94496\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"480.00031\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"699.21305\" Condition=\"ds.&#34;branch_name&#34;\">\r\n      <TfrxMemoView Name=\"dsbranch_name\" Left=\"0\" Top=\"0\" Width=\"238.11039\" Height=\"18.89765\" DataField=\"branch_name\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"[ds.&#34;branch_name&#34;]\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxGroupHeader Name=\"GroupHeader2\" Height=\"60.47248\" Left=\"0\" Top=\"188.9765\" Width=\"699.21305\" OnBeforePrint=\"GroupHeader2OnBeforePrint\" Condition=\"ds.&#34;sales_area&#34;\">\r\n      <TfrxMemoView Name=\"dssales_area\" Left=\"18.89765\" Top=\"7.55906\" Width=\"264.5671\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[ds.&#34;sales_area&#34;] ([ds.&#34;sales_person&#34;])\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"37.7953\" Top=\"45.35436\" Width=\"188.9765\" Height=\"15.11812\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"313.70099\" Top=\"30.23624\" Width=\"79.37013\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Jobs&#13;&#10;Booked In\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"396.85065\" Top=\"30.23624\" Width=\"75.5906\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Items&#13;&#10;Booked In\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"476.22078\" Top=\"30.23624\" Width=\"75.5906\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranty&#13;&#10;Jobs In\"/>\r\n      <TfrxMemoView Name=\"Memo10\" Left=\"555.59091\" Top=\"30.23624\" Width=\"75.5906\" Height=\"30.23624\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Warranty&#13;&#10;Items In\"/>\r\n    </TfrxGroupHeader>\r\n    <TfrxDetailData Name=\"DetailData1\" Height=\"0\" Left=\"0\" Top=\"294.80334\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter1\" Height=\"0\" Left=\"0\" Top=\"419.52783\" Width=\"699.21305\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter2\" Height=\"41.57483\" Left=\"0\" Top=\"355.27582\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo11\" Left=\"313.70099\" Top=\"7.55906\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo12\" Left=\"476.22078\" Top=\"7.55906\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo13\" Left=\"396.85065\" Top=\"7.55906\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo14\" Left=\"555.59091\" Top=\"7.55906\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxLineView Name=\"Line2\" Left=\"37.7953\" Top=\"3.77953\" Width=\"661.41775\" Height=\"0\" Frame.Typ=\"4\"/>\r\n    </TfrxGroupFooter>\r\n    <TfrxGroupHeader Name=\"GroupHeader4\" Height=\"0\" Left=\"0\" Top=\"272.12616\" Width=\"699.21305\" Condition=\"ds.&#34;customer_name&#34;\"/>\r\n    <TfrxGroupFooter Name=\"GroupFooter4\" Height=\"15.11812\" Left=\"0\" Top=\"317.48052\" Width=\"699.21305\" OnBeforePrint=\"GroupFooter4OnBeforePrint\">\r\n      <TfrxMemoView Name=\"dscustomer_name\" Left=\"37.7953\" Top=\"0\" Width=\"268.34663\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HideZeros=\"True\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[ds.&#34;customer_name&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsjob_id\" Left=\"313.70099\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[COUNT(DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"dswarranty_job\" Left=\"476.22078\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"%g\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"396.85065\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"559.37044\" Top=\"0\" Width=\"75.5906\" Height=\"15.11812\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"-16777208\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" Highlight.Font.Charset=\"1\" Highlight.Font.Color=\"255\" Highlight.Font.Height=\"-11\" Highlight.Font.Name=\"Verdana\" Highlight.Font.Style=\"0\" Highlight.Condition=\"SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0\" ParentFont=\"False\" Text=\"[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)]\"/>\r\n    </TfrxGroupFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(174,'Warranties In Progress (Electronic Repairs)',0,14,7,1,1,0,1,1,NULL,NULL,'SELECT jobid AS JobID,\r\n              funcGetCustomerName(jobid) AS CustomerName,\r\n              funcGetEquipString(jobid) AS Equipment,\r\n              funcGetWarrantyCosts(jobid) AS WarrantyCosts,\r\n              datetimeofentry AS DateTimeOfEntry\r\n\r\nFROM jobs\r\nJOIN branches ON jobs.repairbranchid=branches.branchid\r\n\r\nWHERE warranty=\"1\"\r\nAND branches.branchname=\"[BRANCHNAME]\"\r\n              \r\nAND wip=\"1\"\r\nAND engstatusid IN (4,5)\r\nAND jobtypeid IN (1,2,3)\r\n\r\nORDER BY datetimeofentry ASC\r\n',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"39322.4690320139\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"468.21274\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Electronic Repair Warranties in Progress\"/>\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"476.22078\" Top=\"3.77953\" Width=\"225\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"83.14966\" Top=\"3.77952999999999\" Width=\"245.66945\" Height=\"18.89765\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsEquipment\" Left=\"336.37817\" Top=\"3.77952999999999\" Width=\"226.7718\" Height=\"18.89765\" DataField=\"Equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"585.82715\" Top=\"3.77952999999999\" Width=\"132.28355\" Height=\"18.89765\" DataField=\"DateTimeOfEntry\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd.mm.yyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"340.1577\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"3.77952999999999\" Width=\"718.1107\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"83.14966\" Top=\"3.77952999999999\" Width=\"245.66945\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"336.37817\" Top=\"3.77952999999999\" Width=\"226.7718\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment String\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"589.60668\" Top=\"3.77952999999999\" Width=\"128.50402\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date/Time of Entry\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"45.35436\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"7.55905999999999\" Width=\"408.18924\" Height=\"37.7953\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Current Warranties In: [COUNT(MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(175,'Warranties in Progress (Motor Repairs)',0,14,3,1,1,0,1,1,NULL,NULL,'SELECT jobid AS JobID,\r\n              funcGetCustomerName(jobid) AS CustomerName,\r\n              funcGetEquipString(jobid) AS Equipment,\r\n              funcGetWarrantyCosts(jobid) AS WarrantyCosts,\r\n              datetimeofentry AS DateTimeOfEntry\r\n\r\nFROM jobs\r\nJOIN branches ON jobs.repairbranchid=branches.branchid\r\n\r\nWHERE warranty=\"1\"\r\nAND branches.branchname=\"[BRANCHNAME]\"\r\n              \r\nAND wip=\"1\"\r\nAND engstatusid IN (4,5)\r\nAND jobtypeid IN (8)\r\n\r\nORDER BY datetimeofentry ASC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.1.11\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"4087\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"40011.3479558333\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;end.\" PropData=\"044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"10\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"64.25201\" Left=\"0\" Top=\"18.89765\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"468.21274\" Height=\"24\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Motor Repair Warranties in Progress\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"22.67718\" Left=\"0\" Top=\"188.9765\" Width=\"718.1107\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"0\" Top=\"3.77952999999999\" Width=\"79.37013\" Height=\"18.89765\" DataField=\"JobID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;JobID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"83.14966\" Top=\"3.77952999999999\" Width=\"245.66945\" Height=\"18.89765\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsEquipment\" Left=\"336.37817\" Top=\"3.77952999999999\" Width=\"226.7718\" Height=\"18.89765\" DataField=\"Equipment\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;Equipment&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsDateTimeOfEntry\" Left=\"585.82715\" Top=\"3.77952999999999\" Width=\"132.28355\" Height=\"18.89765\" DataField=\"DateTimeOfEntry\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.DecimalSeparator=\".\" DisplayFormat.FormatStr=\"dd/mm/yyy\" DisplayFormat.Kind=\"fkDateTime\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haCenter\" ParentFont=\"False\" Text=\"[ds.&#34;DateTimeOfEntry&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"340.1577\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"478.22851\" Height=\"12.44094\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" VAlign=\"vaBottom\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"514.01608\" Top=\"0\" Width=\"205.25201\" Height=\"16.22047\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n    <TfrxHeader Name=\"Header1\" Height=\"22.67718\" Left=\"0\" Top=\"143.62214\" Width=\"718.1107\">\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"0\" Top=\"3.77952999999999\" Width=\"718.1107\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Job ID\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"83.14966\" Top=\"3.77952999999999\" Width=\"245.66945\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"336.37817\" Top=\"3.77952999999999\" Width=\"226.7718\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Equipment String\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"589.60668\" Top=\"3.77952999999999\" Width=\"128.50402\" Height=\"18.89765\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Date/Time of Entry\"/>\r\n    </TfrxHeader>\r\n    <TfrxFooter Name=\"Footer1\" Height=\"45.35436\" Left=\"0\" Top=\"234.33086\" Width=\"718.1107\">\r\n      <TfrxSysMemoView Name=\"SysMemo1\" Left=\"0\" Top=\"7.55905999999999\" Width=\"408.18924\" Height=\"37.7953\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"1\" ParentFont=\"False\" Text=\"Current Warranties In: [COUNT(MasterData1)]\"/>\r\n    </TfrxFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2012-01-18 14:39:50'),(181,'Inactive Customers',0,2,3,1,1,0,1,1,NULL,NULL,'SELECT j.CustomerID, CustomerName, s.SalesAreaName, \r\nMAX(DATE(DateTimeOfEntry)) AS LastBooked, SUM(InvoicePrice) AS SalesToDate \r\nFROM jobs j\r\nINNER JOIN customers c ON c.CustomerID = j.CustomerID\r\nLEFT JOIN sales_areas s ON s.SalesAreaID = c.SalesAreaID\r\nINNER JOIN branches b ON b.BranchID = c.BranchID\r\nWHERE j.CustomerID IS NOT NULL AND b.BranchName = \'[BRANCHNAME]\'\r\nGROUP BY CustomerID\r\nHAVING LastBooked <= DATE_SUB(CURRENT_DATE(), INTERVAL [DAYS] DAY)\r\nORDER BY SalesToDate DESC',NULL,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TfrxReport Version=\"4.10.1\" DotMatrixReport=\"False\" IniFile=\"\\Software\\Fast Reports\" PreviewOptions.AllowEdit=\"False\" PreviewOptions.Buttons=\"1465\" PreviewOptions.Zoom=\"1\" PrintOptions.Printer=\"Default\" PrintOptions.PrintOnSheet=\"0\" ReportOptions.Compressed=\"True\" ReportOptions.CreateDate=\"39024.4955783102\" ReportOptions.Description.Text=\"\" ReportOptions.LastChange=\"41499.7502683912\" ScriptLanguage=\"PascalScript\" ScriptText.Text=\"begin&#13;&#10;&#13;&#10;        &#13;&#10;&#13;&#10;end.\" PropData=\"044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E646572272200010C1C000000204E616D653D22746B6E44415953222056616C75653D2227363527220000055374796C650100\">\r\n  <TfrxDataPage Name=\"Data\" Height=\"1000\" Left=\"0\" Top=\"0\" Width=\"1000\"/>\r\n  <TfrxReportPage Name=\"Page1\" PaperWidth=\"210\" PaperHeight=\"297\" PaperSize=\"9\" LeftMargin=\"15\" RightMargin=\"10\" TopMargin=\"10\" BottomMargin=\"10\" ColumnWidth=\"0\" ColumnPositions.Text=\"\" HGuides.Text=\"\" VGuides.Text=\"\">\r\n    <TfrxPageHeader Name=\"PageHeader1\" Height=\"83.14966\" Left=\"0\" Top=\"18.89765\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo7\" Left=\"0\" Top=\"0\" Width=\"698.76407\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"5\" ParentFont=\"False\" Text=\"Inactive Customers for [tknBRANCHNAME]\"/>\r\n      <TfrxMemoView Name=\"Memo1\" Left=\"60.47248\" Top=\"60.47248\" Width=\"336.37817\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Customer Name\"/>\r\n      <TfrxMemoView Name=\"Memo2\" Left=\"404.40971\" Top=\"60.47248\" Width=\"102.04731\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Sales Area\"/>\r\n      <TfrxMemoView Name=\"Memo3\" Left=\"0\" Top=\"60.47248\" Width=\"52.91342\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Cust. ID\"/>\r\n      <TfrxMemoView Name=\"Memo4\" Left=\"514.01608\" Top=\"60.47248\" Width=\"83.14966\" Height=\"15.11812\" ShowHint=\"False\" AutoWidth=\"True\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" ParentFont=\"False\" Text=\"Last Booked\"/>\r\n      <TfrxMemoView Name=\"Memo5\" Left=\"604.7248\" Top=\"60.47248\" Width=\"94.48825\" Height=\"15.11812\" ShowHint=\"False\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"1\" Frame.Typ=\"8\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Sales to date\"/>\r\n      <TfrxMemoView Name=\"Memo6\" Left=\"0\" Top=\"26.45671\" Width=\"649.63018\" Height=\"24\" ShowHint=\"False\" DisplayFormat.DecimalSeparator=\".\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-19\" Font.Name=\"Verdana\" Font.Style=\"4\" ParentFont=\"False\" Text=\"Who haven\'t booked for [tknDAYS] or more days\"/>\r\n    </TfrxPageHeader>\r\n    <TfrxMasterData Name=\"MasterData1\" Height=\"30.23624\" Left=\"0\" Top=\"162.51979\" Width=\"699.21305\" ColumnWidth=\"0\" ColumnGap=\"0\" DataSet=\"ds\" DataSetName=\"ds\" RowCount=\"0\">\r\n      <TfrxMemoView Name=\"dsCustomerID\" Left=\"0\" Top=\"0\" Width=\"52.91342\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"CustomerID\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerID&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsCustomerName\" Left=\"60.47248\" Top=\"0\" Width=\"336.37817\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"CustomerName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;CustomerName&#34;]\"/>\r\n      <TfrxLineView Name=\"Line1\" Left=\"0\" Top=\"22.67718\" Width=\"699.21305\" Height=\"0\" ShowHint=\"False\" Frame.Typ=\"4\"/>\r\n      <TfrxMemoView Name=\"dsSalesAreaName\" Left=\"404.40971\" Top=\"0\" Width=\"102.04731\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"SalesAreaName\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;SalesAreaName&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsLastBooked\" Left=\"514.01608\" Top=\"0\" Width=\"79.37013\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"LastBooked\" DataSet=\"ds\" DataSetName=\"ds\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" ParentFont=\"False\" Text=\"[ds.&#34;LastBooked&#34;]\"/>\r\n      <TfrxMemoView Name=\"dsSalesToDate\" Left=\"604.7248\" Top=\"0\" Width=\"94.48825\" Height=\"15.11812\" ShowHint=\"False\" DataField=\"SalesToDate\" DataSet=\"ds\" DataSetName=\"ds\" DisplayFormat.FormatStr=\"%2.2n\" DisplayFormat.Kind=\"fkNumeric\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-11\" Font.Name=\"Verdana\" Font.Style=\"0\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"[ds.&#34;SalesToDate&#34;]\"/>\r\n    </TfrxMasterData>\r\n    <TfrxPageFooter Name=\"PageFooter1\" Height=\"22.67718\" Left=\"0\" Top=\"253.22851\" Width=\"699.21305\">\r\n      <TfrxMemoView Name=\"Memo8\" Left=\"0\" Top=\"0\" Width=\"225\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" ParentFont=\"False\" Text=\"[&#60;DATE&#62;]  [FORMATDATETIME(\'h:mm am/pm\', &#60;TIME&#62;)]\"/>\r\n      <TfrxMemoView Name=\"Memo9\" Left=\"574.48856\" Top=\"0\" Width=\"144.77953\" Height=\"20\" ShowHint=\"False\" StretchMode=\"smMaxHeight\" Font.Charset=\"1\" Font.Color=\"0\" Font.Height=\"-13\" Font.Name=\"Verdana\" Font.Style=\"2\" HAlign=\"haRight\" ParentFont=\"False\" Text=\"Page [Page#] of [TotalPages#]\"/>\r\n    </TfrxPageFooter>\r\n  </TfrxReportPage>\r\n</TfrxReport>\r\n','None',NULL,NULL,0,NULL,NULL,NULL,0,NULL,'2013-08-13 16:44:48');
/*!40000 ALTER TABLE `reports` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sales_areas`
--

DROP TABLE IF EXISTS `sales_areas`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sales_areas` (
  `SalesAreaID` int(11) NOT NULL AUTO_INCREMENT,
  `SalesAreaName` varchar(50) NOT NULL DEFAULT '',
  `Salesperson` varchar(30) NOT NULL DEFAULT '',
  `BranchID` int(11) NOT NULL,
  PRIMARY KEY (`SalesAreaID`),
  UNIQUE KEY `idxBranchIDAbbrev` (`BranchID`,`SalesAreaName`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sales_areas`
--

LOCK TABLES `sales_areas` WRITE;
/*!40000 ALTER TABLE `sales_areas` DISABLE KEYS */;
INSERT INTO `sales_areas` VALUES (1,'Midlands','Luke Skywalker',1),(2,'Other','Tom Baker',1),(7,'London','Van Morrison',1),(3,'North','James Bond',1),(4,'South','Darth Vader',1),(5,'East','Han Solo',1),(6,'West','Doctor Who',1),(8,'Overseas','Kofi Annan',1);
/*!40000 ALTER TABLE `sales_areas` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `sales_by_job_type_and_equipment_category`
--

DROP TABLE IF EXISTS `sales_by_job_type_and_equipment_category`;
/*!50001 DROP VIEW IF EXISTS `sales_by_job_type_and_equipment_category`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `sales_by_job_type_and_equipment_category` (
  `sales_value` decimal(11,2),
  `invoice_date` date,
  `items` smallint(6),
  `job_type` varchar(16),
  `category_name` varchar(20)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Temporary table structure for view `sales_by_sales_person_and_customer`
--

DROP TABLE IF EXISTS `sales_by_sales_person_and_customer`;
/*!50001 DROP VIEW IF EXISTS `sales_by_sales_person_and_customer`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `sales_by_sales_person_and_customer` (
  `sales_value` decimal(11,2),
  `invoice_date` date,
  `items` smallint(6),
  `sales_person` varchar(30),
  `category_name` varchar(20),
  `customer_name` varchar(60)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Temporary table structure for view `sales_by_sales_person_and_equipment_category`
--

DROP TABLE IF EXISTS `sales_by_sales_person_and_equipment_category`;
/*!50001 DROP VIEW IF EXISTS `sales_by_sales_person_and_equipment_category`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `sales_by_sales_person_and_equipment_category` (
  `sales_value` decimal(11,2),
  `invoice_date` date,
  `items` smallint(6),
  `sales_person` varchar(30),
  `category_name` varchar(20)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `settings`
--

DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings` (
  `SettingID` int(11) NOT NULL AUTO_INCREMENT,
  `GroupName` varchar(50) NOT NULL DEFAULT '',
  `FieldName` varchar(50) NOT NULL DEFAULT '',
  `FieldValue` varchar(255) NOT NULL DEFAULT '',
  `MemoValue` mediumtext,
  `DateValue` datetime DEFAULT NULL,
  `BlobValue` mediumblob,
  `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`SettingID`),
  UNIQUE KEY `idxGroupNameAndFieldName` (`GroupName`,`FieldName`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `settings`
--

LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES (1,'Application','MinVersion','4.2.13',NULL,NULL,NULL,'2011-12-16 00:23:03'),(2,'Application','Enabled','True',NULL,NULL,NULL,'2011-12-16 00:23:16'),(3,'Application','SchemaVersion','5',NULL,NULL,NULL,'2011-12-16 00:23:33'),(4,'Application','Options','','[Email]\r\nMailServer=mail.itpartnership.com\r\nMailServerUserID=jms@itpartnership.com\r\nMailServerPassword=jmsdemo123\r\nSMTPAuthentication=True\r\nReadReceipts=False\r\nBCCAddress=surinder@itpartnership.com\r\nFromAddress=jms@itpartnership.com\r\n\r\n[Delivery Instructions Dialog]\r\nFontColour=255\r\nFontSize=24\r\n\r\n[Currency]\r\nDefaultCurrencyCode=GBP\r\n\r\n[Knowledgebase]\r\nHost=www.itpartnership.com\r\nInitialPath=/master\r\nUserName=jmsdemoknowledgebase\r\nPassword=jmsdemo123\r\nPassiveMode=True\r\nLocalCachePath=\r\n\r\n[Accounts]\r\nBranchLocationCode=01\r\n\r\n[Customisation]\r\nCustomersFormRemoveCRMTab=True\r\nCustomersFormRemoveVATIDNo2=True\r\nCustomersFormEditButton=False\r\nJobsFormEquipmentChooserAddNew=True\r\nJobsFormGetPartsDisableAddNonStockPartButton=False\r\nJobsFormGetPartsShowAddStockPartImmediately=False\r\nJobsFormShowReturnToFrontOfficeButton=False\r\nJobsFormJobNavButtons=False\r\nJobsFormCalcQuoteHideCommercialInfo=True\r\nJobsFormCalcQuoteHidePriceSummaryInfo=False\r\nInvoiceEmailingEnabled=True',NULL,NULL,'2011-12-16 00:27:05'),(5,'Licence','CompanyName','Demo Master',NULL,NULL,NULL,'2011-12-24 06:04:21'),(6,'Licence','Key','3BEBFAEB7A2D8A9A8BEB0B2DEB9B2BBBEB2D1B0B1BEAEA2DCA7A9B5A0B2DBB7B5B9BAA',NULL,NULL,NULL,'2011-12-24 06:07:02'),(7,'Application','Logo','',NULL,NULL,'���\0JFIF\0\0H\0H\0\0��\0C\0		\n\n\n\n          ��\0C\r\r\Z\Z                                                 ��\0\0� \0��\0\0\0\0\0\0\0\0\0\0\0\0\0��\0T\0\n\0\0\0!16Aa�\"#25Qqrt���3BRTUs���������$4CSb�����c�%�e����\0\0\0\0\0\0\0\0\0\0\0\0\0��\0A\0\0\0\0\0!1234AQq�����Rar��\"B��S���#Cb$c��\0\0\0?\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0��xaf��66{g�5>��·���v�k��p��}މ�M��DH�x�����j�P���~�}E����Պ�G#�M��|�~����q�*�]���G,R7Z7���j�e�ڊ�v>��\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\��\Z��Aa�v�Mʖv��6�ڨc��Fֵَx�4o��:���S�dr2;�޻�mDJ�x������C;.Q����X�n�oG��5sO��ڊ�v>��\0\0\0\0\0\0\0\0\0\0\0\0�د6��x�F��DD��:n��Ո��}=�S{(�7s�\0%{}�xzl�^��}fo�y����K�J�\0t���1W�5�Y��X��Oi�,O�+���zl�^��}fo�=b�=���?ԯ�O���u55XF�=L��wƪ�dUs��]�]�X��Lۉ�H�*�D�:gC~l$�!�V���»�D��tDm�a{�vK��ے�9B��ޭZ�Y�z�xm4L�;�٩Mzl�^��}fo�A���z{T/ib�_�7�x���z^+UZ�����ɳ����7=��}�����+���<9z��d��ųwfog�zl{|NE,�n�銝;��E�nG,}y[#+l\0\0\r6�-��ښ�vU*��\"v�[�v��k�z:&yQ�W��&�ղ:~��oM��ߚ����\\���ͽ�����|�M��ߚ����\\�����\'�����]�4�����Us>�w,����{�)\\������\Z�mDηB�7j�	L�33�oL��`\0��>�I����q�f�$T����]���mƙh��-:k���E�4��nNttNKm*�6��rʻs�r!oe\n�٪|frb.��S����\r�����f���ʻ�H�{����3T��\rw*�t�33�y�^\0>�x$� ��H��b�Wʇ؝t�4Θ���4��mʛ���ƛ��d^Lߛ�Ħ�۴�0�skes1��߭6�i��c�Q,K�QM�7���w�����Gb��θ�Wi��/�Ie�\0\0\0\0\0\0Ti��x����C]QH�S���%|h���WUP��Wj���3\Z����]�v������$�r��1W�5�Y����sޞ�g�X��W����ي�����ߘz��z{Oib�_�3�f*���3~a�=��=�����|ް�\\][x�]���\0}T��������ʻt�4�R��9k�f���8�ƍG}�Zq�c��o8q���=1	%�M�mTm���쥦r�Q;��g�ڷ�\'�GbW���DOG����a�M��N��5����Ƚv_ªH��Qsd�Y�YV�#yW��S��ޛ	\0\0\0U\Za�^(.�1��TR1���6	_\Z*���T!�ک�4Lƥ/9�Wmݦ(��cs�3���U��w�f��o�\\���Y��\'�����=6b�~k��7��sޞ��X��W����ي�����ߘz��z{Oib�_�3�f*���3~a�=��=�����|�M��ߚ����\\�����\'�����=6b�~k��7��sޞ��X��W����ي�����ߘz��z{Oib�_�5բ����!O=d�TβJ�,�W�Q�t��I�S6�η@��W���f��;u��h��x������u�����y\Z֢q\"#��bo�\'D��w5ʘ���k�����ޖ��f*���3~c�\\����,O�+���h�\Z\\%��i�U�U�m֥�w�El�Lը��c���$r~&f��S�JǛ�R��6�U5n�i�:�n+�\0\0\0)m&�{����U�SSP&�\"����y�*g����)��U��L�Pr�V�7��i�V�ѯ�gb%�{�]���1��=��A�K�J�\0t��z;�X��[��us���^)g��\\�z�k�Qv�X;��؉��J�Lm��tEU�1�l�4�2��\0\0c\\n46�G�WL�zh���;���H���cL�b�~�T«ĺg��ς�\nC�FN��^VG֧�ϸC��s���7�5N��9���\0����ʷ\n�s\\���N�:��!]��:U���׷�M_|�T֖���]֖y)�M�\"r��V䧪j�٩��ڨ�4��;�1%�͎�R�L�$�eD�7�2)�g(�N�p���&\"֪�\0=?��zV�\ZŶ\\EM��K�����+;��g*l&lb)�\Z�lR���M��9a�3��\0\0\0\0\0\0\0\0\0\0��І�Q,��j�Wj�6yf��􈜕�w�O�W�{����\0����\0�\0����d�\0��^�\0��\0��\0�F1�\0�,�ѝ�7-�r��D_n���LV�Dkӥ��7��3��n�\Z<e4�n����_�}ś�R�Y�[��Hͤ�L|�f/3����u�����i_s�/C�q���;��VsR�֧N���\\�{D�9����nk�3��q����\\��\0\0\'�E���Z�w��ꝥ��]�S$��@�+۪�<��͍�oh��@�`��O�;��L����+�f����R�q6��8��٦���+zX\"�-�Wu����a�z-Ӻiem8kSrz�2�[�޾�_-ut�-D��x�8���D�B�r��:gk��q5ޮk�t̾-���[)(auEL�llL׻ȝ�S�MS�6�ٱ]ڷ4F��cY�%W#%޽ Uߧ�n������I��s��j�f�S��Z>�C�|&ξj�{��u�l�L��IӚ�h�z���6��ӑw\Z��ܻٺ7\"x�~���9厬���U\\vy47=�\"Eu��*���j¹r*n���5��u~�ҍ��w#��*����0��[���\"�q�q�ͫ�#�X���hW�X�8Jf;�v5�&��˃��\0\0\0\0\0\0)�7�n����)�7�ТggG���M`��f�UIKk����l��G��ϵ�Iӓ*�Ӧ�Y�v�b��:�O+��B��7�O�}�]|��N��OՌ�bƦi=�I?�hy�eσ�\'����i�\Z6�t(�}��F�ʝ[/�U�\0a���y\Z�.���\r��9#z�#U�n�1ɒ�򢚳����;_�{���V���\\�7�>D��G�V]�;f!�Y��`��}�&��y{d�(~��W��S�-ߞ����V�2��\0M鿳v�\0^qH<����;8Z>_pE�i�.��MM,51�H������?<���}\')!NM�1�R�o6q5SDѮ9����/�?}G����˟�¸�z;g�ş���I?�=�s�~����>G��,���I���˟�\'����=E�g��O��f\\��q<�vϑ�/�?}G��{2�+�磶|�v�Vذ�6��1ӱ�9V%UnNvi�Q���ۣs+~H�ׇ��ѧL�H\r��8c�]�%�r���j�r��Ʈ|�њ�׭\\�uP�S�Rx�\"i�\\�MS�-ܚ*��������=-�����o�~���\\������1W;�`�1~�7#�#d\0�_�b�w��7V���_��n��0b.�:&Z9K�*�������H�$t�9_#�\\�.�U]�R�2�33�v�O�)>��sk��^n`xh��L�9G_t��:p\0[�ʎ�A5}c�:h��d��<W\\S\Zgc\"�6����L9���$�Y�U��5���bv׶��R����vu�s����W�uS#���&�13Ú)�wx�QQ����ΙdT�{�*�r}u�P�`sv���U�)���\0I�.���\Zމ�����j,q�|Z�_�ާ%��2����#}US�i�-�_�s�ļ�b��1|�ɖ�,��\ZvMq�H��B�Jv:[M[k\Z���\"nRwv�W���w&U�҉���uګu�S�ܯ*���MU��5��=5\\�%#*�btJ�r�TU��4L>��\Z�udu�S:\n��6H�2��x�O�W4Θ�b�v����B���ʟ[7ED��M��7�]�]�o<.&.��t���)��Ӳ��=	)��\0\0\0\0\0\0\0\0\0\0\0\0���P�|,�u�NU�\n�v�(�DB�Έ���_�}ś�R�Y�[��Hͤ�L|�f/3����u�����i_s��뇖\'d�ĝN�v���Y4���x���t[��4�#��[�*�Ӻ�N暂����\n�u՞��5�j�`���t�#B�ٷ\\WN؝.��]����[�?�T���]�5yZ��KU��]1Tr��M�qr��C8��\0�b[�VK]�L�`gRb�)c�r����Q551���٪��Gב�S�,��<�W�+��=w��\\�|jUft�rj뚧L��t&��;r���O�&k�ܟb3gE��<����0qzv�^���(骊_�)�5}7<�ɓ���t���t���\\n&�)�6�$}҆؋ԡ������jg�F}�&T����:�7)�����+R)R_�5��|=OP�E����TJ��\"=5�\"5�Y06\"�4�˦d,6,D���L�%��l\0\0��x��X^�>7�9���Eاɍ/5QF��\n��z\n��Vsi�r�J9w-�l]���k\"/�t�R���f*��?,�NΥ�J��\0\0\0\0\0\0\noM����2�A�M�t(�����-St티��\0��B�k{���c��dl\0\0��p���\n�q�l��&N�,��^�|[��(����3\'��F����|m�ˎz�F�Ujr�ڄN���6T���/�Ab�sk^�T��+�h����Q#I�4G�P�K��kKs���ڬn�_6���Md�V��=K�me]���%��\0ޛ�7o�e��ʛ��Q3�����WZ���a-�\r6���:	�Q��s8��\0\0\0\0\0\09�p���/�|_WK�e~5s���Cx�T��v6�:������Ec�+�a�������|�xh�~-�ꊿ��jj�g����v�O���9�����U:\'D��[�*�glN���|F��TXgwK>s���ڝQ�6�~%%2e�{��5��*�3ˮ<~�V�4��\0�tˈ�*�\r�g\r\nn���3�b|Vyԃ�w�չ�P�����ez�w��f�5�Km�4I��^��6�{�MM����^�����N\"�6㗻���*{�ƞ�C\rT̍���Ȩ��<ލ�|^1�E7���O{s�.��y��\Z>��Q��.�,��\0��\'uU͖:w~�E��r�S96\'�j�UH<�M[��\ns�\r��C�v�\0�rE��{E�?�\Zx��X����#n�H��}������7um�^s#DD^�\Z�{��e�J��\0\0F�\n�Ĵ*����~�U���v[�_���ab�|Q9W%Q�����?|�}���������DVJ��r���gD�s+���T�V���	�)���y�h��1����rt�2��z:��n6pע�����f�hY4NG�#Q�7��L�S�Z\"t��5EQ�6K��\0\0\0\0\0\0\0\0\0\0\0���P�|,�u�NU�\n�v�(�DB�Έ���_�}ś�R�Y�[��Hͤ�L|�f/3����u�����i_s�ل�^�OOm�$Y�>�26�Ec�NBkw���M�F#&E�劻wS�KO�O$5Y4NVH��G5rT�)1�R�]L蝰�4/��Q`���E}��1>�\'t�ɗ�Gb���\'�<cǵl�A��E�V�ءwIMժ�G\'H������w���FΜn긳�\\��};�<?f��y����T=��M�w���GY���)�V�XY�v�q�?�i銖\nL#m��n�T�LN&��!/���n\"9�,�ah�6EQ�*p�P��x\rA�M�<�d�>�]37x�=}���\n7L�T���K���W�	��y�ƿ�<Pb=\\t��em��T���vIĺ��x�al�Vꈟ������W=0�@\0\0\0\0\0\0\0\0\0\0\0��f���yS}\n&vp�|�*�T�;b�%����жZ��C��8*>X�g\0\0\0yU�SVSIKS\ZKO3U�F��ʩ���r�5�4ծ%Θ�\rɇ����U�z�+�}�;�ϕ2T^T+�>��Y�03��4rm��������\n�gjON������i�i�1�ӵv�uET���5�������F�;J�����إ��{�by�o~/[���Tif�)�7�n����)�7�ТggG���MӶ.�[�\Zme��t:�����q��\0\0\0\0\0\0s�:���_�*����*�j��,�����\0��ɀᣯ����v���-ޙp�B�b�Bޡ\\���L����Sc)��V�!�-�Ȼ+��c��\\*m�\nz�gj�L���^E�R:����݋�Z�+�m2�{EΞ�l��S�Q��$jv��j�v)j�\\WLLr��\Z�7��t���v����Ur���b�W�;y���TCۑE3W3[����;)�4VU�YU5UC���W����J�ULΙr[�&������[�ýA=�v�Z��K�2�g��L��:#wλ�sDޝ�j���=�����눫���eP��=]��sk��^f������r���t!dt�k�tT���}n�\'�����5չ��f+�b�\\�4�9���j����]i�{��ݷ=u�|�T�L�r�&����3���v�bjZ9:fuj���n_ro�τ��.Dr$2>�1�;ݳ�z�[���\0\0\0\0Tzj�튢��rI�\0G��ڙ���<HCeK:�#:�z&��˪|>�\n��S׾�o�a8�s���\\��:�x���,Y>���C�f�\'�a�N�\'G��Rho\'�\0\0\0\0\0\0\0\0\0\0�ӗ����ʻ!Q���2��U�\Z:�U��︳`�*]K\"qK})��\0�i���\0���q��.�w9���B�+�t�\r���\0���`8��t���Tu�\0)W�aý{e��OqN���M�92^�dnR���u�*�s�}�K��\0Ϛj�T�.T�\ne�jg����}�Sb��j����V�Et�]1l��\\���˭KFx���7���\\U\Zc���^��];*����Ok�T�*��F�9;yo59\\��r�����y�ߦ͹���Ú.5�\n���֞�GI\"�s�9���\\�:g��/ު�s][j�+SB�ws���Lޞ|��3��W�9;�L�D�L��v��E3zyuGG/׹���\r�cy��Sy,����%K�*��O�;��L����+�f����R�q6U��%�6��\"��;��������ke]Jnu�w�c�|<UA�\'8I/��pc��+�ѹ�|*�wګ�\"C���w�F˾���v����X�\r�Zށ�C#�%v��1�;�&��(�d��|�b������\0\0\0\0\0\0\0\0\0\0\0\noM����2�A�M�t(�����-St티��\0��B�k{���c��dl\0\0\0��e���h�moT��qz�\0�����yR�効�L���M�ZgGT�\0�:A�k�CW���R�v�T=�O�)���&W�ގit<׽��n}ڻ������M鿳v�\0^qH<����;8Z>_pE�k�դ���	nZ��l���듚�EM��x�QLk�>/`�LMz�#��&W���������~�?�Y�\0�\0�^G��������_�����U�z�`O|�\0�\0X��<�\0I?�\0�^G��������_�����U�z�`O|�\0�\0X��<�\0I?�\0�^M���n��6��.�J�Tl��n֮K���6m܊�LlIa�4_�wD饘{g\0�u�����U�|-].U���ϚY�-�ݳ�\0!��G_sc7���WN,���`��.[��֧r�[���ؼ��\"פ�i_�1j��;:y�$rE#�����׵w�Sb�V�r�����jh[�	߽�E�1>�e�&2e��ع�;m��>ժK�J�M8�ZJk.�̪*���ؾ,ݗp��w�B��X�qf:g�ϱ]Y-SݮԶ�=r�Df{���s�+sR2չ����V�a��m�ڥ��4T�4pQӷV\nv68�-L��SLS\Z#�֭Z�t�4����O�K��Ts�*���t˔c��Ϟ���F\\9����/3`xh��n�9G_t��:pGJ����U��j���‹�z+���SKV�R����%_�PEq�ֶ��+��ɷ����+ޟt��Tm��4����?�L.`\0\0\0\Z�=V�˓=�1�C��*=�\r\\m�R�˖}&��i��璲��3A����~�&D�7j�8��J�\\�ߚW=ts�Og�[���\0\0\0\0\0\0\0\0\0\0\0���P�|,�u�NU�\n�v�(�DB�Έ���_�}ś�R�Y�[��Hͤ�L|�f/3����u�����i_s�@h���ϗ�D����_{�f����K?�߰�U\"tF[�+��Vmn�,���S.&Ϥ�c���0^�b�9y:~�9��s\\�r+\\���]���]�f4-��=x*,;��:�N�W�7���Ƥ�L��l��i��<�����E�5�m��6F�\Z�$>e;�(|άn��1ˮ|>����Qt��[�z�D����}�ȉ�H�tMuDG*���U�E;j�K�h)�z\Zt�\nh�;�L�^U�-tQƈ�u�b�E;)�.�x7G��#��:U������~觀�����&O�c��3w����)q��\0ź[h�t�V3t��n���T�Eڇ�芣D�a�X��EZ�?b�t�u�ٚ�нG�D�]�E���+x�-V����YK%\\�կ]��ʏ�Ȱ�+���w\n�v��#��o�#%7k�d�6mc/[�WTtL��ZUƴʚՍ�b{	�b��F��6i�c�JN�qb�[����ۧ\n�V��mc��IN�f]�?_?�mQ�g�BV�v�\0e��>i��HxZ���OU�U;z��77��E��/\"*������:�Z�_�MZ*�_�$6��\0\0\0\0\0\0\0ޛ�7o�e��ʛ��Q3�����WZ���a-�\r6���:	�Q��s8��\0\0\0SJ0�\Z�f�nOO��|��x��\0�P�N�}]����+WAr;�\03��Ȝ�Q��S��]3FxH�|V�0��Szo�ݿ���R*o��D�����\\j�\0\0\0\0\0�tI��o���b��:Nm�H����O\0s�:���_�*����*�j��,�����\0��ɀᣯ����v���.�,������}�	q��R��^�qL�\\�٣��Q���u�S�g.�_�����n���-ʟ�i��D�ɼ�#��\ZV�MEQȃ��*�r.S��t���\0@��p�n=M]m��]���cq��ѥսn�C�F�K��:��Φ�Q��2,�N�{�NDM�U�W5�3<�Q��Uz��Vڥf�[겦�\03v�:zL�[�?˓S�J��?�n�\\��=��ڴ�u��؟��o��\\Uo���$��=]��sk��^f������r���t!dt�\n�M�_K��Z���B7*pqҬg\\�\0��%K.~�4-�\n�=S�+��$q���ɑ�\0[�f�:0��{�?$VP\0\0\0\0����K�kn��3-�T1ݍ4�|\Z��7Vk�zg��EM��\r=[�����dE��_�H���d�y�\0�l�/}�\0\0\0\0\0\0\0\0\0\0�ӗ����ʻ!Q���2��U�\Z:�U��︳`�*]K\"qK})��\0�i���\0���q��.�w9���B�+�t�\r���\0���`8��t���Tu�\0)J��ʉ���/�dMʒ��ˊT��򮷌�e;���T�9ǂ�7�Q�����ϭ���,�z[�}3���l��7�5U\rKW&���d>6.�r?L�o�y�����}L��o�n��Z��۷7uM\\��L߻U�R�4/�3}E�vlnt�Y��\0h�I<�g��RӚ���<gõl���o�1�ԄnT�GJ��|^���T��/��\Z����yd�}�fn�:z��.7`\0<�)��a|�hdL���j�iQv)�b\'k�tEQ�����47`�s���t�ۨ�V/���O��!w&�V�R���{5�3D���Zp��,��iV\n�c��I5S��*�m�٢PW�cN�sW_��?Y��e\Z�{MN\\ndk#vz�kU���QwrV&����������c���D�c�QSĦ	�\r\Z����_\'ǐi6��4V�Į���F2w�o���}Y����$����ս�Y�>_��Ż���?,�Ԋ�DT\\�v��<��\0\0\0\0\0\0ޛ�7o�e��ʛ��Q3�����WZ���a-�\r6���:	�Q��s8��\0\0\0_I�nX���V�Ϳ�3�SS?�J/գ_W|9�9���Z.�z^$Jd���J�]^+�h�\0��+`�]\0)�7�n����)�7�ТggG���Myڴa����-�,�F��v�3s����,6�6������|����34똎Y�ez��op;��g���f�;��~��z��op;���y��ø?w�>g�N���o�=�g���;��~��z��op;���y��ø?w�>g�N���o�=�g���;��~������=hm��T�UsY��mr�\\��ͻqDh��<6�n(��Om�p�\\0��K��_����Y_�\\������>_��04u�63{���e�%��Q�w�}�u4�nuL�ԟ\n�/����kb�J&9Q�_�y��m�����B�����\0I����;����n]�Ӧ6}f}���~���=\\ݺڛe���p���n��/H؝�5�M�0�D�:#��b�Wk�)�T�b�l���i��ɔ4�H�˖���Wj��tE4�G[�X�͸����,���lO�K��Ts�*���t˒c��Ϟ���F\\9����/3`xh��n�9G_t��:py��_KTk�ѭ�#r�*�u�z~	R�\n���/.���e�VH��c��\'�d�\0���y�V�4�+��OI�\0\0\0\01.��6��w��1T�rtS=8��[�y���/�\'Nt6�\\^��T���Z��M�:�<��_�>Ȱ: \0\0\0\0\0\0\0\0\0\0\0V:r�B��֑9Wd*9ۼ��U\n�:#G\\\n�|��lK�dN)o��#6��m1�?����#�֮�?��Q�}Ν��[>_�L}�J���)Y��F���}�UD�j�~�I��f�S�ni�5q�}%�������<�o�\\}�\\�V\\��CEQ]Y3u�{c�����T�5N��e�j��E4���{%���i����3��e�s����T�Z�S�#�a0�ٷ��L3���y��\r�cy�ܩ���_:��??��r@_�)�5}7<�ɓ���t���t���\\n&�\0\0\0\0�U%\\kT�D�앨����bv�\\�Mq�����+z�^���\r?���-6��^�.�!�wn����Y����7��ا�f�a���Hd�i�[����*q�	���jtJ��rm�%{����v��G/��$�a(Y*�KB��U^6���5Ȟ\"Ǔ�n��jt���M�,i�D�|�����\0\0\0\0\0\0)�7�n����)�7�ТggG���MӶ.�[�\Zme��t:�����q��\0\0\0��)��������\"Me��R;)עގyVs�����}#��\0�˫B��\r�U�2Z���^�#j7?��Od�4Q��]5l�p�W�WwܬIg\0���ٻ�/8�T�GB���-/��\"�7Nػ	o�hy�-�����N\n��;��F�\0\0\0\0\0��	���Z�\\�+�4��[ûg�C&�����oq�:�\0���:h	�,;�F%�x��Gq�xr�G�տ9s�)]���\\��.m�8C���Ǐ��4P+;B�su���NΖ�G��ruG\'q���Il�g^�p�l����j��_���&�pf�$�xeG:�WL�&?�\\���mteÛ_}/2�6���F�@�u�K�#�\0B�I��ɤ�>��)S���\0���4�Ѐ�[{�$ϻ1>* �����uj:��C��Μ��U���К�Uj�^3J�䮎i��\0K<�[�\0\0\0A�kYG��һy��;�u$��.���F勻�-�\0Ύ�^.s*�T��!F���+8��H�r��\0̔�t�i��ٚv�ݮ�jtv�\\��\0\0\0\0\0\0\0\0\0\0\0~��Ԥ�G�N�&r\'\"#3��vR��l�[q�HB�����_�}ś�R�Y�[��Hͤ�L|�f/3����u�����i_s�@h���ϗ�D����_{�f����JVn&@)<i�k�b*�l�.���wh��5_�3j��ː������5K��\\�{��6��D�n4]��ty.��e�u3ui�7ɚ9�z����J��uTh����r�ٹv4nvu��V�.�\0W�m���7���ʛ��U���J� T���Pw�s�,�?���WL��\'O_|���l\0\0\0\0\0\0�s�Ω��M�^�w5��R�M��9�EX]>��x����{A�_C��ϥI�TN�W�y+d�9�?���Y���\0\0\0\0\0\0Szo�ݿ���R*o��D�����\\j��l]���4<��[��u�\'G���#`\0\0\0�\0��N�!rӻZ��7\ZeM�m��N�w�\n�6�\0��V�s<��=b�\0��S�<e��j�㧁���rG}\\��Ʀ�F�Ї���b��.��ֈ�J;k2�\Z4k��o�{�nUR�f�☧�ְXh�f�q�c��[#h��f���yS}\n&vp�|�*�T�;b�%����жZ��C��8*>X�g\0\0\0\0\0\08c�]�%�r���j�r��Ʈ|���o�/�y�\Z:����h�2���}\"�_��S�^��wjN%UN���nF�6Ǥ�V�C��ؘ��:�P7G�\\��\\��\Z�2��/�]�Q�!��/l=f��f��C������]�w�ʪXl��S�:>-Sn9#��&F�3b~]�2��qU����\\��.|�w��2�ͯ���y��G�#w q�:��Ѕ�Ӏ5��ڗK%u������NT�W��w��S1���X�j�މs+��9X�V�����8��9Ƅ�E��Z�d	+�i�Qid^$W�+�\'��]�\\�N��o�&4��}W�ct�\0\0\0\0�t�|k(�,���LD�c3F\"���|DNT��)T3���l���=�DB��Cv���2W=2}�esW�8�F�\0V�?�m跧�г_����F�4��Y@\0\0\0\0\0\0\0\0\0\0�ӅtR\\��M\\䧊I^���ȉ��V��̣ge؛�Q�3�����;S���cv�ӱ�\0I�\0�Z0���=��(��m�{����D\r�>�\03��~R������\n4��Ӡ4[�Kg�\"Bɀ�c��ӳ{�Q��+7 \0\0\0^i��t~�jB7*o#�Wξ/O��*\\�P�x\rA�M�<�d�>�]37x�=}���\n���7��VD��cܑ��D���5��_e���E��M��L�UL^_����Q��h�Q=iݦ�l�R%U������v�����^E$mܦ��\Z�L>*��wTN�f��\0\0Z�\0V�,��:���ӷ����Ͼv�p��w.�U<��D[�1���=�Oj\"����xS�dL�_3�j.Α�1�]U_`ɶ�[��蹳��a�S��OV��X�\0\0\0\0\0\noM����2�A�M�t(�����-St티��\0��B�k{���c��dl\0\0��x)�t��ءbf��֢v�T�3����:�QiI�KM�ʔ�͵U��\"q��h��^>�.3���lR2�pzH�Vw����\"����=1V3(aʹ\r_d��I�n�r�	l���;��[�g&i��ղ7�<�\0~x�^\0\0Szo�ݿ���R*o��D�����\\j��l]���4<��[��u�\'G���#`\0\0\0\0\0\0�u�����U�|-].U���ϚY�-�ݳ�\0!��G_sc7���]Y4\0\0\0\0\0s6\'�%��*9�[���e�1�b��W{k�.��y���<4}�7r���]Y8\0�\\6�V#}dLʎ��^$������2��,�+��.q�XCu����{h�C}�e\rd�]雓�l��9}�,/�F��C��<��7p��~>i���\0\0[�/���J����u��_#����U1^���-Ln2�=�����K��u��U�U����Z�\Z��jl+7n�un��qx��ܛ�m���Sw��[���Խ���{\'/#S5S�s]QLr�ap�_���T�Z��\n\n\Zz*t�\nh�i�,L�2�E1Lh�GZ�j-�S����=2\0\0\0\0\0\0\0\0E��4~��T�J�Խ�{U��#Qb��٩��z-\Z��C�|��qL�w[����[�ń��މ�{�5��X���1Q����0ճ��j��i��l�R�>�(�^��.������k�����;���4׭2��hU-����z�V�Q\'|���F�.�*#{�Z��LǦ��?����k.���ר�v���N$D�D؄-˓]Zgl���EW�Mu�N��_ot�س�Gg4��\"N��$��=X�7*�Y�9�^�q˷����6Ec�5X�F��ĉ��D:�1�4C�>�A���\0�b�8��\\Z���W��F��:t�x	l��HY0u��voq*:�\0��f�d\0\0\0\0+�6�n���HF�M�t�����%K�*��O�;��L����+�f����R�q6��R����?[������Y��k�0��n�eJT��M:{8�,�7�9֢�TΘԌ���j��4�e�]�lwjFU�6,�.�\'u[���̉+YR��F���W)�v���\Z�˹0����jn�R=}��;��ߴݣ(Z��r�ra+�3OLyim���E�^)>4�o�#?�[���W?�S�ƪ�6\n�no�F��D����V6�r�\\˘J\\ui��Ci�-��ة\\�.ī�؉���<�j��J�S�!�ΨѢ�k�%[[[U[U%]\\���e֒W�UR\"����;T۷j�T�T�[\\���ݔ�\"���:��7���.�P͆�7j���ə>�U��oyg�>�:2��\Zjx��bG-H�bo#Z�\"y<F���Q�S\Z��נ\0\0\0\0\0��f���yS}\n&vp�|�*�T��L�z��KL�:�|27*6<�cQ.����)Q�W��b�\"���Q���m�~�����J9���^ݯ��ƛN6�oP�L�v���<��y��O4�U���(���W��#r���M�R9�/�-�5�J�\"!�{;.�򈧧_�z����u��kc�cN��|y\Zo�^�U�V>�#��g���0��|�z���\\X�,�齫��g\Z7��\'$�75ս�X�>C�;���w�\0��b�i���Q����\Z�؈�O�ht:(�cDj�z^�\0Szo�ݿ���R*o��D�����\\j�շ颊����m�9`����F��j&{܄�N\"4h],�MQ�\'TDmdz��{�/ҷ򞽫̿�h�\'��q���_�o�Վc�m��4�K�ڱ�~-�ܞ��ƃީ~���{V9�Ŵ{��z��{�/ҷ�j�1���r{S|-�c�x�q°6G9���YzE�}2$,^�����M�I�Knfn�s�:���_�*����*�j��,�����\0��ɀᣯ����v���.�,��\0\0\0\0\09����늭��]2�1s竽�їm}����\Z>���Q��.�,��\0S�0� ��n��U�4e��\"u�O2�oً�薖P�Ӊ�4U�<��{Ֆ�f��A_�<5��sW��Vnښ\'D�v+]���D�\Z����vTSH�g�u�����y4�1:a��ʨ��3�aga�49���:ʩ��)�5����N��J��|������\Z/Ɵ�xǗbkG�\\T��t�����\0Z4ߧjyVYo	^��W{�|w��j��zeD��ߺ/���z�]��P�^W��\0e=�{��ޙ�t񹖘_]?���E�����;��ܧDou�1y�f��\0�&��5W�1%�Y�W�G&{�I�8�x��/9z�W\'MJf7wV��GCZ�9�F1�r�֦�U^$15\"4��U�R-½��Z�娿��S�]�y	��ƙ�K�d������*�G7�rH,@\0\0\0\0\0\0\0\0+9~�j�Y~�H�����Q�*��Q�\0m�N�~�n�s��\'Ի����߽�M�{8z�l��\'^���\\����`�3D�F��l�tMR�Y��Z�MB���Ũ��&K�Ta(ծ��?|���\0��\0����?)p]j�s�_�\ZW���\Z-�%��\0!d�p1���ٽĨ�R����\0\0\0\0�4��?o5!�7�ҫ�_���.@��E<���Y2|����N���K���{��X���{�\rf�Y>��\'S]F#\'7kv7��n+�*�D�V2�oz�ɻEZ*�I���Y��6*�����\"���›�yv�Y�^<���K�m�G�16w�N�x�F��F�\0�ֹ�F��r�֦�US��F��h��\0us&�j�hw�dN���Ӻ�f���]{uB����׵�(����\\�;\r��@�+t[�I���s�ힼjNZ�M���oF��{[#h\0\0\0\0\0\0M鿳v�\0^qH<����;8Z>_pE�`\0\0eRZn���Q�Q�Q��\0u�{��S�&Y��W��g�&RK^��z���(�]��K��К�\r�x�rh�J��{s��c��a�XmnmEz�\'Tݩ�&�-�G�?���$�d�(�?�V�mٳ���*�vy�H���lD$ \0\0\0Szo�ݿ���R*o��D�����\\j�\0\0\0\0\0�tI��o���b��:Nm�H����O\0s�:���_�*����*�j��,�����\0��ɀᣯ����v���.�,��\0\0\0\0\09����늭��]2�1s竽�їm}����\Z>���Q��.�,��\0\0�aKF\"��z��vz�K6I\Z�i{KƋ��M��-~N���Eq�<���&�q%�Β��D��Ӣ��?�=�Oi�A��G�<v@�X����<aTT\\�b��\ZH0>\0\0�ذ� �=�H�ī��;��;y�vl�&�=�=w6C	�o�\'�S����p�\Z�p����R�뗮�u8�{�/�]��o��޹�R����7��\\�GG�rfo\'�\0\0\0\0\0\0\0\0\0󞞞vns��Y�^���)�b%�\"�S\ZZy�F�2}��;����0���hגp��Of���]��r�6�ݓN��I~�g���9���>�y���TXmP*��ʋ2�\0د=ӄ���d|--�ׯ��k\ZƣX�֦�jlD61\Z��\0\0�\"�F���{{NL���LNח@P��/���y�Cǡ��;�c�k\Z�jo56!��#F��}\0\0\0\0�a�TՕ�{w�r\"�ϓ�S���>��7�7��h�ǫ#�6�#j1��֦Hz{����\0\0k����z�}=C����]���]�*�-k�+77�S=M$�-�򪯡ڊ��Y����ל�duY�����7��&\n�4�L�\0�y�u�f?�xNi헤:*��k@�=��\0g!�2}�g�sw�O\\���������W�ƣ���6(�M;\"!%cj�򘧢�F�\0\0\0\0\0\0\0\09i��TYbd����E�&!�)�����>��7�7��h�à(}��o��=\r��t�����\0q���;L�������Z�}���[�6D=O�`\0\0\0\0\0����,�2EM�f��ϓ�U����\nsE����y�4sGa�>��7�\r���h�:���|�\0�������@P��/���7z\Z9���\nsE���CG4vC�h�c��A�h�à(}��o��=\r���8�n�mF7ڵ2Cև�������:7�\\�#s�}U��|���ڦy!�%,n֎1ɼ�F��Ll�z�^�\0\0\0\0��h���SƮ]��ƞw0����(�#r=���&��E>�a�-�\"�װ\0\0\0\0�݂ܰ���*�7G15�]����E[b%�f����]`w�iD�٥��S^r}�dmY���ӣ�|�-�.	E�idw\"�\'�Tϵ����g�[:	�(2Z{\\\Zɵ*,˟v]u2ф�NȆݜ�����:���oQ$L�7��I?@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0��','2012-02-10 16:08:25');
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `site_survey`
--

DROP TABLE IF EXISTS `site_survey`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `site_survey` (
  `SiteSurveyID` smallint(6) NOT NULL,
  `SiteSurveyName` varchar(35) NOT NULL DEFAULT '',
  `SortOrder` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`SiteSurveyID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `site_survey`
--

LOCK TABLES `site_survey` WRITE;
/*!40000 ALTER TABLE `site_survey` DISABLE KEYS */;
INSERT INTO `site_survey` VALUES (1,'Power Supplies',NULL),(2,'Monitors',NULL),(3,'PLCs',NULL),(4,'Computers',NULL),(5,'Vacuum Cleaners',NULL),(6,'Radios',NULL);
/*!40000 ALTER TABLE `site_survey` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `spares`
--

DROP TABLE IF EXISTS `spares`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `spares` (
  `SparesID` int(12) NOT NULL AUTO_INCREMENT,
  `EquipmentID` int(12) NOT NULL DEFAULT '0',
  `Location` varchar(50) DEFAULT '',
  `NewItem` varchar(5) DEFAULT '',
  `Working` varchar(50) DEFAULT '',
  `Cond` varchar(50) DEFAULT NULL,
  `BookedInDateTime` datetime DEFAULT '0000-00-00 00:00:00',
  `BookedOutDateTime` datetime DEFAULT '0000-00-00 00:00:00',
  `PurchasePrice` float(12,2) DEFAULT '0.00',
  `Notes` mediumtext,
  `SellJobID` varchar(50) DEFAULT '',
  `TargetSellPrice` float(12,2) DEFAULT '0.00',
  `ServiceExPrice` float(12,2) DEFAULT '0.00',
  `OEMListPrice` float(12,2) DEFAULT '0.00',
  `OEMServiceExPrice` float(12,2) DEFAULT '0.00',
  `OEMRepairPrice` float(12,2) DEFAULT '0.00',
  `ServiceExDueDate` date DEFAULT '0000-00-00',
  `ServiceExReceived` varchar(50) DEFAULT '',
  `ActualSellPrice` float(12,2) DEFAULT '0.00',
  `SparesSupplierID` int(12) DEFAULT NULL,
  `EbayAuctionNumber` varchar(50) DEFAULT NULL,
  `StatusID` int(12) DEFAULT NULL,
  `BranchID` int(11) DEFAULT NULL,
  PRIMARY KEY (`SparesID`),
  KEY `idxEquipmentID` (`EquipmentID`),
  KEY `idxLocation` (`Location`),
  KEY `idxSellJobID` (`SellJobID`),
  KEY `idxBranchID` (`BranchID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `spares`
--

LOCK TABLES `spares` WRITE;
/*!40000 ALTER TABLE `spares` DISABLE KEYS */;
/*!40000 ALTER TABLE `spares` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `spares_status`
--

DROP TABLE IF EXISTS `spares_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `spares_status` (
  `StatusID` int(12) NOT NULL AUTO_INCREMENT,
  `StatusText` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`StatusID`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `spares_status`
--

LOCK TABLES `spares_status` WRITE;
/*!40000 ALTER TABLE `spares_status` DISABLE KEYS */;
INSERT INTO `spares_status` VALUES (0,'Working & Ready to go'),(1,'Working'),(2,'Untested'),(3,'Not Working'),(4,'Scrap'),(6,'Test');
/*!40000 ALTER TABLE `spares_status` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `spares_suppliers`
--

DROP TABLE IF EXISTS `spares_suppliers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `spares_suppliers` (
  `SparesSupplierID` int(12) NOT NULL DEFAULT '0',
  `SparesSupplierName` varchar(50) DEFAULT NULL,
  `SparesSupplierContact` varchar(50) DEFAULT NULL,
  `SparesSupplierTel` varchar(50) DEFAULT NULL,
  `SparesSupplierEmail` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`SparesSupplierID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `spares_suppliers`
--

LOCK TABLES `spares_suppliers` WRITE;
/*!40000 ALTER TABLE `spares_suppliers` DISABLE KEYS */;
/*!40000 ALTER TABLE `spares_suppliers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `status_com`
--

DROP TABLE IF EXISTS `status_com`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `status_com` (
  `StatusID` smallint(6) NOT NULL,
  `StatusName` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`StatusID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `status_com`
--

LOCK TABLES `status_com` WRITE;
/*!40000 ALTER TABLE `status_com` DISABLE KEYS */;
INSERT INTO `status_com` VALUES (1,'Await Eng Quote'),(2,'Being Comm Quoted'),(3,'Await Go-ahead'),(4,'Chase Go-ahead'),(5,'Finalise Job'),(6,'Await Order No'),(7,'Chase Order No'),(8,'Await Completion'),(9,'To be Delivered'),(10,'Await Timesheets'),(11,'Final Check'),(12,'Job End');
/*!40000 ALTER TABLE `status_com` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `status_eng`
--

DROP TABLE IF EXISTS `status_eng`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `status_eng` (
  `StatusID` smallint(6) NOT NULL,
  `StatusName` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`StatusID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `status_eng`
--

LOCK TABLES `status_eng` WRITE;
/*!40000 ALTER TABLE `status_eng` DISABLE KEYS */;
INSERT INTO `status_eng` VALUES (1,'Being Quoted'),(2,'Being Transferred'),(3,'Await Go-ahead'),(4,'Await Parts'),(5,'Being Repaired'),(6,'Job Completed'),(7,'Being Transfrd Back'),(8,'Await Print Del Note'),(9,'Await Delivery Back'),(10,'Job End');
/*!40000 ALTER TABLE `status_eng` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `suppliers`
--

DROP TABLE IF EXISTS `suppliers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `suppliers` (
  `SupplierID` int(11) NOT NULL AUTO_INCREMENT,
  `SupplierName` varchar(50) DEFAULT NULL,
  `Address1` varchar(50) DEFAULT NULL,
  `Address2` varchar(50) DEFAULT NULL,
  `Address3` varchar(50) DEFAULT NULL,
  `Address4` varchar(50) DEFAULT NULL,
  `Address5` varchar(50) DEFAULT NULL,
  `Postcode` varchar(8) DEFAULT NULL,
  `CountryID` int(11) DEFAULT NULL,
  `Tel` varchar(30) DEFAULT NULL,
  `Fax` varchar(30) DEFAULT NULL,
  `Email` varchar(100) DEFAULT NULL,
  `Contact` varchar(20) DEFAULT NULL,
  `Note` mediumtext,
  `AccountNo` varchar(20) DEFAULT NULL,
  `Active` tinyint(1) NOT NULL DEFAULT '1',
  `DefaultDeliveryCharge` decimal(11,2) DEFAULT NULL,
  `DefaultDeliveryDays` int(11) NOT NULL DEFAULT '1',
  `DiscountPercentage` decimal(4,2) DEFAULT NULL,
  `BranchID` int(11) DEFAULT NULL,
  `OldSupplierID` int(11) DEFAULT NULL,
  PRIMARY KEY (`SupplierID`),
  KEY `idxSupplierName` (`SupplierName`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `suppliers`
--

LOCK TABLES `suppliers` WRITE;
/*!40000 ALTER TABLE `suppliers` DISABLE KEYS */;
INSERT INTO `suppliers` VALUES (1,'RS Components','Birchington Road','Corby','Northants',NULL,NULL,'NN17 9RS',249,'08457 201201',NULL,'sarah@ieruk.co.uk','Mr Ar Es',NULL,NULL,1,'10.00',1,'10.00',1,NULL),(2,'CPC','Faraday Drive','Preston','Erdington','',NULL,'PR2 9PP',249,'08447 88 00 88','08447 88 00 89','lloyd@ieruk.co.uk','Christine Parker Coy',NULL,NULL,1,'8.00',3,'20.00',1,NULL),(3,'IT Partnership','Drybank Farm','Ettington','Stratford upon Avon',NULL,NULL,'CV37 7PD',249,'01789 336400',NULL,'helpme@itpartnership.com','Neil Stainton',NULL,'ITP10001',1,'11.00',5,'12.00',1,NULL),(4,'Farnell','Maybrook Industrial Estate','Castleton Road','Leeds',NULL,NULL,'LS12 2EN',249,'08447 11 11 11','08447 11 11 12','helpme@itpartnership.com','Mrs Farnell',NULL,'FAR1234',1,'7.99',3,'5.00',1,NULL),(5,'Rapid Electronics','Severalls Lane','Colchester','Essex',NULL,NULL,'CO4 5JS',249,'01206 751166',NULL,'helpme@itpartnership.com','Eatme Quiche',NULL,'RP734844',1,'4.95',1,NULL,1,NULL),(6,'Maplin Electronics','PO BOX 534','Manvers','Rotherham',NULL,NULL,'S63 3DH',249,'0844 557 6000','0844 557 6001','helpme@itpartnership.com',NULL,NULL,'C01223456',1,'2.99',3,NULL,1,NULL),(7,'Hyperflight','Drybank Farm','Fosse Way','Ettington','Stratford-upon-Avon','Warwickshire','CV37 7PD',249,'01789 336166',NULL,'sales@hyperflight.co.uk','Neil Stainton',NULL,'12334',1,'4.99',3,NULL,1,NULL),(8,'Aria Technology Ltd','Aria House','Belle Vue Avenue','Pottery Lane','Manchester',NULL,'M12 4AS',249,'0161 248 1638',NULL,'helpme@itpartnership.com',NULL,NULL,'AR10004',1,'6.95',1,'10.00',1,NULL),(9,'Overclockers UK (Esnet Ltd)','4 Axis','Millennium Way','High Carr Business Park','Newcastle-under-Lyme','Staffordshire','ST5 7UF',249,'0871 200 5052','0871 200 5055',NULL,NULL,NULL,'OC200993',1,'8.00',1,NULL,1,NULL),(10,'Ebuyer (UK) Limited','Howden','East Yorkshire',NULL,NULL,NULL,'DN14 7UW',249,'0871 521 33 00',NULL,NULL,NULL,NULL,'EB23949553',1,'0.00',5,NULL,1,NULL),(11,'RS',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,1,NULL,1,NULL,1,NULL);
/*!40000 ALTER TABLE `suppliers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `timesheets`
--

DROP TABLE IF EXISTS `timesheets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `timesheets` (
  `UserID` int(11) NOT NULL,
  `WorkDate` date NOT NULL,
  `WorkStartTime` time NOT NULL,
  `WorkEndTime` time NOT NULL,
  `JobID` int(11) NOT NULL,
  `ChargeRate` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`UserID`,`WorkDate`,`WorkStartTime`),
  KEY `idxUserID` (`UserID`),
  KEY `idxWorkDate` (`WorkDate`),
  KEY `idxJobID` (`JobID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `timesheets`
--

LOCK TABLES `timesheets` WRITE;
/*!40000 ALTER TABLE `timesheets` DISABLE KEYS */;
INSERT INTO `timesheets` VALUES (1,'2011-12-16','09:00:00','10:00:00',1001,'A'),(5,'2006-08-17','12:00:00','13:00:00',1006,'A'),(2,'2006-08-17','12:50:00','13:50:00',1007,'B'),(3,'2006-08-10','08:00:00','09:00:00',1003,'A'),(3,'2006-08-13','08:00:00','10:00:00',1011,'A'),(3,'2006-08-13','10:00:00','12:00:00',1011,'A');
/*!40000 ALTER TABLE `timesheets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `translation`
--

DROP TABLE IF EXISTS `translation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `translation` (
  `TranslationID` int(11) NOT NULL AUTO_INCREMENT,
  `English` varchar(255) DEFAULT NULL,
  `German` varchar(255) DEFAULT NULL,
  `French` varchar(255) DEFAULT NULL,
  `Italian` varchar(255) DEFAULT NULL,
  `Spanish` varchar(255) DEFAULT NULL,
  `Polish` varchar(255) DEFAULT NULL,
  `Dutch` varchar(255) DEFAULT NULL,
  `Russian` varchar(255) DEFAULT NULL,
  `Swedish` varchar(255) DEFAULT NULL,
  `Greek` varchar(255) DEFAULT NULL,
  `Czech` varchar(255) DEFAULT NULL,
  `Portuguese` varchar(255) DEFAULT NULL,
  `Hungarian` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`TranslationID`),
  UNIQUE KEY `idxEnglish` (`English`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `translation`
--

LOCK TABLES `translation` WRITE;
/*!40000 ALTER TABLE `translation` DISABLE KEYS */;
/*!40000 ALTER TABLE `translation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ucode_jobs`
--

DROP TABLE IF EXISTS `ucode_jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ucode_jobs` (
  `UCodeID` int(11) NOT NULL,
  `BranchID` int(11) NOT NULL,
  `JobID` int(11) NOT NULL,
  PRIMARY KEY (`UCodeID`,`BranchID`),
  KEY `idxJobID` (`JobID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ucode_jobs`
--

LOCK TABLES `ucode_jobs` WRITE;
/*!40000 ALTER TABLE `ucode_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ucode_jobs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ucodes`
--

DROP TABLE IF EXISTS `ucodes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ucodes` (
  `UCodeID` int(11) NOT NULL AUTO_INCREMENT,
  `UCode` varchar(11) NOT NULL DEFAULT '' COMMENT 'Size has to be 11 max to match size of Job ID',
  `Description` varchar(100) DEFAULT NULL,
  `SortOrder` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Allows a UCode to take priority for display purposes when same Job has more than 1 UCode',
  PRIMARY KEY (`UCodeID`),
  UNIQUE KEY `idxUCode` (`UCode`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ucodes`
--

LOCK TABLES `ucodes` WRITE;
/*!40000 ALTER TABLE `ucodes` DISABLE KEYS */;
INSERT INTO `ucodes` VALUES (1,'U1001','sickness',2);
/*!40000 ALTER TABLE `ucodes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_types`
--

DROP TABLE IF EXISTS `user_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_types` (
  `UserTypeID` int(11) NOT NULL AUTO_INCREMENT,
  `UserTypeName` varchar(20) NOT NULL DEFAULT '',
  `AccessLevel` smallint(6) NOT NULL,
  PRIMARY KEY (`UserTypeID`),
  UNIQUE KEY `idxUserTypeName` (`UserTypeName`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_types`
--

LOCK TABLES `user_types` WRITE;
/*!40000 ALTER TABLE `user_types` DISABLE KEYS */;
INSERT INTO `user_types` VALUES (1,'God',10),(2,'Super',9),(3,'Manager',7),(4,'Commercial',5),(5,'Engineer',3);
/*!40000 ALTER TABLE `user_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `UserID` int(11) NOT NULL AUTO_INCREMENT,
  `UserName` varchar(40) NOT NULL DEFAULT '',
  `Abbrev` varchar(6) NOT NULL DEFAULT '',
  `Password` varchar(40) DEFAULT NULL,
  `UserTypeID` int(11) NOT NULL,
  `BranchID` int(11) DEFAULT NULL,
  `Active` tinyint(1) NOT NULL DEFAULT '1',
  `AllowLogin` tinyint(1) NOT NULL DEFAULT '1',
  `AllowTimesheets` tinyint(1) NOT NULL DEFAULT '1',
  `CanQuote` tinyint(1) NOT NULL DEFAULT '1',
  `CanRepair` tinyint(1) NOT NULL DEFAULT '1',
  `RateA` decimal(6,2) NOT NULL DEFAULT '0.00',
  `RateB` decimal(6,2) NOT NULL DEFAULT '0.00',
  `RateC` decimal(6,2) NOT NULL DEFAULT '0.00',
  `Email` varchar(100) DEFAULT NULL,
  `EmailSignature` mediumtext,
  `Mobile` varchar(20) DEFAULT NULL,
  `Tel` varchar(20) DEFAULT NULL,
  `TelExtension` varchar(10) DEFAULT NULL,
  `SkypeUserName` varchar(32) DEFAULT NULL,
  `CRMUserType` varchar(30) DEFAULT NULL,
  `CRMAllowLogin` tinyint(1) NOT NULL DEFAULT '1',
  `CRMStartPage` varchar(50) DEFAULT NULL,
  `CRMLinkColor` varchar(20) DEFAULT NULL,
  `Notes` mediumtext,
  `Bench` varchar(20) DEFAULT NULL,
  `PinNumber` varchar(10) DEFAULT NULL,
  `LastLogin` datetime DEFAULT NULL,
  `LoginCount` int(11) NOT NULL DEFAULT '0',
  `AutoLogOffEnabled` tinyint(1) DEFAULT '0',
  `AutoLogOffMins` smallint(6) NOT NULL DEFAULT '15' COMMENT 'Added in version 4.2.17, Schema 5',
  PRIMARY KEY (`UserID`),
  UNIQUE KEY `idxUserNameAndBranch` (`UserName`,`BranchID`),
  UNIQUE KEY `idxAbbrevAndBranch` (`Abbrev`,`BranchID`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='Added in version 4.2.17, Schema 5';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Demo','DEM','202CB962AC59075B964B07152D234B70',1,1,1,1,1,1,1,'60.00','70.00','80.00','helpme@itpartnership.com',NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'2016-03-18 11:41:29',320,0,15),(2,'Engineer','ENG','202CB962AC59075B964B07152D234B70',5,1,1,1,1,1,1,'60.00','70.00','80.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'2012-02-10 14:54:11',10,0,15),(3,'Commercial','COM','202CB962AC59075B964B07152D234B70',4,1,1,1,1,1,1,'60.00','70.00','80.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'2012-02-10 14:50:39',5,0,15),(4,'Manager','MAN','202CB962AC59075B964B07152D234B70',3,1,1,1,1,1,1,'60.00','70.00','80.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'2012-02-10 15:36:15',8,0,15),(5,'Super','SUP','202CB962AC59075B964B07152D234B70',2,1,1,1,1,1,1,'60.00','70.00','80.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'2013-08-07 11:01:40',75,0,15),(0,'System','SYS','sjhdhs*::@ss',5,1,0,0,0,0,0,'0.00','0.00','0.00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,15);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping routines for database 'jms_demo_master'
--
/*!50003 DROP FUNCTION IF EXISTS `ClearLock` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `ClearLock`(
        nLockID INTEGER ( 11 ) ,
        sComputerName VARCHAR ( 20 )
    ) RETURNS int(11)
BEGIN
  # Version 4.0.32, 11/8/2007

  # if computer name not specified then delete the specified LockID
  # else delete all lock records for given computer name
  # also set Released DateTime field in lock_history
  # UPDATE appears before DELETE because of RETURN ROW_COUNT()
  IF sComputerName = "" THEN
    UPDATE lock_history SET Released = NOW() WHERE LockID = nLockID;
    DELETE FROM locks WHERE LockID = nLockID;
  ELSE
    UPDATE lock_history SET Released = NOW() WHERE ComputerName = sComputerName AND Released IS NULL;
    DELETE FROM locks WHERE ComputerName = sComputerName;
  END IF;

  # return the number of records that were deleted
  RETURN ROW_COUNT();
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcDaysToComplete` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcDaysToComplete`(
        sJobID CHAR(12)
    ) RETURNS int(12)
BEGIN
    DECLARE nDaysToComplete INT(12) DEFAULT 0;
    SELECT (TO_DAYS(DateTimeRepairComplete)-TO_DAYS(DateTimeGoAheadGiven)) INTO nDaysToComplete FROM jobs WHERE JobID=sJobID;
    RETURN nDaysToComplete;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetAdjustedSalesValue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetAdjustedSalesValue`(
        nInvoiceValue DOUBLE,
        nMargin DOUBLE,
        nJobTypeID INT(12)
    ) RETURNS double
BEGIN
DECLARE nAdjustedSalesValue DOUBLE DEFAULT 0.00;
IF nJobTypeID=1 OR nJobTypeID=4 OR nJobTypeID=6 OR nJobTypeID=8 OR nJobTypeID=10 THEN
    SET nAdjustedSalesValue=nInvoiceValue;
    END IF;
    
IF nJobTypeID=2 OR nJobTypeID=3 OR nJobTypeID=12 THEN
    SET nAdjustedSalesValue=(nMargin*2);
    END IF;
    
RETURN nAdjustedSalesValue;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetBranchNameByBranchID` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetBranchNameByBranchID`(
        nBranchID INT(12)
    ) RETURNS varchar(200) CHARSET latin1
BEGIN
DECLARE sBranchName VARCHAR(200) DEFAULT "UNKNOWN";
SELECT BranchName INTO sBranchName FROM branches WHERE BranchID=nBranchID;
RETURN sBranchName;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetContractValue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetContractValue`(
        sJobID CHAR(12)
    ) RETURNS double
BEGIN
DECLARE nResult DOUBLE DEFAULT 0.00;
SELECT SellPrice INTO nResult FROM jobs WHERE InvoiceNet=0 AND JobID=sJobID AND CustomerID IN (1709,2150,1270,2135,678,336,1897);
RETURN nResult;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetCustomerName` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetCustomerName`(
        sJobID CHAR(12)
    ) RETURNS varchar(200) CHARSET latin1
BEGIN
	DECLARE sCustomerName VARCHAR(200) DEFAULT "UNKNOWN";
	SELECT customers.CustomerName INTO sCustomerName FROM customers JOIN jobs ON customers.CustomerID=jobs.CustomerID WHERE jobs.JobID=sJobID;
	RETURN sCustomerName;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetDaysOverdue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetDaysOverdue`(
        `sJobID` CHAR(12),
        `sNowDate` DATE
    ) RETURNS int(12)
BEGIN
    DECLARE nJobClass INT(12) DEFAULT 0;
    DECLARE nDays INT(12) DEFAULT 0;
    DECLARE nDiffDays INT(12) DEFAULT 0;
    DECLARE nOverdueDays INT(12) DEFAULT 0;
   DECLARE dNowDate DATE;
    SELECT DeliveryDays INTO nDays FROM jobs WHERE JobID=sJobID;
    IF nDays IS NULL THEN
        SELECT JobClassID INTO nJobClass FROM jobs WHERE JobID=sJobID;
        SELECT RepairTimeDays INTO nDays FROM job_classes WHERE JobClassID=nJobClass;
        END IF;
        
        IF sNowDate="" THEN
            SET dNowDate=CURRENT_DATE;
            END IF;
            
        IF sNowDate<>"" THEN
            SET dNowDate=sNowDate;
            END IF;
            
    SELECT (TO_DAYS(dNowDate)-TO_DAYS(DateTimeGoAheadGiven)) INTO nDiffDays FROM jobs WHERE JobID=sJobID;
    IF nDiffDays>nDays THEN
        SET nOverdueDays=(nDiffDays-nDays);
        END IF;
    RETURN nOverdueDays;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetDaysOverdueQuote` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetDaysOverdueQuote`(
        sJobID CHAR(12),
        sNowDate DATE
    ) RETURNS int(12)
BEGIN
    DECLARE nJobClass INT(12) DEFAULT 0;
    DECLARE nDays INT(12) DEFAULT 0;
    DECLARE nDiffDays INT(12) DEFAULT 0;
    DECLARE nOverdueDays INT(12) DEFAULT 0;
    DECLARE dNowDate DATE;
    SELECT DeliveryDays INTO nDays FROM jobs WHERE JobID=sJobID;
    IF nDays IS NULL THEN
        SELECT JobClassID INTO nJobClass FROM jobs WHERE JobID=sJobID;
        SELECT RepairTimeDays INTO nDays FROM job_classes WHERE JobClassID=nJobClass;
        END IF;
        
        IF sNowDate="" THEN
            SET dNowDate=CURRENT_DATE;
            END IF;
            
        IF sNowDate<>"" THEN
            SET dNowDate=sNowDate;
            END IF;
            
    SELECT (TO_DAYS(dNowDate)-TO_DAYS(DateTimeOfEntry)) INTO nDiffDays FROM jobs WHERE JobID=sJobID;
    IF nDiffDays>nDays THEN
        SET nOverdueDays=(nDiffDays-nDays);
        END IF;
    RETURN nOverdueDays;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetDueDate` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetDueDate`(
        sJobID CHAR(12)
    ) RETURNS varchar(10) CHARSET latin1
BEGIN
    DECLARE nJobClass INT(12) DEFAULT 0;
    DECLARE nDays INT(12) DEFAULT 0;
    DECLARE sDueDate VARCHAR(10) DEFAULT "";
    SELECT DeliveryDays INTO nDays FROM jobs WHERE JobID=sJobID;
    IF nDays IS NULL THEN
        SELECT JobClassID INTO nJobClass FROM jobs WHERE JobID=sJobID;
        SELECT RepairTimeDays INTO nDays FROM job_classes WHERE JobClassID=nJobClass;
        END IF;
    SELECT DATE_FORMAT(DATE_ADD(DateTimeGoAheadGiven,INTERVAL nDays DAY),'%d/%m/%Y') INTO sDueDate FROM jobs WHERE JobID=sJobID;
    RETURN sDueDate;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetEquipString` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetEquipString`(
        sJobID CHAR(12)
    ) RETURNS varchar(250) CHARSET latin1
BEGIN
    DECLARE sEquipString VARCHAR(250) DEFAULT "Cannot find Equipment Record!";
    DECLARE nManufacturerID INT(12) DEFAULT 0;
    DECLARE sManufacturer VARCHAR(100) DEFAULT "UNKNOWN";
    DECLARE sModelNumber VARCHAR(100) DEFAULT "UNKNOWN";
    DECLARE nEquipmentID INT(15) DEFAULT 0;
    SELECT EquipmentID INTO nEquipmentID FROM jobs WHERE JobID=sJobID;
    SELECT ManufacturerID INTO nManufacturerID FROM equipment WHERE EquipmentID=nEquipmentID;
    SELECT ManufacturerName INTO sManufacturer FROM manufacturers WHERE ManufacturerID=nManufacturerID;
    SELECT ModelNumber INTO sModelNumber FROM equipment WHERE EquipmentID=nEquipmentID;
    SET sEquipString=CONCAT(sManufacturer," ",sModelNumber);
    RETURN sEquipString;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetFinalOutcome` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetFinalOutcome`(
        sJobID CHAR(12)
    ) RETURNS varchar(50) CHARSET latin1
BEGIN
DECLARE sFinalOutcome VARCHAR(50) DEFAULT "Final Outcome not set!";
DECLARE nFinalOutcomeID INT(12) DEFAULT 0;
SELECT FinalOutcomeID INTO nFinalOutcomeID FROM jobs WHERE JobID=sJobID;
SELECT FinalOutcome INTO sFinalOutcome FROM final_outcomes WHERE FinalOutcomeID=nFinalOutcomeID;
RETURN sFinalOutcome;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetInvoiceValue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetInvoiceValue`(
        sJobID CHAR(12)
    ) RETURNS double
BEGIN
DECLARE nInvoiceValue DOUBLE DEFAULT 0.00;
SELECT (NumberOff*QuotedPrice) INTO nInvoiceValue FROM jobs WHERE JobID=sJobID;
RETURN nInvoiceValue;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetJobType` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetJobType`(
        sJobID CHAR(12)
    ) RETURNS varchar(50) CHARSET latin1
BEGIN
DECLARE nJobTypeID INT(12) DEFAULT 0;
DECLARE sJobType VARCHAR(50) DEFAULT "Job Type not set!";
SELECT JobTypeID INTO nJobTypeID FROM jobs WHERE JobID=sJobID;
SELECT JobType INTO sJobType FROM job_types WHERE JobTypeID=nJobTypeID;
RETURN sJobType;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourCost` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourCost`(
        sJobID CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + nHours * nUseRate;
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalLabour;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourCostsForBranch` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourCostsForBranch`(
        sJobID CHAR(12),
        sBranchID CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t JOIN users u ON t.UserID=u.UserID WHERE t.jobid=sJobID AND u.BranchID=sBranchID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + (nHours * nUseRate);
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalLabour;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourCostsNotForBranch` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourCostsNotForBranch`(
        sJobID CHAR(12),
        sBranchID CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t JOIN users u ON t.UserID=u.UserID WHERE t.jobid=sJobID AND u.BranchID<>sBranchID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + (nHours * nUseRate);
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalLabour;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourHours` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourHours`(
        sJobID CHAR(12)
    ) RETURNS double
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + nHours * nUseRate;
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalHours;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourHoursByRate` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourHoursByRate`(
        sJobID CHAR(12),
        sRate CHAR(12)
    ) RETURNS double
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID AND t.ChargeRate = sRate;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + nHours * nUseRate;
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalHours;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourHoursByRateEOM` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourHoursByRateEOM`(
        sJobID CHAR(12),
        sRate CHAR(12),
        sDate DATE
    ) RETURNS double
BEGIN
  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(9,2) DEFAULT 0;
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID AND t.ChargeRate = sRate AND t.workdate <= sDate;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
  OPEN curTimesheetsWithCharge;
  nextrecord: LOOP
    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;
    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;
    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + nHours * nUseRate;
  END LOOP nextrecord;
  CLOSE curTimesheetsWithCharge;
  RETURN nTotalHours;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLabourMaterialTotal` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLabourMaterialTotal`(
        sJobID CHAR(12)
    ) RETURNS decimal(11,2)
BEGIN

# (SS,22/2/12) new version for new ordering system which calls funcGetMaterialCostNew instead of funcGetMaterialCost

DECLARE nLabourCost DOUBLE DEFAULT 0.00;
DECLARE nMaterialCost DOUBLE DEFAULT 0.00;
DECLARE nTotalCost DOUBLE DEFAULT 0.00;

SELECT funcGetLabourCost(sJobID) INTO nLabourCost;
SELECT funcGetMaterialCostNew(sJobID) INTO nMaterialCost;

SET nTotalCost=nLabourCost+nMaterialCost;

RETURN nTotalCost;

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetLossOnJob` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetLossOnJob`(
        sJobID CHAR(12)
    ) RETURNS float(9,2)
BEGIN
    DECLARE bFinished INTEGER DEFAULT 0;
    DECLARE nMaterialCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nLabourCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nTotalCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nInvoicePrice FLOAT(9,2) DEFAULT 0.00;
    DECLARE nLossOnJob FLOAT(9,2) DEFAULT 0.00;
    DECLARE sChargeRate CHAR(1) DEFAULT "";
     DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
      DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
      DECLARE curTimesheetsWithCharge CURSOR FOR
           SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
         HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
         FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;
    DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
      OPEN curTimesheetsWithCharge;
          nextrecord: LOOP
        FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
        IF bFinished THEN
              LEAVE nextrecord;
            END IF;
        IF sChargeRate = "A" THEN
              SET nUseRate = nRateA;
        ELSEIF sChargeRate = "B" THEN
              SET nUseRate = nRateB;
        ELSEIF sChargeRate = "C" THEN
              SET nUseRate = nRateC;
        ELSE
              SET nUseRate = 0;
        END IF;
        SET nTotalHours = nTotalHours + nHours;
        SET nLabourCost = nLabourCost + nHours * nUseRate;
          END LOOP nextrecord;
      CLOSE curTimesheetsWithCharge;
    SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items WHERE JobID = sJobID;
      IF nMaterialCost IS NULL THEN
        SET nMaterialCost = 0;
      END IF;
      SET nTotalCost=nLabourCost+nMaterialCost;
      SELECT (NumberOff*QuotedPrice)+QuotedDelivery INTO nInvoicePrice FROM jobs WHERE JobID=sJobID;
      IF nInvoicePrice IS NULL THEN
          SET nInvoicePrice=0;
      END IF;
      IF nInvoicePrice<nTotalCost THEN
          SET nLossOnJob=(nTotalCost-nInvoicePrice);
      END IF;
    RETURN nLossOnJob;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetMaterialCost` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetMaterialCost`(
        sJobID CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE nMaterialCost DECIMAL(9,2);
  SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items WHERE JobID = sJobID;
  IF nMaterialCost IS NULL THEN
    SET nMaterialCost = 0;
  END IF;
  RETURN nMaterialCost;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetMaterialCostNew` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetMaterialCostNew`(
        sJobID CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  # Serial: 2008-12-19-01

  DECLARE nMaterialCost DECIMAL(9,2);
  SELECT SUM(QtyRequired * UnitPrice) INTO nMaterialCost FROM job_material WHERE JobID = sJobID;  
  IF nMaterialCost IS NULL THEN
    SET nMaterialCost = 0;
  END IF;
  RETURN nMaterialCost;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetMaterialCostNotBranchID` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetMaterialCostNotBranchID`(
        `sJobID` CHAR(12),
        `sBranchID` CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE nMaterialCost DECIMAL(9,2);
  #SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items JOIN orders ON order_items.OrderID=orders.OrderID WHERE order_items.JobID=sJobID AND orders.BranchID<>sBranchID;
  # (ITP,SS,2/10/12) originally created by Lektronix, replaced above with following to work with new orders system, to produce correct figures for report "Zero-Value Invoices (Detailed) by Job Type"
  SELECT SUM(QtyRequired * UnitPrice) INTO nMaterialCost FROM job_material WHERE JobID = sJobID AND BranchID <> sBranchID;
    
  IF nMaterialCost IS NULL THEN
    SET nMaterialCost = 0;
  END IF;
  RETURN nMaterialCost;

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetMaterialCostWithBranchID` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetMaterialCostWithBranchID`(
        `sJobID` CHAR(12),
        `sBranchID` CHAR(12)
    ) RETURNS decimal(9,2)
BEGIN
  DECLARE nMaterialCost DECIMAL(9,2);
  #SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items JOIN orders ON order_items.OrderID=orders.OrderID WHERE order_items.JobID=sJobID AND orders.BranchID=sBranchID;
  # (ITP,SS,2/10/12) originally created by Lektronix, replaced above with following to work with new orders system, to produce correct figures for report "Zero-Value Invoices (Detailed) by Job Type"
  SELECT SUM(QtyRequired * UnitPrice) INTO nMaterialCost FROM job_material WHERE JobID = sJobID AND BranchID = sBranchID;
  
  IF nMaterialCost IS NULL THEN
    SET nMaterialCost = 0;
  END IF;
  RETURN nMaterialCost;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetProfitOnJob` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetProfitOnJob`(
        sJobID CHAR(12)
    ) RETURNS float(9,2)
BEGIN
    DECLARE bFinished INTEGER DEFAULT 0;
    DECLARE nMaterialCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nLabourCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nTotalCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nInvoicePrice FLOAT(9,2) DEFAULT 0.00;
    DECLARE nProfitOnJob FLOAT(9,2) DEFAULT 0.00;
    DECLARE sChargeRate CHAR(1) DEFAULT "";
     DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
      DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
      DECLARE curTimesheetsWithCharge CURSOR FOR
           SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
         HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
         FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;
    DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;
      OPEN curTimesheetsWithCharge;
          nextrecord: LOOP
        FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
        IF bFinished THEN
              LEAVE nextrecord;
            END IF;
        IF sChargeRate = "A" THEN
              SET nUseRate = nRateA;
        ELSEIF sChargeRate = "B" THEN
              SET nUseRate = nRateB;
        ELSEIF sChargeRate = "C" THEN
              SET nUseRate = nRateC;
        ELSE
              SET nUseRate = 0;
        END IF;
        SET nTotalHours = nTotalHours + nHours;
        SET nLabourCost = nLabourCost + nHours * nUseRate;
          END LOOP nextrecord;
      CLOSE curTimesheetsWithCharge;
    SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items WHERE JobID = sJobID;
      IF nMaterialCost IS NULL THEN
        SET nMaterialCost = 0;
      END IF;
      SET nTotalCost=nLabourCost+nMaterialCost;
      SELECT (NumberOff*QuotedPrice)+QuotedDelivery INTO nInvoicePrice FROM jobs WHERE JobID=sJobID;
      IF nInvoicePrice IS NULL THEN
          SET nInvoicePrice=0;
      END IF;
      IF nInvoicePrice>nTotalCost THEN
          SET nProfitOnJob=(nInvoicePrice-nTotalCost);
      END IF;
    RETURN nProfitOnJob;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetRepairEngineer` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetRepairEngineer`(
        sJobID CHAR(12)
    ) RETURNS varchar(100) CHARSET latin1
BEGIN
    DECLARE sEngineerName VARCHAR(100) DEFAULT "Repair Engineer not set!";
    SELECT users.Username INTO sEngineerName FROM users JOIN jobs ON users.UserID=jobs.RepairedByID WHERE jobs.JobID=sJobID;
    RETURN sEngineerName;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetWarrantyCosts` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetWarrantyCosts`(
        sJobID CHAR(12)
    ) RETURNS float(9,2)
BEGIN
    DECLARE bFinished INTEGER DEFAULT 0;
    DECLARE nWarrantyCost FLOAT(9,2) DEFAULT 0.00;
    DECLARE nJobID CHAR(12) DEFAULT "";
    DECLARE nCWJobID CHAR(12) DEFAULT "";
    DECLARE nSubtotal FLOAT(9,2) DEFAULT 0.00;
    DECLARE curWarrantyJobs CURSOR FOR SELECT JobID,CWJobID FROM jobs WHERE CWJobID=sJobID;
    DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished=1;
      OPEN curWarrantyJobs;
      nextrecord: LOOP
          FETCH curWarrantyJobs INTO nJobID,nCWJobID;
        IF bFinished=1 THEN
              LEAVE nextrecord;
          END IF;
        SELECT funcGetMaterialCost(JobID)+funcGetLabourCost(JobID) INTO nSubtotal FROM jobs WHERE JobID=nJobID;
        IF nSubtotal IS NULL THEN
            SET nSubtotal=0.00;
        END IF;
        SET nWarrantyCost=nWarrantyCost+nSubtotal;
    END LOOP nextrecord;
      CLOSE curWarrantyJobs;
    RETURN nWarrantyCost;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetWarrantyCreatedEngineer` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetWarrantyCreatedEngineer`(
        sJobID CHAR(12)
    ) RETURNS varchar(100) CHARSET latin1
BEGIN
    DECLARE sEngineerName VARCHAR(100) DEFAULT "";
    DECLARE nCWJobID CHAR(12) DEFAULT "";
    SELECT CWJobID INTO nCWJobID FROM jobs WHERE JobID=sJobID;
    IF nCWJobID IS NOT NULL THEN
        SELECT users.Username INTO sEngineerName FROM users JOIN jobs ON users.UserID=jobs.RepairedByID WHERE jobs.JobID=nCWJobID;
        END IF;
    RETURN sEngineerName;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcGetWorkshopInvoiceValue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcGetWorkshopInvoiceValue`(
        sJobID CHAR(12),
        sBranchName CHAR(50)
    ) RETURNS double
BEGIN
DECLARE nJobTypeID INT(12) DEFAULT 0;
DECLARE nPassedBranchID INT(12) DEFAULT 0;
DECLARE nCommBranchID INT(12) DEFAULT 0;
DECLARE nRepairBranchID INT(12) DEFAULT 0;
DECLARE nNumberOff INT(12) DEFAULT 0;
DECLARE nQuotedPrice DOUBLE DEFAULT 0.00;
DECLARE nFinalValue DOUBLE DEFAULT 0.00;
SELECT BranchID INTO nPassedBranchID FROM branches WHERE BranchName=sBranchName;
SELECT
    JobTypeID,BranchID,RepairBranchID,NumberOff,QuotedPrice
INTO
    nJobTypeID,nCommBranchID,nRepairBranchID,nNumberOff,nQuotedPrice
FROM
    jobs WHERE JobID=sJobID;
    
SET nFinalValue=(nNumberOff*nQuotedPrice);
    
IF nJobTypeID=17 THEN
    SET nFinalValue=(nNumberOff*nQuotedPrice)*0.2727;
    END IF;
    
IF nJobTypeID=18 THEN
    SET nFinalValue=(nNumberOff*nQuotedPrice)*0.5714;
    END IF;
IF nJobTypeID=19 THEN
        SET nFinalValue=(nNumberOff*nQuotedPrice)*0.15;
        END IF;
IF nJobTypeID=20 THEN
        SET nFinalValue=(nNumberOff*nQuotedPrice)*0.4;
        END IF;
    
IF nJobTypeID<>17 AND nJobTypeID<>18 AND nJobTypeID<>19 AND nJobTypeID<>20 AND nCommBranchID<>nRepairBranchID AND nRepairBranchID=nPassedBranchID THEN
    SET nFinalValue=(nNumberOff*nQuotedPrice)*0.80;
    END IF;
IF nJobTypeID<>17 AND nJobTypeID<>18 AND nJobTypeID<>19 AND nJobTypeID<>20 AND nCommBranchID<>nRepairBranchID AND nCommBranchID=nPassedBranchID THEN
    SET nFinalValue=(nNumberOff*nQuotedPrice)*0.20;
    END IF;
SET nFinalValue=ROUND(nFinalValue,2);
RETURN nFinalValue;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcIsJobOverdue` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcIsJobOverdue`(
        sJobID CHAR(12),
        dNowDate DATE
    ) RETURNS varchar(10) CHARSET latin1
BEGIN
    DECLARE sResult VARCHAR(10) DEFAULT "FALSE";
    DECLARE nJobClass INT(12) DEFAULT 0;
    DECLARE nDays INT(12) DEFAULT 0;
    DECLARE nDiffDays INT(12) DEFAULT 0;
    SELECT DeliveryDays INTO nDays FROM jobs WHERE JobID=sJobID;
    IF nDays IS NULL THEN
        SELECT JobClassID INTO nJobClass FROM jobs WHERE JobID=sJobID;
        SELECT RepairTimeDays INTO nDays FROM job_classes WHERE JobClassID=nJobClass;
        END IF;
    IF dNowDate="" THEN
        SET dNowDate=CURRENT_DATE;
        END IF;
    SELECT (TO_DAYS(dNowDate)-TO_DAYS(DateTimeGoAheadGiven)) INTO nDiffDays FROM jobs WHERE JobID=sJobID;
    IF nDiffDays>nDays THEN
        SET sResult="TRUE";
        END IF;
    RETURN sResult;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcIsJobQuotation` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcIsJobQuotation`(
        sJobID INT(12)
    ) RETURNS int(12)
BEGIN
DECLARE nResult INT(12) DEFAULT 0;
SELECT NumberOff INTO nResult FROM jobs JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID WHERE JobID=sJobID AND job_types.JobType="Quotation";
RETURN nResult;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcJobBecomesWarranty` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcJobBecomesWarranty`(
        sJobID CHAR(12)
    ) RETURNS int(12)
BEGIN
    DECLARE nWarrantyJobs INT(12);
    DECLARE nReturn INT(12);
    SET nWarrantyJobs=0;
    SET nReturn=0;
    SELECT COUNT(JobID) INTO nWarrantyJobs FROM jobs WHERE CWJobID=sJobID;
    IF nWarrantyJobs IS NULL THEN
        SET nReturn=0;
    END IF;
    IF nWarrantyJobs>0 THEN
        SET nReturn=nWarrantyJobs;
    END IF;
    RETURN nReturn;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcJobBecomesWarrantyItemCount` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcJobBecomesWarrantyItemCount`(
        sJobID CHAR(12)
    ) RETURNS int(12)
BEGIN
    DECLARE nResult INT(12);
    SELECT SUM(NumberOff) INTO nResult FROM jobs WHERE CWJobID=sJobID;
    IF nResult IS NULL THEN
        SET nResult=0;
    END IF;
    RETURN nResult;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcJobsInCategoryForCustomer` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcJobsInCategoryForCustomer`(
        sCategoryName CHAR(50),
        nCustomerID INT(12)
    ) RETURNS int(12)
BEGIN
DECLARE nJobsInCategory INT(12) DEFAULT 0;
DECLARE nCategoryID INT(12) DEFAULT 0;
SELECT CategoryID INTO nCategoryID FROM categories WHERE CategoryName=sCategoryName;
SELECT COUNT(JobID) INTO nJobsInCategory FROM jobs JOIN    equipment ON jobs.EquipmentID=equipment.EquipmentID WHERE equipment.CategoryID=nCategoryID AND jobs.CustomerID=nCustomerID;
RETURN nJobsInCategory;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `funcMonthEndMaterialCost` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `funcMonthEndMaterialCost`(
        sJobID CHAR(6),
        dEndDate DATE
    ) RETURNS decimal(9,2)
    DETERMINISTIC
BEGIN

    DECLARE nMaterialCost DECIMAL(9,2) DEFAULT 0.00;
    DECLARE nGetIn DATE DEFAULT '1999-12-31';

    #SELECT SUM(QuantityOrdered * UnitPrice) INTO nMaterialCost FROM order_items WHERE (order_items.JobID = sJobID) AND (order_items.itemdeliverydate IS NOT NULL AND order_items.itemdeliverydate <= dEndDate);
    #(SS,6/3/12) replaced above with following
    SELECT SUM(QtyRequired * UnitPrice) INTO nMaterialCost FROM job_material WHERE (job_material.JobID = sJobID) AND (job_material.DateReceived IS NOT NULL AND job_material.DateReceived <= dEndDate);
    
    RETURN nMaterialCost;
    
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `GetLock` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `GetLock`(
        sTableName VARCHAR ( 32 ) ,
        sRecordKey VARCHAR ( 64 ) ,
        nAuditID INTEGER ( 11 ) ,
        nUserID INTEGER ( 11 ) ,
        sUserName VARCHAR ( 40 ) ,
        sComputerName VARCHAR ( 20 ) ,
        sIPAddress VARCHAR ( 15 )
    ) RETURNS int(11)
BEGIN
  # Version 4.0.32, 11/8/2007

  DECLARE nLockID INTEGER(11);
  DECLARE sUserHost VARCHAR(100);
  DECLARE nConnectionID INTEGER(11);
  DECLARE dCreated DATETIME;

  # check if lock already placed by looking for record with matching table name and key
  SELECT LockID INTO nLockID FROM locks WHERE TableName = sTableName AND RecordKey = sRecordKey;

  # if lock not already placed then place it
  IF nLockID IS NULL THEN
    SET sUserHost = USER();
    SET nConnectionID = CONNECTION_ID();
    SET dCreated = NOW();
    INSERT INTO locks SET TableName = sTableName, RecordKey = sRecordKey, AuditID = nAuditID,
           UserID = nUserID, UserName = sUsername, ComputerName = sComputerName, IPAddress = sIPAddress,
           UserHost = sUserHost, ConnectionID = nConnectionID, Created = dCreated;
    SET nLockID = LAST_INSERT_ID();
    # add to lock history
    INSERT INTO lock_history SET LockID = nLockID, TableName = sTableName, RecordKey = sRecordKey, AuditID = nAuditID,
           UserID = nUserID, UserName = sUserName, ComputerName = sComputerName, IPAddress = sIPAddress,
           UserHost = sUserHost, ConnectionID = nConnectionID, Created = dCreated;
  ELSE
    # if already locked then return the found LockID as negative
    SET nLockID = -nLockID;
  END IF;

  # returns the new LockID
  RETURN nLockID;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `GetNextInvoiceNo` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `GetNextInvoiceNo`(
        nBranchID INTEGER(11)
    ) RETURNS int(11)
BEGIN
  DECLARE nNextInvoiceNo INTEGER;
  SELECT NextInvoiceNo INTO nNextInvoiceNo FROM branches WHERE BranchID = nBranchID;
  UPDATE branches SET NextInvoiceNo = NextInvoiceNo + 1 WHERE BranchID = nBranchID;
  RETURN nNextInvoiceNo ;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `GetNextOrderNo` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `GetNextOrderNo`(
        nBranchID INTEGER(11)
    ) RETURNS int(11)
BEGIN
  DECLARE nNextOrderNo INTEGER;
  SELECT NextOrderNo INTO nNextOrderNo FROM branches WHERE BranchID = nBranchID;
  UPDATE branches SET NextOrderNo = NextOrderNo + 1 WHERE BranchID = nBranchID;
  RETURN nNextOrderNo;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `GetOrderPaymentDetails` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `GetOrderPaymentDetails`(
        sOrderID INTEGER(11)
    ) RETURNS varchar(200) CHARSET latin1
BEGIN
  DECLARE nAmount DECIMAL(11,2);
  DECLARE sRef1 VARCHAR(40);
  DECLARE sRef2 VARCHAR(40);
  DECLARE sRef3 VARCHAR(40);
  DECLARE sPaymentTypeName VARCHAR(20);
  DECLARE sPaymentDetails VARCHAR(200);
 
  SELECT Amount, Ref1, Ref2, Ref3, payment_types.PaymentTypeName INTO nAmount, sRef1, sRef2, sRef3, sPaymentTypeName FROM material_payments
  INNER JOIN payment_types ON payment_types.PaymentTypeID = material_payments.PaymentTypeID
  WHERE OrderID = sOrderID
  ORDER BY MaterialPaymentID DESC LIMIT 1;
  
  IF sPaymentTypeName IS NULL THEN
    SET sPaymentDetails = "";
  ELSE
    # SET sPaymentDetails = CONCAT(sPaymentTypeName, " for ", nAmount, ", Ref: ", sRef1, " ", COALESCE(sRef2), " ", sRef3);
    SET sPaymentDetails = CONCAT(sPaymentTypeName, " for ", nAmount);
    IF sRef1 IS NOT NULL THEN
       SET sPaymentDetails = CONCAT(sPaymentDetails, ", Ref: ", sRef1);
    END IF;    
    IF sRef2 IS NOT NULL THEN
       SET sPaymentDetails = CONCAT(sPaymentDetails, ", ", sRef2); 
    END IF;
    IF sRef3 IS NOT NULL THEN
       SET sPaymentDetails = CONCAT(sPaymentDetails, ", ", sRef3);
    END IF;
  END IF;
    
  RETURN sPaymentDetails;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `GetTranslation` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `GetTranslation`(
        sEnglishPhrase VARCHAR ( 255 ) ,
        nLanguageID INTEGER ( 11 )
    ) RETURNS varchar(255) CHARSET latin1
BEGIN
  # (SS,4/12/07) MySQL version of the translation routine
  # returns the equivalent phrase to the English one specified in requested language
  # if not found in the then the English phrase is returned

  DECLARE sLanguageName VARCHAR(40);
  DECLARE sResult VARCHAR(255);

  # get language name from languages table using language ID
  SELECT LanguageName INTO sLanguageName FROM languages WHERE LanguageID = nLanguageID;

  # get the required language phrase
  # SELECT sLanguageName INTO sResult FROM translation WHERE English = sEnglishPhrase;
  
  # Following does not work: SELECT sLanguageName INTO sResult FROM translation WHERE English = sEnglishPhrase
  # I initially tried dynamic SQL using SET @sSQL, PREPARE, EXECUTE, DEALLOCATE
  # but it was not allowed in stored function, could also create stored function on
  # the fly but seem very messy so I resorted to the following
  # which might be quicker anyway, but will need to update when new language added
  # could also just hard code the LanguageID without having to look up the language name
  # See: http://forge.mysql.com/snippets/download.php?id=13
  #      http://dev.mysql.com/doc/refman/5.1/en/sqlps.html
  #      http://forums.mysql.com/read.php?60,41372,47813#msg-47813
  IF sLanguageName = "English" THEN
    SELECT English INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "German" THEN
    SELECT German INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "French" THEN
    SELECT French INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Italian" THEN
    SELECT Italian INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Spanish" THEN
    SELECT Spanish INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Polish" THEN
    SELECT Polish INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Dutch" THEN
    SELECT Dutch INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Russian" THEN
    SELECT Russian INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Swedish" THEN
    SELECT Swedish INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Greek" THEN
    SELECT Greek INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Czech" THEN
    SELECT Czech INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Portuguese" THEN
    SELECT Portuguese INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSEIF sLanguageName = "Hungarian" THEN
    SELECT Hungarian INTO sResult FROM translation WHERE English = sEnglishPhrase;
  ELSE
    # if this point reached then it means the SELECT line for this language is missing
    # needs to be added above so return error instead
    SET sResult = CONCAT("!!! Language ", sLanguageName, " not in GetTranslation function !!!");
  END IF;

  # if nothing specified in requested language then return the English phrase
  IF sResult IS NULL OR sResult = "" THEN
    SET sResult = sEnglishPhrase;
  END IF;

  # return the result
  RETURN sResult;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `ReleaseLock` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `ReleaseLock`(
        nLockID INTEGER ( 11 ) ,
        sComputerName VARCHAR ( 20 )
    ) RETURNS int(11)
BEGIN
  # Version 4.0.32, 11/8/2007

  # if computer name not specified then delete the specified LockID
  # else delete all lock records for given computer name
  # also set Released DateTime field in lock_history
  IF sComputerName = "" THEN
    UPDATE lock_history SET Released = NOW() WHERE LockID = nLockID;
    DELETE FROM locks WHERE LockID = nLockID;
  ELSE
    UPDATE lock_history SET Released = NOW() WHERE ComputerName = sComputerName AND Released IS NULL;
    DELETE FROM locks WHERE ComputerName = sComputerName;
  END IF;

  # return the number of records that were deleted
  RETURN ROW_COUNT();
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `SetLock` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 FUNCTION `SetLock`(
        sTableName VARCHAR ( 32 ) ,
        sRecordKey VARCHAR ( 64 ) ,
        nAuditID INTEGER ( 11 ) ,
        nUserID INTEGER ( 11 ) ,
        sUserName VARCHAR ( 40 ) ,
        sComputerName VARCHAR ( 20 ) ,
        sIPAddress VARCHAR ( 15 )
    ) RETURNS int(11)
BEGIN
  # Version 4.0.32, 11/8/2007
  
  DECLARE nLockID INTEGER(11);
  DECLARE sUserHost VARCHAR(100);
  DECLARE nConnectionID INTEGER(11);
  DECLARE dCreated DATETIME;

  # check if lock already placed by looking for record with matching table name and key
  SELECT LockID INTO nLockID FROM locks WHERE TableName = sTableName AND RecordKey = sRecordKey;

  # if lock not already placed then place it
  IF nLockID IS NULL THEN
    SET sUserHost = USER();
    SET nConnectionID = CONNECTION_ID();
    SET dCreated = NOW();
    INSERT INTO locks SET TableName = sTableName, RecordKey = sRecordKey, AuditID = nAuditID,
           UserID = nUserID, UserName = sUsername, ComputerName = sComputerName, IPAddress = sIPAddress,
           UserHost = sUserHost, ConnectionID = nConnectionID, Created = dCreated;
    SET nLockID = LAST_INSERT_ID();
    # add to lock history
    INSERT INTO lock_history SET LockID = nLockID, TableName = sTableName, RecordKey = sRecordKey, AuditID = nAuditID,
           UserID = nUserID, UserName = sUserName, ComputerName = sComputerName, IPAddress = sIPAddress,
           UserHost = sUserHost, ConnectionID = nConnectionID, Created = dCreated;
  ELSE
    # if already locked then return the found LockID as negative
    SET nLockID = -nLockID;
  END IF;

  # returns the new LockID
  RETURN nLockID;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `AddToEventLog` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `AddToEventLog`(

        IN sEventMessage VARCHAR(100)

    )
BEGIN

  # (SS,21/8/13) to add message to event_log table

  INSERT INTO event_log (EventDateTime, EventMessage) VALUES(NOW(), sEventMessage);

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ChangeOverdueAwaitsToChase` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `ChangeOverdueAwaitsToChase`()
BEGIN



# (SS,13/8/13) (JMS: 4.2.13) ChangeOverdueAwaitsToChase moved from executable to scheduled routine

# the UserID set is 0 (i.e. meaning System)

# (SS,21/8/13) amended to add message to log about how many jobs were updated



DECLARE sMessage CHAR(100);



# (SS,21/8/13) log the start

CALL AddToEventLog('Started ChangeOverdueAwaitsToChase');



DROP TEMPORARY TABLE IF EXISTS tmp_chasing_updates;



CREATE TEMPORARY TABLE tmp_chasing_updates 

SELECT j.JobID, NextChaseDate, ComStatusID FROM jobs j 

INNER JOIN (

  SELECT JobID, NextChaseDate FROM job_chasing jc1 

  WHERE DateTimeChased = 

    (SELECT MAX(DateTimeChased) FROM job_chasing jc2 WHERE jc1.JobID = jc2.JobID) 

  ) AS lastchase 

ON j.JobID = lastchase.JobID 

WHERE WIP = TRUE AND (ComStatusID = 3) 

AND NextChaseDate <= NOW();



UPDATE jobs j, tmp_chasing_updates t SET j.ComStatusID = 4,

 j.ComStatusDateTime = NOW(), j.ComStatusUserID = 0

 WHERE t.JobID = j.JobID AND t.ComStatusID = 3;



# (SS,21/8/13) add rows affected to log

SET sMessage = (SELECT CONCAT(ROW_COUNT(), ' job(s) Awaiting Go-ahead advanced to Chase Go-ahead'));

CALL AddToEventLog(sMessage);

 

DROP TEMPORARY TABLE IF EXISTS tmp_chasing_updates;



CREATE TEMPORARY TABLE tmp_chasing_updates 

SELECT j.JobID, NextChaseDate, ComStatusID FROM jobs j 

INNER JOIN (

  SELECT JobID, NextChaseDate FROM job_chasing jc1 

  WHERE DateTimeChased = 

    (SELECT MAX(DateTimeChased) FROM job_chasing jc2 WHERE jc1.JobID = jc2.JobID) 

  ) AS lastchase 

ON j.JobID = lastchase.JobID 

WHERE WIP = TRUE AND (ComStatusID = 6) 

AND NextChaseDate <= NOW();



UPDATE jobs j, tmp_chasing_updates t SET j.ComStatusID = 7,

 j.ComStatusDateTime = NOW(), j.ComStatusUserID = 0

 WHERE t.JobID = j.JobID AND t.ComStatusID = 6;

 

# (SS,21/8/13) add rows affected to log

SET sMessage = (SELECT CONCAT(ROW_COUNT(), ' job(s) Awaiting Order No advanced to Chase Order No'));

CALL AddToEventLog(sMessage); 



# (SS,21/8/13) log the finish

CALL AddToEventLog('Finished ChangeOverdueAwaitsToChase');



END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetPriceSummary` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetPriceSummary`(
        IN nEquipmentID INTEGER ( 11 ) ,
        IN nBranchID INTEGER ( 11 )
    )
BEGIN

# Serial: 2008-04-23-01
# Original version SS, ITP, 22-02-2007
# This version modified by Jim to use the new equipment_price_summary table
# which is created at the end of the day to help speed up this routine
# which was taking a few seconds where hundreds of jobs existing for same EquipmentID
  
DECLARE nSellPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nRepairPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nServiceExPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nLocalAveSellPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nLocalAveJobCost DECIMAL(11,2) DEFAULT 0.00;
DECLARE nLocalJobCount INT(11) DEFAULT 0;
DECLARE nWorldAveSellPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nWorldAveJobCost DECIMAL(11,2) DEFAULT 0.00;
DECLARE nWorldJobCount INT(11) DEFAULT 0;
DECLARE nLocalSellPrice DECIMAL(11,2) DEFAULT 0.00;
DECLARE nWorldSellPrice DECIMAL(11,2) DEFAULT 0.00;

# SELECT SellPrice, RepairPrice, ServiceExPrice INTO nSellPrice, nRepairPrice, nServiceExPrice FROM equipment WHERE EquipmentID=nEquipmentID;
# (SS,23/4/08) replaced above with following due to field name changes
SELECT OurRefurbPrice, OurRepairPrice, OurServiceExPrice INTO nSellPrice, nRepairPrice, nServiceExPrice FROM equipment WHERE EquipmentID=nEquipmentID;

SELECT LocalAveSellPrice, LocalAveJobCost, LocalJobCount INTO nLocalAveSellPrice, nLocalAveJobCost, nLocalJobCount FROM equipment_price_summary WHERE EquipmentID=nEquipmentID AND BranchID=nBranchID;
# (SS,19/3/08) in following two it may be more accurate to use SUM(LocalAveSellPrice) / SUM(LocalJobCount)
SELECT AVG(LocalAveSellPrice) INTO nWorldAveSellPrice FROM equipment_price_summary WHERE LocalAveSellPrice>0 AND EquipmentID=nEquipmentID;
SELECT AVG(LocalAveJobCost) INTO nWorldAveJobCost FROM equipment_price_summary WHERE LocalAveJobCost>0 AND EquipmentID=nEquipmentID;
SELECT SUM(LocalJobCount) INTO nWorldJobCount FROM equipment_price_summary WHERE EquipmentID=nEquipmentID;

IF nSellPrice IS NULL THEN
   SET nSellPrice="0.00";
END IF;
    
IF nRepairPrice IS NULL THEN
   SET nRepairPrice="0.00";
END IF;

IF nServiceExPrice IS NULL THEN
   SET nServiceExPrice="0.00";
END IF;
    
IF nLocalAveSellPrice IS NULL THEN
   SET nLocalAveSellPrice="0.00";
END IF;    
    
IF nLocalAveJobCost IS NULL THEN
   SET nLocalAveJobCost="0.00";
END IF;
    
IF nLocalJobCount IS NULL THEN
   SET nLocalJobCount="0.00";
END IF;
    
IF nWorldAveSellPrice IS NULL THEN
   SET nWorldAveSellPrice="0.00";
END IF;    
    
IF nWorldAveJobCost IS NULL THEN
   SET nWorldAveJobCost="0.00";
END IF;
    
IF nWorldJobCount IS NULL THEN
   SET nWorldJobCount="0.00";
END IF;

SELECT
    nSellPrice AS SellPrice,
    nRepairPrice AS RepairPrice,
    nServiceExPrice AS ServiceExPrice,
    nLocalAveSellPrice AS AveSellPriceLocal,
    nLocalAveJobCost AS AveJobCostLocal,
    nLocalJobCount AS LocalJobCount,
    nWorldAveSellPrice AS AveSellPriceWorld,
    nWorldAveJobCost AS AveJobCostWorld,
    nWorldJobCount AS WorldJobCount;	

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetPriceSummaryPrev` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetPriceSummaryPrev`(
        IN nEquipmentID INTEGER ( 11 ) ,
        IN nBranchID INTEGER ( 11 )
    )
BEGIN

  # Serial: 2008-02-22-01

  DECLARE nSellPrice DECIMAL(11,2) DEFAULT NULL;
  DECLARE nRepairPrice DECIMAL(11,2) DEFAULT NULL;
  DECLARE nServiceExPrice DECIMAL(11,2) DEFAULT NULL;
  DECLARE nAveSellPriceLocal DECIMAL(11,2) DEFAULT NULL;
  DECLARE nAveJobCostLocal DECIMAL(11,2) DEFAULT NULL;
  DECLARE nAveSellPriceWorld DECIMAL(11,2) DEFAULT NULL;
  DECLARE nAveJobCostWorld DECIMAL(11,2) DEFAULT NULL;

  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nJobID INTEGER(11);
  DECLARE nJobBranchID INTEGER(11);
  DECLARE nJobSellPrice DOUBLE;

  DECLARE nWorldSellPrice DOUBLE DEFAULT 0;
  DECLARE nWorldJobCost DOUBLE DEFAULT 0;
  DECLARE nWorldJobCount INTEGER DEFAULT 0;
  DECLARE nLocalSellPrice DOUBLE DEFAULT 0;
  DECLARE nLocalJobCost DOUBLE DEFAULT 0;
  DECLARE nLocalJobCount INTEGER DEFAULT 0;

  DECLARE nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice DECIMAL(9,2);
  DECLARE nLabourHours DOUBLE;

  # this query selects all invoiced jobs with given equipment ID
  DECLARE curSelectedJobs CURSOR FOR SELECT JobID, BranchID, SellPrice FROM jobs WHERE WIP = FALSE AND EquipmentID = nEquipmentID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;

  # get SellPrice, RepairPrice, ServiceExPrice from Equipment table
  SELECT SellPrice, RepairPrice, ServiceExPrice INTO nSellPrice, nRepairPrice, nServiceExPrice FROM equipment WHERE EquipmentID = nEquipmentID;

  OPEN curSelectedJobs;

  nextrecord: LOOP

    FETCH curSelectedJobs INTO nJobID, nJobBranchID, nJobSellPrice;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;

    # determine JobCost using GetTotalLabourAndMaterialsMain procedure, i.e. JobCost = LabourCost + MaterialCost
    CALL GetTotalLabourAndMaterialsMain(nJobID, nLabourHours, nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice);

    # treat NULL as zero, else total will end up as NULL, alternative is to ignore records containing NULLs
    IF nJobSellPrice IS NULL THEN
      SET nJobSellPrice = 0;
    END IF;

    SET nWorldSellPrice = nWorldSellPrice + nJobSellPrice;
    SET nWorldJobCost = nWorldJobCost + nLabourCost + nMaterialCost;
    SET nWorldJobCount = nWorldJobCount + 1;

    IF nBranchID = nJobBranchID THEN
       SET nLocalSellPrice = nLocalSellPrice + nJobSellPrice;
       SET nLocalJobCost = nLocalJobCost + nLabourCost + nMaterialCost;
       SET nLocalJobCount = nLocalJobCount + 1;
    END IF;

  END LOOP nextrecord;

  CLOSE curSelectedJobs;

  # calculate the averages

  IF nLocalJobCount > 1 THEN
     SET nAveSellPriceLocal = ROUND(nLocalSellPrice / nLocalJobCount, 2);
     SET nAveJobCostLocal = ROUND(nLocalJobCost / nLocalJobCount, 2);
  END IF;

  IF nWorldJobCount > 1 THEN
     SET nAveSellPriceWorld = ROUND(nWorldSellPrice / nWorldJobCount, 2);
     SET nAveJobCostWorld = ROUND(nWorldJobCost / nWorldJobCount, 2);
  END IF;

  # ------------------
  # Output the results
  # ------------------

  SELECT nSellPrice AS SellPrice, nRepairPrice As RepairPrice, nServiceExPrice AS ServiceExPrice,
         nAveSellPriceLocal AS AveSellPriceLocal, nAveJobCostLocal AS AveJobCostLocal, nLocalJobCount AS LocalJobCount,
         nAveSellPriceWorld AS AveSellPriceWorld, nAveJobCostWorld AS AveJobCostWorld, nWorldJobCount AS WorldJobCount;

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetTotalLabourAndMaterials` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetTotalLabourAndMaterials`(
        sJobID CHAR ( 12 )
    )
BEGIN
  # Serial: 2008-02-22-01
  
  DECLARE nLabourHours DOUBLE;
  DECLARE nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice DECIMAL(11,2);

  CALL GetTotalLabourAndMaterialsMain(sJobID, nLabourHours, nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice);
  
  SELECT nLabourHours AS LabourHours, nLabourCost As LabourCost, nMaterialCost AS MaterialCost, nMaterialSell AS MaterialSell, nMinSellPrice AS MinSellPrice;

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetTotalLabourAndMaterialsMain` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetTotalLabourAndMaterialsMain`(
        IN sJobID CHAR ( 12 ) ,
        OUT pLabourHours INTEGER ( 11 ) ,
        OUT pLabourCost DECIMAL ( 11 , 2 ) ,
        OUT pMaterialCost DECIMAL ( 11 , 2 ) ,
        OUT pMaterialSell DECIMAL ( 11 , 2 ) ,
        OUT pMinSellPrice DECIMAL ( 11 , 2 )
    )
BEGIN
  # GetTotalLabourAndMaterialsMain
  # Serial: 2009-09-12-01
  # Now called from GetPriceSummary as well as GetTotalLabourAndMaterials, values passed via parameters
  
  # ----------------------
  # Calculate Total Labour
  # ----------------------

  DECLARE bFinished INTEGER DEFAULT 0;
  DECLARE nTotalLabour DECIMAL(11,2) DEFAULT 0;
  DECLARE nMaterialCost, nMaterialSell DECIMAL(11,2);
  DECLARE sChargeRate CHAR(1) DEFAULT "";
  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;
  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;
  DECLARE curTimesheetsWithCharge CURSOR FOR
   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,
     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours
     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;

  OPEN curTimesheetsWithCharge;

  nextrecord: LOOP

    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;
    IF bFinished THEN
      LEAVE nextrecord;
    END IF;

    IF sChargeRate = "A" THEN
      SET nUseRate = nRateA;
    ELSEIF sChargeRate = "B" THEN
      SET nUseRate = nRateB;
    ELSEIF sChargeRate = "C" THEN
      SET nUseRate = nRateC;
    ELSE
      SET nUseRate = 0;
    END IF;

    SET nTotalHours = nTotalHours + nHours;
    SET nTotalLabour = nTotalLabour + nHours * nUseRate;

  END LOOP nextrecord;

  CLOSE curTimesheetsWithCharge;

  # ------------------------
  # Calculate Total Material
  # ------------------------

  # UnitPrice is held as 4 dp, total amount returned is 2 dp 
  SELECT funcGetMaterialCost(sJobID) INTO nMaterialCost;

  # *** the 10, 1.4, 1.3 constants in following to be made into globals
  If nMaterialCost < 10 THEN
    SET nMaterialSell = nMaterialCost * 1.4;
  ELSE
    SET nMaterialSell = nMaterialCost * 1.3;
  END IF;

  # ------------------
  # Output the results
  # ------------------
  SET pLabourHours = nTotalHours;
  SET pLabourCost = ROUND(nTotalLabour, 2);
  SET pMaterialCost = ROUND(nMaterialCost, 2);
  SET pMaterialSell = ROUND(nMaterialSell, 2);
  SET pMinSellPrice = ROUND(nTotalLabour + nMaterialSell, 2);
  
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetTotalLabourAndMaterialsMainNew` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetTotalLabourAndMaterialsMainNew`(

        IN sJobID CHAR ( 12 ) ,

        OUT pLabourHours INTEGER ( 11 ) ,

        OUT pLabourCost DECIMAL ( 11 , 2 ) ,

        OUT pMaterialCost DECIMAL ( 11 , 2 ) ,

        OUT pMaterialSell DECIMAL ( 11 , 2 ) ,

        OUT pMinSellPrice DECIMAL ( 11 , 2 )

    )
BEGIN

  # GetTotalLabourAndMaterialsMain

  # Serial: 2013-08-13-01

  # Now called from GetPriceSummary as well as GetTotalLabourAndMaterials, values passed via parameters

  

  # (SS,13/8/13) added getting of MaterialThreshold, MaterialBelowThresholdSellFactor and MaterialAboveThresholdSellFactor from branches table

  

  # ----------------------

  # Calculate Total Labour

  # ----------------------



  DECLARE bFinished INTEGER DEFAULT 0;

  DECLARE nTotalLabour DECIMAL(11,2) DEFAULT 0;

  DECLARE nMaterialCost, nMaterialSell DECIMAL(11,2);

  DECLARE sChargeRate CHAR(1) DEFAULT "";

  DECLARE nRateA, nRateB, nRateC, nUseRate DOUBLE DEFAULT 0;

  DECLARE nHours, nTotalHours DOUBLE DEFAULT 0;

  

  # (SS,13/8/13) added following, these setting are now taken from branches table  

  DECLARE nMaterialThreshold DECIMAL(11,2) DEFAULT 10;

  DECLARE nMaterialBelowThresholdSellFactor DECIMAL(11,2) DEFAULT 1.4;

  DECLARE nMaterialAboveThresholdSellFactor DECIMAL(11,2) DEFAULT 1.3;  

  

  DECLARE curTimesheetsWithCharge CURSOR FOR

   SELECT t.ChargeRate, u.RateA, u.RateB, u.RateC,

     HOUR(SUBTIME(t.WorkEndTime, t.WorkStartTime)) + MINUTE(SUBTIME(t.WorkEndTime, t.WorkStartTime)) / 60 AS Hours

     FROM timesheets t, users u WHERE t.UserID = u.UserID AND t.jobid = sJobID;

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET bFinished = 1;



  OPEN curTimesheetsWithCharge;



  nextrecord: LOOP



    FETCH curTimesheetsWithCharge INTO sChargeRate, nRateA, nRateB, nRateC, nHours;

    IF bFinished THEN

      LEAVE nextrecord;

    END IF;



    IF sChargeRate = "A" THEN

      SET nUseRate = nRateA;

    ELSEIF sChargeRate = "B" THEN

      SET nUseRate = nRateB;

    ELSEIF sChargeRate = "C" THEN

      SET nUseRate = nRateC;

    ELSE

      SET nUseRate = 0;

    END IF;



    SET nTotalHours = nTotalHours + nHours;

    SET nTotalLabour = nTotalLabour + nHours * nUseRate;



  END LOOP nextrecord;



  CLOSE curTimesheetsWithCharge;



  # ------------------------

  # Calculate Total Material

  # ------------------------



  # UnitPrice is held as 4 dp, total amount returned is 2 dp 

  SELECT funcGetMaterialCostNew(sJobID) INTO nMaterialCost;



  # (SS,13/8/13) replaced 10, 1.4, 1.3 constants with variables, settings from branches table      

  SELECT MaterialThreshold, MaterialBelowThresholdSellFactor, MaterialAboveThresholdSellFactor INTO nMaterialThreshold, nMaterialBelowThresholdSellFactor, nMaterialAboveThresholdSellFactor 

      FROM jobs 

    INNER JOIN branches ON branches.BranchID = jobs.BranchID 

    WHERE JobID = sJobID;

  

  If nMaterialCost < nMaterialThreshold THEN

    SET nMaterialSell = nMaterialCost * nMaterialBelowThresholdSellFactor;

  ELSE

    SET nMaterialSell = nMaterialCost * nMaterialAboveThresholdSellFactor;

  END IF;



  # ------------------

  # Output the results

  # ------------------

  SET pLabourHours = nTotalHours;

  SET pLabourCost = ROUND(nTotalLabour, 2);

  SET pMaterialCost = ROUND(nMaterialCost, 2);

  SET pMaterialSell = ROUND(nMaterialSell, 2);

  SET pMinSellPrice = ROUND(nTotalLabour + nMaterialSell, 2);

  

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `GetTotalLabourAndMaterialsNew` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `GetTotalLabourAndMaterialsNew`(
        sJobID CHAR ( 12 )
    )
BEGIN
  # Serial: 2008-12-19-01
  
  DECLARE nLabourHours DOUBLE;
  DECLARE nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice DECIMAL(11,2);

  CALL GetTotalLabourAndMaterialsMainNew(sJobID, nLabourHours, nLabourCost, nMaterialCost, nMaterialSell, nMinSellPrice);
  
  SELECT nLabourHours AS LabourHours, nLabourCost As LabourCost, nMaterialCost AS MaterialCost, nMaterialSell AS MaterialSell, nMinSellPrice AS MinSellPrice;

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `UpdateEquipmentAveragePriceSummary` */;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = latin1 */ ;
/*!50003 SET character_set_results = latin1 */ ;
/*!50003 SET collation_connection  = latin1_swedish_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50020 DEFINER=`jms_demo_master`@`%`*/ /*!50003 PROCEDURE `UpdateEquipmentAveragePriceSummary`()
BEGIN

# (SS,ITP,19/3/08)
# Serial: 2008-03-19-01
# This routine is to be run at the end of the day
# Creates records used by the GetPriceSummary routine
# to help speed up getting the average prices for a given job

# empty the table
TRUNCATE equipment_price_summary;

# summarise and add the records
INSERT INTO equipment_price_summary
(SELECT EquipmentID, BranchID,
ROUND(AVG(SellPrice),2) AS LocalAveSellPrice, ROUND(AVG(funcGetLabourMaterialTotal(JobID)),2) AS LocalAveJobCost,
COUNT(JobID) AS LocalJobCount, CURDATE() AS LastUpdate
FROM jobs WHERE WIP=FALSE AND CREDITNOTE=FALSE
GROUP BY EquipmentID, BranchID
);

END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Final view structure for view `incoming_jobs`
--

/*!50001 DROP TABLE IF EXISTS `incoming_jobs`*/;
/*!50001 DROP VIEW IF EXISTS `incoming_jobs`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`127.0.0.1` SQL SECURITY DEFINER */
/*!50001 VIEW `incoming_jobs` AS select `jobs`.`JobID` AS `JobID`,`jobs`.`NumberOff` AS `NumberOff`,`jobs`.`Warranty` AS `Warranty`,`jobs`.`CreditNote` AS `CreditNote`,`jobs`.`BranchID` AS `BranchID`,`jobs`.`DateTimeOfEntry` AS `DateTimeOfEntry`,`jobs`.`CustomerID` AS `CustomerID`,`jobs`.`JobClassID` AS `JobClassID`,`jobs`.`JobTypeID` AS `JobTypeID`,`jobs`.`EquipmentID` AS `EquipmentID`,`jobs`.`QuotedPrice` AS `QuotedPrice` from `jobs` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `sales_by_job_type_and_equipment_category`
--

/*!50001 DROP TABLE IF EXISTS `sales_by_job_type_and_equipment_category`*/;
/*!50001 DROP VIEW IF EXISTS `sales_by_job_type_and_equipment_category`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`127.0.0.1` SQL SECURITY DEFINER */
/*!50001 VIEW `sales_by_job_type_and_equipment_category` AS select `jobs`.`InvoiceNet` AS `sales_value`,`jobs`.`InvoiceDate` AS `invoice_date`,`jobs`.`NumberOff` AS `items`,`job_types`.`JobType` AS `job_type`,`categories`.`CategoryName` AS `category_name` from (((`jobs` left join `job_types` on((`jobs`.`JobTypeID` = `job_types`.`JobTypeID`))) left join `equipment` on((`jobs`.`EquipmentID` = `equipment`.`EquipmentID`))) left join `categories` on((`equipment`.`CategoryID` = `categories`.`CategoryID`))) where ((`jobs`.`InvoiceNo` is not null) and (not((`job_types`.`JobType` like _latin1'%Non-prod%')))) order by `job_types`.`JobType`,`categories`.`CategoryName` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `sales_by_sales_person_and_customer`
--

/*!50001 DROP TABLE IF EXISTS `sales_by_sales_person_and_customer`*/;
/*!50001 DROP VIEW IF EXISTS `sales_by_sales_person_and_customer`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`127.0.0.1` SQL SECURITY DEFINER */
/*!50001 VIEW `sales_by_sales_person_and_customer` AS select `jobs`.`InvoiceNet` AS `sales_value`,`jobs`.`InvoiceDate` AS `invoice_date`,`jobs`.`NumberOff` AS `items`,`sales_areas`.`Salesperson` AS `sales_person`,`categories`.`CategoryName` AS `category_name`,`customers`.`CustomerName` AS `customer_name` from ((((`jobs` left join `customers` on((`jobs`.`CustomerID` = `customers`.`CustomerID`))) left join `sales_areas` on((`customers`.`SalesAreaID` = `sales_areas`.`SalesAreaID`))) left join `equipment` on((`jobs`.`EquipmentID` = `equipment`.`EquipmentID`))) left join `categories` on((`equipment`.`CategoryID` = `categories`.`CategoryID`))) where (`jobs`.`InvoiceNo` is not null) order by `sales_areas`.`Salesperson`,`customers`.`CustomerName` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `sales_by_sales_person_and_equipment_category`
--

/*!50001 DROP TABLE IF EXISTS `sales_by_sales_person_and_equipment_category`*/;
/*!50001 DROP VIEW IF EXISTS `sales_by_sales_person_and_equipment_category`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`127.0.0.1` SQL SECURITY DEFINER */
/*!50001 VIEW `sales_by_sales_person_and_equipment_category` AS select `jobs`.`InvoiceNet` AS `sales_value`,`jobs`.`InvoiceDate` AS `invoice_date`,`jobs`.`NumberOff` AS `items`,`sales_areas`.`Salesperson` AS `sales_person`,`categories`.`CategoryName` AS `category_name` from ((((`jobs` left join `customers` on((`jobs`.`CustomerID` = `customers`.`CustomerID`))) left join `sales_areas` on((`customers`.`SalesAreaID` = `sales_areas`.`SalesAreaID`))) left join `equipment` on((`jobs`.`EquipmentID` = `equipment`.`EquipmentID`))) left join `categories` on((`equipment`.`CategoryID` = `categories`.`CategoryID`))) where (`jobs`.`InvoiceNo` is not null) order by `sales_areas`.`Salesperson`,`categories`.`CategoryName` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2016-03-18 11:47:08