--
-- Host: localhost    Database: tebarameatsold
-- ------------------------------------------------------


--
-- Table structure for table `accountgroups`
--

CREATE TABLE `accountgroups` (
  `groupname` char(30) NOT NULL DEFAULT '',
  `sectioninaccounts` int(11) NOT NULL DEFAULT '0',
  `pandl` tinyint(4) NOT NULL DEFAULT '1',
  `sequenceintb` smallint(6) NOT NULL DEFAULT '0',
  `parentgroupname` varchar(30) NOT NULL,
  PRIMARY KEY (`groupname`),
  KEY `SequenceInTB` (`sequenceintb`),
  KEY `sectioninaccounts` (`sectioninaccounts`),
  KEY `parentgroupname` (`parentgroupname`),
  CONSTRAINT `accountgroups_ibfk_1` FOREIGN KEY (`sectioninaccounts`) REFERENCES `accountsection` (`sectionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `accountgroups`
--

INSERT INTO `accountgroups` VALUES ('Cost of Goods Sold',2,1,5000,''),('Current Assets',20,0,1000,''),('Financed',50,0,3000,''),('Fixed Assets',10,0,500,''),('Giveaways',5,1,6000,'Promotions'),('Income Tax',5,1,9000,''),('Liabilities',30,0,2000,''),('Marketing Expenses',5,1,6000,''),('Operating Expenses',5,1,7000,''),('Other Revenue and Expenses',5,1,8000,''),('Outward Freight',2,1,5000,'Cost of Goods Sold'),('Promotions',5,1,6000,'Marketing Expenses'),('Revenue',1,1,4000,''),('Sales',1,1,10,'');

--
-- Table structure for table `accountsection`
--

CREATE TABLE `accountsection` (
  `sectionid` int(11) NOT NULL DEFAULT '0',
  `sectionname` text NOT NULL,
  PRIMARY KEY (`sectionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `accountsection`
--

INSERT INTO `accountsection` VALUES (1,'Income'),(2,'Cost Of Sales'),(5,'Overheads'),(10,'Fixed Assets'),(15,'Inventory'),(20,'Amounts Receivable'),(25,'Cash'),(30,'Amounts Payable'),(50,'Financed By');

--
-- Table structure for table `areas`
--

CREATE TABLE `areas` (
  `areacode` char(3) NOT NULL,
  `areadescription` varchar(25) NOT NULL DEFAULT '',
  PRIMARY KEY (`areacode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `areas`
--

INSERT INTO `areas` VALUES ('123','Test area'),('DE','Default'),('FL','Florida'),('TR','Toronto');

--
-- Table structure for table `assetmanager`
--

CREATE TABLE `assetmanager` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `stockid` varchar(20) NOT NULL DEFAULT '',
  `serialno` varchar(30) NOT NULL DEFAULT '',
  `location` varchar(15) NOT NULL DEFAULT '',
  `cost` double NOT NULL DEFAULT '0',
  `depn` double NOT NULL DEFAULT '0',
  `datepurchased` date NOT NULL DEFAULT '0000-00-00',
  `disposalvalue` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `assetmanager`
--


--
-- Table structure for table `audittrail`
--

CREATE TABLE `audittrail` (
  `transactiondate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `userid` varchar(20) NOT NULL DEFAULT '',
  `querystring` text,
  KEY `UserID` (`userid`),
  CONSTRAINT `audittrail_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `audittrail`
--

INSERT INTO `audittrail` VALUES ('2019-08-02 11:06:55','zaabed','UPDATE config\n				SET confvalue=\'2019-08-02\'\n				WHERE confname=\'DB_Maintenance_LastRun\''),('2019-08-02 11:06:55','zaabed','DELETE FROM audittrail\n						WHERE  transactiondate &lt;= \'2019-07-02\''),('2019-08-02 11:06:55','zaabed','UPDATE config SET confvalue = \'2019-08-02\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-02 11:06:55','zaabed','UPDATE www_users SET lastvisitdate=\'2019-08-02 11:06:55\'\n							WHERE www_users.userid=\'zaabed\''),('2019-08-02 11:08:25','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27414\',\n								\'TM077\',\n								\'P008\',\n								\'\',\n								\'\',\n								\'2019-08-02 11:08\',\n								\'DE\',\n								\'10\',\n								\'PEARL SOUTH PACIFIC\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:08:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27414\',\n					\'LCP\',\n					\'19.50\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:08:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27414\',\n					\'CHICKEN\',\n					\'145.00\',\n					\'3\',\n					\'0\',\n					\'1.3\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:08:36','zaabed','INSERT INTO periods (periodno,\n													lastdate_in_period)\n												VALUES (\n													\'94\',\n													\'2019-09-30\')'),('2019-08-02 11:08:36','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26914\')\n			WHERE orderno= \'27414\''),('2019-08-02 11:08:36','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26914\',\n									10,\n									\'TM077\',\n									\'P008\',\n									\'2019-08-03\',\n									\'2019-08-02 11-08-36\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27414\',\n									\'1215\',\n									\'109.35\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:08:36','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33990\',\n									\'1\',\n									\'109.35\')'),('2019-08-02 11:08:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27414\'\n							AND orderlineno = \'0\''),('2019-08-02 11:08:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LCP\'\n						AND loccode = \'AN\''),('2019-08-02 11:08:36','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCP\',\n														10,\n														\'26914\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM077\',\n														\'P008\',\n														\'19.5\',\n														\'93\',\n														\'27414\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-63603.13\',\n														\'\' )'),('2019-08-02 11:08:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56543\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:08:36','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'780\',\n										\'0\',\n										\'TM077\',\n										\'P008\',\n										\'40\',\n										\'0\',\n										\'LCP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCP\'\n								AND custbranch.debtorno = \'TM077\'\n								AND custbranch.branchcode=\'P008\''),('2019-08-02 11:08:37','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26914\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM077 - LCP x 40 @ 19.5\',\n											\'-780\')'),('2019-08-02 11:08:37','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27414\'\n							AND orderlineno = \'1\''),('2019-08-02 11:08:37','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-02 11:08:37','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26914\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM077\',\n														\'P008\',\n														\'145\',\n														\'93\',\n														\'27414\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-87013.17\',\n														\'1.3\' )'),('2019-08-02 11:08:37','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56544\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:08:37','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'435\',\n										\'0\',\n										\'TM077\',\n										\'P008\',\n										\'3\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM077\'\n								AND custbranch.branchcode=\'P008\''),('2019-08-02 11:08:37','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26914\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM077 - CHICKEN x 3 @ 145\',\n											\'-435\')'),('2019-08-02 11:08:37','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26914\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM077\',\n										\'1324.35\')'),('2019-08-02 11:08:37','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26914\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM077\',\n											\'-109.35\')'),('2019-08-02 11:08:37','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000008526512829121202\n								WHERE counterindex = \'121817\''),('2019-08-02 11:09:38','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27415\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-02 11:09\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:09:38','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27415\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:09:43','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26915\')\n			WHERE orderno= \'27415\''),('2019-08-02 11:09:43','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26915\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-03\',\n									\'2019-08-02 11-09-43\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27415\',\n									\'94.05\',\n									\'8.46\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:09:43','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33991\',\n									\'1\',\n									\'8.4645\')'),('2019-08-02 11:09:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27415\'\n							AND orderlineno = \'0\''),('2019-08-02 11:09:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:09:43','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26915\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27415\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-305598.65\',\n														\'\' )'),('2019-08-02 11:09:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56545\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:09:43','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'94.05\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:09:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26915\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 5 @ 18.81\',\n											\'-94.05\')'),('2019-08-02 11:09:43','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26915\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'102.51\')'),('2019-08-02 11:09:43','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26915\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-8.46\')'),('2019-08-02 11:09:43','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000007105427357601002\n								WHERE counterindex = \'121821\''),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27416\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'\',\n								\'2019-08-02 11:24\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27416\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27416\',\n					\'LL\',\n					\'25\',\n					\'2.85\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27416\',\n					\'MBT\',\n					\'9.50\',\n					\'12\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27416\',\n					\'SF500G\',\n					\'16.40\',\n					\'3.3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:24:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27416\',\n					\'LSP\',\n					\'9.00\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:24:27','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26916\')\n			WHERE orderno= \'27416\''),('2019-08-02 11:24:27','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26916\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-03\',\n									\'2019-08-02 11-24-27\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27416\',\n									\'660.57\',\n									\'44.32\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33992\',\n									\'1\',\n									\'44.3205\')'),('2019-08-02 11:24:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27416\'\n							AND orderlineno = \'0\''),('2019-08-02 11:24:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26916\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27416\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-305618.65\',\n														\'\' )'),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56546\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-02 11:24:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.85,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27416\'\n							AND orderlineno = \'1\''),('2019-08-02 11:24:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.85\n						WHERE locstock.stockid = \'LL\'\n						AND loccode = \'AN\''),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LL\',\n														10,\n														\'26916\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'25\',\n														\'93\',\n														\'27416\',\n														\'-2.85\',\n														\'0\',\n														\'0.0000\',\n														\'-51692.69\',\n														\'\' )'),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56547\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'71.25\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'2.85\',\n										\'0\',\n										\'LL\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LL\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - LL x 2.85 @ 25\',\n											\'-71.25\')'),('2019-08-02 11:24:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27416\'\n							AND orderlineno = \'2\''),('2019-08-02 11:24:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26916\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27416\',\n														\'-12\',\n														\'0\',\n														\'0.0000\',\n														\'-7142.6\',\n														\'\' )'),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56548\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'114\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'12\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 12 @ 9.5\',\n											\'-114\')'),('2019-08-02 11:24:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.3,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27416\'\n							AND orderlineno = \'3\''),('2019-08-02 11:24:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.3\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26916\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27416\',\n														\'-3.3\',\n														\'0\',\n														\'0.0000\',\n														\'-9530.981\',\n														\'\' )'),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56549\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'54.12\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3.3\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 3.3 @ 16.4\',\n											\'-54.12\')'),('2019-08-02 11:24:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27416\'\n							AND orderlineno = \'4\''),('2019-08-02 11:24:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LSP\',\n														10,\n														\'26916\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'93\',\n														\'27416\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-39771.34\',\n														\'\' )'),('2019-08-02 11:24:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56550\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'45\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\n										\'0\',\n										\'LSP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - LSP x 5 @ 9\',\n											\'-45\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26916\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'704.89\')'),('2019-08-02 11:24:27','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26916\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-44.32\')'),('2019-08-02 11:24:27','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000006394884621840902\n								WHERE counterindex = \'121824\''),('2019-08-02 11:26:00','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27417\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-02 11:26\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:26:00','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27417\',\n					\'LL\',\n					\'25.00\',\n					\'8.3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:26:08','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26917\')\n			WHERE orderno= \'27417\''),('2019-08-02 11:26:08','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26917\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-03\',\n									\'2019-08-02 11-26-08\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27417\',\n									\'207.5\',\n									\'18.68\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:26:08','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33993\',\n									\'1\',\n									\'18.675\')'),('2019-08-02 11:26:08','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.3,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27417\'\n							AND orderlineno = \'0\''),('2019-08-02 11:26:08','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.3\n						WHERE locstock.stockid = \'LL\'\n						AND loccode = \'AN\''),('2019-08-02 11:26:08','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LL\',\n														10,\n														\'26917\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'25\',\n														\'93\',\n														\'27417\',\n														\'-8.3\',\n														\'0\',\n														\'0.0000\',\n														\'-51700.99\',\n														\'\' )'),('2019-08-02 11:26:08','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56551\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:26:08','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'207.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'8.3\',\n										\'0\',\n										\'LL\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LL\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:26:08','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26917\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - LL x 8.3 @ 25\',\n											\'-207.5\')'),('2019-08-02 11:26:08','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26917\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'226.18\')'),('2019-08-02 11:26:08','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26917\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-18.68\')'),('2019-08-02 11:27:48','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27418\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-02 11:27\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:27:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27418\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:27:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27418\',\n					\'MBT\',\n					\'9.5\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:28:06','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26918\')\n			WHERE orderno= \'27418\''),('2019-08-02 11:28:06','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26918\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-03\',\n									\'2019-08-02 11-28-06\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27418\',\n									\'518.7\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:28:06','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33994\',\n									\'1\',\n									\'33.858\')'),('2019-08-02 11:28:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27418\'\n							AND orderlineno = \'0\''),('2019-08-02 11:28:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:28:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26918\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27418\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-305638.65\',\n														\'\' )'),('2019-08-02 11:28:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56552\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:28:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:28:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26918\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-02 11:28:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27418\'\n							AND orderlineno = \'1\''),('2019-08-02 11:28:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-02 11:28:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26918\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27418\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7157.6\',\n														\'\' )'),('2019-08-02 11:28:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56553\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:28:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'142.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:28:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26918\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-02 11:28:06','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26918\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'552.56\')'),('2019-08-02 11:28:06','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26918\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-02 11:28:06','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000009947598300641403\n								WHERE counterindex = \'121834\''),('2019-08-02 11:32:57','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27419\',\n								\'TM057\',\n								\'I002\',\n								\'24256\',\n								\'\',\n								\'2019-08-02 11:32\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:32:57','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27419\',\n					\'CP\',\n					\'17.89\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:33:03','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26919\')\n			WHERE orderno= \'27419\''),('2019-08-02 11:33:03','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26919\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-08-03\',\n									\'2019-08-02 11-33-03\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27419\',\n									\'357.8\',\n									\'32.2\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:33:03','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33995\',\n									\'1\',\n									\'32.202\')'),('2019-08-02 11:33:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27419\'\n							AND orderlineno = \'0\''),('2019-08-02 11:33:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:33:03','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26919\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM057\',\n														\'I002\',\n														\'17.89\',\n														\'93\',\n														\'27419\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-305658.65\',\n														\'\' )'),('2019-08-02 11:33:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56554\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:33:03','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'357.8\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-02 11:33:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26919\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM057 - CP x 20 @ 17.89\',\n											\'-357.8\')'),('2019-08-02 11:33:03','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26919\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM057\',\n										\'390\')'),('2019-08-02 11:33:03','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26919\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM057\',\n											\'-32.2\')'),('2019-08-02 11:35:06','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27420\',\n								\'TM051\',\n								\'F021\',\n								\'0141\',\n								\'\',\n								\'2019-08-02 11:35\',\n								\'DE\',\n								\'10\',\n								\'FIJI POLICE FORCE OFFICERS MESS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:35:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27420\',\n					\'C001\',\n					\'6.88\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:35:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27420\',\n					\'LN\',\n					\'12.85\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:35:59','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26920\')\n			WHERE orderno= \'27420\''),('2019-08-02 11:35:59','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26920\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-03\',\n									\'2019-08-02 11-35-59\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27420\',\n									\'601\',\n									\'54.09\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:35:59','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33996\',\n									\'1\',\n									\'54.09\')'),('2019-08-02 11:35:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27420\'\n							AND orderlineno = \'0\''),('2019-08-02 11:35:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-08-02 11:35:59','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'26920\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM051\',\n														\'F021\',\n														\'6.88\',\n														\'93\',\n														\'27420\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-4215.4\',\n														\'\' )'),('2019-08-02 11:35:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56555\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:35:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'344\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'50\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-02 11:35:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26920\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C001 x 50 @ 6.88\',\n											\'-344\')'),('2019-08-02 11:35:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27420\'\n							AND orderlineno = \'1\''),('2019-08-02 11:35:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-02 11:35:59','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'26920\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM051\',\n														\'F021\',\n														\'12.85\',\n														\'93\',\n														\'27420\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-258844.04\',\n														\'\' )'),('2019-08-02 11:35:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56556\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:35:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'257\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'20\',\n										\'0\',\n										\'LN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-02 11:35:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26920\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM051 - LN x 20 @ 12.85\',\n											\'-257\')'),('2019-08-02 11:35:59','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26920\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'655.09\')'),('2019-08-02 11:35:59','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26920\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM051\',\n											\'-54.09\')'),('2019-08-02 11:42:50','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27421\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-02 11:42\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:42:50','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27421\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:42:50','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27421\',\n					\'LM\',\n					\'17.43\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:42:57','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26921\')\n			WHERE orderno= \'27421\''),('2019-08-02 11:42:57','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26921\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-03\',\n									\'2019-08-02 11-42-57\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27421\',\n									\'463.35\',\n									\'41.7\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:42:57','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33997\',\n									\'1\',\n									\'41.7015\')'),('2019-08-02 11:42:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27421\'\n							AND orderlineno = \'0\''),('2019-08-02 11:42:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:42:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26921\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27421\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-305678.65\',\n														\'\' )'),('2019-08-02 11:42:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56557\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:42:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-02 11:42:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26921\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-02 11:42:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27421\'\n							AND orderlineno = \'1\''),('2019-08-02 11:42:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-02 11:42:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26921\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27421\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-31856.78\',\n														\'\' )'),('2019-08-02 11:42:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56558\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:42:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'87.15\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'5\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-02 11:42:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26921\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM x 5 @ 17.43\',\n											\'-87.15\')'),('2019-08-02 11:42:57','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26921\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'505.05\')'),('2019-08-02 11:42:57','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26921\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-41.7\')'),('2019-08-02 11:44:22','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27422\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-02 11:44\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:44:22','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27422\',\n					\'SF500G\',\n					\'16.40\',\n					\'6.15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:44:22','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27422\',\n					\'FF\',\n					\'17.00\',\n					\'10.35\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:44:29','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26922\')\n			WHERE orderno= \'27422\''),('2019-08-02 11:44:29','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26922\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-03\',\n									\'2019-08-02 11-44-29\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27422\',\n									\'276.81\',\n									\'15.84\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:44:29','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33998\',\n									\'1\',\n									\'15.8355\')'),('2019-08-02 11:44:29','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.15,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27422\'\n							AND orderlineno = \'0\''),('2019-08-02 11:44:29','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.15\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-02 11:44:29','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26922\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27422\',\n														\'-6.15\',\n														\'0\',\n														\'0.0000\',\n														\'-9537.131\',\n														\'\' )'),('2019-08-02 11:44:29','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56559\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:44:29','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'100.86\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'6.15\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:44:29','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26922\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 6.15 @ 16.4\',\n											\'-100.86\')'),('2019-08-02 11:44:29','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.35,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27422\'\n							AND orderlineno = \'1\''),('2019-08-02 11:44:29','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.35\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-02 11:44:29','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26922\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27422\',\n														\'-10.35\',\n														\'0\',\n														\'0.0000\',\n														\'-20927.67\',\n														\'\' )'),('2019-08-02 11:44:29','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56560\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:44:29','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'175.95\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10.35\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-02 11:44:29','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26922\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 10.35 @ 17\',\n											\'-175.95\')'),('2019-08-02 11:44:29','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26922\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'292.65\')'),('2019-08-02 11:44:29','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26922\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-15.84\')'),('2019-08-02 11:44:29','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000024868995751603507\n								WHERE counterindex = \'121849\''),('2019-08-02 11:46:48','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27423\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-02 11:46\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:46:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27423\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:46:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27423\',\n					\'LAMB\',\n					\'25.69\',\n					\'5.9\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:46:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27423\',\n					\'FISH\',\n					\'12.00\',\n					\'10.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:47:00','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26923\')\n			WHERE orderno= \'27423\''),('2019-08-02 11:47:00','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26923\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-03\',\n									\'2019-08-02 11-47-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27423\',\n									\'1029.97\',\n									\'81.36\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'33999\',\n									\'1\',\n									\'81.35739\')'),('2019-08-02 11:47:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27423\'\n							AND orderlineno = \'0\''),('2019-08-02 11:47:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26923\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27423\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-305718.65\',\n														\'\' )'),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56561\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'752.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-02 11:47:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26923\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-02 11:47:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.9,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27423\'\n							AND orderlineno = \'1\''),('2019-08-02 11:47:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.9\n						WHERE locstock.stockid = \'LAMB\'\n						AND loccode = \'AN\''),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LAMB\',\n														10,\n														\'26923\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM044\',\n														\'C008\',\n														\'25.69\',\n														\'93\',\n														\'27423\',\n														\'-5.9\',\n														\'0\',\n														\'0.0000\',\n														\'-19373.56\',\n														\'\' )'),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56562\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'151.57\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'5.9\',\n										\'0\',\n										\'LAMB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LAMB\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-02 11:47:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26923\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LAMB x 5.9 @ 25.69\',\n											\'-151.57\')'),('2019-08-02 11:47:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27423\'\n							AND orderlineno = \'2\''),('2019-08-02 11:47:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.5\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26923\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM044\',\n														\'C008\',\n														\'12\',\n														\'93\',\n														\'27423\',\n														\'-10.5\',\n														\'0\',\n														\'0.0000\',\n														\'-45147.9701\',\n														\'\' )'),('2019-08-02 11:47:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56563\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'126\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'10.5\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-02 11:47:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26923\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM044 - FISH x 10.5 @ 12\',\n											\'-126\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26923\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'1111.33\')'),('2019-08-02 11:47:00','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26923\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-81.36\')'),('2019-08-02 11:47:00','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000009947598300641403\n								WHERE counterindex = \'121853\''),('2019-08-02 11:50:31','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27424\',\n								\'TM050\',\n								\'F019\',\n								\'140497koronivia\',\n								\'\',\n								\'2019-08-02 11:50\',\n								\'DE\',\n								\'10\',\n								\'FIJI NATIONAL UNIVERSITY\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:50:31','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27424\',\n					\'CP\',\n					\'15.60\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:50:37','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26924\')\n			WHERE orderno= \'27424\''),('2019-08-02 11:50:37','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26924\',\n									10,\n									\'TM050\',\n									\'F019\',\n									\'2019-08-03\',\n									\'2019-08-02 11-50-37\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27424\',\n									\'312\',\n									\'28.08\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:50:37','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34000\',\n									\'1\',\n									\'28.08\')'),('2019-08-02 11:50:37','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27424\'\n							AND orderlineno = \'0\''),('2019-08-02 11:50:37','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:50:37','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26924\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM050\',\n														\'F019\',\n														\'15.6\',\n														\'93\',\n														\'27424\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-305738.65\',\n														\'\' )'),('2019-08-02 11:50:37','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56564\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:50:37','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'312\',\n										\'0\',\n										\'TM050\',\n										\'F019\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM050\'\n								AND custbranch.branchcode=\'F019\''),('2019-08-02 11:50:37','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26924\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM050 - CP x 20 @ 15.6\',\n											\'-312\')'),('2019-08-02 11:50:37','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26924\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM050\',\n										\'340.08\')'),('2019-08-02 11:50:37','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26924\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM050\',\n											\'-28.08\')'),('2019-08-02 11:52:16','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27425\',\n								\'TM050\',\n								\'F019\',\n								\'140497pasifika\',\n								\'\',\n								\'2019-08-02 11:52\',\n								\'DE\',\n								\'10\',\n								\'FIJI NATIONAL UNIVERSITY\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:52:16','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27425\',\n					\'CP\',\n					\'15.60\',\n					\'200\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:52:21','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26925\')\n			WHERE orderno= \'27425\''),('2019-08-02 11:52:21','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26925\',\n									10,\n									\'TM050\',\n									\'F019\',\n									\'2019-08-03\',\n									\'2019-08-02 11-52-21\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27425\',\n									\'3120\',\n									\'280.8\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:52:21','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34001\',\n									\'1\',\n									\'280.8\')'),('2019-08-02 11:52:21','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 200,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27425\'\n							AND orderlineno = \'0\''),('2019-08-02 11:52:21','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 200\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:52:21','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26925\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM050\',\n														\'F019\',\n														\'15.6\',\n														\'93\',\n														\'27425\',\n														\'-200\',\n														\'0\',\n														\'0.0000\',\n														\'-305938.65\',\n														\'\' )'),('2019-08-02 11:52:21','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56565\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:52:21','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'3120\',\n										\'0\',\n										\'TM050\',\n										\'F019\',\n										\'200\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM050\'\n								AND custbranch.branchcode=\'F019\''),('2019-08-02 11:52:21','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26925\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM050 - CP x 200 @ 15.6\',\n											\'-3120\')'),('2019-08-02 11:52:21','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26925\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM050\',\n										\'3400.8\')'),('2019-08-02 11:52:21','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26925\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM050\',\n											\'-280.8\')'),('2019-08-02 11:54:20','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27426\',\n								\'TM050\',\n								\'F019\',\n								\'140497s/hostel\',\n								\'\',\n								\'2019-08-02 11:54\',\n								\'DE\',\n								\'10\',\n								\'FIJI NATIONAL UNIVERSITY\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:54:20','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27426\',\n					\'CP\',\n					\'15.60\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:54:31','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26926\')\n			WHERE orderno= \'27426\''),('2019-08-02 11:54:31','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26926\',\n									10,\n									\'TM050\',\n									\'F019\',\n									\'2019-08-03\',\n									\'2019-08-02 11-54-31\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27426\',\n									\'1560\',\n									\'140.4\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:54:31','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34002\',\n									\'1\',\n									\'140.4\')'),('2019-08-02 11:54:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27426\'\n							AND orderlineno = \'0\''),('2019-08-02 11:54:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:54:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26926\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM050\',\n														\'F019\',\n														\'15.6\',\n														\'93\',\n														\'27426\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-306038.65\',\n														\'\' )'),('2019-08-02 11:54:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56566\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:54:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'1560\',\n										\'0\',\n										\'TM050\',\n										\'F019\',\n										\'100\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM050\'\n								AND custbranch.branchcode=\'F019\''),('2019-08-02 11:54:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26926\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM050 - CP x 100 @ 15.6\',\n											\'-1560\')'),('2019-08-02 11:54:31','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26926\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM050\',\n										\'1700.4\')'),('2019-08-02 11:54:31','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26926\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM050\',\n											\'-140.4\')'),('2019-08-02 11:55:48','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27427\',\n								\'TM050\',\n								\'F019\',\n								\'140497NURSING\',\n								\'\',\n								\'2019-08-02 11:55\',\n								\'DE\',\n								\'10\',\n								\'FIJI NATIONAL UNIVERSITY\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 11:55:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27427\',\n					\'CP\',\n					\'15.60\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 11:55:54','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26927\')\n			WHERE orderno= \'27427\''),('2019-08-02 11:55:54','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26927\',\n									10,\n									\'TM050\',\n									\'F019\',\n									\'2019-08-03\',\n									\'2019-08-02 11-55-54\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27427\',\n									\'624\',\n									\'56.16\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 11:55:54','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34003\',\n									\'1\',\n									\'56.16\')'),('2019-08-02 11:55:54','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27427\'\n							AND orderlineno = \'0\''),('2019-08-02 11:55:54','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-02 11:55:54','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26927\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM050\',\n														\'F019\',\n														\'15.6\',\n														\'93\',\n														\'27427\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-306078.65\',\n														\'\' )'),('2019-08-02 11:55:54','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56567\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 11:55:54','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'624\',\n										\'0\',\n										\'TM050\',\n										\'F019\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM050\'\n								AND custbranch.branchcode=\'F019\''),('2019-08-02 11:55:54','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26927\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM050 - CP x 40 @ 15.6\',\n											\'-624\')'),('2019-08-02 11:55:54','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26927\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM050\',\n										\'680.16\')'),('2019-08-02 11:55:54','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26927\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM050\',\n											\'-56.16\')'),('2019-08-02 13:32:03','zaabed','UPDATE www_users SET lastvisitdate=\'2019-08-02 13:32:03\'\n							WHERE www_users.userid=\'zaabed\''),('2019-08-02 13:39:21','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27428\',\n								\'TM013\',\n								\'41\',\n								\'00000024\',\n								\'\',\n								\'2019-08-02 13:39\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 13:39:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27428\',\n					\'RS\',\n					\'12\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:39:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27428\',\n					\'SS\',\n					\'17.24\',\n					\'2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:39:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27428\',\n					\'SF500G\',\n					\'16.95\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:39:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27428\',\n					\'BTS\',\n					\'14\',\n					\'4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:39:38','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26928\')\n			WHERE orderno= \'27428\''),('2019-08-02 13:39:38','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26928\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-03\',\n									\'2019-08-02 13-39-38\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27428\',\n									\'177.33\',\n									\'15.96\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34004\',\n									\'1\',\n									\'15.9597\')'),('2019-08-02 13:39:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27428\'\n							AND orderlineno = \'0\''),('2019-08-02 13:39:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RS\',\n														10,\n														\'26928\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27428\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-19838.64\',\n														\'\' )'),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56568\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'36\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26928\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 3 @ 12\',\n											\'-36\')'),('2019-08-02 13:39:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27428\'\n							AND orderlineno = \'1\''),('2019-08-02 13:39:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SS\',\n														10,\n														\'26928\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27428\',\n														\'-2\',\n														\'0\',\n														\'0.0000\',\n														\'-6692.65\',\n														\'\' )'),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56569\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'34.48\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26928\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2 @ 17.24\',\n											\'-34.48\')'),('2019-08-02 13:39:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27428\'\n							AND orderlineno = \'2\''),('2019-08-02 13:39:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26928\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27428\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-9540.131\',\n														\'\' )'),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56570\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'50.85\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26928\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3 @ 16.95\',\n											\'-50.85\')'),('2019-08-02 13:39:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27428\'\n							AND orderlineno = \'3\''),('2019-08-02 13:39:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BTS\',\n														10,\n														\'26928\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27428\',\n														\'-4\',\n														\'0\',\n														\'0.0000\',\n														\'-5475.01\',\n														\'\' )'),('2019-08-02 13:39:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56571\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'56\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26928\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 4 @ 14\',\n											\'-56\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26928\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'193.29\')'),('2019-08-02 13:39:38','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26928\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-15.96\')'),('2019-08-02 13:39:38','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000007105427357601002\n								WHERE counterindex = \'121870\''),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27429\',\n								\'TM013\',\n								\'41\',\n								\'00000152\',\n								\'\',\n								\'2019-08-02 13:42\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27429\',\n					\'RE\',\n					\'32\',\n					\'1.35\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27429\',\n					\'RDS\',\n					\'12\',\n					\'3.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27429\',\n					\'RS\',\n					\'12\',\n					\'3.45\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27429\',\n					\'SF500G\',\n					\'16.95\',\n					\'5.05\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:42:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27429\',\n					\'SS\',\n					\'17.24\',\n					\'2.85\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:42:26','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26929\')\n			WHERE orderno= \'27429\''),('2019-08-02 13:42:26','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26929\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-03\',\n									\'2019-08-02 13-42-26\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27429\',\n									\'261.33\',\n									\'23.52\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34005\',\n									\'1\',\n									\'23.519835\')'),('2019-08-02 13:42:26','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1.35,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27429\'\n							AND orderlineno = \'0\''),('2019-08-02 13:42:26','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1.35\n						WHERE locstock.stockid = \'RE\'\n						AND loccode = \'AN\''),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RE\',\n														10,\n														\'26929\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'32\',\n														\'93\',\n														\'27429\',\n														\'-1.35\',\n														\'0\',\n														\'0.0000\',\n														\'-14300.11\',\n														\'\' )'),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56572\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'43.2\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'1.35\',\n										\'0\',\n										\'RE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RE\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RE x 1.35 @ 32\',\n											\'-43.2\')'),('2019-08-02 13:42:26','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27429\'\n							AND orderlineno = \'1\''),('2019-08-02 13:42:26','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.5\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RDS\',\n														10,\n														\'26929\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27429\',\n														\'-3.5\',\n														\'0\',\n														\'0.0000\',\n														\'-914.44\',\n														\'\' )'),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56573\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'42\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.5\',\n										\'0\',\n										\'RDS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RDS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 3.5 @ 12\',\n											\'-42\')'),('2019-08-02 13:42:26','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.45,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27429\'\n							AND orderlineno = \'2\''),('2019-08-02 13:42:26','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.45\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RS\',\n														10,\n														\'26929\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27429\',\n														\'-3.45\',\n														\'0\',\n														\'0.0000\',\n														\'-19842.09\',\n														\'\' )'),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56574\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'41.4\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.45\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 3.45 @ 12\',\n											\'-41.4\')'),('2019-08-02 13:42:26','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.05,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27429\'\n							AND orderlineno = \'3\''),('2019-08-02 13:42:26','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.05\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26929\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27429\',\n														\'-5.05\',\n														\'0\',\n														\'0.0000\',\n														\'-9545.181\',\n														\'\' )'),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56575\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'85.6\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'5.05\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 5.05 @ 16.95\',\n											\'-85.6\')'),('2019-08-02 13:42:26','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.85,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27429\'\n							AND orderlineno = \'4\''),('2019-08-02 13:42:26','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.85\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SS\',\n														10,\n														\'26929\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27429\',\n														\'-2.85\',\n														\'0\',\n														\'0.0000\',\n														\'-6695.5\',\n														\'\' )'),('2019-08-02 13:42:26','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56576\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'49.13\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.85\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.85 @ 17.24\',\n											\'-49.13\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26929\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'284.85\')'),('2019-08-02 13:42:26','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26929\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-23.52\')'),('2019-08-02 13:42:26','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000003907985046680551\n								WHERE counterindex = \'121876\''),('2019-08-02 13:44:15','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27430\',\n								\'TM013\',\n								\'41\',\n								\'KSPN004401\',\n								\'\',\n								\'2019-08-02 13:44\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 13:44:15','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27430\',\n					\'BF\',\n					\'14\',\n					\'12\',\n					\'0\',\n					\'diced\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:44:24','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26930\')\n			WHERE orderno= \'27430\''),('2019-08-02 13:44:24','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26930\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-03\',\n									\'2019-08-02 13-44-24\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27430\',\n									\'168\',\n									\'15.12\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 13:44:24','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34006\',\n									\'1\',\n									\'15.12\')'),('2019-08-02 13:44:24','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27430\'\n							AND orderlineno = \'0\''),('2019-08-02 13:44:24','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12\n						WHERE locstock.stockid = \'BF\'\n						AND loccode = \'AN\''),('2019-08-02 13:44:24','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BF\',\n														10,\n														\'26930\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27430\',\n														\'-12\',\n														\'0\',\n														\'0.0000\',\n														\'-6548.71\',\n														\'diced\' )'),('2019-08-02 13:44:24','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56577\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:44:24','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'168\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'12\',\n										\'0\',\n										\'BF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BF\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-02 13:44:24','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26930\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BF x 12 @ 14\',\n											\'-168\')'),('2019-08-02 13:44:24','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26930\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'183.12\')'),('2019-08-02 13:44:24','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26930\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-15.12\')'),('2019-08-02 13:52:59','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27431\',\n								\'TM087\',\n								\'S051\',\n								\'12282\',\n								\'\',\n								\'2019-08-02 13:52\',\n								\'DE\',\n								\'10\',\n								\'SUVA MOTOR INN\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 13:52:59','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27431\',\n					\'BM500G\',\n					\'10.00\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:52:59','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27431\',\n					\'WAHOO\',\n					\'22\',\n					\'10.15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:53:11','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26931\')\n			WHERE orderno= \'27431\''),('2019-08-02 13:53:11','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26931\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-08-03\',\n									\'2019-08-02 13-53-11\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27431\',\n									\'273.3\',\n									\'24.6\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 13:53:11','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34007\',\n									\'1\',\n									\'24.597\')'),('2019-08-02 13:53:11','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27431\'\n							AND orderlineno = \'0\''),('2019-08-02 13:53:11','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-02 13:53:11','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26931\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM087\',\n														\'S051\',\n														\'10\',\n														\'93\',\n														\'27431\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-71667.11\',\n														\'\' )'),('2019-08-02 13:53:11','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56578\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:53:11','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'50\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'5\',\n										\'0\',\n										\'BM500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BM500G\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-02 13:53:11','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26931\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM087 - BM500G x 5 @ 10\',\n											\'-50\')'),('2019-08-02 13:53:11','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.15,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27431\'\n							AND orderlineno = \'1\''),('2019-08-02 13:53:11','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.15\n						WHERE locstock.stockid = \'WAHOO\'\n						AND loccode = \'AN\''),('2019-08-02 13:53:11','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'WAHOO\',\n														10,\n														\'26931\',\n														\'AN\',\n														\'2019-08-03\',\n														\'TM087\',\n														\'S051\',\n														\'22\',\n														\'93\',\n														\'27431\',\n														\'-10.15\',\n														\'0\',\n														\'0.0000\',\n														\'-52262.7\',\n														\'\' )'),('2019-08-02 13:53:11','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56579\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:53:11','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'223.3\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'10.15\',\n										\'0\',\n										\'WAHOO\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WAHOO\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-02 13:53:11','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26931\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'TM087 - WAHOO x 10.15 @ 22\',\n											\'-223.3\')'),('2019-08-02 13:53:11','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26931\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'TM087\',\n										\'297.9\')'),('2019-08-02 13:53:11','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26931\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'TM087\',\n											\'-24.6\')'),('2019-08-02 13:53:11','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000003552713678800501\n								WHERE counterindex = \'121886\''),('2019-08-02 13:56:11','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27432\',\n								\'72\',\n								\'S090\',\n								\'\',\n								\'\',\n								\'2019-08-02 13:56\',\n								\'DE\',\n								\'10\',\n								\'SATISH FOOD MART\',\n								\'TAVEUNI\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'2019-08-03\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-02 13:56:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27432\',\n					\'LCPS\',\n					\'14.22\',\n					\'17.67\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:56:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27432\',\n					\'LF\',\n					\'19.26\',\n					\'43.38\',\n					\'0\',\n					\'21.6/21.78\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:56:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27432\',\n					\'LN\',\n					\'12.84\',\n					\'48.25\',\n					\'0\',\n					\'24.28/23.97\',\n					\'\',\n					\'2019-08-02\'\n				)'),('2019-08-02 13:56:48','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26932\')\n			WHERE orderno= \'27432\''),('2019-08-02 13:56:48','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26932\',\n									10,\n									\'72\',\n									\'S090\',\n									\'2019-08-03\',\n									\'2019-08-02 13-56-48\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27432\',\n									\'1706.3\',\n									\'153.57\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34008\',\n									\'1\',\n									\'153.566658\')'),('2019-08-02 13:56:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 17.67,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27432\'\n							AND orderlineno = \'0\''),('2019-08-02 13:56:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 17.67\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCPS\',\n														10,\n														\'26932\',\n														\'AN\',\n														\'2019-08-03\',\n														\'72\',\n														\'S090\',\n														\'14.22\',\n														\'93\',\n														\'27432\',\n														\'-17.67\',\n														\'0\',\n														\'0.0000\',\n														\'-45821.09\',\n														\'\' )'),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56580\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'251.27\',\n										\'0\',\n										\'72\',\n										\'S090\',\n										\'17.67\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'72\'\n								AND custbranch.branchcode=\'S090\''),('2019-08-02 13:56:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26932\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'72 - LCPS x 17.67 @ 14.22\',\n											\'-251.27\')'),('2019-08-02 13:56:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 43.38,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27432\'\n							AND orderlineno = \'1\''),('2019-08-02 13:56:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 43.38\n						WHERE locstock.stockid = \'LF\'\n						AND loccode = \'AN\''),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LF\',\n														10,\n														\'26932\',\n														\'AN\',\n														\'2019-08-03\',\n														\'72\',\n														\'S090\',\n														\'19.26\',\n														\'93\',\n														\'27432\',\n														\'-43.38\',\n														\'0\',\n														\'0.0000\',\n														\'-540180.38\',\n														\'21.6/21.78\' )'),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56581\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'835.5\',\n										\'0\',\n										\'72\',\n										\'S090\',\n										\'43.38\',\n										\'0\',\n										\'LF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LF\'\n								AND custbranch.debtorno = \'72\'\n								AND custbranch.branchcode=\'S090\''),('2019-08-02 13:56:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26932\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'72 - LF x 43.38 @ 19.26\',\n											\'-835.5\')'),('2019-08-02 13:56:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 48.25,\n								actualdispatchdate = \'2019-08-03\',\n								completed=1\n							WHERE orderno = \'27432\'\n							AND orderlineno = \'2\''),('2019-08-02 13:56:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 48.25\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'26932\',\n														\'AN\',\n														\'2019-08-03\',\n														\'72\',\n														\'S090\',\n														\'12.84\',\n														\'93\',\n														\'27432\',\n														\'-48.25\',\n														\'0\',\n														\'0.0000\',\n														\'-258892.29\',\n														\'24.28/23.97\' )'),('2019-08-02 13:56:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56582\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'619.53\',\n										\'0\',\n										\'72\',\n										\'S090\',\n										\'48.25\',\n										\'0\',\n										\'LN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN\'\n								AND custbranch.debtorno = \'72\'\n								AND custbranch.branchcode=\'S090\''),('2019-08-02 13:56:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26932\',\n											\'2019-08-03\',\n											\'93\',\n											\'4100\',\n											\'72 - LN x 48.25 @ 12.84\',\n											\'-619.53\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26932\',\n										\'2019-08-03\',\n										\'93\',\n										\'1100\',\n										\'72\',\n										\'1859.87\')'),('2019-08-02 13:56:48','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26932\',\n											\'2019-08-03\',\n											\'93\',\n											\'2300\',\n											\'72\',\n											\'-153.57\')'),('2019-08-02 13:56:48','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000005684341886080802\n								WHERE counterindex = \'121890\''),('2019-08-03 11:10:59','zaabed','UPDATE config SET confvalue = \'2019-08-03\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-03 11:19:34','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27433\',\n								\'TM069\',\n								\'N003\',\n								\'11316\',\n								\'\',\n								\'2019-08-03 11:19\',\n								\'DE\',\n								\'1\',\n								\'NATIONAL HIRE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:19:34','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27433\',\n					\'BG\',\n					\'7.80\',\n					\'6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:19:34','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27433\',\n					\'LCP\',\n					\'20.00\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:19:34','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27433\',\n					\'G1\',\n					\'14\',\n					\'19.4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:19:34','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27433\',\n					\'WS\',\n					\'18.35\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:19:45','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26933\')\n			WHERE orderno= \'27433\''),('2019-08-03 11:19:45','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26933\',\n									10,\n									\'TM069\',\n									\'N003\',\n									\'2019-08-04\',\n									\'2019-08-03 11-19-45\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27433\',\n									\'510.15\',\n									\'21.47\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34009\',\n									\'1\',\n									\'21.4695\')'),('2019-08-03 11:19:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27433\'\n							AND orderlineno = \'0\''),('2019-08-03 11:19:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6\n						WHERE locstock.stockid = \'BG\'\n						AND loccode = \'AN\''),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BG\',\n														10,\n														\'26933\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM069\',\n														\'N003\',\n														\'7.8\',\n														\'93\',\n														\'27433\',\n														\'-6\',\n														\'0\',\n														\'0.0000\',\n														\'-688\',\n														\'\' )'),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56583\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'46.8\',\n										\'0\',\n										\'TM069\',\n										\'N003\',\n										\'6\',\n										\'0\',\n										\'BG\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BG\'\n								AND custbranch.debtorno = \'TM069\'\n								AND custbranch.branchcode=\'N003\''),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26933\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM069 - BG x 6 @ 7.8\',\n											\'-46.8\')'),('2019-08-03 11:19:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27433\'\n							AND orderlineno = \'1\''),('2019-08-03 11:19:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LCP\'\n						AND loccode = \'AN\''),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCP\',\n														10,\n														\'26933\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM069\',\n														\'N003\',\n														\'20\',\n														\'93\',\n														\'27433\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-63608.13\',\n														\'\' )'),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56584\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'100\',\n										\'0\',\n										\'TM069\',\n										\'N003\',\n										\'5\',\n										\'0\',\n										\'LCP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCP\'\n								AND custbranch.debtorno = \'TM069\'\n								AND custbranch.branchcode=\'N003\''),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26933\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM069 - LCP x 5 @ 20\',\n											\'-100\')'),('2019-08-03 11:19:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 19.4,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27433\'\n							AND orderlineno = \'2\''),('2019-08-03 11:19:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 19.4\n						WHERE locstock.stockid = \'G1\'\n						AND loccode = \'AN\''),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'G1\',\n														10,\n														\'26933\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM069\',\n														\'N003\',\n														\'14\',\n														\'93\',\n														\'27433\',\n														\'-19.4\',\n														\'0\',\n														\'0.0000\',\n														\'-29249.4\',\n														\'\' )'),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56585\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'271.6\',\n										\'0\',\n										\'TM069\',\n										\'N003\',\n										\'19.4\',\n										\'0\',\n										\'G1\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'G1\'\n								AND custbranch.debtorno = \'TM069\'\n								AND custbranch.branchcode=\'N003\''),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26933\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM069 - G1 x 19.4 @ 14\',\n											\'-271.6\')'),('2019-08-03 11:19:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27433\'\n							AND orderlineno = \'3\''),('2019-08-03 11:19:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'WS\'\n						AND loccode = \'AN\''),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'WS\',\n														10,\n														\'26933\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM069\',\n														\'N003\',\n														\'18.35\',\n														\'93\',\n														\'27433\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-59419.03\',\n														\'\' )'),('2019-08-03 11:19:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56586\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'91.75\',\n										\'0\',\n										\'TM069\',\n										\'N003\',\n										\'5\',\n										\'0\',\n										\'WS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WS\'\n								AND custbranch.debtorno = \'TM069\'\n								AND custbranch.branchcode=\'N003\''),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26933\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM069 - WS x 5 @ 18.35\',\n											\'-91.75\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26933\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM069\',\n										\'531.62\')'),('2019-08-03 11:19:45','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26933\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM069\',\n											\'-21.47\')'),('2019-08-03 11:19:45','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000002842170943040401\n								WHERE counterindex = \'121895\''),('2019-08-03 11:20:47','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27434\',\n								\'133\',\n								\'133\',\n								\'pick up\',\n								\'\',\n								\'2019-08-03 11:20\',\n								\'DE\',\n								\'1\',\n								\'YUM YUM LTD \',\n								\'Bure 3 Kundan Complex, 198-200 Prncs Rd \',\n								\'Tamavua\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'3380500\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:20:47','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27434\',\n					\'SW\',\n					\'15\',\n					\'3.69\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:20:55','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26934\')\n			WHERE orderno= \'27434\''),('2019-08-03 11:20:55','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26934\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-04\',\n									\'2019-08-03 11-20-55\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27434\',\n									\'55.35\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:20:55','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34010\',\n									\'1\',\n									\'0\')'),('2019-08-03 11:20:55','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.69,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27434\'\n							AND orderlineno = \'0\''),('2019-08-03 11:20:55','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.69\n						WHERE locstock.stockid = \'SW\'\n						AND loccode = \'AN\''),('2019-08-03 11:20:55','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SW\',\n														10,\n														\'26934\',\n														\'AN\',\n														\'2019-08-04\',\n														\'133\',\n														\'133\',\n														\'15\',\n														\'93\',\n														\'27434\',\n														\'-3.69\',\n														\'0\',\n														\'0.0000\',\n														\'-9752.01\',\n														\'\' )'),('2019-08-03 11:20:55','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56587\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:20:55','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'55.35\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'3.69\',\n										\'0\',\n										\'SW\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SW\'\n								AND custbranch.debtorno = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-03 11:20:55','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26934\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'133 - SW x 3.69 @ 15\',\n											\'-55.35\')'),('2019-08-03 11:20:55','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26934\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'55.35\')'),('2019-08-03 11:22:10','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27435\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-03 11:22\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:22:10','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27435\',\n					\'FF\',\n					\'17.00\',\n					\'22.5\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:22:17','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26935\')\n			WHERE orderno= \'27435\''),('2019-08-03 11:22:17','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26935\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-04\',\n									\'2019-08-03 11-22-17\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27435\',\n									\'382.5\',\n									\'34.43\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:22:17','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34011\',\n									\'1\',\n									\'34.425\')'),('2019-08-03 11:22:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 22.5,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27435\'\n							AND orderlineno = \'0\''),('2019-08-03 11:22:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 22.5\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-03 11:22:17','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26935\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27435\',\n														\'-22.5\',\n														\'0\',\n														\'0.0000\',\n														\'-20950.17\',\n														\'marlin\' )'),('2019-08-03 11:22:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56588\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:22:17','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'382.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'22.5\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-03 11:22:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26935\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 22.5 @ 17\',\n											\'-382.5\')'),('2019-08-03 11:22:17','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26935\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'416.93\')'),('2019-08-03 11:22:17','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26935\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-34.43\')'),('2019-08-03 11:24:27','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27436\',\n								\'TM002\',\n								\'1\',\n								\'18714\',\n								\'\',\n								\'2019-08-03 11:24\',\n								\'DE\',\n								\'10\',\n								\'Vatuvara Limited\',\n								\'P O Box 586\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:24:27','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27436\',\n					\'FISH\',\n					\'9.63\',\n					\'40\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:24:35','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26936\')\n			WHERE orderno= \'27436\''),('2019-08-03 11:24:35','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26936\',\n									10,\n									\'TM002\',\n									\'1\',\n									\'2019-08-04\',\n									\'2019-08-03 11-24-35\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27436\',\n									\'385.2\',\n									\'34.67\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:24:35','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34012\',\n									\'1\',\n									\'34.668\')'),('2019-08-03 11:24:35','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27436\'\n							AND orderlineno = \'0\''),('2019-08-03 11:24:35','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-03 11:24:35','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26936\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM002\',\n														\'1\',\n														\'9.63\',\n														\'93\',\n														\'27436\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-45187.9701\',\n														\'marlin\' )'),('2019-08-03 11:24:35','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56589\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:24:35','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'385.2\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'40\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-03 11:24:35','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26936\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM002 - FISH x 40 @ 9.63\',\n											\'-385.2\')'),('2019-08-03 11:24:35','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26936\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM002\',\n										\'419.87\')'),('2019-08-03 11:24:35','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26936\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM002\',\n											\'-34.67\')'),('2019-08-03 11:28:45','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27437\',\n								\'TM009\',\n								\'30\',\n								\'15786lp3\',\n								\'\',\n								\'2019-08-03 11:28\',\n								\'DE\',\n								\'10\',\n								\'GOUNDAR SHIPPING LIMITED\',\n								\'P O BOX 672 SUVA\',\n								\'3301021\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:28:45','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27437\',\n					\'LPP\',\n					\'12.66\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:28:51','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26937\')\n			WHERE orderno= \'27437\''),('2019-08-03 11:28:51','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26937\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-04\',\n									\'2019-08-03 11-28-51\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27437\',\n									\'253.2\',\n									\'22.79\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:28:51','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34013\',\n									\'1\',\n									\'22.788\')'),('2019-08-03 11:28:51','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27437\'\n							AND orderlineno = \'0\''),('2019-08-03 11:28:51','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-03 11:28:51','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'26937\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27437\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-58831.52\',\n														\'\' )'),('2019-08-03 11:28:51','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56590\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:28:51','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'253.2\',\n										\'0\',\n										\'TM009\',\n										\'30\',\n										\'20\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM009\'\n								AND custbranch.branchcode=\'30\''),('2019-08-03 11:28:51','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26937\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LPP x 20 @ 12.66\',\n											\'-253.2\')'),('2019-08-03 11:28:51','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26937\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'275.99\')'),('2019-08-03 11:28:51','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26937\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-22.79\')'),('2019-08-03 11:28:51','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000021316282072803006\n								WHERE counterindex = \'121909\''),('2019-08-03 11:30:56','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27438\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-03 11:30\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:30:56','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27438\',\n					\'CP\',\n					\'18.81\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:30:56','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27438\',\n					\'MBT\',\n					\'9.50\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:31:09','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26938\')\n			WHERE orderno= \'27438\''),('2019-08-03 11:31:09','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26938\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-04\',\n									\'2019-08-03 11-31-09\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27438\',\n									\'378.1\',\n									\'16.93\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:31:09','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34014\',\n									\'1\',\n									\'16.929\')'),('2019-08-03 11:31:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27438\'\n							AND orderlineno = \'0\''),('2019-08-03 11:31:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-03 11:31:09','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26938\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27438\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-306088.65\',\n														\'\' )'),('2019-08-03 11:31:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56591\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:31:09','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'188.1\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-03 11:31:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26938\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 10 @ 18.81\',\n											\'-188.1\')'),('2019-08-03 11:31:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27438\'\n							AND orderlineno = \'1\''),('2019-08-03 11:31:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-03 11:31:09','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26938\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27438\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7177.6\',\n														\'\' )'),('2019-08-03 11:31:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56592\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:31:09','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-03 11:31:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26938\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 20 @ 9.5\',\n											\'-190\')'),('2019-08-03 11:31:09','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26938\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'395.03\')'),('2019-08-03 11:31:09','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26938\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-16.93\')'),('2019-08-03 11:31:09','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000004973799150320701\n								WHERE counterindex = \'121912\''),('2019-08-03 11:35:05','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27439\',\n								\'TM092\',\n								\'T031\',\n								\'448000nypk\',\n								\'\',\n								\'2019-08-03 11:35\',\n								\'DE\',\n								\'10\',\n								\'TAPPOOS LTD\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:35:05','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27439\',\n					\'LM\',\n					\'18.35\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:35:23','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26939\')\n			WHERE orderno= \'27439\''),('2019-08-03 11:35:23','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26939\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-04\',\n									\'2019-08-03 11-35-23\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27439\',\n									\'917.5\',\n									\'82.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:35:23','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34015\',\n									\'1\',\n									\'82.575\')'),('2019-08-03 11:35:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27439\'\n							AND orderlineno = \'0\''),('2019-08-03 11:35:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-03 11:35:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26939\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM092\',\n														\'T031\',\n														\'18.35\',\n														\'93\',\n														\'27439\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-31906.78\',\n														\'\' )'),('2019-08-03 11:35:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56593\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:35:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'917.5\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'50\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-03 11:35:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26939\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LM x 50 @ 18.35\',\n											\'-917.5\')'),('2019-08-03 11:35:23','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26939\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'1000.08\')'),('2019-08-03 11:35:23','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26939\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-82.58\')'),('2019-08-03 11:38:43','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27440\',\n								\'TM092\',\n								\'T031\',\n								\'448001madras\',\n								\'\',\n								\'2019-08-03 11:38\',\n								\'DE\',\n								\'10\',\n								\'TAPPOOS LTD\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:38:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27440\',\n					\'LPP\',\n					\'16.98\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:38:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27440\',\n					\'FISH\',\n					\'12.50\',\n					\'10\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:38:51','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26940\')\n			WHERE orderno= \'27440\''),('2019-08-03 11:38:51','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26940\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-04\',\n									\'2019-08-03 11-38-51\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27440\',\n									\'634.4\',\n									\'45.85\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:38:51','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34016\',\n									\'1\',\n									\'45.846\')'),('2019-08-03 11:38:51','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27440\'\n							AND orderlineno = \'0\''),('2019-08-03 11:38:51','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-03 11:38:51','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'26940\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM092\',\n														\'T031\',\n														\'16.98\',\n														\'93\',\n														\'27440\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-58861.52\',\n														\'\' )'),('2019-08-03 11:38:51','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56594\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:38:51','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'509.4\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'30\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-03 11:38:51','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26940\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LPP x 30 @ 16.98\',\n											\'-509.4\')'),('2019-08-03 11:38:51','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27440\'\n							AND orderlineno = \'1\''),('2019-08-03 11:38:51','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-03 11:38:51','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26940\',\n														\'AN\',\n														\'2019-08-04\',\n														\'TM092\',\n														\'T031\',\n														\'12.5\',\n														\'93\',\n														\'27440\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-45197.9701\',\n														\'marlin\' )'),('2019-08-03 11:38:51','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56595\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:38:51','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'125\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'10\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-03 11:38:51','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26940\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'TM092 - FISH x 10 @ 12.5\',\n											\'-125\')'),('2019-08-03 11:38:51','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26940\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'680.25\')'),('2019-08-03 11:38:51','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26940\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-45.85\')'),('2019-08-03 11:47:21','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27441\',\n								\'98\',\n								\'98\',\n								\'\',\n								\'\',\n								\'2019-08-03 11:47\',\n								\'DE\',\n								\'1\',\n								\'WEST MEAT\',\n								\'LAUTOKA\',\n								\'\',\n								\'CITY\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'2019-08-04\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-03 11:47:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27441\',\n					\'LM\',\n					\'15.00\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:47:21','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27441\',\n					\'TA\',\n					\'40.00\',\n					\'59.14\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-03\'\n				)'),('2019-08-03 11:47:28','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26941\')\n			WHERE orderno= \'27441\''),('2019-08-03 11:47:28','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26941\',\n									10,\n									\'98\',\n									\'98\',\n									\'2019-08-04\',\n									\'2019-08-03 11-47-28\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27441\',\n									\'3865.6\',\n									\'347.9\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-03 11:47:28','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34017\',\n									\'1\',\n									\'347.904\')'),('2019-08-03 11:47:28','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27441\'\n							AND orderlineno = \'0\''),('2019-08-03 11:47:28','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-03 11:47:28','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26941\',\n														\'AN\',\n														\'2019-08-04\',\n														\'98\',\n														\'98\',\n														\'15\',\n														\'93\',\n														\'27441\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-32006.78\',\n														\'\' )'),('2019-08-03 11:47:28','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56596\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:47:28','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'1500\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'100\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-03 11:47:28','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26941\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'98 - LM x 100 @ 15\',\n											\'-1500\')'),('2019-08-03 11:47:28','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 59.14,\n								actualdispatchdate = \'2019-08-04\',\n								completed=1\n							WHERE orderno = \'27441\'\n							AND orderlineno = \'1\''),('2019-08-03 11:47:28','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 59.14\n						WHERE locstock.stockid = \'TA\'\n						AND loccode = \'AN\''),('2019-08-03 11:47:28','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'TA\',\n														10,\n														\'26941\',\n														\'AN\',\n														\'2019-08-04\',\n														\'98\',\n														\'98\',\n														\'40\',\n														\'93\',\n														\'27441\',\n														\'-59.14\',\n														\'0\',\n														\'0.0000\',\n														\'-28681.58\',\n														\'\' )'),('2019-08-03 11:47:28','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56597\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-03 11:47:28','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'2365.6\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'59.14\',\n										\'0\',\n										\'TA\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'TA\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-03 11:47:28','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26941\',\n											\'2019-08-04\',\n											\'93\',\n											\'4100\',\n											\'98 - TA x 59.14 @ 40\',\n											\'-2365.6\')'),('2019-08-03 11:47:28','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26941\',\n										\'2019-08-04\',\n										\'93\',\n										\'1100\',\n										\'98\',\n										\'4213.5\')'),('2019-08-03 11:47:28','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26941\',\n											\'2019-08-04\',\n											\'93\',\n											\'2300\',\n											\'98\',\n											\'-347.9\')'),('2019-08-05 08:28:31','zaabed','UPDATE config SET confvalue = \'2019-08-05\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-05 08:29:18','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27442\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c pick up\',\n								\'\',\n								\'2019-08-05 08:29\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 08:29:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27442\',\n					\'SW\',\n					\'15\',\n					\'5.46\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 08:29:23','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26942\')\n			WHERE orderno= \'27442\''),('2019-08-05 08:29:23','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26942\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-06\',\n									\'2019-08-05 08-29-23\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27442\',\n									\'81.9\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 08:29:23','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34018\',\n									\'1\',\n									\'0\')'),('2019-08-05 08:29:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.46,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27442\'\n							AND orderlineno = \'0\''),('2019-08-05 08:29:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.46\n						WHERE locstock.stockid = \'SW\'\n						AND loccode = \'AN\''),('2019-08-05 08:29:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SW\',\n														10,\n														\'26942\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM074\',\n														\'P001\',\n														\'15\',\n														\'93\',\n														\'27442\',\n														\'-5.46\',\n														\'0\',\n														\'0.0000\',\n														\'-9757.47\',\n														\'\' )'),('2019-08-05 08:29:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56598\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-05 08:29:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'81.9\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5.46\',\n										\'0\',\n										\'SW\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SW\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-05 08:29:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26942\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SW x 5.46 @ 15\',\n											\'-81.9\')'),('2019-08-05 08:29:23','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26942\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'81.9\')'),('2019-08-05 10:45:26','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27443\',\n								\'TM040\',\n								\'89\',\n								\'\',\n								\'\',\n								\'2019-08-05 10:45\',\n								\'DE\',\n								\'10\',\n								\'Fair Privce Supermarket\',\n								\'Naqara \',\n								\'Taveuni\',\n								\'\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 10:45:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27443\',\n					\'LN\',\n					\'12.84\',\n					\'68.03\',\n					\'0\',\n					\'23.45/22.33/22.25\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:45:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27443\',\n					\'LCPS\',\n					\'14.22\',\n					\'40.8\',\n					\'0\',\n					\'17.87/22.93\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:45:36','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26943\')\n			WHERE orderno= \'27443\''),('2019-08-05 10:45:36','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26943\',\n									10,\n									\'TM040\',\n									\'89\',\n									\'2019-08-06\',\n									\'2019-08-05 10-45-36\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27443\',\n									\'1453.68\',\n									\'130.83\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 10:45:36','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34019\',\n									\'1\',\n									\'130.831308\')'),('2019-08-05 10:45:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 68.03,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27443\'\n							AND orderlineno = \'0\''),('2019-08-05 10:45:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 68.03\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-05 10:45:36','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'26943\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM040\',\n														\'89\',\n														\'12.84\',\n														\'93\',\n														\'27443\',\n														\'-68.03\',\n														\'0\',\n														\'0.0000\',\n														\'-258960.32\',\n														\'23.45/22.33/22.25\' )'),('2019-08-05 10:45:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56599\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:45:36','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'873.51\',\n										\'0\',\n										\'TM040\',\n										\'89\',\n										\'68.03\',\n										\'0\',\n										\'LN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN\'\n								AND custbranch.debtorno = \'TM040\'\n								AND custbranch.branchcode=\'89\''),('2019-08-05 10:45:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26943\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM040 - LN x 68.03 @ 12.84\',\n											\'-873.51\')'),('2019-08-05 10:45:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40.8,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27443\'\n							AND orderlineno = \'1\''),('2019-08-05 10:45:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40.8\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-05 10:45:36','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCPS\',\n														10,\n														\'26943\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM040\',\n														\'89\',\n														\'14.22\',\n														\'93\',\n														\'27443\',\n														\'-40.8\',\n														\'0\',\n														\'0.0000\',\n														\'-45861.89\',\n														\'17.87/22.93\' )'),('2019-08-05 10:45:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56600\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:45:36','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'580.18\',\n										\'0\',\n										\'TM040\',\n										\'89\',\n										\'40.8\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'TM040\'\n								AND custbranch.branchcode=\'89\''),('2019-08-05 10:45:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26943\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM040 - LCPS x 40.8 @ 14.22\',\n											\'-580.18\')'),('2019-08-05 10:45:36','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26943\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM040\',\n										\'1584.51\')'),('2019-08-05 10:45:36','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26943\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM040\',\n											\'-130.83\')'),('2019-08-05 10:45:36','zaabed','UPDATE gltrans SET amount = amount - -0.01000000000007617\n								WHERE counterindex = \'121929\''),('2019-08-05 10:48:57','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27444\',\n								\'TM011\',\n								\'34\',\n								\'6874tfz\',\n								\'\',\n								\'2019-08-05 10:48\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 10:48:57','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27444\',\n					\'LSP\',\n					\'7.8\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:49:02','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26944\')\n			WHERE orderno= \'27444\''),('2019-08-05 10:49:02','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26944\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-06\',\n									\'2019-08-05 10-49-02\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27444\',\n									\'78\',\n									\'7.02\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 10:49:02','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34020\',\n									\'1\',\n									\'7.02\')'),('2019-08-05 10:49:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27444\'\n							AND orderlineno = \'0\''),('2019-08-05 10:49:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-08-05 10:49:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LSP\',\n														10,\n														\'26944\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'7.8\',\n														\'93\',\n														\'27444\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-39781.34\',\n														\'\' )'),('2019-08-05 10:49:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56601\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:49:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'78\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'10\',\n										\'0\',\n										\'LSP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 10:49:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26944\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LSP x 10 @ 7.8\',\n											\'-78\')'),('2019-08-05 10:49:02','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26944\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'85.02\')'),('2019-08-05 10:49:02','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26944\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-7.02\')'),('2019-08-05 10:51:02','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27445\',\n								\'TM011\',\n								\'34\',\n								\'6875s/c\',\n								\'\',\n								\'2019-08-05 10:51\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 10:51:02','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27445\',\n					\'LSP\',\n					\'7.80\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:51:07','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26945\')\n			WHERE orderno= \'27445\''),('2019-08-05 10:51:07','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26945\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-06\',\n									\'2019-08-05 10-51-07\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27445\',\n									\'39\',\n									\'3.51\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 10:51:07','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34021\',\n									\'1\',\n									\'3.51\')'),('2019-08-05 10:51:07','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27445\'\n							AND orderlineno = \'0\''),('2019-08-05 10:51:07','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-08-05 10:51:07','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LSP\',\n														10,\n														\'26945\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'7.8\',\n														\'93\',\n														\'27445\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-39786.34\',\n														\'\' )'),('2019-08-05 10:51:07','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56602\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:51:07','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'39\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'5\',\n										\'0\',\n										\'LSP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 10:51:07','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26945\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LSP x 5 @ 7.8\',\n											\'-39\')'),('2019-08-05 10:51:07','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26945\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'42.51\')'),('2019-08-05 10:51:07','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26945\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-3.51\')'),('2019-08-05 10:52:36','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27446\',\n								\'TM011\',\n								\'34\',\n								\'6876suva\',\n								\'\',\n								\'2019-08-05 10:52\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 10:52:36','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27446\',\n					\'BM500G\',\n					\'14.63\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:52:36','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27446\',\n					\'LCP\',\n					\'17.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:53:02','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26946\')\n			WHERE orderno= \'27446\''),('2019-08-05 10:53:02','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26946\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-06\',\n									\'2019-08-05 10-53-02\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27446\',\n									\'408.8\',\n									\'36.79\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 10:53:02','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34022\',\n									\'1\',\n									\'36.792\')'),('2019-08-05 10:53:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27446\'\n							AND orderlineno = \'0\''),('2019-08-05 10:53:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-05 10:53:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26946\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'14.63\',\n														\'93\',\n														\'27446\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-71677.11\',\n														\'\' )'),('2019-08-05 10:53:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56603\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:53:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'146.3\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'10\',\n										\'0\',\n										\'BM500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BM500G\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 10:53:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26946\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - BM500G x 10 @ 14.63\',\n											\'-146.3\')'),('2019-08-05 10:53:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27446\'\n							AND orderlineno = \'1\''),('2019-08-05 10:53:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'LCP\'\n						AND loccode = \'AN\''),('2019-08-05 10:53:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCP\',\n														10,\n														\'26946\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'17.5\',\n														\'93\',\n														\'27446\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-63623.13\',\n														\'\' )'),('2019-08-05 10:53:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56604\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:53:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'262.5\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'15\',\n										\'0\',\n										\'LCP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 10:53:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26946\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LCP x 15 @ 17.5\',\n											\'-262.5\')'),('2019-08-05 10:53:02','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26946\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'445.59\')'),('2019-08-05 10:53:02','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26946\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-36.79\')'),('2019-08-05 10:53:02','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000003552713678800501\n								WHERE counterindex = \'121939\''),('2019-08-05 10:54:38','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27447\',\n								\'8\',\n								\'8\',\n								\'0766\',\n								\'\',\n								\'2019-08-05 10:54\',\n								\'DE\',\n								\'10\',\n								\'QAMEA RESORT\',\n								\'P O BOX M7 WAIYEVO TAVEUNI\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 10:54:38','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27447\',\n					\'BLADE\',\n					\'12.00\',\n					\'6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:54:38','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27447\',\n					\'FR\',\n					\'67\',\n					\'6.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:54:38','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27447\',\n					\'LAMB\',\n					\'26\',\n					\'5.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 10:54:48','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26947\')\n			WHERE orderno= \'27447\''),('2019-08-05 10:54:48','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26947\',\n									10,\n									\'8\',\n									\'8\',\n									\'2019-08-06\',\n									\'2019-08-05 10-54-48\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27447\',\n									\'615.9\',\n									\'55.43\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34023\',\n									\'1\',\n									\'55.431\')'),('2019-08-05 10:54:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27447\'\n							AND orderlineno = \'0\''),('2019-08-05 10:54:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6\n						WHERE locstock.stockid = \'BLADE\'\n						AND loccode = \'AN\''),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BLADE\',\n														10,\n														\'26947\',\n														\'AN\',\n														\'2019-08-06\',\n														\'8\',\n														\'8\',\n														\'12\',\n														\'93\',\n														\'27447\',\n														\'-6\',\n														\'0\',\n														\'0.0000\',\n														\'-535.7\',\n														\'\' )'),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56605\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'72\',\n										\'0\',\n										\'8\',\n										\'8\',\n										\'6\',\n										\'0\',\n										\'BLADE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BLADE\'\n								AND custbranch.debtorno = \'8\'\n								AND custbranch.branchcode=\'8\''),('2019-08-05 10:54:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26947\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'8 - BLADE x 6 @ 12\',\n											\'-72\')'),('2019-08-05 10:54:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.1,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27447\'\n							AND orderlineno = \'1\''),('2019-08-05 10:54:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.1\n						WHERE locstock.stockid = \'FR\'\n						AND loccode = \'AN\''),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FR\',\n														10,\n														\'26947\',\n														\'AN\',\n														\'2019-08-06\',\n														\'8\',\n														\'8\',\n														\'67\',\n														\'93\',\n														\'27447\',\n														\'-6.1\',\n														\'0\',\n														\'0.0000\',\n														\'-7762.89\',\n														\'\' )'),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56606\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'408.7\',\n										\'0\',\n										\'8\',\n										\'8\',\n										\'6.1\',\n										\'0\',\n										\'FR\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FR\'\n								AND custbranch.debtorno = \'8\'\n								AND custbranch.branchcode=\'8\''),('2019-08-05 10:54:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26947\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'8 - FR x 6.1 @ 67\',\n											\'-408.7\')'),('2019-08-05 10:54:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.2,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27447\'\n							AND orderlineno = \'2\''),('2019-08-05 10:54:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.2\n						WHERE locstock.stockid = \'LAMB\'\n						AND loccode = \'AN\''),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LAMB\',\n														10,\n														\'26947\',\n														\'AN\',\n														\'2019-08-06\',\n														\'8\',\n														\'8\',\n														\'26\',\n														\'93\',\n														\'27447\',\n														\'-5.2\',\n														\'0\',\n														\'0.0000\',\n														\'-19378.76\',\n														\'\' )'),('2019-08-05 10:54:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56607\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'135.2\',\n										\'0\',\n										\'8\',\n										\'8\',\n										\'5.2\',\n										\'0\',\n										\'LAMB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LAMB\'\n								AND custbranch.debtorno = \'8\'\n								AND custbranch.branchcode=\'8\''),('2019-08-05 10:54:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26947\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'8 - LAMB x 5.2 @ 26\',\n											\'-135.2\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26947\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'8\',\n										\'671.33\')'),('2019-08-05 10:54:48','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26947\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'8\',\n											\'-55.43\')'),('2019-08-05 10:54:48','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000006394884621840902\n								WHERE counterindex = \'121943\''),('2019-08-05 11:20:18','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27448\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-05 11:20\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 11:20:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27448\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 11:20:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27448\',\n					\'LM\',\n					\'17.43\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 11:20:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27448\',\n					\'FISH\',\n					\'12.00\',\n					\'10.3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 11:20:25','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26948\')\n			WHERE orderno= \'27448\''),('2019-08-05 11:20:25','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26948\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-06\',\n									\'2019-08-05 11-20-25\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27448\',\n									\'963.15\',\n									\'75.56\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34024\',\n									\'1\',\n									\'75.5595\')'),('2019-08-05 11:20:25','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27448\'\n							AND orderlineno = \'0\''),('2019-08-05 11:20:25','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26948\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27448\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-306128.65\',\n														\'\' )'),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56608\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'752.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-05 11:20:25','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26948\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-05 11:20:25','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27448\'\n							AND orderlineno = \'1\''),('2019-08-05 11:20:25','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26948\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27448\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-32011.78\',\n														\'\' )'),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56609\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'87.15\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'5\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-05 11:20:25','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26948\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM x 5 @ 17.43\',\n											\'-87.15\')'),('2019-08-05 11:20:25','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.3,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27448\'\n							AND orderlineno = \'2\''),('2019-08-05 11:20:25','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.3\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26948\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM044\',\n														\'C008\',\n														\'12\',\n														\'93\',\n														\'27448\',\n														\'-10.3\',\n														\'0\',\n														\'0.0000\',\n														\'-45208.2701\',\n														\'\' )'),('2019-08-05 11:20:25','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56610\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'123.6\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'10.3\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-05 11:20:25','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26948\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM044 - FISH x 10.3 @ 12\',\n											\'-123.6\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26948\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'1038.71\')'),('2019-08-05 11:20:25','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26948\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-75.56\')'),('2019-08-05 11:20:25','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000005684341886080802\n								WHERE counterindex = \'121948\''),('2019-08-05 11:44:23','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27449\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-05 11:44\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 11:44:23','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27449\',\n					\'SF500G\',\n					\'16.40\',\n					\'6.9\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 11:44:37','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26949\')\n			WHERE orderno= \'27449\''),('2019-08-05 11:44:37','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26949\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-06\',\n									\'2019-08-05 11-44-37\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27449\',\n									\'113.16\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 11:44:37','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34025\',\n									\'1\',\n									\'0\')'),('2019-08-05 11:44:37','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.9,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27449\'\n							AND orderlineno = \'0\''),('2019-08-05 11:44:37','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.9\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-05 11:44:37','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26949\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27449\',\n														\'-6.9\',\n														\'0\',\n														\'0.0000\',\n														\'-9552.081\',\n														\'\' )'),('2019-08-05 11:44:37','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56611\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-05 11:44:37','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'113.16\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'6.9\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-05 11:44:37','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26949\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 6.9 @ 16.4\',\n											\'-113.16\')'),('2019-08-05 11:44:37','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26949\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'113.16\')'),('2019-08-05 11:53:11','zaabed','UPDATE debtortrans\n				SET alloc = alloc + 1700.4,\n					settled=\'1\'\n				WHERE transno = \'26926\'\n				AND type=10'),('2019-08-05 11:53:11','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									alloc,\n									settled)\n						VALUES (2086,\n							11,\n							\'TM050\',\n							\'F019\',\n							\'2019-08-05\',\n							\'2019-08-05 11-53-11\',\n							\'93\',\n							\'Inv-26926\',\n							\'DE\',\n							\'27426\',\n							\'-1560\',\n							\'-140.4\',\n							\'0\',\n							\'1\',\n							\'\',\n							\'-1700.4\',\n							\'1\')'),('2019-08-05 11:53:11','zaabed','INSERT INTO debtortranstaxes (\n							debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34026\',\n					\'1\',\n					\'-140.4\')'),('2019-08-05 11:53:11','zaabed','INSERT INTO custallocns (amt,\n						transid_allocfrom,\n						transid_allocto,\n						datealloc)\n			VALUES (\'1700.4\',\n				\'34026\',\n				\'34002\',\n				\'2019-08-05\')'),('2019-08-05 11:53:11','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced - 100,\n								completed=0\n						WHERE orderno = \'27426\'\n						AND stkcode = \'CP\'\n						AND quantity &gt;=100'),('2019-08-05 11:53:11','zaabed','UPDATE locstock\n								SET locstock.quantity = locstock.quantity + 100\n								WHERE locstock.stockid = \'CP\'\n								AND loccode = \'AN\''),('2019-08-05 11:53:11','zaabed','INSERT INTO stockmoves (stockid,\n													type,\n													transno,\n													loccode,\n													trandate,\n													debtorno,\n													branchcode,\n													price,\n													prd,\n													reference,\n													qty,\n													discountpercent,\n													standardcost,\n													newqoh,\n													narrative)\n											VALUES (\'CP\',\n													11,\n													\'2086\',\n													\'AN\',\n													\'2019-08-05\',\n													\'TM050\',\n													\'F019\',\n													\'15.6\',\n													\'93\',\n													\'Ex Inv - 26926\',\n													\'100\',\n													\'0\',\n													\'0.0000\',\n													\'-306028.65\',\n													\'\')'),('2019-08-05 11:53:11','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n					VALUES (\'56612\',\n						\'1\',\n						\'0.09\',\n						\'1\',\n						\'0\')'),('2019-08-05 11:53:11','zaabed','INSERT INTO salesanalysis (typeabbrev,\n								periodno,\n								amt,\n								cost,\n								cust,\n								custbranch,\n								qty,\n								disc,\n								stockid,\n								area,\n								budgetoractual,\n								salesperson,\n								stkcategory)\n						SELECT \'DE\',\n							\'93\',\n							\'-1560\',\n							\'0\',\n							\'TM050\',\n							\'F019\',\n							\'-100\',\n							\'0\',\n							\'CP\',\n							custbranch.area,\n							1,\n							\'fe\',\n							stockmaster.categoryid\n						FROM stockmaster,\n							custbranch\n						WHERE stockmaster.stockid = \'CP\'\n						AND custbranch.debtorno = \'TM050\'\n						AND custbranch.branchcode=\'F019\''),('2019-08-05 11:53:11','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2086\',\n						\'2019-08-05\',\n						\'93\',\n						\'4100\',\n						\'TM050 - CP x 100 @ 15.6000\',\n						\'1560\'\n						)'),('2019-08-05 11:53:11','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2086\',\n						\'2019-08-05\',\n						\'93\',\n						\'1100\',\n						\'TM050\',\n						\'-1700.4\'\n					)'),('2019-08-05 11:53:11','zaabed','INSERT INTO gltrans (\n						type,\n						typeno,\n						trandate,\n						periodno,\n						account,\n						narrative,\n						amount\n						)\n					VALUES (\n						11,\n						\'2086\',\n						\'2019-08-05\',\n						\'93\',\n						\'2300\',\n						\'TM050\',\n						\'140.4\'\n					)'),('2019-08-05 11:53:48','zaabed','UPDATE debtortrans\n				SET alloc = alloc + 340.08,\n					settled=\'1\'\n				WHERE transno = \'26924\'\n				AND type=10'),('2019-08-05 11:53:48','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									alloc,\n									settled)\n						VALUES (2087,\n							11,\n							\'TM050\',\n							\'F019\',\n							\'2019-08-05\',\n							\'2019-08-05 11-53-48\',\n							\'93\',\n							\'Inv-26924\',\n							\'DE\',\n							\'27424\',\n							\'-312\',\n							\'-28.08\',\n							\'0\',\n							\'1\',\n							\'\',\n							\'-340.08\',\n							\'1\')'),('2019-08-05 11:53:48','zaabed','INSERT INTO debtortranstaxes (\n							debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34027\',\n					\'1\',\n					\'-28.08\')'),('2019-08-05 11:53:48','zaabed','INSERT INTO custallocns (amt,\n						transid_allocfrom,\n						transid_allocto,\n						datealloc)\n			VALUES (\'340.08\',\n				\'34027\',\n				\'34000\',\n				\'2019-08-05\')'),('2019-08-05 11:53:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced - 20,\n								completed=0\n						WHERE orderno = \'27424\'\n						AND stkcode = \'CP\'\n						AND quantity &gt;=20'),('2019-08-05 11:53:48','zaabed','UPDATE locstock\n								SET locstock.quantity = locstock.quantity + 20\n								WHERE locstock.stockid = \'CP\'\n								AND loccode = \'AN\''),('2019-08-05 11:53:48','zaabed','INSERT INTO stockmoves (stockid,\n													type,\n													transno,\n													loccode,\n													trandate,\n													debtorno,\n													branchcode,\n													price,\n													prd,\n													reference,\n													qty,\n													discountpercent,\n													standardcost,\n													newqoh,\n													narrative)\n											VALUES (\'CP\',\n													11,\n													\'2087\',\n													\'AN\',\n													\'2019-08-05\',\n													\'TM050\',\n													\'F019\',\n													\'15.6\',\n													\'93\',\n													\'Ex Inv - 26924\',\n													\'20\',\n													\'0\',\n													\'0.0000\',\n													\'-306008.65\',\n													\'\')'),('2019-08-05 11:53:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n					VALUES (\'56613\',\n						\'1\',\n						\'0.09\',\n						\'1\',\n						\'0\')'),('2019-08-05 11:53:48','zaabed','UPDATE salesanalysis\n							SET amt=amt-312,\n							cost=cost-0,\n							qty=qty-20,\n							disc=disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND typeabbrev =\'DE\'\n							AND periodno = \'93\'\n							AND cust = \'TM050\'\n							AND custbranch = \'F019\'\n							AND stockid = \'CP\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND budgetoractual=1'),('2019-08-05 11:53:48','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2087\',\n						\'2019-08-05\',\n						\'93\',\n						\'4100\',\n						\'TM050 - CP x 20 @ 15.6000\',\n						\'312\'\n						)'),('2019-08-05 11:53:48','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2087\',\n						\'2019-08-05\',\n						\'93\',\n						\'1100\',\n						\'TM050\',\n						\'-340.08\'\n					)'),('2019-08-05 11:53:48','zaabed','INSERT INTO gltrans (\n						type,\n						typeno,\n						trandate,\n						periodno,\n						account,\n						narrative,\n						amount\n						)\n					VALUES (\n						11,\n						\'2087\',\n						\'2019-08-05\',\n						\'93\',\n						\'2300\',\n						\'TM050\',\n						\'28.08\'\n					)'),('2019-08-05 15:24:44','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27450\',\n								\'TM011\',\n								\'34\',\n								\'6885pick up\',\n								\'\',\n								\'2019-08-05 15:24\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 15:24:44','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27450\',\n					\'LPP\',\n					\'12.85\',\n					\'12\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:25:38','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26950\')\n			WHERE orderno= \'27450\''),('2019-08-05 15:25:38','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26950\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-06\',\n									\'2019-08-05 15-25-38\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27450\',\n									\'154.2\',\n									\'13.88\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 15:25:38','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34028\',\n									\'1\',\n									\'13.878\')'),('2019-08-05 15:25:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27450\'\n							AND orderlineno = \'0\''),('2019-08-05 15:25:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-05 15:25:38','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'26950\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'12.85\',\n														\'93\',\n														\'27450\',\n														\'-12\',\n														\'0\',\n														\'0.0000\',\n														\'-58873.52\',\n														\'\' )'),('2019-08-05 15:25:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56614\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:25:38','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'154.2\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'12\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 15:25:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26950\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LPP x 12 @ 12.85\',\n											\'-154.2\')'),('2019-08-05 15:25:38','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26950\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'168.08\')'),('2019-08-05 15:25:38','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26950\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-13.88\')'),('2019-08-05 15:25:38','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000023092638912203256\n								WHERE counterindex = \'121961\''),('2019-08-05 15:29:08','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27451\',\n								\'TM011\',\n								\'34\',\n								\'6865pick up\',\n								\'\',\n								\'2019-08-05 15:29\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 15:29:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27451\',\n					\'FF\',\n					\'18.50\',\n					\'18.4\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:29:14','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26951\')\n			WHERE orderno= \'27451\''),('2019-08-05 15:29:14','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26951\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-06\',\n									\'2019-08-05 15-29-14\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27451\',\n									\'340.4\',\n									\'30.64\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 15:29:14','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34029\',\n									\'1\',\n									\'30.636\')'),('2019-08-05 15:29:14','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 18.4,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27451\'\n							AND orderlineno = \'0\''),('2019-08-05 15:29:14','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 18.4\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-05 15:29:14','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26951\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM011\',\n														\'34\',\n														\'18.5\',\n														\'93\',\n														\'27451\',\n														\'-18.4\',\n														\'0\',\n														\'0.0000\',\n														\'-20968.57\',\n														\'marlin\' )'),('2019-08-05 15:29:14','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56615\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:29:14','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'340.4\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'18.4\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-05 15:29:14','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26951\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM011 - FF x 18.4 @ 18.5\',\n											\'-340.4\')'),('2019-08-05 15:29:14','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26951\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'371.04\')'),('2019-08-05 15:29:14','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26951\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-30.64\')'),('2019-08-05 15:29:14','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'121964\''),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27452\',\n								\'TM002\',\n								\'1\',\n								\'18720\',\n								\'\',\n								\'2019-08-05 15:54\',\n								\'DE\',\n								\'10\',\n								\'Vatuvara Limited\',\n								\'P O Box 586\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'2019-08-06\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27452\',\n					\'C001\',\n					\'8.00\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27452\',\n					\'LCPS\',\n					\'16.00\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27452\',\n					\'CHICKEN\',\n					\'8.50\',\n					\'30\',\n					\'0\',\n					\'wings\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27452\',\n					\'CHICKEN\',\n					\'7.50\',\n					\'30\',\n					\'0\',\n					\'30pcs\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:54:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27452\',\n					\'BM500G\',\n					\'8.50\',\n					\'16\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-05\'\n				)'),('2019-08-05 15:55:04','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26952\')\n			WHERE orderno= \'27452\''),('2019-08-05 15:55:04','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26952\',\n									10,\n									\'TM002\',\n									\'1\',\n									\'2019-08-06\',\n									\'2019-08-05 15-55-04\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27452\',\n									\'1496\',\n									\'134.64\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34030\',\n									\'1\',\n									\'134.64\')'),('2019-08-05 15:55:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27452\'\n							AND orderlineno = \'0\''),('2019-08-05 15:55:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'26952\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM002\',\n														\'1\',\n														\'8\',\n														\'93\',\n														\'27452\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-4245.4\',\n														\'\' )'),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56616\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'240\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'30\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM002 - C001 x 30 @ 8\',\n											\'-240\')'),('2019-08-05 15:55:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27452\'\n							AND orderlineno = \'1\''),('2019-08-05 15:55:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCPS\',\n														10,\n														\'26952\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM002\',\n														\'1\',\n														\'16\',\n														\'93\',\n														\'27452\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-45901.89\',\n														\'\' )'),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56617\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'640\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'40\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM002 - LCPS x 40 @ 16\',\n											\'-640\')'),('2019-08-05 15:55:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27452\'\n							AND orderlineno = \'2\''),('2019-08-05 15:55:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26952\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'93\',\n														\'27452\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-87043.17\',\n														\'wings\' )'),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56618\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'255\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'30\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM002 - CHICKEN x 30 @ 8.5\',\n											\'-255\')'),('2019-08-05 15:55:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27452\'\n							AND orderlineno = \'3\''),('2019-08-05 15:55:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26952\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM002\',\n														\'1\',\n														\'7.5\',\n														\'93\',\n														\'27452\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-87073.17\',\n														\'30pcs\' )'),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56619\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'225\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'30\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM002 - CHICKEN x 30 @ 7.5\',\n											\'-225\')'),('2019-08-05 15:55:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 16,\n								actualdispatchdate = \'2019-08-06\',\n								completed=1\n							WHERE orderno = \'27452\'\n							AND orderlineno = \'4\''),('2019-08-05 15:55:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 16\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26952\',\n														\'AN\',\n														\'2019-08-06\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'93\',\n														\'27452\',\n														\'-16\',\n														\'0\',\n														\'0.0000\',\n														\'-71693.11\',\n														\'\' )'),('2019-08-05 15:55:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56620\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'136\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'16\',\n										\'0\',\n										\'BM500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BM500G\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'4100\',\n											\'TM002 - BM500G x 16 @ 8.5\',\n											\'-136\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26952\',\n										\'2019-08-06\',\n										\'93\',\n										\'1100\',\n										\'TM002\',\n										\'1630.64\')'),('2019-08-05 15:55:04','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26952\',\n											\'2019-08-06\',\n											\'93\',\n											\'2300\',\n											\'TM002\',\n											\'-134.64\')'),('2019-08-05 15:55:04','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000011368683772161603\n								WHERE counterindex = \'121967\''),('2019-08-06 08:19:24','zaabed','UPDATE config SET confvalue = \'2019-08-06\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-06 10:30:06','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27453\',\n								\'TM009\',\n								\'30\',\n								\'15870lp3\',\n								\'\',\n								\'2019-08-06 10:30\',\n								\'DE\',\n								\'10\',\n								\'GOUNDAR SHIPPING LIMITED\',\n								\'P O BOX 672 SUVA\',\n								\'3301021\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-07\',\n								\'2019-08-07\',\n								\'2019-08-07\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-06 10:30:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27453\',\n					\'LPP\',\n					\'12.66\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-06\'\n				)'),('2019-08-06 10:30:12','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26953\')\n			WHERE orderno= \'27453\''),('2019-08-06 10:30:12','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26953\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-07\',\n									\'2019-08-06 10-30-12\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27453\',\n									\'506.4\',\n									\'45.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-06 10:30:12','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34031\',\n									\'1\',\n									\'45.576\')'),('2019-08-06 10:30:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-07\',\n								completed=1\n							WHERE orderno = \'27453\'\n							AND orderlineno = \'0\''),('2019-08-06 10:30:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-06 10:30:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'26953\',\n														\'AN\',\n														\'2019-08-07\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27453\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-58913.52\',\n														\'\' )'),('2019-08-06 10:30:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56621\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-06 10:30:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'506.4\',\n										\'0\',\n										\'TM009\',\n										\'30\',\n										\'40\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM009\'\n								AND custbranch.branchcode=\'30\''),('2019-08-06 10:30:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26953\',\n											\'2019-08-07\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LPP x 40 @ 12.66\',\n											\'-506.4\')'),('2019-08-06 10:30:12','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26953\',\n										\'2019-08-07\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'551.98\')'),('2019-08-06 10:30:12','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26953\',\n											\'2019-08-07\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-45.58\')'),('2019-08-06 10:30:12','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'121974\''),('2019-08-06 11:57:49','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27454\',\n								\'TM057\',\n								\'I002\',\n								\'24269\',\n								\'\',\n								\'2019-08-06 11:57\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-07\',\n								\'2019-08-07\',\n								\'2019-08-07\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-06 11:57:49','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27454\',\n					\'BS500G\',\n					\'12.85\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-06\'\n				)'),('2019-08-06 11:57:49','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27454\',\n					\'FF\',\n					\'16.97\',\n					\'8.4\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-06\'\n				)'),('2019-08-06 11:57:59','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26954\')\n			WHERE orderno= \'27454\''),('2019-08-06 11:57:59','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26954\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-08-07\',\n									\'2019-08-06 11-57-59\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27454\',\n									\'271.05\',\n									\'24.39\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-06 11:57:59','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34032\',\n									\'1\',\n									\'24.39432\')'),('2019-08-06 11:57:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-07\',\n								completed=1\n							WHERE orderno = \'27454\'\n							AND orderlineno = \'0\''),('2019-08-06 11:57:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BS500G\'\n						AND loccode = \'AN\''),('2019-08-06 11:57:59','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BS500G\',\n														10,\n														\'26954\',\n														\'AN\',\n														\'2019-08-07\',\n														\'TM057\',\n														\'I002\',\n														\'12.85\',\n														\'93\',\n														\'27454\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-2276.5\',\n														\'\' )'),('2019-08-06 11:57:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56622\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-06 11:57:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'128.5\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'10\',\n										\'0\',\n										\'BS500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BS500G\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-06 11:57:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26954\',\n											\'2019-08-07\',\n											\'93\',\n											\'4100\',\n											\'TM057 - BS500G x 10 @ 12.85\',\n											\'-128.5\')'),('2019-08-06 11:57:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.4,\n								actualdispatchdate = \'2019-08-07\',\n								completed=1\n							WHERE orderno = \'27454\'\n							AND orderlineno = \'1\''),('2019-08-06 11:57:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.4\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-06 11:57:59','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26954\',\n														\'AN\',\n														\'2019-08-07\',\n														\'TM057\',\n														\'I002\',\n														\'16.97\',\n														\'93\',\n														\'27454\',\n														\'-8.4\',\n														\'0\',\n														\'0.0000\',\n														\'-20976.97\',\n														\'marlin\' )'),('2019-08-06 11:57:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56623\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-06 11:57:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'142.55\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'8.4\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-06 11:57:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26954\',\n											\'2019-08-07\',\n											\'93\',\n											\'4100\',\n											\'TM057 - FF x 8.4 @ 16.97\',\n											\'-142.55\')'),('2019-08-06 11:57:59','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26954\',\n										\'2019-08-07\',\n										\'93\',\n										\'1100\',\n										\'TM057\',\n										\'295.44\')'),('2019-08-06 11:57:59','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26954\',\n											\'2019-08-07\',\n											\'93\',\n											\'2300\',\n											\'TM057\',\n											\'-24.39\')'),('2019-08-07 04:12:54','ebusiness','UPDATE config SET confvalue = \'2019-08-07\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-07 11:09:56','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27455\',\n								\'TM011\',\n								\'34\',\n								\'6896pick up\',\n								\'\',\n								\'2019-08-07 11:09\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 11:09:56','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27455\',\n					\'LP\',\n					\'12.85\',\n					\'12\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:10:03','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26955\')\n			WHERE orderno= \'27455\''),('2019-08-07 11:10:03','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26955\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-08\',\n									\'2019-08-07 11-10-03\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27455\',\n									\'154.2\',\n									\'13.88\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 11:10:03','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34033\',\n									\'1\',\n									\'13.878\')'),('2019-08-07 11:10:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27455\'\n							AND orderlineno = \'0\''),('2019-08-07 11:10:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12\n						WHERE locstock.stockid = \'LP\'\n						AND loccode = \'AN\''),('2019-08-07 11:10:03','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LP\',\n														10,\n														\'26955\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM011\',\n														\'34\',\n														\'12.85\',\n														\'93\',\n														\'27455\',\n														\'-12\',\n														\'0\',\n														\'0.0000\',\n														\'-111478.16\',\n														\'\' )'),('2019-08-07 11:10:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56624\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:10:03','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'154.2\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'12\',\n										\'0\',\n										\'LP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-07 11:10:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26955\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LP x 12 @ 12.85\',\n											\'-154.2\')'),('2019-08-07 11:10:03','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26955\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'168.08\')'),('2019-08-07 11:10:03','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26955\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-13.88\')'),('2019-08-07 11:10:03','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000023092638912203256\n								WHERE counterindex = \'121981\''),('2019-08-07 11:11:36','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27456\',\n								\'TM011\',\n								\'34\',\n								\'6895pick up\',\n								\'\',\n								\'2019-08-07 11:11\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 11:11:36','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27456\',\n					\'LP\',\n					\'12.85\',\n					\'12\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:11:42','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26956\')\n			WHERE orderno= \'27456\''),('2019-08-07 11:11:42','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26956\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-08\',\n									\'2019-08-07 11-11-42\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27456\',\n									\'154.2\',\n									\'13.88\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 11:11:42','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34034\',\n									\'1\',\n									\'13.878\')'),('2019-08-07 11:11:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27456\'\n							AND orderlineno = \'0\''),('2019-08-07 11:11:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12\n						WHERE locstock.stockid = \'LP\'\n						AND loccode = \'AN\''),('2019-08-07 11:11:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LP\',\n														10,\n														\'26956\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM011\',\n														\'34\',\n														\'12.85\',\n														\'93\',\n														\'27456\',\n														\'-12\',\n														\'0\',\n														\'0.0000\',\n														\'-111490.16\',\n														\'\' )'),('2019-08-07 11:11:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56625\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:11:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'154.2\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'12\',\n										\'0\',\n										\'LP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LP\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-07 11:11:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26956\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM011 - LP x 12 @ 12.85\',\n											\'-154.2\')'),('2019-08-07 11:11:42','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26956\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'168.08\')'),('2019-08-07 11:11:42','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26956\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-13.88\')'),('2019-08-07 11:11:42','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000023092638912203256\n								WHERE counterindex = \'121984\''),('2019-08-07 11:41:42','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27457\',\n								\'TM051\',\n								\'F021\',\n								\'pick up\',\n								\'\',\n								\'2019-08-07 11:41\',\n								\'DE\',\n								\'10\',\n								\'FIJI POLICE FORCE OFFICERS MESS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 11:41:42','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27457\',\n					\'C16\',\n					\'157.50\',\n					\'1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:41:49','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26957\')\n			WHERE orderno= \'27457\''),('2019-08-07 11:41:49','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26957\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-08\',\n									\'2019-08-07 11-41-49\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27457\',\n									\'157.5\',\n									\'14.18\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 11:41:49','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34035\',\n									\'1\',\n									\'14.175\')'),('2019-08-07 11:41:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27457\'\n							AND orderlineno = \'0\''),('2019-08-07 11:41:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1\n						WHERE locstock.stockid = \'C16\'\n						AND loccode = \'AN\''),('2019-08-07 11:41:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C16\',\n														10,\n														\'26957\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM051\',\n														\'F021\',\n														\'157.5\',\n														\'93\',\n														\'27457\',\n														\'-1\',\n														\'0\',\n														\'0.0000\',\n														\'-193.2\',\n														\'\' )'),('2019-08-07 11:41:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56626\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:41:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'157.5\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'1\',\n										\'0\',\n										\'C16\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C16\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-07 11:41:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26957\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C16 x 1 @ 157.5\',\n											\'-157.5\')'),('2019-08-07 11:41:49','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26957\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'171.68\')'),('2019-08-07 11:41:49','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26957\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM051\',\n											\'-14.18\')'),('2019-08-07 11:45:31','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27458\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-07 11:45\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 11:45:31','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27458\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:45:31','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27458\',\n					\'MBT\',\n					\'9.50\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:45:31','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27458\',\n					\'BM500G\',\n					\'9.00\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:45:31','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27458\',\n					\'SF500G\',\n					\'16.40\',\n					\'10.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:45:45','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26958\')\n			WHERE orderno= \'27458\''),('2019-08-07 11:45:45','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26958\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-08\',\n									\'2019-08-07 11-45-45\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27458\',\n									\'758.84\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34036\',\n									\'1\',\n									\'33.858\')'),('2019-08-07 11:45:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27458\'\n							AND orderlineno = \'0\''),('2019-08-07 11:45:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26958\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27458\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306028.65\',\n														\'\' )'),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56627\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26958\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-07 11:45:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27458\'\n							AND orderlineno = \'1\''),('2019-08-07 11:45:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26958\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27458\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7197.6\',\n														\'\' )'),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56628\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26958\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 20 @ 9.5\',\n											\'-190\')'),('2019-08-07 11:45:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27458\'\n							AND orderlineno = \'2\''),('2019-08-07 11:45:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26958\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'93\',\n														\'27458\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-71696.11\',\n														\'\' )'),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56629\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'27\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3\',\n										\'0\',\n										\'BM500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BM500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26958\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM074 - BM500G x 3 @ 9\',\n											\'-27\')'),('2019-08-07 11:45:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.1,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27458\'\n							AND orderlineno = \'3\''),('2019-08-07 11:45:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.1\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26958\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27458\',\n														\'-10.1\',\n														\'0\',\n														\'0.0000\',\n														\'-9562.181\',\n														\'\' )'),('2019-08-07 11:45:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56630\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'165.64\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10.1\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26958\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 10.1 @ 16.4\',\n											\'-165.64\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26958\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'792.7\')'),('2019-08-07 11:45:45','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26958\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-07 11:47:01','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27459\',\n								\'TM013\',\n								\'41\',\n								\'KSPN004461\',\n								\'\',\n								\'2019-08-07 11:47\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 11:47:01','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27459\',\n					\'BF\',\n					\'14.00\',\n					\'15\',\n					\'0\',\n					\'diced\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 11:47:07','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26959\')\n			WHERE orderno= \'27459\''),('2019-08-07 11:47:07','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26959\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-08\',\n									\'2019-08-07 11-47-07\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27459\',\n									\'210\',\n									\'18.9\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 11:47:07','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34037\',\n									\'1\',\n									\'18.9\')'),('2019-08-07 11:47:07','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27459\'\n							AND orderlineno = \'0\''),('2019-08-07 11:47:07','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'BF\'\n						AND loccode = \'AN\''),('2019-08-07 11:47:07','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BF\',\n														10,\n														\'26959\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27459\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-6563.71\',\n														\'diced\' )'),('2019-08-07 11:47:07','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56631\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 11:47:07','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'210\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'15\',\n										\'0\',\n										\'BF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BF\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-07 11:47:07','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26959\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BF x 15 @ 14\',\n											\'-210\')'),('2019-08-07 11:47:07','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26959\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'228.9\')'),('2019-08-07 11:47:07','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26959\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-18.9\')'),('2019-08-07 12:01:53','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27460\',\n								\'TM013\',\n								\'41\',\n								\'00000091\',\n								\'\',\n								\'2019-08-07 12:01\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'2019-08-08\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-07 12:01:53','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27460\',\n					\'RS\',\n					\'12.00\',\n					\'4.25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 12:01:53','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27460\',\n					\'SS\',\n					\'17.24\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 12:01:53','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27460\',\n					\'RE\',\n					\'32\',\n					\'3.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 12:01:53','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27460\',\n					\'BTS\',\n					\'14\',\n					\'6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-07\'\n				)'),('2019-08-07 12:02:08','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26960\')\n			WHERE orderno= \'27460\''),('2019-08-07 12:02:08','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26960\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-08\',\n									\'2019-08-07 12-02-08\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27460\',\n									\'285.92\',\n									\'25.73\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34038\',\n									\'1\',\n									\'25.7328\')'),('2019-08-07 12:02:08','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.25,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27460\'\n							AND orderlineno = \'0\''),('2019-08-07 12:02:08','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.25\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RS\',\n														10,\n														\'26960\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27460\',\n														\'-4.25\',\n														\'0\',\n														\'0.0000\',\n														\'-19846.34\',\n														\'\' )'),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56632\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'51\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4.25\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26960\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 4.25 @ 12\',\n											\'-51\')'),('2019-08-07 12:02:08','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27460\'\n							AND orderlineno = \'1\''),('2019-08-07 12:02:08','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SS\',\n														10,\n														\'26960\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27460\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-6698.5\',\n														\'\' )'),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56633\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'51.72\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26960\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 3 @ 17.24\',\n											\'-51.72\')'),('2019-08-07 12:02:08','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.1,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27460\'\n							AND orderlineno = \'2\''),('2019-08-07 12:02:08','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.1\n						WHERE locstock.stockid = \'RE\'\n						AND loccode = \'AN\''),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RE\',\n														10,\n														\'26960\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM013\',\n														\'41\',\n														\'32\',\n														\'93\',\n														\'27460\',\n														\'-3.1\',\n														\'0\',\n														\'0.0000\',\n														\'-14303.21\',\n														\'\' )'),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56634\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'99.2\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.1\',\n										\'0\',\n										\'RE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RE\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26960\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RE x 3.1 @ 32\',\n											\'-99.2\')'),('2019-08-07 12:02:08','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6,\n								actualdispatchdate = \'2019-08-08\',\n								completed=1\n							WHERE orderno = \'27460\'\n							AND orderlineno = \'3\''),('2019-08-07 12:02:08','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BTS\',\n														10,\n														\'26960\',\n														\'AN\',\n														\'2019-08-08\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27460\',\n														\'-6\',\n														\'0\',\n														\'0.0000\',\n														\'-5481.01\',\n														\'\' )'),('2019-08-07 12:02:08','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56635\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'84\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'6\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26960\',\n											\'2019-08-08\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 6 @ 14\',\n											\'-84\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26960\',\n										\'2019-08-08\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'311.65\')'),('2019-08-07 12:02:08','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26960\',\n											\'2019-08-08\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-25.73\')'),('2019-08-07 12:02:08','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000003907985046680551\n								WHERE counterindex = \'121999\''),('2019-08-07 12:10:21','zaabed','UPDATE debtortrans\n				SET alloc = alloc + 183.12,\n					settled=\'1\'\n				WHERE transno = \'26930\'\n				AND type=10'),('2019-08-07 12:10:21','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									alloc,\n									settled)\n						VALUES (2088,\n							11,\n							\'TM013\',\n							\'41\',\n							\'2019-08-07\',\n							\'2019-08-07 12-10-21\',\n							\'93\',\n							\'Inv-26930\',\n							\'DE\',\n							\'27430\',\n							\'-168\',\n							\'-15.12\',\n							\'0\',\n							\'1\',\n							\'\',\n							\'-183.12\',\n							\'1\')'),('2019-08-07 12:10:21','zaabed','INSERT INTO debtortranstaxes (\n							debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34039\',\n					\'1\',\n					\'-15.12\')'),('2019-08-07 12:10:21','zaabed','INSERT INTO custallocns (amt,\n						transid_allocfrom,\n						transid_allocto,\n						datealloc)\n			VALUES (\'183.12\',\n				\'34039\',\n				\'34006\',\n				\'2019-08-07\')'),('2019-08-07 12:10:21','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced - 12,\n								completed=0\n						WHERE orderno = \'27430\'\n						AND stkcode = \'BF\'\n						AND quantity &gt;=12'),('2019-08-07 12:10:21','zaabed','UPDATE locstock\n								SET locstock.quantity = locstock.quantity + 12\n								WHERE locstock.stockid = \'BF\'\n								AND loccode = \'AN\''),('2019-08-07 12:10:21','zaabed','INSERT INTO stockmoves (stockid,\n													type,\n													transno,\n													loccode,\n													trandate,\n													debtorno,\n													branchcode,\n													price,\n													prd,\n													reference,\n													qty,\n													discountpercent,\n													standardcost,\n													newqoh,\n													narrative)\n											VALUES (\'BF\',\n													11,\n													\'2088\',\n													\'AN\',\n													\'2019-08-07\',\n													\'TM013\',\n													\'41\',\n													\'14\',\n													\'93\',\n													\'Ex Inv - 26930\',\n													\'12\',\n													\'0\',\n													\'0.0000\',\n													\'-6551.71\',\n													\'diced\')'),('2019-08-07 12:10:21','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n					VALUES (\'56636\',\n						\'1\',\n						\'0.09\',\n						\'1\',\n						\'0\')'),('2019-08-07 12:10:21','zaabed','INSERT INTO salesanalysis (typeabbrev,\n								periodno,\n								amt,\n								cost,\n								cust,\n								custbranch,\n								qty,\n								disc,\n								stockid,\n								area,\n								budgetoractual,\n								salesperson,\n								stkcategory)\n						SELECT \'DE\',\n							\'93\',\n							\'-168\',\n							\'0\',\n							\'TM013\',\n							\'41\',\n							\'-12\',\n							\'0\',\n							\'BF\',\n							custbranch.area,\n							1,\n							\'fe\',\n							stockmaster.categoryid\n						FROM stockmaster,\n							custbranch\n						WHERE stockmaster.stockid = \'BF\'\n						AND custbranch.debtorno = \'TM013\'\n						AND custbranch.branchcode=\'41\''),('2019-08-07 12:10:21','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2088\',\n						\'2019-08-07\',\n						\'93\',\n						\'4100\',\n						\'TM013 - BF x 12 @ 14.0000\',\n						\'168\'\n						)'),('2019-08-07 12:10:21','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2088\',\n						\'2019-08-07\',\n						\'93\',\n						\'1100\',\n						\'TM013\',\n						\'-183.12\'\n					)'),('2019-08-07 12:10:21','zaabed','INSERT INTO gltrans (\n						type,\n						typeno,\n						trandate,\n						periodno,\n						account,\n						narrative,\n						amount\n						)\n					VALUES (\n						11,\n						\'2088\',\n						\'2019-08-07\',\n						\'93\',\n						\'2300\',\n						\'TM013\',\n						\'15.12\'\n					)'),('2019-08-08 08:03:07','zaabed','UPDATE config SET confvalue = \'2019-08-08\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-08 08:05:15','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27461\',\n								\'98\',\n								\'98\',\n								\'\',\n								\'\',\n								\'2019-08-08 08:05\',\n								\'DE\',\n								\'1\',\n								\'WEST MEAT\',\n								\'LAUTOKA\',\n								\'\',\n								\'CITY\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 08:05:15','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27461\',\n					\'TA\',\n					\'40.00\',\n					\'58.48\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 08:05:15','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27461\',\n					\'LR\',\n					\'38.00\',\n					\'75.91\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 08:05:21','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26961\')\n			WHERE orderno= \'27461\''),('2019-08-08 08:05:21','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26961\',\n									10,\n									\'98\',\n									\'98\',\n									\'2019-08-09\',\n									\'2019-08-08 08-05-21\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27461\',\n									\'5223.78\',\n									\'470.14\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 08:05:21','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34040\',\n									\'1\',\n									\'470.1402\')'),('2019-08-08 08:05:21','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 58.48,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27461\'\n							AND orderlineno = \'0\''),('2019-08-08 08:05:21','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 58.48\n						WHERE locstock.stockid = \'TA\'\n						AND loccode = \'AN\''),('2019-08-08 08:05:21','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'TA\',\n														10,\n														\'26961\',\n														\'AN\',\n														\'2019-08-09\',\n														\'98\',\n														\'98\',\n														\'40\',\n														\'93\',\n														\'27461\',\n														\'-58.48\',\n														\'0\',\n														\'0.0000\',\n														\'-28740.06\',\n														\'\' )'),('2019-08-08 08:05:21','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56637\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 08:05:21','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'2339.2\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'58.48\',\n										\'0\',\n										\'TA\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'TA\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-08 08:05:21','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26961\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'98 - TA x 58.48 @ 40\',\n											\'-2339.2\')'),('2019-08-08 08:05:21','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 75.91,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27461\'\n							AND orderlineno = \'1\''),('2019-08-08 08:05:21','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 75.91\n						WHERE locstock.stockid = \'LR\'\n						AND loccode = \'AN\''),('2019-08-08 08:05:21','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LR\',\n														10,\n														\'26961\',\n														\'AN\',\n														\'2019-08-09\',\n														\'98\',\n														\'98\',\n														\'38\',\n														\'93\',\n														\'27461\',\n														\'-75.91\',\n														\'0\',\n														\'0.0000\',\n														\'-11643\',\n														\'\' )'),('2019-08-08 08:05:21','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56638\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 08:05:21','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'2884.58\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'75.91\',\n										\'0\',\n										\'LR\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LR\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-08 08:05:21','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26961\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'98 - LR x 75.91 @ 38\',\n											\'-2884.58\')'),('2019-08-08 08:05:21','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26961\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'98\',\n										\'5693.92\')'),('2019-08-08 08:05:21','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26961\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'98\',\n											\'-470.14\')'),('2019-08-08 08:05:21','zaabed','UPDATE gltrans SET amount = amount - 0.0000000000003410605131648481\n								WHERE counterindex = \'122008\''),('2019-08-08 08:15:09','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27462\',\n								\'TM077\',\n								\'P008\',\n								\'\',\n								\'\',\n								\'2019-08-08 08:15\',\n								\'DE\',\n								\'10\',\n								\'PEARL SOUTH PACIFIC\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 08:15:09','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27462\',\n					\'LCP\',\n					\'19.50\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 08:15:18','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26962\')\n			WHERE orderno= \'27462\''),('2019-08-08 08:15:18','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26962\',\n									10,\n									\'TM077\',\n									\'P008\',\n									\'2019-08-09\',\n									\'2019-08-08 08-15-18\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27462\',\n									\'780\',\n									\'70.2\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 08:15:18','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34041\',\n									\'1\',\n									\'70.2\')'),('2019-08-08 08:15:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27462\'\n							AND orderlineno = \'0\''),('2019-08-08 08:15:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LCP\'\n						AND loccode = \'AN\''),('2019-08-08 08:15:18','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCP\',\n														10,\n														\'26962\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM077\',\n														\'P008\',\n														\'19.5\',\n														\'93\',\n														\'27462\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-63663.13\',\n														\'\' )'),('2019-08-08 08:15:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56639\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 08:15:18','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'780\',\n										\'0\',\n										\'TM077\',\n										\'P008\',\n										\'40\',\n										\'0\',\n										\'LCP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCP\'\n								AND custbranch.debtorno = \'TM077\'\n								AND custbranch.branchcode=\'P008\''),('2019-08-08 08:15:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26962\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM077 - LCP x 40 @ 19.5\',\n											\'-780\')'),('2019-08-08 08:15:18','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26962\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'TM077\',\n										\'850.2\')'),('2019-08-08 08:15:18','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26962\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'TM077\',\n											\'-70.2\')'),('2019-08-08 09:31:25','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27463\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-08 09:31\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 09:31:25','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27463\',\n					\'FF\',\n					\'17.00\',\n					\'29.65\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:31:31','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26963\')\n			WHERE orderno= \'27463\''),('2019-08-08 09:31:31','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26963\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-09\',\n									\'2019-08-08 09-31-31\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27463\',\n									\'504.05\',\n									\'45.36\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 09:31:31','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34042\',\n									\'1\',\n									\'45.3645\')'),('2019-08-08 09:31:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 29.65,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27463\'\n							AND orderlineno = \'0\''),('2019-08-08 09:31:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 29.65\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-08 09:31:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26963\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27463\',\n														\'-29.65\',\n														\'0\',\n														\'0.0000\',\n														\'-21006.62\',\n														\'marlin\' )'),('2019-08-08 09:31:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56640\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:31:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'504.05\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'29.65\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-08 09:31:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26963\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 29.65 @ 17\',\n											\'-504.05\')'),('2019-08-08 09:31:31','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26963\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'549.41\')'),('2019-08-08 09:31:31','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26963\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-45.36\')'),('2019-08-08 09:31:31','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000004263256414560601\n								WHERE counterindex = \'122015\''),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27464\',\n								\'TM013\',\n								\'41\',\n								\'00000292\',\n								\'\',\n								\'2019-08-08 09:36\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27464\',\n					\'RE\',\n					\'32\',\n					\'1.55\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27464\',\n					\'RDS\',\n					\'12\',\n					\'4.25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27464\',\n					\'RS\',\n					\'12\',\n					\'6.4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27464\',\n					\'SS\',\n					\'17.24\',\n					\'2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:36:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27464\',\n					\'BTS\',\n					\'14\',\n					\'5.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 09:36:42','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26964\')\n			WHERE orderno= \'27464\''),('2019-08-08 09:36:42','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26964\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-09\',\n									\'2019-08-08 09-36-42\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27464\',\n									\'283.28\',\n									\'25.5\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34043\',\n									\'1\',\n									\'25.4952\')'),('2019-08-08 09:36:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1.55,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27464\'\n							AND orderlineno = \'0\''),('2019-08-08 09:36:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1.55\n						WHERE locstock.stockid = \'RE\'\n						AND loccode = \'AN\''),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RE\',\n														10,\n														\'26964\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM013\',\n														\'41\',\n														\'32\',\n														\'93\',\n														\'27464\',\n														\'-1.55\',\n														\'0\',\n														\'0.0000\',\n														\'-14304.76\',\n														\'\' )'),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56641\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'49.6\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'1.55\',\n										\'0\',\n										\'RE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RE\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RE x 1.55 @ 32\',\n											\'-49.6\')'),('2019-08-08 09:36:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.25,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27464\'\n							AND orderlineno = \'1\''),('2019-08-08 09:36:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.25\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RDS\',\n														10,\n														\'26964\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27464\',\n														\'-4.25\',\n														\'0\',\n														\'0.0000\',\n														\'-918.69\',\n														\'\' )'),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56642\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'51\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4.25\',\n										\'0\',\n										\'RDS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RDS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 4.25 @ 12\',\n											\'-51\')'),('2019-08-08 09:36:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.4,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27464\'\n							AND orderlineno = \'2\''),('2019-08-08 09:36:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.4\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RS\',\n														10,\n														\'26964\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27464\',\n														\'-6.4\',\n														\'0\',\n														\'0.0000\',\n														\'-19852.74\',\n														\'\' )'),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56643\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'76.8\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'6.4\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 6.4 @ 12\',\n											\'-76.8\')'),('2019-08-08 09:36:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27464\'\n							AND orderlineno = \'3\''),('2019-08-08 09:36:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SS\',\n														10,\n														\'26964\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27464\',\n														\'-2\',\n														\'0\',\n														\'0.0000\',\n														\'-6700.5\',\n														\'\' )'),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56644\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'34.48\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2 @ 17.24\',\n											\'-34.48\')'),('2019-08-08 09:36:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.1,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27464\'\n							AND orderlineno = \'4\''),('2019-08-08 09:36:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.1\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BTS\',\n														10,\n														\'26964\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27464\',\n														\'-5.1\',\n														\'0\',\n														\'0.0000\',\n														\'-5486.11\',\n														\'\' )'),('2019-08-08 09:36:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56645\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'71.4\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'5.1\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 5.1 @ 14\',\n											\'-71.4\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26964\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'308.78\')'),('2019-08-08 09:36:42','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26964\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-25.5\')'),('2019-08-08 10:01:46','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4664\',\n						12,\n						\'TM074\',\n						\'\',\n						\'2019-08-08\',\n						\'2019-08-08 10-01-46\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-8085.41\',\n						\'0\',\n						\'WBC# 34598\'\n					)'),('2019-08-08 10:01:46','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-08\',\n						lastpaid=\'8085.41\'\n					WHERE debtorsmaster.debtorno=\'TM074\''),('2019-08-08 10:01:46','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4664\',\n			\'1100\',\n			\'WBC# 34598\',\n			\'1\',\n			\'1\',\n			\'2019-08-08\',\n			\'Cheque\',\n			\'8085.41\',\n			\'FJD\'\n		)'),('2019-08-08 10:01:46','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4664\',\n					\'2019-08-08\',\n					\'93\',\n					\'1100\',\n					\'WBC# 34598\',\n					\'8085.41\'\n				)'),('2019-08-08 10:01:46','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4664\',\n							\'2019-08-08\',\n							\'93\',\n							\'1100\',\n							\'WBC# 34598\',\n							\'-8085.41\'\n							)'),('2019-08-08 10:02:50','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4665\',\n						12,\n						\'TM074\',\n						\'\',\n						\'2019-08-08\',\n						\'2019-08-08 10-02-50\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1911.67\',\n						\'0\',\n						\'WBC# 19349\'\n					)'),('2019-08-08 10:02:50','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-08\',\n						lastpaid=\'1911.67\'\n					WHERE debtorsmaster.debtorno=\'TM074\''),('2019-08-08 10:02:50','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4665\',\n			\'1100\',\n			\'WBC# 19349\',\n			\'1\',\n			\'1\',\n			\'2019-08-08\',\n			\'Cheque\',\n			\'1911.67\',\n			\'FJD\'\n		)'),('2019-08-08 10:02:50','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4665\',\n					\'2019-08-08\',\n					\'93\',\n					\'1100\',\n					\'WBC# 19349\',\n					\'1911.67\'\n				)'),('2019-08-08 10:02:50','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4665\',\n							\'2019-08-08\',\n							\'93\',\n							\'1100\',\n							\'WBC# 19349\',\n							\'-1911.67\'\n							)'),('2019-08-08 10:03:34','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4666\',\n						12,\n						\'TM074\',\n						\'\',\n						\'2019-08-08\',\n						\'2019-08-08 10-03-34\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-2191.54\',\n						\'0\',\n						\'\'\n					)'),('2019-08-08 10:03:34','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-08\',\n						lastpaid=\'2191.54\'\n					WHERE debtorsmaster.debtorno=\'TM074\''),('2019-08-08 10:03:34','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4666\',\n			\'1100\',\n			\'\',\n			\'1\',\n			\'1\',\n			\'2019-08-08\',\n			\'Cheque\',\n			\'2191.54\',\n			\'FJD\'\n		)'),('2019-08-08 10:03:34','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4666\',\n					\'2019-08-08\',\n					\'93\',\n					\'1100\',\n					\'\',\n					\'2191.54\'\n				)'),('2019-08-08 10:03:34','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4666\',\n							\'2019-08-08\',\n							\'93\',\n							\'1100\',\n							\'\',\n							\'-2191.54\'\n							)'),('2019-08-08 10:04:37','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4667\',\n						12,\n						\'TM011\',\n						\'\',\n						\'2019-08-08\',\n						\'2019-08-08 10-04-37\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3270.65\',\n						\'0\',\n						\'ANZ# 3555\'\n					)'),('2019-08-08 10:04:37','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-08\',\n						lastpaid=\'3270.65\'\n					WHERE debtorsmaster.debtorno=\'TM011\''),('2019-08-08 10:04:37','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4667\',\n			\'1100\',\n			\'ANZ# 3555\',\n			\'1\',\n			\'1\',\n			\'2019-08-08\',\n			\'Cheque\',\n			\'3270.65\',\n			\'FJD\'\n		)'),('2019-08-08 10:04:37','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4667\',\n					\'2019-08-08\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 3555\',\n					\'3270.65\'\n				)'),('2019-08-08 10:04:37','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4667\',\n							\'2019-08-08\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 3555\',\n							\'-3270.65\'\n							)'),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'350.20\',\n								\'34047\',\n								\'32608\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'350.2\',\n						settled = \'0\'\n						WHERE id = \'32608\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'286.13\',\n								\'34047\',\n								\'32658\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'286.13\',\n						settled = \'1\'\n						WHERE id = \'32658\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'170.04\',\n								\'34047\',\n								\'32644\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'32644\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'239.2\',\n								\'34047\',\n								\'32691\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.2\',\n						settled = \'1\'\n						WHERE id = \'32691\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'127.53\',\n								\'34047\',\n								\'32713\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'127.53\',\n						settled = \'1\'\n						WHERE id = \'32713\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'85.02\',\n								\'34047\',\n								\'32712\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'85.02\',\n						settled = \'1\'\n						WHERE id = \'32712\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'255.06\',\n								\'34047\',\n								\'32758\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'255.06\',\n						settled = \'1\'\n						WHERE id = \'32758\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'239.2\',\n								\'34047\',\n								\'32793\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.2\',\n						settled = \'1\'\n						WHERE id = \'32793\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'525.33\',\n								\'34047\',\n								\'32826\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'525.33\',\n						settled = \'1\'\n						WHERE id = \'32826\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'170.04\',\n								\'34047\',\n								\'32849\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'32849\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'127.53\',\n								\'34047\',\n								\'32875\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'127.53\',\n						settled = \'1\'\n						WHERE id = \'32875\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'525.33\',\n								\'34047\',\n								\'32893\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'525.33\',\n						settled = \'1\'\n						WHERE id = \'32893\''),('2019-08-08 10:07:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'170.04\',\n								\'34047\',\n								\'32926\'\n							)'),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'32926\''),('2019-08-08 10:07:56','jhairud','UPDATE debtortrans\n				SET alloc = \'-3270.65\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34047\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'2.00\',\n								\'34044\',\n								\'28805\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'146.91\',\n						settled = \'0\'\n						WHERE id = \'28805\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'428.69\',\n								\'34044\',\n								\'33519\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'428.69\',\n						settled = \'1\'\n						WHERE id = \'33519\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'396.54\',\n								\'34044\',\n								\'33535\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'396.54\',\n						settled = \'1\'\n						WHERE id = \'33535\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'662.54\',\n								\'34044\',\n								\'33555\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'662.54\',\n						settled = \'1\'\n						WHERE id = \'33555\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'740.09\',\n								\'34044\',\n								\'33570\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'740.09\',\n						settled = \'1\'\n						WHERE id = \'33570\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'549.7\',\n								\'34044\',\n								\'33575\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'549.7\',\n						settled = \'1\'\n						WHERE id = \'33575\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'80.16\',\n								\'34044\',\n								\'33588\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'80.16\',\n						settled = \'1\'\n						WHERE id = \'33588\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'52.46\',\n								\'34044\',\n								\'33589\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'52.46\',\n						settled = \'1\'\n						WHERE id = \'33589\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'644.7\',\n								\'34044\',\n								\'33597\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'644.7\',\n						settled = \'1\'\n						WHERE id = \'33597\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'219.18\',\n								\'34044\',\n								\'33602\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'219.18\',\n						settled = \'1\'\n						WHERE id = \'33602\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'235\',\n								\'34044\',\n								\'33636\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'235\',\n						settled = \'1\'\n						WHERE id = \'33636\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'454.7\',\n								\'34044\',\n								\'33637\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'454.7\',\n						settled = \'1\'\n						WHERE id = \'33637\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'269.78\',\n								\'34044\',\n								\'33639\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'269.78\',\n						settled = \'1\'\n						WHERE id = \'33639\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'116.93\',\n								\'34044\',\n								\'33641\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'116.93\',\n						settled = \'1\'\n						WHERE id = \'33641\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'269.78\',\n								\'34044\',\n								\'33672\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'269.78\',\n						settled = \'1\'\n						WHERE id = \'33672\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'239.05\',\n								\'34044\',\n								\'33707\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.05\',\n						settled = \'1\'\n						WHERE id = \'33707\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'739.94\',\n								\'34044\',\n								\'33708\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'739.94\',\n						settled = \'1\'\n						WHERE id = \'33708\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'359.7\',\n								\'34044\',\n								\'33716\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'359.7\',\n						settled = \'1\'\n						WHERE id = \'33716\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'371.04\',\n								\'34044\',\n								\'33720\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'371.04\',\n						settled = \'1\'\n						WHERE id = \'33720\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'392.84\',\n								\'34044\',\n								\'33743\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'392.84\',\n						settled = \'1\'\n						WHERE id = \'33743\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'370.42\',\n								\'34044\',\n								\'33754\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'370.42\',\n						settled = \'1\'\n						WHERE id = \'33754\''),('2019-08-08 10:19:40','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-08\',\n								\'490.17\',\n								\'34044\',\n								\'33755\'\n							)'),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'490.17\',\n						settled = \'1\'\n						WHERE id = \'33755\''),('2019-08-08 10:19:40','jhairud','UPDATE debtortrans\n				SET alloc = \'-8085.41\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34044\''),('2019-08-08 13:06:02','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27465\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'\',\n								\'2019-08-08 13:06\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 13:06:02','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27465\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 13:06:02','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27465\',\n					\'MBT\',\n					\'9.5\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 13:06:02','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27465\',\n					\'SF500G\',\n					\'16.40\',\n					\'4.3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 13:06:12','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26965\')\n			WHERE orderno= \'27465\''),('2019-08-08 13:06:12','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26965\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-09\',\n									\'2019-08-08 13-06-12\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27465\',\n									\'494.22\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34048\',\n									\'1\',\n									\'33.858\')'),('2019-08-08 13:06:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27465\'\n							AND orderlineno = \'0\''),('2019-08-08 13:06:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26965\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27465\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306048.65\',\n														\'\' )'),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56646\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-08 13:06:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26965\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-08 13:06:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27465\'\n							AND orderlineno = \'1\''),('2019-08-08 13:06:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26965\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27465\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7202.6\',\n														\'\' )'),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56647\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'47.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-08 13:06:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26965\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 5 @ 9.5\',\n											\'-47.5\')'),('2019-08-08 13:06:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.3,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27465\'\n							AND orderlineno = \'2\''),('2019-08-08 13:06:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.3\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SF500G\',\n														10,\n														\'26965\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27465\',\n														\'-4.3\',\n														\'0\',\n														\'0.0000\',\n														\'-9566.481\',\n														\'\' )'),('2019-08-08 13:06:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56648\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'70.52\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'4.3\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-08 13:06:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26965\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 4.3 @ 16.4\',\n											\'-70.52\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26965\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'528.08\')'),('2019-08-08 13:06:12','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26965\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-08 13:06:12','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000007105427357601002\n								WHERE counterindex = \'122033\''),('2019-08-08 13:07:11','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27466\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-08 13:07\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'2019-08-09\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-08 13:07:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27466\',\n					\'CT\',\n					\'38\',\n					\'3.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-08\'\n				)'),('2019-08-08 13:07:17','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26966\')\n			WHERE orderno= \'27466\''),('2019-08-08 13:07:17','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26966\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-09\',\n									\'2019-08-08 13-07-17\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27466\',\n									\'121.6\',\n									\'10.94\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-08 13:07:17','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34049\',\n									\'1\',\n									\'10.944\')'),('2019-08-08 13:07:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.2,\n								actualdispatchdate = \'2019-08-09\',\n								completed=1\n							WHERE orderno = \'27466\'\n							AND orderlineno = \'0\''),('2019-08-08 13:07:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.2\n						WHERE locstock.stockid = \'CT\'\n						AND loccode = \'AN\''),('2019-08-08 13:07:17','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CT\',\n														10,\n														\'26966\',\n														\'AN\',\n														\'2019-08-09\',\n														\'TM074\',\n														\'P001\',\n														\'38\',\n														\'93\',\n														\'27466\',\n														\'-3.2\',\n														\'0\',\n														\'0.0000\',\n														\'-7034.41\',\n														\'\' )'),('2019-08-08 13:07:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56649\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-08 13:07:17','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'121.6\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3.2\',\n										\'0\',\n										\'CT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-08 13:07:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26966\',\n											\'2019-08-09\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CT x 3.2 @ 38\',\n											\'-121.6\')'),('2019-08-08 13:07:17','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26966\',\n										\'2019-08-09\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'132.54\')'),